Jump to: navigation, search

Difference between revisions of "Puppet/Coding style"

(Testing)
(Testing)
Line 10: Line 10:
  
 
== Testing ==
 
== Testing ==
 +
Your code needs to be tested. Puppet OpenStack CI will [[Puppet/CI|verify]] for you, but if you want to save time, you better to run tests locally before sending a patchː
 
* [http://puppet-lint.com/ Lint]
 
* [http://puppet-lint.com/ Lint]
 
* [https://puppetlabs.com/blog/verifying-puppet-checking-syntax-and-writing-automated-tests Syntax]
 
* [https://puppetlabs.com/blog/verifying-puppet-checking-syntax-and-writing-automated-tests Syntax]

Revision as of 03:06, 15 September 2015

Before coding

  • Read this page
  • Make sure that what you're going to code is not already work in progress
  • Make sure you're familiar with Puppet Syntax, Lint, Rspec, and Beaker
  • If you want to create a new module, read Puppet/New_module

Best practices

Testing

Your code needs to be tested. Puppet OpenStack CI will verify for you, but if you want to save time, you better to run tests locally before sending a patchː

Documentation

Asking for review