Merge pull request #85 from HAIL9000/maint/master/fix_acceptance_test

(maint) Update acceptance tests to use gem
This commit is contained in:
Will Hopper 2016-05-02 16:41:27 -07:00
commit 2fa33621d5
3 changed files with 5 additions and 5 deletions

View File

@ -18,7 +18,7 @@ task :validate do
end
task :acceptance do
sh "puppet module build"
sh "gem build puppet-strings.gemspec"
sh "puppet module build spec/unit/puppet/examples/test"
sh "BEAKER_set=#{ENV["platform"]} rspec spec/acceptance/*.rb"
end

View File

@ -2,9 +2,9 @@ HOSTS:
master:
roles:
- master
platform: fedora-20-x86_64
platform: fedora-23-x86_64
hypervisor: vcloud
template: Delivery/Quality Assurance/Templates/vCloud/fedora-20-x86_64
template: Delivery/Quality Assurance/Templates/vCloud/fedora-23-x86_64
CONFIG:
filecount: 12
datastore: instance0

View File

@ -14,8 +14,8 @@ RSpec.configure do |c|
c.before :suite do
hosts.each do |host|
scp_to(host, Dir.glob('pkg/puppetlabs-strings*.gz').first, 'strings.tar.gz')
on host, puppet('module', 'install', 'strings.tar.gz')
scp_to(host, Dir.glob('puppet-strings*.gem').first, 'puppet-strings.gem')
on host, 'gem install puppet-strings.gem'
scp_to(host, Dir.glob('spec/unit/puppet/examples/test/pkg/username-test*.gz').first, 'test.tar.gz')
on host, puppet('module', 'install', 'test.tar.gz')