@@ -111,7 +111,7 @@ def apply_manifest_twice(manifest_pp)
111111 =cXcR
112112 -----END PGP PUBLIC KEY BLOCK-----'
113113 }
114- MANIFEST
114+ MANIFEST
115115
116116gpg_key_pp = <<-MANIFEST
117117 apt_key { 'puppetlabs':
@@ -170,7 +170,7 @@ def apply_manifest_twice(manifest_pp)
170170 =mMjt
171171 -----END PGP PUBLIC KEY BLOCK-----",
172172 }
173- MANIFEST
173+ MANIFEST
174174
175175multiple_keys_pp = <<-MANIFEST
176176 apt_key { 'puppetlabs':
@@ -423,23 +423,23 @@ def apply_manifest_twice(manifest_pp)
423423 =TREp
424424 -----END PGP PUBLIC KEY BLOCK----- ",
425425 }
426- MANIFEST
426+ MANIFEST
427427
428428bogus_key_pp = <<-MANIFEST
429429 apt_key { 'puppetlabs':
430430 id => '#{ PUPPETLABS_GPG_KEY_LONG_ID } ',
431431 ensure => 'present',
432432 content => 'For posterity: such content, much bogus, wow',
433433 }
434- MANIFEST
434+ MANIFEST
435435
436436hkp_pool_pp = <<-MANIFEST
437437 apt_key { 'puppetlabs':
438438 id => '#{ PUPPETLABS_GPG_KEY_FINGERPRINT } ',
439439 ensure => 'present',
440440 server => 'hkp://keyserver.ubuntu.com:80',
441441 }
442- MANIFEST
442+ MANIFEST
443443
444444hkps_protocol_supported = host_inventory [ 'facter' ] [ 'os' ] [ 'family' ] =~ %r{Ubuntu}i && \
445445 host_inventory [ 'facter' ] [ 'os' ] [ 'release' ] [ 'major' ] =~ %r{^18\. 04}
@@ -451,7 +451,7 @@ def apply_manifest_twice(manifest_pp)
451451 ensure => 'present',
452452 server => 'hkps://keyserver.ubuntu.com',
453453 }
454- MANIFEST
454+ MANIFEST
455455end
456456
457457nonexistant_key_server_pp = <<-MANIFEST
@@ -460,79 +460,79 @@ def apply_manifest_twice(manifest_pp)
460460 ensure => 'present',
461461 server => 'nonexistant.key.server',
462462 }
463- MANIFEST
463+ MANIFEST
464464
465465dot_server_pp = <<-MANIFEST
466466 apt_key { 'puppetlabs':
467467 id => '#{ PUPPETLABS_GPG_KEY_LONG_ID } ',
468468 ensure => 'present',
469469 server => '.pgp.key.server',
470470 }
471- MANIFEST
471+ MANIFEST
472472
473473http_works_pp = <<-MANIFEST
474474 apt_key { 'puppetlabs':
475475 id => '#{ PUPPETLABS_GPG_KEY_LONG_ID } ',
476476 ensure => 'present',
477477 source => 'http://#{ PUPPETLABS_APT_URL } /#{ PUPPETLABS_GPG_KEY_FILE } ',
478478 }
479- MANIFEST
479+ MANIFEST
480480
481481http_works_userinfo_pp = <<-MANIFEST
482482 apt_key { 'puppetlabs':
483483 id => '#{ PUPPETLABS_GPG_KEY_LONG_ID } ',
484484 ensure => 'present',
485485 source => 'http://dummyuser:dummypassword@#{ PUPPETLABS_APT_URL } /#{ PUPPETLABS_GPG_KEY_FILE } ',
486486 }
487- MANIFEST
487+ MANIFEST
488488
489489four_oh_four_pp = <<-MANIFEST
490490 apt_key { 'puppetlabs':
491491 id => '#{ PUPPETLABS_GPG_KEY_LONG_ID } ',
492492 ensure => 'present',
493493 source => 'http://#{ PUPPETLABS_APT_URL } /herpderp.gpg',
494494 }
495- MANIFEST
495+ MANIFEST
496496
497497socket_error_pp = <<-MANIFEST
498498 apt_key { 'puppetlabs':
499499 id => '#{ PUPPETLABS_GPG_KEY_LONG_ID } ',
500500 ensure => 'present',
501501 source => 'http://apt.puppetlabss.com/herpderp.gpg',
502502 }
503- MANIFEST
503+ MANIFEST
504504
505505ftp_works_pp = <<-MANIFEST
506506 apt_key { 'CentOS 6':
507507 id => '#{ CENTOS_GPG_KEY_LONG_ID } ',
508508 ensure => 'present',
509509 source => 'ftp://#{ CENTOS_REPO_URL } /#{ CENTOS_GPG_KEY_FILE } ',
510510 }
511- MANIFEST
511+ MANIFEST
512512
513513ftp_550_pp = <<-MANIFEST
514514 apt_key { 'CentOS 6':
515515 id => '#{ SHOULD_NEVER_EXIST_ID } ',
516516 ensure => 'present',
517517 source => 'ftp://#{ CENTOS_REPO_URL } /herpderp.gpg',
518518 }
519- MANIFEST
519+ MANIFEST
520520
521521ftp_socket_error_pp = <<-MANIFEST
522522 apt_key { 'puppetlabs':
523523 id => '#{ PUPPETLABS_GPG_KEY_LONG_ID } ',
524524 ensure => 'present',
525525 source => 'ftp://apt.puppetlabss.com/herpderp.gpg',
526526 }
527- MANIFEST
527+ MANIFEST
528528
529529https_works_pp = <<-MANIFEST
530530 apt_key { 'puppetlabs':
531531 id => '#{ PUPPETLABS_GPG_KEY_LONG_ID } ',
532532 ensure => 'present',
533533 source => 'https://#{ PUPPETLABS_APT_URL } /#{ PUPPETLABS_GPG_KEY_FILE } ',
534534 }
535- MANIFEST
535+ MANIFEST
536536
537537https_with_weak_ssl_works_pp = <<-MANIFEST
538538 apt_key { 'puppetlabs':
@@ -541,87 +541,87 @@ def apply_manifest_twice(manifest_pp)
541541 source => 'https://#{ PUPPETLABS_APT_URL } /#{ PUPPETLABS_GPG_KEY_FILE } ',
542542 weak_ssl => true,
543543 }
544- MANIFEST
544+ MANIFEST
545545
546546https_userinfo_pp = <<-MANIFEST
547547 apt_key { 'puppetlabs':
548548 id => '#{ PUPPETLABS_GPG_KEY_LONG_ID } ',
549549 ensure => 'present',
550550 source => 'https://dummyuser:dummypassword@#{ PUPPETLABS_APT_URL } /#{ PUPPETLABS_GPG_KEY_FILE } ',
551551 }
552- MANIFEST
552+ MANIFEST
553553
554554https_404_pp = <<-MANIFEST
555555 apt_key { 'puppetlabs':
556556 id => '#{ SHOULD_NEVER_EXIST_ID } ',
557557 ensure => 'present',
558558 source => 'https://#{ PUPPETLABS_APT_URL } /herpderp.gpg',
559559 }
560- MANIFEST
560+ MANIFEST
561561
562562https_socket_error_pp = <<-MANIFEST
563563 apt_key { 'puppetlabs':
564564 id => '#{ SHOULD_NEVER_EXIST_ID } ',
565565 ensure => 'present',
566566 source => 'https://apt.puppetlabss.com/herpderp.gpg',
567567 }
568- MANIFEST
568+ MANIFEST
569569
570570path_exists_pp = <<-MANIFEST
571571 apt_key { 'puppetlabs':
572572 id => 'EF8D349F',
573573 ensure => 'present',
574574 source => '/tmp/puppetlabs-pubkey.gpg',
575575 }
576- MANIFEST
576+ MANIFEST
577577
578578path_does_not_exist_pp = <<-MANIFEST
579579 apt_key { 'puppetlabs':
580580 id => '#{ PUPPETLABS_GPG_KEY_LONG_ID } ',
581581 ensure => 'present',
582582 source => '/tmp/totally_bogus.file',
583583 }
584- MANIFEST
584+ MANIFEST
585585
586586path_bogus_content_pp = <<-MANIFEST
587587 apt_key { 'puppetlabs':
588588 id => '#{ PUPPETLABS_GPG_KEY_LONG_ID } ',
589589 ensure => 'present',
590590 source => '/tmp/fake-key.gpg',
591591 }
592- MANIFEST
592+ MANIFEST
593593
594594debug_works_pp = <<-MANIFEST
595595 apt_key { 'puppetlabs':
596596 id => '#{ PUPPETLABS_GPG_KEY_LONG_ID } ',
597597 ensure => 'present',
598598 options => 'debug',
599599 }
600- MANIFEST
600+ MANIFEST
601601
602602fingerprint_match_pp = <<-MANIFEST
603603 apt_key { 'puppetlabs':
604604 id => '#{ PUPPETLABS_GPG_KEY_FINGERPRINT } ',
605605 ensure => 'present',
606606 source => 'https://#{ PUPPETLABS_APT_URL } /#{ PUPPETLABS_GPG_KEY_FILE } ',
607607 }
608- MANIFEST
608+ MANIFEST
609609
610610fingerprint_does_not_match_pp = <<-MANIFEST
611611 apt_key { 'puppetlabs':
612612 id => '6F6B15509CF8E59E6E469F327F438280EF8D9999',
613613 ensure => 'present',
614614 source => 'https://#{ PUPPETLABS_APT_URL } /#{ PUPPETLABS_GPG_KEY_FILE } ',
615615 }
616- MANIFEST
616+ MANIFEST
617617
618618refresh_true_pp = <<-MANIFEST
619619 apt_key { '#{ PUPPETLABS_EXP_KEY_LONG_ID } ':
620620 id => '#{ PUPPETLABS_EXP_KEY_LONG_ID } ',
621621 ensure => 'present',
622622 refresh => true,
623623 }
624- MANIFEST
624+ MANIFEST
625625
626626refresh_false_pp = <<-MANIFEST
627627 apt_key { '#{ PUPPETLABS_EXP_KEY_LONG_ID } ':
@@ -657,14 +657,14 @@ def apply_manifest_twice(manifest_pp)
657657 id => '#{ CENTOS_GPG_KEY_LONG_ID } ',
658658 ensure => 'present',
659659 }
660- MANIFEST
660+ MANIFEST
661661
662662 ensure_absent_pp = <<-MANIFEST
663663 apt_key { 'centos':
664664 id => '#{ CENTOS_GPG_KEY_LONG_ID } ',
665665 ensure => 'absent',
666666 }
667- MANIFEST
667+ MANIFEST
668668
669669 it 'add an apt_key resource' do
670670 apply_manifest_twice ( ensure_present_pp )
0 commit comments