Commit Graph

11 Commits (51c2793738813c0385b08a810e9c54efcda1a739)

Author SHA1 Message Date
Emilien Macchi 67bd15682e Use puppet-openstack_spec_helper for Rakefile & spec_helper_acceptance
Use common code in puppet-openstack_spec_helper in Rakefile and

Change-Id: Ia9279876369e1ae1d0062eae4b103fca5256c452
2016-01-18 09:11:17 -05:00
Emilien Macchi 0e5ca8f1d7 Checkout openstack-integration from master
Since stable/liberty was created, let's now checkout master to prepare
the next release (Mitaka).

Change-Id: I1a6220db3323637ccd4dda91ddb2388671be5cfb
2015-11-26 11:12:21 +01:00
Emilien Macchi 0f384787e3 release: prepare 7.0.0 (liberty)
This patch prepares this Puppet module to be released in 7.x series (Liberty)
with 7.0.0.

Change-Id: I67c7cefb95003539400a8176af21325d71cd4575
2015-11-25 11:51:22 +01:00
Gael Chamoulaud 817efcaf29 Remove class_parameter_defaults puppet-lint check
Change-Id: Ia957a462565b7c640ed34dcd67f12c2e4cc8eccd
Signed-off-by: Gael Chamoulaud <>
2015-11-12 12:34:07 +01:00
Emilien Macchi f55cebf7b6 Try to use zuul-cloner to prepare fixtures
In OpenStack Infra, we would like to run Puppet unit tests that
sometimes depends on other Puppet OpenStack modules.
Example: a patch in puppet-openstacklib that needs to be tested in puppet-nova.

This patch modifies the Rakefile to:
* clean spec_prep and spec_clean Rake tasks
* use openstack/puppet-openstack-integration/ script
  to clone modules.
* do not use .fixtures.yaml file to clone modules and rely on
  zuul-cloner or git.
* Add openstack/ in gitignore so we never commit the
  puppet-openstack-integration repository (can happen when spec_clean
  did not run but you want to submit the patch anyway)
* Allow to run a custom Puppetfile if PUPPETFILE env is exported. It
  will allow people to test the module with the dependencies they like,
  feature we had with .fixtures.yaml.

Also add 'r10k' to Gemfile.

That way, we will be able to use zuul dependencies and run tests accross
modules like we do with functional testing.

Change-Id: Ibdb2ebccfd782ed5e01b7f0c4bfb6294c89232c6
2015-10-08 14:51:07 -07:00
Cody Herriges 6ea3194989 Initial msync run for all Puppet OpenStack modules
This patch is the initial modulesync run, it impacts:

* gitignore: just a sync between projects
* gemfile:
  - update and allow to setup facter version and gem source
  - split beaker gems with a dedicated group
  - switch to rspec-puppet 2.2.0
* rakefile:
  - use the new syntax for lint configuration
  - add a acceptance target
* acceptance:
  - sync nodesets
* spec: added rspec coverage report

Change-Id: I05e2e4c13bd264c65fad8bade1886e23a50184d9
2015-09-04 21:16:12 +00:00
Mathieu Gagné c96750897c Fail puppet-lint on warnings
Puppet-lint will now fail if there is any warnings.

Change-Id: I17bb6fa59af1c69d94f65616d41717c0297a8ad1
2013-08-28 14:16:59 -04:00
Mathieu Gagné f2ffec82af Disable 80chars/class_parameter_defaults checks
* Disable warnings for "line has more than 80 characters"
* Disable warnings for "parameterised class parameter without a default value"

We do not wish to track warnings for such violations.

Change-Id: Idb3828f7b19c39ebcb84c4ad8f415aefef84cf21
2013-08-12 17:48:28 -04:00
Branan Purvine-Riley ecc5a2d605 Switch to using the puppetlabs_spec_helper gem for common files instead of duplicating code 2012-05-31 15:33:11 -07:00
Branan Purvine-Riley 0b0bf5adcd Add files for CI support
These changes make it easier for both humans and computers to run the spec tests

* Add `rake spec_full` and friends, which automatically checkout dependency modules
  prior to running spec tests
* Prepend fixtures modulepath instead of overriding
* Add a Travis-CI configuration file to enable easy CI
2012-05-29 09:50:13 -07:00
Dan Bode 4fa5d3f046 (#11692) Add unit tests
This commit adds full test coverage for all manifests
in the glance repo.
2012-01-03 11:27:43 -08:00