Commit Graph

9 Commits

Author SHA1 Message Date
Emilien Macchi d54150a1ad Retire openstack/puppet-tuskar
Tuskar is not maintained anymore.
Further maintenance should be done in stable branches, but master is no
longer supported.

Change-Id: I957ef8dc587086f32c918676a66dd8e247e50280
2016-01-05 16:31:24 -05:00
Emilien Macchi 79cb000d22 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: I154e5ab5623b932fc3c550f7969a39993f38a3cf
2015-10-08 15:21:50 -07:00
Cody Herriges d713405828 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
  - update tests in order to use zuul-cloner
* spec: added rspec coverage report

Change-Id: I8721d7649dca32e67f25e59665075a3ca2a5afb0
2015-08-18 14:36:09 +02:00
Emilien Macchi 0f435e71c2 Bump rspec-puppet to 2.1.0
rspec-puppet 2.1.0 includes Puppet 4.0 support [1].

[1] https://github.com/rodjek/rspec-puppet/commits/v2.1.0

Change-Id: I0e13e0b3c3cd286246ba73dae1bed91ec8868c0a
2015-04-23 00:01:51 -04:00
Sebastien Badia 15f4810c06 Add Puppet 4.x lint checks
This changes the puppet-lint requirement to 1.1.x, so that we can
puppet-lint plugins. Most of these plugins are for 4.x compat, but
just catch common errors.

Change-Id: Ic7e3e5f2200c61760436d2c3b2f504e18248a15a
2015-02-25 05:12:22 +01:00
Sebastien Badia 7c18a413d3 spec: updates for rspec-puppet 2.x and rspec 3.x
This patch aim to update our specs test in order to work with the
rspec-puppet release 2.0.0, in the mean time, we update rspec syntax
order to be prepared for rspec 3.x move.

In details:

  * Convert 'should' keyword to 'is_expected.to' (prepare rspec 3.x)
  * Upgrade and pin rspec-puppet from 1.0.1 to 2.0.0

Change-Id: Ic9ac859be612f2afc5486340e5aa8eaf83473ab4
2015-02-25 05:09:33 +01:00
Sebastien Badia 5639796a41 Fix lint issues (doc, metadata, manifests)
Add puppet parameters lint (with puppet-lint-param-docs gem) and fix
missing documentations, this commit also fix manifest lint issues
(due to puppet-lint upgrade) and metadata.json file (SPDX license,
and open dependencies).

Change-Id: I52d00d76c42a51bcc632c856754fa930ba18bcc1
2015-02-25 05:08:23 +01:00
Sebastien Badia 004ce86bab spec: pin rspec-puppet to 1.0.1
rspec-puppet (2.0.0) was released yesterday[1], this new version broke
puppet-openstack unit tests (undefined method `resource')[2] as talked on
and in a second time to update your specs to 2.0.0 and rspec 3.x`)

[1] 8459e14807
[2] http://logs.openstack.org/45/105245/6/check/gate-puppet-nova-puppet-unit-3.3/3682541/console.html

Change-Id: Ideb8118a7e3b4e585f7c3dd86712a113fd5766ce
Partial-bug: #1417604
2015-02-03 15:32:21 +01:00
Emilien Macchi df2961c229 First commit without unit tests 2014-10-29 17:08:09 -04:00