|
41 | 41 | describe 'supported environment' do |
42 | 42 | let(:params) { { package_version: package_version } } |
43 | 43 |
|
44 | | - context 'when running a supported OSX' do |
| 44 | + context 'when running a supported macOS' do |
45 | 45 | ['osx-10.15-x86_64', 'osx-11-x86_64', 'osx-12-x86_64'].each do |tag| |
46 | 46 | context "on #{tag} with no aio_version" do |
47 | 47 | let(:osmajor) { tag.split('-')[1] } |
48 | 48 |
|
49 | 49 | let(:facts) do |
50 | | - override_facts(facts, |
51 | | - { |
52 | | - aio_agent_version: '1.10.99', |
53 | | - is_pe: true, |
54 | | - os: { |
55 | | - macosx: { |
56 | | - version: { |
57 | | - major: osmajor, |
58 | | - }, |
59 | | - }, |
60 | | - }, |
61 | | - platform_tag: tag, |
62 | | - }) |
| 50 | + override_facts(facts, aio_agent_version: '1.10.99', is_pe: true, os: { macosx: { version: { major: osmajor, }, }, }, platform_tag: tag) |
63 | 51 | end |
64 | 52 |
|
65 | 53 | it { is_expected.to compile.with_all_deps } |
|
95 | 83 | } |
96 | 84 | end |
97 | 85 | let(:facts) do |
98 | | - override_facts(facts, { |
99 | | - aio_agent_version: '1.10.99', |
100 | | - is_pe: true, |
101 | | - os: { |
102 | | - macosx: { |
103 | | - version: { |
104 | | - major: '10.13', |
105 | | - }, |
106 | | - }, |
107 | | - }, |
108 | | - platform_tag: 'osx-10.13-x86_64', |
109 | | - }) |
| 86 | + override_facts(facts, aio_agent_version: '1.10.99', is_pe: true, os: { macosx: { version: { major: '10.13', }, }, }, platform_tag: 'osx-10.13-x86_64') |
110 | 87 | end |
111 | 88 |
|
112 | 89 | it { is_expected.to contain_file('/opt/puppetlabs/packages/puppet-agent-5.10.100.1-1.osx10.13.dmg').with_source('https://fake-pe-master.com/packages/2000.0.0/osx-10.13-x86_64/puppet-agent-5.10.100.1-1.osx10.13.dmg') } |
|
119 | 96 | } |
120 | 97 | end |
121 | 98 | let(:facts) do |
122 | | - override_facts(facts, { |
123 | | - aio_agent_version: '1.10.99', |
124 | | - is_pe: true, |
125 | | - os: { |
126 | | - macosx: { |
127 | | - version: { |
128 | | - major: '10.13', |
129 | | - }, |
130 | | - }, |
131 | | - }, |
132 | | - platform_tag: 'osx-10.13-x86_64', |
133 | | - serverversion: '5.10.200', |
134 | | - }) |
| 99 | + override_facts(facts, aio_agent_version: '1.10.99', is_pe: true, os: { macosx: { version: { major: '10.13', }, }, }, platform_tag: 'osx-10.13-x86_64', serverversion: '5.10.200') |
135 | 100 | end |
136 | 101 |
|
137 | 102 | 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') } |
138 | 103 | end |
139 | 104 |
|
140 | | - describe 'when using package_version auto with MacOS 11(two numbers version productversion)' do |
| 105 | + describe 'when using package_version auto with macOS 11 (two numbers version productversion)' do |
141 | 106 | let(:params) do |
142 | 107 | { |
143 | 108 | package_version: 'auto', |
144 | 109 | } |
145 | 110 | end |
146 | 111 | let(:facts) do |
147 | | - override_facts(facts, { |
148 | | - aio_agent_version: '1.10.99', |
149 | | - is_pe: true, |
150 | | - os: { |
151 | | - macosx: { |
152 | | - version: { |
153 | | - major: '11.2', |
154 | | - }, |
155 | | - }, |
156 | | - }, |
157 | | - platform_tag: 'osx-11-x86_64', |
158 | | - serverversion: '5.10.200' |
159 | | - }) |
| 112 | + 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') |
160 | 113 | end |
161 | 114 |
|
162 | 115 | 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') } |
163 | 116 | end |
164 | 117 |
|
165 | | - describe 'when using package_version auto with MacOS 11(one number version productversion)' do |
| 118 | + describe 'when using package_version auto with macOS 11 (one number version productversion)' do |
166 | 119 | let(:params) do |
167 | 120 | { |
168 | 121 | package_version: 'auto', |
169 | 122 | } |
170 | 123 | end |
171 | 124 | let(:facts) do |
172 | | - override_facts(facts, { |
173 | | - aio_agent_version: '1.10.99', |
174 | | - is_pe: true, |
175 | | - os: { |
176 | | - macosx: { |
177 | | - version: { |
178 | | - major: '11', |
179 | | - }, |
180 | | - }, |
181 | | - }, |
182 | | - platform_tag: 'osx-11-x86_64', |
183 | | - serverversion: '5.10.200', |
184 | | - }) |
| 125 | + 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') |
185 | 126 | end |
186 | 127 |
|
187 | 128 | 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') } |
|
0 commit comments