|
435 | 435 | end
|
436 | 436 |
|
437 | 437 | it { is_expected.to contain_apt__setting("sources-#{title}").with_notify_update(true) }
|
| 438 | + it { is_expected.to contain_apt__setting("sources-#{title}").with_content(<<~SOURCE) } |
| 439 | + # This file is managed by Puppet. DO NOT EDIT. |
| 440 | + # my_source |
| 441 | + Enabled: yes |
| 442 | + Types: deb |
| 443 | + URIs: http://debian.mirror.iweb.ca/debian/ |
| 444 | + Suites: stretch |
| 445 | + Components: main contrib non-free |
| 446 | + SOURCE |
438 | 447 | end
|
439 | 448 |
|
440 | 449 | context 'complex deb822 source' do
|
441 | 450 | let :params do
|
442 | 451 | super().merge(
|
443 | 452 | {
|
| 453 | + enabled: false, |
444 | 454 | types: ['deb', 'deb-src'],
|
445 | 455 | location: ['http://fr.debian.org/debian', 'http://de.debian.org/debian'],
|
446 | 456 | release: ['stable', 'stable-updates', 'stable-backports'],
|
447 | 457 | repos: ['main', 'contrib', 'non-free'],
|
448 | 458 | architecture: ['amd64', 'i386'],
|
449 | 459 | allow_unsigned: true,
|
450 |
| - notify_update: false |
| 460 | + allow_insecure: false, |
| 461 | + notify_update: false, |
| 462 | + check_valid_until: false, |
| 463 | + keyring: '/foo' |
451 | 464 | },
|
452 | 465 | )
|
453 | 466 | end
|
454 | 467 |
|
455 | 468 | it { is_expected.to contain_apt__setting("sources-#{title}").with_notify_update(false) }
|
456 |
| - it { is_expected.to contain_apt__setting("sources-#{title}").with_content(%r{Enabled: yes}) } |
457 |
| - it { is_expected.to contain_apt__setting("sources-#{title}").with_content(%r{Types: deb deb-src}) } |
458 |
| - it { is_expected.to contain_apt__setting("sources-#{title}").with_content(%r{URIs: http://fr.debian.org/debian http://de.debian.org/debian}) } |
459 |
| - it { is_expected.to contain_apt__setting("sources-#{title}").with_content(%r{Suites: stable stable-updates stable-backports}) } |
460 |
| - it { is_expected.to contain_apt__setting("sources-#{title}").with_content(%r{Components: main contrib non-free}) } |
461 |
| - it { is_expected.to contain_apt__setting("sources-#{title}").with_content(%r{Architectures: amd64 i386}) } |
462 |
| - it { is_expected.to contain_apt__setting("sources-#{title}").with_content(%r{Trusted: yes}) } |
| 469 | + it { is_expected.to contain_apt__setting("sources-#{title}").with_content(<<~SOURCE) } |
| 470 | + # This file is managed by Puppet. DO NOT EDIT. |
| 471 | + # my_source |
| 472 | + Enabled: no |
| 473 | + Types: deb deb-src |
| 474 | + URIs: http://fr.debian.org/debian http://de.debian.org/debian |
| 475 | + Suites: stable stable-updates stable-backports |
| 476 | + Components: main contrib non-free |
| 477 | + Architectures: amd64 i386 |
| 478 | + Allow-Insecure: yes |
| 479 | + Trusted: yes |
| 480 | + Check-Valid-Until: no |
| 481 | + Signed-By: /foo |
| 482 | + SOURCE |
463 | 483 | end
|
464 | 484 |
|
465 | 485 | context '.list backwards compatibility' do
|
|
0 commit comments