Commit Graph

10 Commits

Author SHA1 Message Date
Emilien Macchi 748c31eff2 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: Ide05588229ba369d669e7802af3ca2971b555951
2016-01-18 09:11:20 -05:00
Emilien Macchi 83585c6b25 Checkout openstack-integration from master
Since stable/liberty was created, let's now checkout master to prepare
the next release (Mitaka).

Change-Id: I583245184674b8dd91880ee7f707ad89c8ab75c9
2015-11-26 11:21:02 +01:00
Emilien Macchi 29670f4f21 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: Ieb4a0d2eb18ab68521d97eb8c6ed4a541306be3b
2015-11-25 12:01:12 +01:00
Gael Chamoulaud 9949f8814d Remove class_parameter_defaults puppet-lint check
Change-Id: Ibe60de05ef001862d18f746df0a8f17858042444
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2015-11-12 12:36:50 +01:00
Emilien Macchi 06e150fa18 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: I7b5af3ea6b21009a505a8b6c49086d339eaa43e5
2015-10-08 14:56:03 -07:00
Cody Herriges aba03fb675 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: Ie10f1467374a9c254515172f5ddc53f2e628c602
2015-08-06 20:34:34 +02:00
Gael Chamoulaud 0f1a965e43 Add Puppet 4.x lint checks
This changes the puppet-lint requirement to 1.1.x, so that we can use
puppet-lint plugins. Most of these plugins are for 4.x compat, but some
just catch common errors.

Change-Id: I5d8988653943631d5d2179702de1220263b67850
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2015-03-17 15:52:16 +01:00
Mathieu Gagné d4254df507 Fail puppet-lint on warnings
Puppet-lint will now fail if there is any warnings.

Change-Id: I5286809afb726aebe22008cd6392cc4722fc0f1d
2013-08-28 16:33:03 -04:00
Mathieu Gagné b478288ad7 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: I9958b3000d2b2b6d9b6114843d0f7123dca5aa95
2013-08-12 17:49:17 -04:00
Branan Purvine-Riley c386cd4a71 Add initial spec test 2012-06-18 16:12:32 -07:00