]> review.fuel-infra Code Review - puppet-modules/puppet-ceilometer.git/commit
Try to use zuul-cloner to prepare fixtures
authorEmilien Macchi <emilien@redhat.com>
Thu, 8 Oct 2015 21:37:08 +0000 (14:37 -0700)
committerEmilien Macchi <emilien@redhat.com>
Thu, 8 Oct 2015 21:46:03 +0000 (14:46 -0700)
commitdfa1e8c0aff263d6bceb53357fee6f3cbae45c8e
tree586c451cbbca834dd12ce8252431d5513f8b74ec
parent183b62b35a32390285c454cc35dbfc7721150944
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: I8b884ef477bbc031da6bd3955ed308679e0380f6
.fixtures.yml [deleted file]
.gitignore
Gemfile
Rakefile