09b2b5c70f
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: I80dd7e183098d7265ac52da4445c1963dace7ffb
38 lines
1.4 KiB
Ruby
38 lines
1.4 KiB
Ruby
source ENV['GEM_SOURCE'] || "https://rubygems.org"
|
|
|
|
group :development, :test do
|
|
gem 'puppetlabs_spec_helper', :require => 'false'
|
|
gem 'rspec-puppet', '~> 2.2.0', :require => 'false'
|
|
gem 'metadata-json-lint', :require => 'false'
|
|
gem 'puppet-lint-param-docs', :require => 'false'
|
|
gem 'puppet-lint-absolute_classname-check', :require => 'false'
|
|
gem 'puppet-lint-absolute_template_path', :require => 'false'
|
|
gem 'puppet-lint-trailing_newline-check', :require => 'false'
|
|
gem 'puppet-lint-unquoted_string-check', :require => 'false'
|
|
gem 'puppet-lint-leading_zero-check', :require => 'false'
|
|
gem 'puppet-lint-variable_contains_upcase', :require => 'false'
|
|
gem 'puppet-lint-numericvariable', :require => 'false'
|
|
gem 'json', :require => 'false'
|
|
gem 'webmock', :require => 'false'
|
|
end
|
|
|
|
group :system_tests do
|
|
gem 'beaker-rspec', :require => 'false'
|
|
gem 'beaker-puppet_install_helper', :require => 'false'
|
|
gem 'r10k', :require => 'false'
|
|
end
|
|
|
|
if facterversion = ENV['FACTER_GEM_VERSION']
|
|
gem 'facter', facterversion, :require => false
|
|
else
|
|
gem 'facter', :require => false
|
|
end
|
|
|
|
if puppetversion = ENV['PUPPET_GEM_VERSION']
|
|
gem 'puppet', puppetversion, :require => false
|
|
else
|
|
gem 'puppet', :require => false
|
|
end
|
|
|
|
# vim:ft=ruby
|