puppet 6.11.1-universal-darwin → 6.12.0-universal-darwin

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of puppet might be problematic. Click here for more details.

Files changed (126) hide show
  1. checksums.yaml +4 -4
  2. data/CODEOWNERS +1 -1
  3. data/Gemfile +1 -0
  4. data/Gemfile.lock +16 -16
  5. data/README.md +1 -1
  6. data/ext/build_defaults.yaml +1 -0
  7. data/ext/windows/service/daemon.rb +22 -17
  8. data/lib/puppet/concurrent.rb +2 -0
  9. data/lib/puppet/concurrent/lock.rb +16 -0
  10. data/lib/puppet/concurrent/synchronized.rb +15 -0
  11. data/lib/puppet/concurrent/thread_local_singleton.rb +14 -0
  12. data/lib/puppet/configurer.rb +45 -31
  13. data/lib/puppet/defaults.rb +42 -3
  14. data/lib/puppet/environments.rb +3 -0
  15. data/lib/puppet/error.rb +9 -1
  16. data/lib/puppet/forge.rb +3 -3
  17. data/lib/puppet/forge/errors.rb +2 -2
  18. data/lib/puppet/forge/repository.rb +30 -86
  19. data/lib/puppet/functions/camelcase.rb +2 -2
  20. data/lib/puppet/functions/epp.rb +4 -4
  21. data/lib/puppet/functions/find_file.rb +9 -9
  22. data/lib/puppet/functions/find_template.rb +63 -0
  23. data/lib/puppet/functions/inline_epp.rb +5 -5
  24. data/lib/puppet/http.rb +2 -0
  25. data/lib/puppet/http/client.rb +89 -17
  26. data/lib/puppet/http/resolver.rb +14 -1
  27. data/lib/puppet/http/resolver/server_list.rb +38 -0
  28. data/lib/puppet/http/resolver/settings.rb +3 -2
  29. data/lib/puppet/http/resolver/srv.rb +10 -4
  30. data/lib/puppet/http/service.rb +32 -0
  31. data/lib/puppet/http/service/ca.rb +11 -10
  32. data/lib/puppet/http/service/report.rb +40 -0
  33. data/lib/puppet/http/session.rb +11 -32
  34. data/lib/puppet/network/http/base_pool.rb +13 -0
  35. data/lib/puppet/node/environment.rb +13 -7
  36. data/lib/puppet/pal/pal_impl.rb +5 -0
  37. data/lib/puppet/parser/functions/epp.rb +3 -3
  38. data/lib/puppet/parser/functions/inline_epp.rb +5 -5
  39. data/lib/puppet/pops/evaluator/runtime3_support.rb +1 -1
  40. data/lib/puppet/pops/lookup/invocation.rb +10 -3
  41. data/lib/puppet/pops/model/pn_transformer.rb +5 -9
  42. data/lib/puppet/pops/parser/evaluating_parser.rb +3 -4
  43. data/lib/puppet/pops/serialization/json_path.rb +3 -3
  44. data/lib/puppet/pops/time/timespan.rb +3 -5
  45. data/lib/puppet/pops/types/string_converter.rb +6 -9
  46. data/lib/puppet/pops/types/type_calculator.rb +6 -10
  47. data/lib/puppet/pops/types/type_formatter.rb +9 -11
  48. data/lib/puppet/pops/types/type_parser.rb +3 -3
  49. data/lib/puppet/provider/package/portage.rb +3 -3
  50. data/lib/puppet/provider/package_targetable.rb +5 -4
  51. data/lib/puppet/provider/service/systemd.rb +1 -1
  52. data/lib/puppet/provider/user/hpux.rb +1 -1
  53. data/lib/puppet/runtime.rb +1 -0
  54. data/lib/puppet/ssl/ssl_provider.rb +20 -0
  55. data/lib/puppet/transaction.rb +33 -11
  56. data/lib/puppet/type.rb +1 -1
  57. data/lib/puppet/type/file/data_sync.rb +5 -1
  58. data/lib/puppet/type/group.rb +3 -2
  59. data/lib/puppet/type/user.rb +3 -2
  60. data/lib/puppet/util.rb +34 -11
  61. data/lib/puppet/util/logging.rb +30 -18
  62. data/lib/puppet/util/windows/adsi.rb +48 -18
  63. data/lib/puppet/version.rb +1 -1
  64. data/lib/puppet/x509/cert_provider.rb +9 -5
  65. data/locales/puppet.pot +155 -141
  66. data/man/man5/puppet.conf.5 +33 -3
  67. data/man/man8/puppet-agent.8 +1 -1
  68. data/man/man8/puppet-apply.8 +1 -1
  69. data/man/man8/puppet-catalog.8 +1 -1
  70. data/man/man8/puppet-config.8 +1 -1
  71. data/man/man8/puppet-describe.8 +1 -1
  72. data/man/man8/puppet-device.8 +1 -1
  73. data/man/man8/puppet-doc.8 +1 -1
  74. data/man/man8/puppet-epp.8 +1 -1
  75. data/man/man8/puppet-facts.8 +1 -1
  76. data/man/man8/puppet-filebucket.8 +1 -1
  77. data/man/man8/puppet-generate.8 +1 -1
  78. data/man/man8/puppet-help.8 +1 -1
  79. data/man/man8/puppet-key.8 +1 -1
  80. data/man/man8/puppet-lookup.8 +1 -1
  81. data/man/man8/puppet-man.8 +1 -1
  82. data/man/man8/puppet-module.8 +1 -1
  83. data/man/man8/puppet-node.8 +1 -1
  84. data/man/man8/puppet-parser.8 +1 -1
  85. data/man/man8/puppet-plugin.8 +1 -1
  86. data/man/man8/puppet-report.8 +1 -1
  87. data/man/man8/puppet-resource.8 +1 -1
  88. data/man/man8/puppet-script.8 +1 -1
  89. data/man/man8/puppet-ssl.8 +1 -1
  90. data/man/man8/puppet-status.8 +1 -1
  91. data/man/man8/puppet.8 +2 -2
  92. data/spec/fixtures/unit/forge/bacula.json +76 -0
  93. data/spec/integration/http/client_spec.rb +144 -0
  94. data/spec/integration/module_tool/forge_spec.rb +64 -0
  95. data/spec/lib/puppet_spec/https.rb +5 -3
  96. data/spec/spec_helper.rb +6 -2
  97. data/spec/unit/concurrent/lock_spec.rb +29 -0
  98. data/spec/unit/configurer_spec.rb +394 -399
  99. data/spec/unit/defaults_spec.rb +15 -4
  100. data/spec/unit/forge/errors_spec.rb +1 -1
  101. data/spec/unit/forge/forge_spec.rb +12 -54
  102. data/spec/unit/forge/module_release_spec.rb +19 -6
  103. data/spec/unit/forge/repository_spec.rb +63 -157
  104. data/spec/unit/forge_spec.rb +46 -116
  105. data/spec/unit/functions/find_template_spec.rb +69 -0
  106. data/spec/unit/http/client_spec.rb +138 -6
  107. data/spec/unit/http/resolver_spec.rb +49 -12
  108. data/spec/unit/http/service/ca_spec.rb +56 -5
  109. data/spec/unit/http/service/report_spec.rb +100 -0
  110. data/spec/unit/http/service_spec.rb +20 -0
  111. data/spec/unit/http/session_spec.rb +53 -18
  112. data/spec/unit/network/http/connection_spec.rb +0 -1
  113. data/spec/unit/pops/evaluator/evaluating_parser_spec.rb +8 -3
  114. data/spec/unit/provider/package/portage_spec.rb +4 -4
  115. data/spec/unit/provider/package_targetable_spec.rb +60 -0
  116. data/spec/unit/provider/user/hpux_spec.rb +2 -2
  117. data/spec/unit/ssl/ssl_provider_spec.rb +71 -0
  118. data/spec/unit/transaction_spec.rb +46 -0
  119. data/spec/unit/type/file/content_spec.rb +9 -3
  120. data/spec/unit/util/log_spec.rb +0 -138
  121. data/spec/unit/util/logging_spec.rb +200 -0
  122. data/spec/unit/util/windows/adsi_spec.rb +51 -0
  123. data/spec/unit/x509/cert_provider_spec.rb +24 -4
  124. data/tasks/manpages.rake +1 -0
  125. metadata +24 -5
  126. data/spec/lib/puppet_spec/validators.rb +0 -37
