Difference between revisions of "Puppet"
(→Downloading a local patch) |
(→running local rspec puppet tests) |
||
Line 16: | Line 16: | ||
> git fetch https://review.openstack.org/stackforge/puppet-openstack refs/changes/52/29452/9 && git checkout FETCH_HEAD | > git fetch https://review.openstack.org/stackforge/puppet-openstack refs/changes/52/29452/9 && git checkout FETCH_HEAD | ||
− | == | + | === rspec puppet tests === |
− | === running local tests === | + | ==== running local tests ==== |
> mkdir vendor | > mkdir vendor | ||
Line 26: | Line 26: | ||
> bundle exec rake spec | > bundle exec rake spec | ||
− | === writing tests === | + | ==== writing tests ==== |
The best reference for getting started with rspec-puppet can be found [http://rspec-puppet.com/ here] | The best reference for getting started with rspec-puppet can be found [http://rspec-puppet.com/ here] |
Revision as of 18:02, 22 May 2013
Contents
Developer documentation
steps to get started:
- follow the regular process for contributing to openstack [1]
- go to : settings > watched projects and add the puppet projects (all of the form stackforge/puppet-*)
Downloading a local patch
glone the relevant module from stackforge, ex:
> git clone git://github.com/stackforge/puppet-openstack
in the patch, find the git checkout or chery-pick command, and copy it:
> git fetch https://review.openstack.org/stackforge/puppet-openstack refs/changes/52/29452/9 && git checkout FETCH_HEAD
rspec puppet tests
running local tests
> mkdir vendor > export GEM_HOME=vendor > bundle install > # bundle exec rake -T > bundle exec rake spec
writing tests
The best reference for getting started with rspec-puppet can be found here