|
146 | 146 | end
|
147 | 147 | end
|
148 | 148 |
|
149 |
| - describe 'linuxmint tests' do |
150 |
| - let(:facts) do |
151 |
| - { |
152 |
| - os: { |
153 |
| - family: 'Debian', |
154 |
| - name: 'LinuxMint', |
155 |
| - release: { |
156 |
| - major: '17', |
157 |
| - full: '17' |
158 |
| - }, |
159 |
| - distro: { |
160 |
| - codename: 'qiana', |
161 |
| - id: 'LinuxMint' |
162 |
| - } |
163 |
| - } |
164 |
| - } |
165 |
| - end |
166 |
| - |
167 |
| - context 'with all the needed things set' do |
168 |
| - let(:params) do |
169 |
| - { |
170 |
| - location: 'http://archive.ubuntu.com/ubuntu', |
171 |
| - release: 'trusty-backports', |
172 |
| - repos: 'main universe multiverse restricted', |
173 |
| - key: '630239CC130E1A7FD81A27B140976EAF437D05B5' |
174 |
| - } |
175 |
| - end |
176 |
| - |
177 |
| - it { |
178 |
| - expect(subject).to contain_apt__source('backports').with( |
179 |
| - location: 'http://archive.ubuntu.com/ubuntu', |
180 |
| - key: '630239CC130E1A7FD81A27B140976EAF437D05B5', |
181 |
| - repos: 'main universe multiverse restricted', |
182 |
| - release: 'trusty-backports', |
183 |
| - pin: { 'priority' => 200, 'release' => 'trusty-backports' }, |
184 |
| - ) |
185 |
| - } |
186 |
| - end |
187 |
| - |
188 |
| - context 'with missing location' do |
189 |
| - let(:params) do |
190 |
| - { |
191 |
| - release: 'trusty-backports', |
192 |
| - repos: 'main universe multiverse restricted', |
193 |
| - key: '630239CC130E1A7FD81A27B140976EAF437D05B5' |
194 |
| - } |
195 |
| - end |
196 |
| - |
197 |
| - it do |
198 |
| - expect(subject).to raise_error(Puppet::Error, %r{If not on Debian or Ubuntu, you must explicitly pass location, release, and repos}) |
199 |
| - end |
200 |
| - end |
201 |
| - |
202 |
| - context 'with missing release' do |
203 |
| - let(:params) do |
204 |
| - { |
205 |
| - location: 'http://archive.ubuntu.com/ubuntu', |
206 |
| - repos: 'main universe multiverse restricted', |
207 |
| - key: '630239CC130E1A7FD81A27B140976EAF437D05B5' |
208 |
| - } |
209 |
| - end |
210 |
| - |
211 |
| - it do |
212 |
| - expect(subject).to raise_error(Puppet::Error, %r{If not on Debian or Ubuntu, you must explicitly pass location, release, and repos}) |
213 |
| - end |
214 |
| - end |
215 |
| - |
216 |
| - context 'with missing repos' do |
217 |
| - let(:params) do |
218 |
| - { |
219 |
| - location: 'http://archive.ubuntu.com/ubuntu', |
220 |
| - release: 'trusty-backports', |
221 |
| - key: '630239CC130E1A7FD81A27B140976EAF437D05B5' |
222 |
| - } |
223 |
| - end |
224 |
| - |
225 |
| - it do |
226 |
| - expect(subject).to raise_error(Puppet::Error, %r{If not on Debian or Ubuntu, you must explicitly pass location, release, and repos}) |
227 |
| - end |
228 |
| - end |
229 |
| - end |
230 |
| - |
231 | 149 | describe 'validation' do
|
232 | 150 | let(:facts) do
|
233 | 151 | {
|
|
0 commit comments