@@ -41,6 +41,19 @@ describe Puppet::Util::Windows::ADSI, :if => Puppet::Util::Platform.windows? do
41
41
  end
42
42
  end
43
43
 
44
+ describe ".domain_role" do
45
+ DOMAIN_ROLES = Puppet::Util::Platform.windows? ? Puppet::Util::Windows::ADSI::DOMAIN_ROLES : {}
46
+
47
+ DOMAIN_ROLES.each do |id, role|
48
+ it "should be able to return #{role} as the domain role of the computer" do
49
+ Puppet::Util::Windows::ADSI.instance_variable_set(:@domain_role, nil)
50
+ domain_role = [double('WMI', :DomainRole => id)]
51
+ allow(Puppet::Util::Windows::ADSI).to receive(:execquery).with('select DomainRole from Win32_ComputerSystem').and_return(domain_role)
52
+ expect(Puppet::Util::Windows::ADSI.domain_role).to eq(role)
53
+ end
54
+ end
55
+ end
56
+
44
57
  describe ".sid_uri" do
45
58
  it "should raise an error when the input is not a SID Principal" do
46
59
  [Object.new, {}, 1, :symbol, '', nil].each do |input|
@@ -56,6 +69,32 @@ describe Puppet::Util::Windows::ADSI, :if => Puppet::Util::Platform.windows? do
56
69
  end
