puppet 6.11.1 → 6.12.0

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: ruby
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
@@ -345,6 +345,10 @@ files:
345
345
  - lib/puppet/application_support.rb
346
346
  - lib/puppet/coercion.rb
347
347
  - lib/puppet/compilable_resource_type.rb
348
+ - lib/puppet/concurrent.rb
349
+ - lib/puppet/concurrent/lock.rb
350
+ - lib/puppet/concurrent/synchronized.rb
351
+ - lib/puppet/concurrent/thread_local_singleton.rb
348
352
  - lib/puppet/configurer.rb
349
353
  - lib/puppet/configurer/downloader.rb
350
354
  - lib/puppet/configurer/fact_handler.rb
@@ -483,6 +487,7 @@ files:
483
487
  - lib/puppet/functions/eyaml_lookup_key.rb
484
488
  - lib/puppet/functions/filter.rb
485
489
  - lib/puppet/functions/find_file.rb
490
+ - lib/puppet/functions/find_template.rb
486
491
  - lib/puppet/functions/flatten.rb
487
492
  - lib/puppet/functions/floor.rb
488
493
  - lib/puppet/functions/get.rb
@@ -559,12 +564,14 @@ files:
559
564
  - lib/puppet/http/errors.rb
560
565
  - lib/puppet/http/redirector.rb
561
566
  - lib/puppet/http/resolver.rb
567
+ - lib/puppet/http/resolver/server_list.rb
562
568
  - lib/puppet/http/resolver/settings.rb
563
569
  - lib/puppet/http/resolver/srv.rb
564
570
  - lib/puppet/http/response.rb
565
571
  - lib/puppet/http/retry_after_handler.rb
566
572
  - lib/puppet/http/service.rb
567
573
  - lib/puppet/http/service/ca.rb
574
+ - lib/puppet/http/service/report.rb
568
575
  - lib/puppet/http/session.rb
569
576
  - lib/puppet/indirector.rb
570
577
  - lib/puppet/indirector/catalog/compiler.rb
@@ -1501,6 +1508,7 @@ files:
1501
1508
  - spec/fixtures/unit/data_providers/environments/production/modules/xyz/functions/data.pp
1502
1509
  - spec/fixtures/unit/data_providers/environments/production/modules/xyz/manifests/init.pp
1503
1510
  - spec/fixtures/unit/data_providers/environments/production/modules/xyz/metadata.json
1511
+ - spec/fixtures/unit/forge/bacula.json
1504
1512
  - spec/fixtures/unit/functions/hiera/hiera/backend/hieraspec_backend.rb
1505
1513
  - spec/fixtures/unit/functions/lookup/data/common.yaml
1506
1514
  - spec/fixtures/unit/functions/lookup/hiera/backend/custom_backend.rb
@@ -1778,11 +1786,13 @@ files:
1778
1786
  - spec/integration/file_serving/metadata_spec.rb
1779
1787
  - spec/integration/file_serving/terminus_helper_spec.rb
1780
1788
  - spec/integration/file_system/uniquefile_spec.rb
1789
+ - spec/integration/http/client_spec.rb
1781
1790
  - spec/integration/indirector/catalog/compiler_spec.rb
1782
1791
  - spec/integration/indirector/direct_file_server_spec.rb
1783
1792
  - spec/integration/indirector/facts/facter_spec.rb
1784
1793
  - spec/integration/indirector/file_content/file_server_spec.rb
1785
1794
  - spec/integration/indirector/file_metadata/file_server_spec.rb
1795
+ - spec/integration/module_tool/forge_spec.rb
1786
1796
  - spec/integration/module_tool/tar/mini_spec.rb
1787
1797
  - spec/integration/network/authconfig_spec.rb
1788
1798
  - spec/integration/network/formats_spec.rb
@@ -1874,7 +1884,6 @@ files:
1874
1884
  - spec/lib/puppet_spec/settings.rb
1875
1885
  - spec/lib/puppet_spec/ssl.rb
1876
1886
  - spec/lib/puppet_spec/unindent.rb
1877
- - spec/lib/puppet_spec/validators.rb
1878
1887
  - spec/lib/puppet_spec/verbose.rb
1879
1888
  - spec/shared_behaviours/all_parsedfile_providers.rb
1880
1889
  - spec/shared_behaviours/an_indirector_face.rb
@@ -1912,6 +1921,7 @@ files:
1912
1921
  - spec/unit/application_spec.rb
1913
1922
  - spec/unit/capability_spec.rb
1914
1923
  - spec/unit/certificate_factory_spec.rb
1924
+ - spec/unit/concurrent/lock_spec.rb
1915
1925
  - spec/unit/configurer/downloader_spec.rb
1916
1926
  - spec/unit/configurer/fact_handler_spec.rb
1917
1927
  - spec/unit/configurer/plugin_handler_spec.rb
@@ -2004,6 +2014,7 @@ files:
2004
2014
  - spec/unit/functions/epp_spec.rb
2005
2015
  - spec/unit/functions/filter_spec.rb
2006
2016
  - spec/unit/functions/find_file_spec.rb
2017
+ - spec/unit/functions/find_template_spec.rb
2007
2018
  - spec/unit/functions/flatten_spec.rb
2008
2019
  - spec/unit/functions/floor_spec.rb
2009
2020
  - spec/unit/functions/get_spec.rb
@@ -2067,6 +2078,7 @@ files:
2067
2078
  - spec/unit/http/client_spec.rb
2068
2079
  - spec/unit/http/resolver_spec.rb
2069
2080
  - spec/unit/http/service/ca_spec.rb
