9 Commits

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

Change-Id: I76733bc51a1682faf0fe05c1f6cccc44a7068aea
2015-11-24 14:15:05 +01:00
Emilien Macchi
47a0c6392f 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: I6fcc8d1eaa65d44ec2e3682390909e01f5017ada
2015-11-24 10:28:56 +01:00
Gael Chamoulaud
eb923f65de Remove class_parameter_defaults puppet-lint check
Change-Id: Ib3fce526e04e138be9ae57f11a8337907744d220
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2015-11-12 12:48:10 +01:00
Emilien Macchi
fcb34662d8 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: I4a2926f2a80eab35a654400b1f451b5b8ee3e869
2015-10-08 15:11:36 -07:00
Cody Herriges
4fe3a9e5bd 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: I9a858f29644b3519d5b19fb9a0c45589968537ef
2015-08-18 14:33:53 +02:00
Colleen Murphy
97f76c5c60 Remove validate task from Rakefile
As of release 0.6.0 puppetlabs_spec_helper now contains a validate task in
puppetlabs_spec_helper/rake_tasks, so writing it in our own Rakefile
is unnecessary.

Change-Id: I8250c2fc7621fe4233c2bc53e6770f69a84188eb
2014-07-08 09:17:19 -07:00
Mathieu Gagné
e72605f500 Fail rspec tests on warnings
Change-Id: I851f3cb9eb4eadded7187a067d2ab94d7c4479b8
2014-07-02 13:13:02 -04:00
Colleen Murphy
474a3bbabe Create basic module structure with required files
Change-Id: I9984ffa0e5f0fa379fae559b44457c34fa10ccd2
2014-07-01 08:37:43 -07:00