57
70
  end
58
71
 
72
+ shared_examples 'a local only resource query' do |klass, account_type|
73
+ before(:each) do
74
+ allow(Puppet::Util::Windows::ADSI).to receive(:domain_role).and_return(:MEMBER_SERVER)
75
+ end
76
+
77
+ it "should be able to check for a local resource" do
78
+ local_domain = 'testcomputername'
79
+ principal = double('Principal', :account => resource_name, :domain => local_domain, :account_type => account_type)
80
+ allow(Puppet::Util::Windows::SID).to receive(:name_to_principal).with(resource_name).and_return(principal)
81
+ expect(klass.exists?(resource_name)).to eq(true)
82
+ end
83
+
84
+ it "should be case insensitive when comparing the domain with the computer name" do
85
+ local_domain = 'TESTCOMPUTERNAME'
86
+ principal = double('Principal', :account => resource_name, :domain => local_domain, :account_type => account_type)
87
+ allow(Puppet::Util::Windows::SID).to receive(:name_to_principal).with(resource_name).and_return(principal)
88
+ expect(klass.exists?(resource_name)).to eq(true)
89
+ end
90
+
91
+ it "should return false if no local resource exists" do
92
+ principal = double('Principal', :account => resource_name, :domain => 'AD_DOMAIN', :account_type => account_type)
93
+ allow(Puppet::Util::Windows::SID).to receive(:name_to_principal).with(resource_name).and_return(principal)
94
+ expect(klass.exists?(resource_name)).to eq(false)
95
+ end
96
+ end
97
+
59
98
  describe Puppet::Util::Windows::ADSI::User do
60
99
  let(:username) { 'testuser' }
61
100
  let(:domain) { 'DOMAIN' }
@@ -103,6 +142,12 @@ describe Puppet::Util::Windows::ADSI, :if => Puppet::Util::Platform.windows? do
103
142
  expect(user.native_object).to eq(adsi_user)
104
143
  end
105
144
 
145
+ context "when domain-joined" do
146
+ it_should_behave_like 'a local only resource query', Puppet::Util::Windows::ADSI::User, :SidTypeUser do
147
+ let(:resource_name) { username }
148
+ end
149
+ end
150
+
106
151
  it "should be able to check the existence of a user" do
107
152
  expect(Puppet::Util::Windows::SID).to receive(:name_to_principal).with(username).and_return(nil)
108
153
  expect(Puppet::Util::Windows::ADSI).to receive(:connect).with("WinNT://./#{username},user").and_return(connection)
