Skip to content

Commit b83c5b9

Browse files
authored
Merge pull request #493 from gimmyxd/maint/bump_agent
(maint) bump agent version in tests
2 parents 8c2ab7c + c111806 commit b83c5b9

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

acceptance/tests/test_upgrade_pc1_to_puppet5.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
manifest = <<-PP
1313
node default {
1414
class { puppet_agent:
15-
package_version => '5.5.10',
15+
package_version => '5.5.16',
1616
collection => 'puppet5'
1717
}
1818
}
@@ -36,7 +36,7 @@ class { puppet_agent:
3636
agents_only.each do |agent|
3737
start_puppet_service_and_wait_for_puppet_run(agent)
3838
wait_for_installation_pid(agent)
39-
assert_agent_version_on(agent, '5.5.10')
39+
assert_agent_version_on(agent, '5.5.16')
4040
end
4141
end
4242
end

acceptance/tests/test_upgrade_puppet5_to_puppet6.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
manifest = <<-PP
1313
node default {
1414
class { puppet_agent:
15-
package_version => '6.0.0',
15+
package_version => '6.15.0',
1616
collection => 'puppet6'
1717
}
1818
}
@@ -36,7 +36,7 @@ class { puppet_agent:
3636
agents_only.each do |agent|
3737
start_puppet_service_and_wait_for_puppet_run(agent)
3838
wait_for_installation_pid(agent)
39-
assert_agent_version_on(agent, '6.0.0')
39+
assert_agent_version_on(agent, '6.15.0')
4040
end
4141
end
4242
end

spec/acceptance/class_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
it 'should work idempotently with no errors' do
1212
pp = <<-EOS
13-
class { 'puppet_agent': package_version => '5.5.14', collection => 'puppet5' }
13+
class { 'puppet_agent': package_version => '5.5.16', collection => 'puppet5' }
1414
EOS
1515

1616
# Run it twice and test for idempotency
@@ -137,7 +137,7 @@ class { 'puppet_agent': service_names => [] }
137137
context 'with mcollective configured' do
138138
before(:all) {
139139
setup_puppet_on default, :mcollective => true, :agent => true
140-
manifest = 'class { "puppet_agent": package_version => "5.5.14", collection => "puppet5", service_names => ["mcollective"] }'
140+
manifest = 'class { "puppet_agent": package_version => "5.5.16", collection => "puppet5", service_names => ["mcollective"] }'
141141
pp = "file { '#{master.puppet['codedir']}/environments/production/manifests/site.pp': ensure => file, content => '#{manifest}' }"
142142
apply_manifest_on(master, pp, :catch_failures => true)
143143
}

spec/spec_helper_acceptance.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def install_modules_on(host)
4242
master['puppetservice'] = 'puppetserver'
4343
master['puppetserver-confdir'] = '/etc/puppetlabs/puppetserver/conf.d'
4444
master['type'] = 'aio'
45-
install_puppet_agent_on master, {:version => ENV['PUPPET_CLIENT_VERSION'] || "5.5.10", :puppet_collection => 'puppet5'}
45+
install_puppet_agent_on master, {:version => ENV['PUPPET_CLIENT_VERSION'] || "5.5.14", :puppet_collection => 'puppet5'}
4646

4747
install_modules_on master
4848

@@ -127,7 +127,7 @@ def setup_puppet_on(host, opts = {})
127127

128128
puts "Setup aio puppet on #{host}"
129129
configure_type_defaults_on host
130-
install_puppet_agent_on host, {:version => ENV['PUPPET_CLIENT_VERSION'] || '5.5.10', :puppet_collection => 'puppet5'}
130+
install_puppet_agent_on host, {:version => ENV['PUPPET_CLIENT_VERSION'] || '5.5.14', :puppet_collection => 'puppet5'}
131131

132132
puppet_opts = agent_opts(master.to_s)
133133
if host['platform'] =~ /windows/i

task_spec/spec/acceptance/init_spec.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ def target_platform
2929

3030
it 'works with version and install tasks' do
3131
puppet_5_version = case target_platform
32-
when %r{fedora-29}
33-
'5.5.10'
3432
when %r{fedora-30}
3533
'5.5.16'
3634
when %r{fedora-31}

0 commit comments

Comments
 (0)