Enforce dependency version in tests

This commit is contained in:
Hunter Haugen 2014-02-14 14:34:37 -08:00
parent 3876813845
commit 398309fc37
2 changed files with 4 additions and 2 deletions

View file

@ -1,5 +1,7 @@
fixtures:
repositories:
"stdlib": "git://github.com/puppetlabs/puppetlabs-stdlib.git"
"stdlib":
"repo": "git://github.com/puppetlabs/puppetlabs-stdlib.git"
"ref": "v2.2.1"
symlinks:
"apt": "#{source_dir}"

View file

@ -20,7 +20,7 @@ RSpec.configure do |c|
puppet_module_install(:source => proj_root, :module_name => 'apt')
hosts.each do |host|
shell('/bin/touch /etc/puppet/hiera.yaml')
shell('puppet module install puppetlabs-stdlib', { :acceptable_exit_codes => [0,1] })
shell('puppet module install puppetlabs-stdlib --version 2.2.1', { :acceptable_exit_codes => [0,1] })
end
end
end