|
37 | 37 | let(:params) { { package_version: } } |
38 | 38 |
|
39 | 39 | context 'when running a supported macOS' do |
40 | | - ['osx-11-x86_64', 'osx-12-x86_64'].each do |tag| |
| 40 | + ['osx-14-x86_64', 'osx-15-x86_64'].each do |tag| |
41 | 41 | context "on #{tag} with no aio_version" do |
42 | 42 | let(:osmajor) { tag.split('-')[1] } |
43 | 43 |
|
|
97 | 97 | it { is_expected.to contain_file('/opt/puppetlabs/packages/puppet-agent-5.10.200-1.osx10.13.dmg').with_source('puppet:///pe_packages/2000.0.0/osx-10.13-x86_64/puppet-agent-5.10.200-1.osx10.13.dmg') } |
98 | 98 | end |
99 | 99 |
|
100 | | - describe 'when using package_version auto with macOS 11 (two numbers version productversion)' do |
| 100 | + describe 'when using package_version auto with macOS 14 (two numbers version productversion)' do |
101 | 101 | let(:params) do |
102 | 102 | { |
103 | 103 | package_version: 'auto', |
104 | 104 | } |
105 | 105 | end |
106 | 106 | let(:facts) do |
107 | | - override_facts(facts, aio_agent_version: '1.10.99', is_pe: true, os: { macosx: { version: { major: '11.2', }, }, }, platform_tag: 'osx-11-x86_64', serverversion: '5.10.200') |
| 107 | + override_facts(facts, aio_agent_version: '1.10.99', is_pe: true, os: { macosx: { version: { major: '14.2', }, }, }, platform_tag: 'osx-14-x86_64', serverversion: '5.10.200') |
108 | 108 | end |
109 | 109 |
|
110 | | - it { is_expected.to contain_file('/opt/puppetlabs/packages/puppet-agent-5.10.200-1.osx11.dmg').with_source('puppet:///pe_packages/2000.0.0/osx-11-x86_64/puppet-agent-5.10.200-1.osx11.dmg') } |
| 110 | + it { is_expected.to contain_file('/opt/puppetlabs/packages/puppet-agent-5.10.200-1.osx14.dmg').with_source('puppet:///pe_packages/2000.0.0/osx-14-x86_64/puppet-agent-5.10.200-1.osx14.dmg') } |
111 | 111 | end |
112 | 112 |
|
113 | | - describe 'when using package_version auto with macOS 11 (one number version productversion)' do |
| 113 | + describe 'when using package_version auto with macOS 14 (one number version productversion)' do |
114 | 114 | let(:params) do |
115 | 115 | { |
116 | 116 | package_version: 'auto', |
117 | 117 | } |
118 | 118 | end |
119 | 119 | let(:facts) do |
120 | | - override_facts(facts, aio_agent_version: '1.10.99', is_pe: true, os: { macosx: { version: { major: '11', }, }, }, platform_tag: 'osx-11-x86_64', serverversion: '5.10.200') |
| 120 | + override_facts(facts, aio_agent_version: '1.10.99', is_pe: true, os: { macosx: { version: { major: '14', }, }, }, platform_tag: 'osx-14-x86_64', serverversion: '5.10.200') |
121 | 121 | end |
122 | 122 |
|
123 | | - it { is_expected.to contain_file('/opt/puppetlabs/packages/puppet-agent-5.10.200-1.osx11.dmg').with_source('puppet:///pe_packages/2000.0.0/osx-11-x86_64/puppet-agent-5.10.200-1.osx11.dmg') } |
| 123 | + it { is_expected.to contain_file('/opt/puppetlabs/packages/puppet-agent-5.10.200-1.osx14.dmg').with_source('puppet:///pe_packages/2000.0.0/osx-14-x86_64/puppet-agent-5.10.200-1.osx14.dmg') } |
124 | 124 | end |
125 | 125 | end |
0 commit comments