@@ -543,6 +588,12 @@ describe Puppet::Util::Windows::ADSI, :if => Puppet::Util::Platform.windows? do
543
588
  expect(Puppet::Util::Windows::ADSI::Group.uri(groupname, ntauthority_localized)).to eq("WinNT://./#{groupname},group")
544
589
  end
545
590
 
591
+ context "when domain-joined" do
592
+ it_should_behave_like 'a local only resource query', Puppet::Util::Windows::ADSI::Group, :SidTypeGroup do
593
+ let(:resource_name) { groupname }
594
+ end
595
+ end
596
+
546
597
  it "should be able to create a group" do
547
598
  adsi_group = double("adsi")
548
599
 
@@ -251,11 +251,11 @@ describe Puppet::X509::CertProvider do
251
251
  }.to raise_error(RuntimeError, 'Certname "signed/../key" must not contain unprintable or non-ASCII characters')
252
252
  end
253
253
 
254
- it 'returns nil if `hostprivkey` is overridden' do
254
+ it 'prefers `hostprivkey` if set' do
255
255
  Puppet[:certname] = 'foo'
256
256
  Puppet[:hostprivkey] = File.join(fixture_dir, "signed-key.pem")
257
257
 
258
- expect(provider.load_private_key('foo')).to be_nil
258
+ expect(provider.load_private_key('foo')).to be_a(OpenSSL::PKey::RSA)
259
259
  end
260
260
 
261
261
  it 'raises if the private key is unreadable' do
@@ -345,11 +345,11 @@ describe Puppet::X509::CertProvider do
345
345
  }.to raise_error(RuntimeError, 'Certname "tom/../key" must not contain unprintable or non-ASCII characters')
346
346
  end
347
347
 
348
- it 'returns nil if `hostcert` is overridden' do
348
+ it 'prefers `hostcert` if set' do
349
349
  Puppet[:certname] = 'foo'
350
350
  Puppet[:hostcert] = File.join(fixture_dir, "signed.pem")
351
351
 
352
- expect(provider.load_client_cert('foo')).to be_nil
352
+ expect(provider.load_client_cert('foo')).to be_a(OpenSSL::X509::Certificate)
353
353
  end
354
354
 
355
355
  it 'raises if the certificate is unreadable' do
@@ -446,6 +446,16 @@ describe Puppet::X509::CertProvider do
446
446
  provider.save_private_key(name, private_key)
447
447
  }.to raise_error(Puppet::Error, "Failed to save private key for '#{name}'")
448
448
  end
449
+
450
+ it 'prefers `hostprivkey` if set' do
451
+ overridden_path = tmpfile('hostprivkey')
452
+ Puppet[:hostprivkey] = overridden_path
453
+
454
+ provider.save_private_key(name, private_key)
455
+
456
+ expect(File).to_not exist(path)
457
+ expect(File).to exist(overridden_path)
458
+ end
449
459
  end
450
460
 
451
461
  context 'certs' do
@@ -485,6 +495,16 @@ describe Puppet::X509::CertProvider do
485
495
  provider.save_client_cert(name, client_cert)
486
496
  }.to raise_error(Puppet::Error, "Failed to save client certificate for '#{name}'")
487
497
  end
498
+
499
+ it 'prefers `hostcert` if set' do
500
+ overridden_path = tmpfile('hostcert')
501
+ Puppet[:hostcert] = overridden_path
502
+
503
+ provider.save_client_cert(name, client_cert)
504
+
505
+ expect(File).to_not exist(path)
506
+ expect(File).to exist(overridden_path)
507
+ end
488
508
  end
489
509
 
490
510
  context 'requests' do
@@ -43,6 +43,7 @@ task :gen_manpages do
43
43
  # IO.popen("#{ronn} #{ronn_args} > ./man/man5/puppet.conf.5", 'w') do |fh|
44
44
  # fh.write %x{RUBYLIB=./lib:$RUBYLIB bin/puppetdoc --reference configuration}
45
45
  # end
46
+ %x{mkdir -p ./man/man5 ./man/man8}
46
47
  %x{RUBYLIB=./lib:$RUBYLIB bin/puppet doc --reference configuration > ./man/man5/puppetconf.5.ronn}
