Commit Graph

10 Commits

Author SHA1 Message Date
Emilien Macchi e4c7d867b1 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: I016d529de50222c26adde2a5b4f66bbac4e781f8
2016-01-27 17:38:14 +00:00
Emilien Macchi 09e6b8030b Checkout openstack-integration from master
Since stable/liberty was created, let's now checkout master to prepare
the next release (Mitaka).

Change-Id: I1461a5e096093a4749b7793351404aeebc7be43c
2015-11-24 23:43:11 +01:00
Emilien Macchi bee0264356 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: Ia0390c4e74249727bc71125dae504cfa883283cb
2015-11-24 16:22:23 +00:00
Gael Chamoulaud fea9ecdc32 Remove class_parameter_defaults puppet-lint check
Change-Id: I00db25d2beeb7082eaaa8098bcd7f420f5c51be8
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2015-11-12 12:38:34 +01:00
Emilien Macchi 7c9e10b9da 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: I11607fcb400fab9b6096ca8af191c2f2f4b6eca9
2015-10-08 15:01:39 -07:00
Cody Herriges d2637ed73d 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: Ibfd9b9bc31620a46cb3c7e438f023cab1cfcd31f
2015-08-06 20:47:48 +02:00
Mathieu Gagné 48ac3fb090 Fail puppet-lint on warnings
Puppet-lint will now fail if there is any warnings.

Disable 'class_inherits_from_params_class' check.

Change-Id: Ia1d7fa5109178f040b00abcdb3f7d84c4bdf58b4
2013-08-28 18:00:15 -04:00
Mathieu Gagné 272c6063ac 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: I9884e2bd721d4f3e90e02a8a6fdc51219efcd819
2013-08-12 17:49:33 -04:00
Branan Purvine-Riley 182959754a Update module for the puppetlabs_spec_helper gem
* Load Rakefile and spec_helper from the common code in the gem
* Add a .fixtures.yml for automatic creation of testing fixtures
2012-05-31 16:55:33 -07:00
Dan Bode 2c6a1b75e7 saving my work (not even the initial commit) 2012-01-02 15:39:23 -08:00