Skip to content

Commit

Permalink
(maint) Fixing test to upgrade from puppet 5 not from puppet 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Oana Tanasoiu committed May 24, 2019
1 parent 984c215 commit c6d903e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions spec/acceptance/class_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

it 'should work idempotently with no errors' do
pp = <<-EOS
class { 'puppet_agent': package_version => '6.0.9' }
class { 'puppet_agent': package_version => '5.5.14' }
EOS

# Run it twice and test for idempotency
Expand Down Expand Up @@ -63,7 +63,7 @@ class { 'puppet_agent': package_version => '6.0.9' }
wait_for_finish_on default
case default['platform']
when /debian|ubuntu/
pp = "include apt\napt::source { 'pc_repo': ensure => present, location => 'https://apt.puppet.com', repos => 'PC1' }"
pp = "include apt\napt::source { 'pc_repo': ensure => present, location => 'https://apt.puppet.com', repos => 'puppet5' }"
when /fedora|el|centos/
pp = "yumrepo { 'pc_repo': ensure => present }"
else
Expand Down Expand Up @@ -173,7 +173,7 @@ class { 'puppet_agent': service_names => [] }
context 'with mcollective configured' do
before(:all) {
setup_puppet_on default, :mcollective => true, :agent => true
manifest = 'class { "puppet_agent": package_version => "1.10.0", service_names => ["mcollective"] }'
manifest = 'class { "puppet_agent": package_version => "5.5.14", service_names => ["mcollective"] }'
pp = "file { '#{master.puppet['codedir']}/environments/production/manifests/site.pp': ensure => file, content => '#{manifest}' }"
apply_manifest_on(master, pp, :catch_failures => true)
}
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def setup_puppet_on(host, opts = {})

puts "Setup foss puppet on #{host}"
configure_defaults_on host, 'foss'
install_puppet_agent_on host, :version => ENV['PUPPET_CLIENT_VERSION'] || '5.5.14'
install_puppet_agent_on host, {:version => ENV['PUPPET_CLIENT_VERSION'] || '5.5.10', :puppet_collection => 'puppet5'}

puppet_opts = agent_opts(master.to_s)
if host['platform'] =~ /windows/i
Expand Down
4 changes: 2 additions & 2 deletions spec/spec_helper_local.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

RSpec.configure do |c|
c.default_facts = {
:aio_agent_version => '1.10.100',
:puppetversion => nil,
:aio_agent_version => '5.5.10',
:puppetversion => 'puppet5',
:lsbdistrelease => nil,
:is_pe => false,
:platform_tag => nil,
Expand Down

0 comments on commit c6d903e

Please sign in to comment.