47
48
  %x{#{ronn} #{ronn_args} ./man/man5/puppetconf.5.ronn}
48
49
  FileUtils.mv("./man/man5/puppetconf.5", "./man/man5/puppet.conf.5")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.11.1
4
+ version: 6.12.0
5
5
  platform: universal-darwin
6
6
  authors:
7
7
  - Puppet Labs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-20 00:00:00.000000000 Z
11
+ date: 2020-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: facter
@@ -359,6 +359,10 @@ files:
359
359
  - lib/puppet/application_support.rb
360
360
  - lib/puppet/coercion.rb
361
361
  - lib/puppet/compilable_resource_type.rb
362
+ - lib/puppet/concurrent.rb
363
+ - lib/puppet/concurrent/lock.rb
364
+ - lib/puppet/concurrent/synchronized.rb
365
+ - lib/puppet/concurrent/thread_local_singleton.rb
362
366
  - lib/puppet/configurer.rb
363
367
  - lib/puppet/configurer/downloader.rb
364
368
  - lib/puppet/configurer/fact_handler.rb
@@ -497,6 +501,7 @@ files:
497
501
  - lib/puppet/functions/eyaml_lookup_key.rb
498
502
  - lib/puppet/functions/filter.rb
499
503
  - lib/puppet/functions/find_file.rb
504
+ - lib/puppet/functions/find_template.rb
500
505
  - lib/puppet/functions/flatten.rb
501
506
  - lib/puppet/functions/floor.rb
502
507
  - lib/puppet/functions/get.rb
@@ -573,12 +578,14 @@ files:
573
578
  - lib/puppet/http/errors.rb
574
579
  - lib/puppet/http/redirector.rb
575
580
  - lib/puppet/http/resolver.rb
581
+ - lib/puppet/http/resolver/server_list.rb
576
582
  - lib/puppet/http/resolver/settings.rb
577
583
  - lib/puppet/http/resolver/srv.rb
578
584
  - lib/puppet/http/response.rb
579
585
  - lib/puppet/http/retry_after_handler.rb
580
586
  - lib/puppet/http/service.rb
581
587
  - lib/puppet/http/service/ca.rb
588
+ - lib/puppet/http/service/report.rb
582
589
  - lib/puppet/http/session.rb
583
590
  - lib/puppet/indirector.rb
584
591
  - lib/puppet/indirector/catalog/compiler.rb
@@ -1515,6 +1522,7 @@ files:
1515
1522
  - spec/fixtures/unit/data_providers/environments/production/modules/xyz/functions/data.pp
1516
1523
  - spec/fixtures/unit/data_providers/environments/production/modules/xyz/manifests/init.pp
1517
1524
  - spec/fixtures/unit/data_providers/environments/production/modules/xyz/metadata.json
1525
+ - spec/fixtures/unit/forge/bacula.json
1518
1526
  - spec/fixtures/unit/functions/hiera/hiera/backend/hieraspec_backend.rb
1519
1527
  - spec/fixtures/unit/functions/lookup/data/common.yaml
1520
1528
  - spec/fixtures/unit/functions/lookup/hiera/backend/custom_backend.rb
@@ -1792,11 +1800,13 @@ files:
1792
1800
  - spec/integration/file_serving/metadata_spec.rb
1793
1801
  - spec/integration/file_serving/terminus_helper_spec.rb
1794
1802
  - spec/integration/file_system/uniquefile_spec.rb
1803
+ - spec/integration/http/client_spec.rb
1795
1804
  - spec/integration/indirector/catalog/compiler_spec.rb
1796
1805
  - spec/integration/indirector/direct_file_server_spec.rb
1797
1806
  - spec/integration/indirector/facts/facter_spec.rb
1798
1807
  - spec/integration/indirector/file_content/file_server_spec.rb
1799
1808
  - spec/integration/indirector/file_metadata/file_server_spec.rb
1809
+ - spec/integration/module_tool/forge_spec.rb
1800
1810
  - spec/integration/module_tool/tar/mini_spec.rb
1801
1811
  - spec/integration/network/authconfig_spec.rb
1802
1812
  - spec/integration/network/formats_spec.rb
@@ -1888,7 +1898,6 @@ files:
1888
1898
  - spec/lib/puppet_spec/settings.rb
1889
1899
  - spec/lib/puppet_spec/ssl.rb
1890
1900
  - spec/lib/puppet_spec/unindent.rb
1891
- - spec/lib/puppet_spec/validators.rb
1892
1901
  - spec/lib/puppet_spec/verbose.rb
1893
1902
  - spec/shared_behaviours/all_parsedfile_providers.rb
1894
1903
  - spec/shared_behaviours/an_indirector_face.rb
@@ -1926,6 +1935,7 @@ files:
1926
1935
  - spec/unit/application_spec.rb
1927
1936
  - spec/unit/capability_spec.rb
1928
1937
  - spec/unit/certificate_factory_spec.rb
1938
+ - spec/unit/concurrent/lock_spec.rb
1929
1939
  - spec/unit/configurer/downloader_spec.rb
1930
1940
  - spec/unit/configurer/fact_handler_spec.rb
1931
1941
  - spec/unit/configurer/plugin_handler_spec.rb
@@ -2018,6 +2028,7 @@ files:
2018
2028
  - spec/unit/functions/epp_spec.rb
2019
2029
  - spec/unit/functions/filter_spec.rb
2020
2030
  - spec/unit/functions/find_file_spec.rb
2031
+ - spec/unit/functions/find_template_spec.rb
2021
2032
  - spec/unit/functions/flatten_spec.rb
2022
2033
  - spec/unit/functions/floor_spec.rb
2023
2034
  - spec/unit/functions/get_spec.rb
@@ -2081,6 +2092,7 @@ files:
2081
2092
  - spec/unit/http/client_spec.rb
2082
2093
  - spec/unit/http/resolver_spec.rb
2083
2094
  - spec/unit/http/service/ca_spec.rb
2095
+ - spec/unit/http/service/report_spec.rb
2084
2096
  - spec/unit/http/service_spec.rb
2085
2097
  - spec/unit/http/session_spec.rb
2086
2098
  - spec/unit/indirector/catalog/compiler_spec.rb
@@ -2402,6 +2414,7 @@ files:
2402
2414
  - spec/unit/provider/package/windows_spec.rb
2403
2415
  - spec/unit/provider/package/yum_spec.rb
2404
2416
  - spec/unit/provider/package/zypper_spec.rb
2417
+ - spec/unit/provider/package_targetable_spec.rb
2405
2418
  - spec/unit/provider/parsedfile_spec.rb
2406
2419
  - spec/unit/provider/service/base_spec.rb
2407
2420
  - spec/unit/provider/service/bsd_spec.rb
@@ -2629,7 +2642,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
2629
2642
  - !ruby/object:Gem::Version
2630
2643
  version: 1.3.1
2631
2644
  requirements: []
2632
- rubygems_version: 3.0.4
2645
+ rubygems_version: 3.0.6
2633
2646
  signing_key:
2634
2647
  specification_version: 4
2635
2648
  summary: Puppet, an automated configuration management tool
@@ -2764,6 +2777,7 @@ test_files:
2764
2777
  - spec/fixtures/unit/data_providers/environments/production/modules/xyz/functions/data.pp
2765
2778
  - spec/fixtures/unit/data_providers/environments/production/modules/xyz/manifests/init.pp
2766
2779
  - spec/fixtures/unit/data_providers/environments/production/modules/xyz/metadata.json
2780
+ - spec/fixtures/unit/forge/bacula.json
2767
2781
  - spec/fixtures/unit/functions/hiera/hiera/backend/hieraspec_backend.rb
2768
2782
  - spec/fixtures/unit/functions/lookup/data/common.yaml
2769
2783
  - spec/fixtures/unit/functions/lookup/hiera/backend/custom_backend.rb
@@ -3041,11 +3055,13 @@ test_files:
3041
3055
  - spec/integration/file_serving/metadata_spec.rb
3042
3056
  - spec/integration/file_serving/terminus_helper_spec.rb
3043
3057
  - spec/integration/file_system/uniquefile_spec.rb
3058
+ - spec/integration/http/client_spec.rb
3044
3059
  - spec/integration/indirector/catalog/compiler_spec.rb
3045
3060
  - spec/integration/indirector/direct_file_server_spec.rb
3046
3061
  - spec/integration/indirector/facts/facter_spec.rb
3047
3062
  - spec/integration/indirector/file_content/file_server_spec.rb
3048
3063
  - spec/integration/indirector/file_metadata/file_server_spec.rb
3064
+ - spec/integration/module_tool/forge_spec.rb
3049
3065
  - spec/integration/module_tool/tar/mini_spec.rb
3050
3066
  - spec/integration/network/authconfig_spec.rb
3051
3067
  - spec/integration/network/formats_spec.rb
@@ -3137,7 +3153,6 @@ test_files:
3137
3153
  - spec/lib/puppet_spec/settings.rb
3138
3154
  - spec/lib/puppet_spec/ssl.rb
3139
3155
  - spec/lib/puppet_spec/unindent.rb
3140
- - spec/lib/puppet_spec/validators.rb
3141
3156
  - spec/lib/puppet_spec/verbose.rb
3142
3157
  - spec/shared_behaviours/all_parsedfile_providers.rb
3143
3158
  - spec/shared_behaviours/an_indirector_face.rb
@@ -3175,6 +3190,7 @@ test_files:
3175
3190
  - spec/unit/application_spec.rb
3176
3191
  - spec/unit/capability_spec.rb
3177
3192
  - spec/unit/certificate_factory_spec.rb
3193
+ - spec/unit/concurrent/lock_spec.rb
3178
3194
  - spec/unit/configurer/downloader_spec.rb
3179
3195
  - spec/unit/configurer/fact_handler_spec.rb
3180
3196
  - spec/unit/configurer/plugin_handler_spec.rb
@@ -3267,6 +3283,7 @@ test_files:
3267
3283
  - spec/unit/functions/epp_spec.rb
3268
3284
  - spec/unit/functions/filter_spec.rb
3269
3285
  - spec/unit/functions/find_file_spec.rb
3286
+ - spec/unit/functions/find_template_spec.rb
3270
3287
  - spec/unit/functions/flatten_spec.rb
3271
3288
  - spec/unit/functions/floor_spec.rb
3272
3289
  - spec/unit/functions/get_spec.rb
@@ -3330,6 +3347,7 @@ test_files:
3330
3347
  - spec/unit/http/client_spec.rb
3331
3348
  - spec/unit/http/resolver_spec.rb
3332
3349
  - spec/unit/http/service/ca_spec.rb
3350
+ - spec/unit/http/service/report_spec.rb
3333
3351
  - spec/unit/http/service_spec.rb
3334
3352
  - spec/unit/http/session_spec.rb
3335
3353
  - spec/unit/indirector/catalog/compiler_spec.rb
@@ -3651,6 +3669,7 @@ test_files:
3651
3669
  - spec/unit/provider/package/windows_spec.rb
3652
3670
  - spec/unit/provider/package/yum_spec.rb
3653
3671
  - spec/unit/provider/package/zypper_spec.rb
3672
+ - spec/unit/provider/package_targetable_spec.rb
3654
3673
  - spec/unit/provider/parsedfile_spec.rb
3655
3674
  - spec/unit/provider/service/base_spec.rb
3656
3675
  - spec/unit/provider/service/bsd_spec.rb
@@ -1,37 +0,0 @@
1
- class ConstantErrorValidator
2
- def initialize(args)
3
- @fails_with = args[:fails_with]
4
- @error_string = args[:error_string] || ""
5
- @peer_certs = args[:peer_certs] || []
6
- end
7
-
8
- def setup_connection(connection)
9
- connection.stubs(:start).raises(OpenSSL::SSL::SSLError.new(@fails_with))
10
- end
11
-
12
- def peer_certs
13
- @peer_certs
14
- end
15
-
16
- def verify_errors
17
- [@error_string]
18
- end
19
- end
20
-
21
- class NoProblemsValidator
22
- def initialize(cert)
23
- @cert = cert
24
- end
25
-
26
- def setup_connection(connection)
27
- end
28
-
29
- def peer_certs
30
- [@cert]
31
- end
32
-
33
- def verify_errors
34
- []
35
- end
36
- end
37
-