Commit Graph

9 Commits

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

Change-Id: Id0c9b3b18b973faa894d8205015ee51954b558de
2015-11-26 11:10:08 +01:00
Emilien Macchi 312546c2b3 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: I1e99e2eb980bb84340c2ff8d1a3cad3be2106685
2015-11-25 11:02:48 +01:00
Gael Chamoulaud 14e8749fda Remove class_parameter_defaults puppet-lint check
Change-Id: I0d9d40457c6d03203554fe75ffdff92c969706a2
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2015-11-12 12:31:46 +01:00
Emilien Macchi e9a95581dd 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: Iadcef8079efb8c94282c5cdefb91bfa3920f3919
2015-10-09 17:53:16 +02:00
Cody Herriges 8a2dc3c2f2 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: Idd56a02fda7d7d84cf1a3711e6c233c3d9e2d053
2015-08-06 20:42:33 +02:00
Mathieu Gagné ffba060d87 Fail puppet-lint on warnings
Puppet-lint will now fail if there is any warnings.

Change-Id: I5997851548d32e4d723e4e76375cb17282c0d67b
2013-08-28 14:00:02 -04:00
Mathieu Gagné c93e26a361 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: If510ebd0e5ceca4310e80523a8bb455fa6f3f7f8
2013-08-12 17:48:09 -04:00
Dan Bode 8f57c59b67 add travisci support
Adds all of the files required for travis to work.
2012-10-29 12:58:32 -07:00