Commit Graph

10 Commits

Author SHA1 Message Date
Emilien Macchi 1140ae26e3 Use puppet-openstack_spec_helper for Rakefile & spec_helper_acceptance
Use common code in puppet-openstack_spec_helper in Rakefile and
spec_helper_acceptance.

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

Change-Id: Idbe10c90a39c95f60a5336aa54768fdd534fce46
2015-11-26 11:44:50 +01:00
Emilien Macchi 27d9bb556a 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: I3f68becc6480cbe99b2b7daaaa455949cd1637dc
2015-11-25 16:39:50 +01:00
Gael Chamoulaud 7e0c9c675d Remove class_parameter_defaults puppet-lint check
Change-Id: I6d7fcc6c84f0e33867876053de7bfa53c79eb5ed
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2015-11-12 12:43:43 +01:00
Emilien Macchi ee10d14987 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/install_modules_unit.sh 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: I555bdeba198b1b468884ffce3702f5b06247d573
2015-10-08 15:08:52 -07:00
Sebastien Badia 9034bb2c18 Initial msync run for all Puppet OpenStack modules
This patch is the initial modulesync run, it impact:

* 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
  - update tests in order to use zuul-cloner
* spec: added rspec coverage report

Change-Id: I481931358bff8f87b43a18c849e3b4feef36bd6a
2015-08-18 13:58:21 +02:00
Cody Herriges e0b04137d9 Sync up module with latest msync commit.
Msync commit to push all our managed modules to the default set of
  configs.  Being done for two reason: to address a helper library
  loading issue that is addressed in
  d4278834d5
  and to make all module contents consistent.

Change-Id: I747e589369a7ce187dc11c981f5d327af0cf73f5
2015-06-16 08:40:37 -07:00
Mathieu Gagné a193393d46 Fail puppet-lint on warnings
Puppet-lint will now fail if there is any warnings.

Change-Id: I9cbd8f4e2792a9882a249ab3aeeb37360414bf08
2013-08-28 19:59:48 -04:00
Mathieu Gagné c423525f35 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: Ief5c949bbd5fd574257ebeea91052cc3fa501c83
2013-08-12 17:50:09 -04:00
Mathieu Gagné 4074952a96 Add rabbit_hosts parameter
Preserve rabbit_host parameter for backward compatibility.
rabbit_hosts allows the configuration of quantum with rabbit HA support.
Add rspec tests and fix various typos/bugs.
2013-04-12 18:18:11 -04:00