2081
+ - spec/unit/http/service/report_spec.rb
2070
2082
  - spec/unit/http/service_spec.rb
2071
2083
  - spec/unit/http/session_spec.rb
2072
2084
  - spec/unit/indirector/catalog/compiler_spec.rb
@@ -2388,6 +2400,7 @@ files:
2388
2400
  - spec/unit/provider/package/windows_spec.rb
2389
2401
  - spec/unit/provider/package/yum_spec.rb
2390
2402
  - spec/unit/provider/package/zypper_spec.rb
2403
+ - spec/unit/provider/package_targetable_spec.rb
2391
2404
  - spec/unit/provider/parsedfile_spec.rb
2392
2405
  - spec/unit/provider/service/base_spec.rb
2393
2406
  - spec/unit/provider/service/bsd_spec.rb
@@ -2615,7 +2628,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
2615
2628
  - !ruby/object:Gem::Version
2616
2629
  version: 1.3.1
2617
2630
  requirements: []
2618
- rubygems_version: 3.0.4
2631
+ rubygems_version: 3.0.6
2619
2632
  signing_key:
2620
2633
  specification_version: 4
2621
2634
  summary: Puppet, an automated configuration management tool
@@ -2750,6 +2763,7 @@ test_files:
2750
2763
  - spec/fixtures/unit/data_providers/environments/production/modules/xyz/functions/data.pp
2751
2764
  - spec/fixtures/unit/data_providers/environments/production/modules/xyz/manifests/init.pp
2752
2765
  - spec/fixtures/unit/data_providers/environments/production/modules/xyz/metadata.json
2766
+ - spec/fixtures/unit/forge/bacula.json
2753
2767
  - spec/fixtures/unit/functions/hiera/hiera/backend/hieraspec_backend.rb
2754
2768
  - spec/fixtures/unit/functions/lookup/data/common.yaml
2755
2769
  - spec/fixtures/unit/functions/lookup/hiera/backend/custom_backend.rb
@@ -3027,11 +3041,13 @@ test_files:
3027
3041
  - spec/integration/file_serving/metadata_spec.rb
3028
3042
  - spec/integration/file_serving/terminus_helper_spec.rb
3029
3043
  - spec/integration/file_system/uniquefile_spec.rb
3044
+ - spec/integration/http/client_spec.rb
3030
3045
  - spec/integration/indirector/catalog/compiler_spec.rb
3031
3046
  - spec/integration/indirector/direct_file_server_spec.rb
3032
3047
  - spec/integration/indirector/facts/facter_spec.rb
3033
3048
  - spec/integration/indirector/file_content/file_server_spec.rb
3034
3049
  - spec/integration/indirector/file_metadata/file_server_spec.rb
3050
+ - spec/integration/module_tool/forge_spec.rb
3035
3051
  - spec/integration/module_tool/tar/mini_spec.rb
3036
3052
  - spec/integration/network/authconfig_spec.rb
3037
3053
  - spec/integration/network/formats_spec.rb
@@ -3123,7 +3139,6 @@ test_files:
3123
3139
  - spec/lib/puppet_spec/settings.rb
3124
3140
  - spec/lib/puppet_spec/ssl.rb
3125
3141
  - spec/lib/puppet_spec/unindent.rb
3126
- - spec/lib/puppet_spec/validators.rb
3127
3142
  - spec/lib/puppet_spec/verbose.rb
3128
3143
  - spec/shared_behaviours/all_parsedfile_providers.rb
3129
3144
  - spec/shared_behaviours/an_indirector_face.rb
@@ -3161,6 +3176,7 @@ test_files:
3161
3176
  - spec/unit/application_spec.rb
3162
3177
  - spec/unit/capability_spec.rb
3163
3178
  - spec/unit/certificate_factory_spec.rb
3179
+ - spec/unit/concurrent/lock_spec.rb
3164
3180
  - spec/unit/configurer/downloader_spec.rb
3165
3181
  - spec/unit/configurer/fact_handler_spec.rb
3166
3182
  - spec/unit/configurer/plugin_handler_spec.rb
@@ -3253,6 +3269,7 @@ test_files:
3253
3269
  - spec/unit/functions/epp_spec.rb
3254
3270
  - spec/unit/functions/filter_spec.rb
3255
3271
  - spec/unit/functions/find_file_spec.rb
3272
+ - spec/unit/functions/find_template_spec.rb
3256
3273
  - spec/unit/functions/flatten_spec.rb
3257
3274
  - spec/unit/functions/floor_spec.rb
3258
3275
  - spec/unit/functions/get_spec.rb
@@ -3316,6 +3333,7 @@ test_files:
3316
3333
  - spec/unit/http/client_spec.rb
3317
3334
  - spec/unit/http/resolver_spec.rb
3318
3335
  - spec/unit/http/service/ca_spec.rb
3336
+ - spec/unit/http/service/report_spec.rb
3319
3337
  - spec/unit/http/service_spec.rb
3320
3338
  - spec/unit/http/session_spec.rb
3321
3339
  - spec/unit/indirector/catalog/compiler_spec.rb
@@ -3637,6 +3655,7 @@ test_files:
3637
3655
  - spec/unit/provider/package/windows_spec.rb
3638
3656
  - spec/unit/provider/package/yum_spec.rb
3639
3657
  - spec/unit/provider/package/zypper_spec.rb
3658
+ - spec/unit/provider/package_targetable_spec.rb
3640
3659
  - spec/unit/provider/parsedfile_spec.rb
3641
3660
  - spec/unit/provider/service/base_spec.rb
3642
3661
  - 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
-