puppet 6.11.1-x64-mingw32 → 6.12.0-x64-mingw32
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.
- checksums.yaml +4 -4
- data/CODEOWNERS +1 -1
- data/Gemfile +1 -0
- data/Gemfile.lock +16 -16
- data/README.md +1 -1
- data/ext/build_defaults.yaml +1 -0
- data/ext/windows/service/daemon.rb +22 -17
- data/lib/puppet/concurrent.rb +2 -0
- data/lib/puppet/concurrent/lock.rb +16 -0
- data/lib/puppet/concurrent/synchronized.rb +15 -0
- data/lib/puppet/concurrent/thread_local_singleton.rb +14 -0
- data/lib/puppet/configurer.rb +45 -31
- data/lib/puppet/defaults.rb +42 -3
- data/lib/puppet/environments.rb +3 -0
- data/lib/puppet/error.rb +9 -1
- data/lib/puppet/forge.rb +3 -3
- data/lib/puppet/forge/errors.rb +2 -2
- data/lib/puppet/forge/repository.rb +30 -86
- data/lib/puppet/functions/camelcase.rb +2 -2
- data/lib/puppet/functions/epp.rb +4 -4
- data/lib/puppet/functions/find_file.rb +9 -9
- data/lib/puppet/functions/find_template.rb +63 -0
- data/lib/puppet/functions/inline_epp.rb +5 -5
- data/lib/puppet/http.rb +2 -0
- data/lib/puppet/http/client.rb +89 -17
- data/lib/puppet/http/resolver.rb +14 -1
- data/lib/puppet/http/resolver/server_list.rb +38 -0
- data/lib/puppet/http/resolver/settings.rb +3 -2
- data/lib/puppet/http/resolver/srv.rb +10 -4
- data/lib/puppet/http/service.rb +32 -0
- data/lib/puppet/http/service/ca.rb +11 -10
- data/lib/puppet/http/service/report.rb +40 -0
- data/lib/puppet/http/session.rb +11 -32
- data/lib/puppet/network/http/base_pool.rb +13 -0
- data/lib/puppet/node/environment.rb +13 -7
- data/lib/puppet/pal/pal_impl.rb +5 -0
- data/lib/puppet/parser/functions/epp.rb +3 -3
- data/lib/puppet/parser/functions/inline_epp.rb +5 -5
- data/lib/puppet/pops/evaluator/runtime3_support.rb +1 -1
- data/lib/puppet/pops/lookup/invocation.rb +10 -3
- data/lib/puppet/pops/model/pn_transformer.rb +5 -9
- data/lib/puppet/pops/parser/evaluating_parser.rb +3 -4
- data/lib/puppet/pops/serialization/json_path.rb +3 -3
- data/lib/puppet/pops/time/timespan.rb +3 -5
- data/lib/puppet/pops/types/string_converter.rb +6 -9
- data/lib/puppet/pops/types/type_calculator.rb +6 -10
- data/lib/puppet/pops/types/type_formatter.rb +9 -11
- data/lib/puppet/pops/types/type_parser.rb +3 -3
- data/lib/puppet/provider/package/portage.rb +3 -3
- data/lib/puppet/provider/package_targetable.rb +5 -4
- data/lib/puppet/provider/service/systemd.rb +1 -1
- data/lib/puppet/provider/user/hpux.rb +1 -1
- data/lib/puppet/runtime.rb +1 -0
- data/lib/puppet/ssl/ssl_provider.rb +20 -0
- data/lib/puppet/transaction.rb +33 -11
- data/lib/puppet/type.rb +1 -1
- data/lib/puppet/type/file/data_sync.rb +5 -1
- data/lib/puppet/type/group.rb +3 -2
- data/lib/puppet/type/user.rb +3 -2
- data/lib/puppet/util.rb +34 -11
- data/lib/puppet/util/logging.rb +30 -18
- data/lib/puppet/util/windows/adsi.rb +48 -18
- data/lib/puppet/version.rb +1 -1
- data/lib/puppet/x509/cert_provider.rb +9 -5
- data/locales/puppet.pot +155 -141
- data/man/man5/puppet.conf.5 +33 -3
- data/man/man8/puppet-agent.8 +1 -1
- data/man/man8/puppet-apply.8 +1 -1
- data/man/man8/puppet-catalog.8 +1 -1
- data/man/man8/puppet-config.8 +1 -1
- data/man/man8/puppet-describe.8 +1 -1
- data/man/man8/puppet-device.8 +1 -1
- data/man/man8/puppet-doc.8 +1 -1
- data/man/man8/puppet-epp.8 +1 -1
- data/man/man8/puppet-facts.8 +1 -1
- data/man/man8/puppet-filebucket.8 +1 -1
- data/man/man8/puppet-generate.8 +1 -1
- data/man/man8/puppet-help.8 +1 -1
- data/man/man8/puppet-key.8 +1 -1
- data/man/man8/puppet-lookup.8 +1 -1
- data/man/man8/puppet-man.8 +1 -1
- data/man/man8/puppet-module.8 +1 -1
- data/man/man8/puppet-node.8 +1 -1
- data/man/man8/puppet-parser.8 +1 -1
- data/man/man8/puppet-plugin.8 +1 -1
- data/man/man8/puppet-report.8 +1 -1
- data/man/man8/puppet-resource.8 +1 -1
- data/man/man8/puppet-script.8 +1 -1
- data/man/man8/puppet-ssl.8 +1 -1
- data/man/man8/puppet-status.8 +1 -1
- data/man/man8/puppet.8 +2 -2
- data/spec/fixtures/unit/forge/bacula.json +76 -0
- data/spec/integration/http/client_spec.rb +144 -0
- data/spec/integration/module_tool/forge_spec.rb +64 -0
- data/spec/lib/puppet_spec/https.rb +5 -3
- data/spec/spec_helper.rb +6 -2
- data/spec/unit/concurrent/lock_spec.rb +29 -0
- data/spec/unit/configurer_spec.rb +394 -399
- data/spec/unit/defaults_spec.rb +15 -4
- data/spec/unit/forge/errors_spec.rb +1 -1
- data/spec/unit/forge/forge_spec.rb +12 -54
- data/spec/unit/forge/module_release_spec.rb +19 -6
- data/spec/unit/forge/repository_spec.rb +63 -157
- data/spec/unit/forge_spec.rb +46 -116
- data/spec/unit/functions/find_template_spec.rb +69 -0
- data/spec/unit/http/client_spec.rb +138 -6
- data/spec/unit/http/resolver_spec.rb +49 -12
- data/spec/unit/http/service/ca_spec.rb +56 -5
- data/spec/unit/http/service/report_spec.rb +100 -0
- data/spec/unit/http/service_spec.rb +20 -0
- data/spec/unit/http/session_spec.rb +53 -18
- data/spec/unit/network/http/connection_spec.rb +0 -1
- data/spec/unit/pops/evaluator/evaluating_parser_spec.rb +8 -3
- data/spec/unit/provider/package/portage_spec.rb +4 -4
- data/spec/unit/provider/package_targetable_spec.rb +60 -0
- data/spec/unit/provider/user/hpux_spec.rb +2 -2
- data/spec/unit/ssl/ssl_provider_spec.rb +71 -0
- data/spec/unit/transaction_spec.rb +46 -0
- data/spec/unit/type/file/content_spec.rb +9 -3
- data/spec/unit/util/log_spec.rb +0 -138
- data/spec/unit/util/logging_spec.rb +200 -0
- data/spec/unit/util/windows/adsi_spec.rb +51 -0
- data/spec/unit/x509/cert_provider_spec.rb +24 -4
- data/tasks/manpages.rake +1 -0
- metadata +24 -5
- 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 '
|
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
|
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 '
|
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
|
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
|
data/tasks/manpages.rake
CHANGED
@@ -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.
|
4
|
+
version: 6.12.0
|
5
5
|
platform: x64-mingw32
|
6
6
|
authors:
|
7
7
|
- Puppet Labs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: facter
|
@@ -435,6 +435,10 @@ files:
|
|
435
435
|
- lib/puppet/application_support.rb
|
436
436
|
- lib/puppet/coercion.rb
|
437
437
|
- lib/puppet/compilable_resource_type.rb
|
438
|
+
- lib/puppet/concurrent.rb
|
439
|
+
- lib/puppet/concurrent/lock.rb
|
440
|
+
- lib/puppet/concurrent/synchronized.rb
|
441
|
+
- lib/puppet/concurrent/thread_local_singleton.rb
|
438
442
|
- lib/puppet/configurer.rb
|
439
443
|
- lib/puppet/configurer/downloader.rb
|
440
444
|
- lib/puppet/configurer/fact_handler.rb
|
@@ -573,6 +577,7 @@ files:
|
|
573
577
|
- lib/puppet/functions/eyaml_lookup_key.rb
|
574
578
|
- lib/puppet/functions/filter.rb
|
575
579
|
- lib/puppet/functions/find_file.rb
|
580
|
+
- lib/puppet/functions/find_template.rb
|
576
581
|
- lib/puppet/functions/flatten.rb
|
577
582
|
- lib/puppet/functions/floor.rb
|
578
583
|
- lib/puppet/functions/get.rb
|
@@ -649,12 +654,14 @@ files:
|
|
649
654
|
- lib/puppet/http/errors.rb
|
650
655
|
- lib/puppet/http/redirector.rb
|
651
656
|
- lib/puppet/http/resolver.rb
|
657
|
+
- lib/puppet/http/resolver/server_list.rb
|
652
658
|
- lib/puppet/http/resolver/settings.rb
|
653
659
|
- lib/puppet/http/resolver/srv.rb
|
654
660
|
- lib/puppet/http/response.rb
|
655
661
|
- lib/puppet/http/retry_after_handler.rb
|
656
662
|
- lib/puppet/http/service.rb
|
657
663
|
- lib/puppet/http/service/ca.rb
|
664
|
+
- lib/puppet/http/service/report.rb
|
658
665
|
- lib/puppet/http/session.rb
|
659
666
|
- lib/puppet/indirector.rb
|
660
667
|
- lib/puppet/indirector/catalog/compiler.rb
|
@@ -1591,6 +1598,7 @@ files:
|
|
1591
1598
|
- spec/fixtures/unit/data_providers/environments/production/modules/xyz/functions/data.pp
|
1592
1599
|
- spec/fixtures/unit/data_providers/environments/production/modules/xyz/manifests/init.pp
|
1593
1600
|
- spec/fixtures/unit/data_providers/environments/production/modules/xyz/metadata.json
|
1601
|
+
- spec/fixtures/unit/forge/bacula.json
|
1594
1602
|
- spec/fixtures/unit/functions/hiera/hiera/backend/hieraspec_backend.rb
|
1595
1603
|
- spec/fixtures/unit/functions/lookup/data/common.yaml
|
1596
1604
|
- spec/fixtures/unit/functions/lookup/hiera/backend/custom_backend.rb
|
@@ -1868,11 +1876,13 @@ files:
|
|
1868
1876
|
- spec/integration/file_serving/metadata_spec.rb
|
1869
1877
|
- spec/integration/file_serving/terminus_helper_spec.rb
|
1870
1878
|
- spec/integration/file_system/uniquefile_spec.rb
|
1879
|
+
- spec/integration/http/client_spec.rb
|
1871
1880
|
- spec/integration/indirector/catalog/compiler_spec.rb
|
1872
1881
|
- spec/integration/indirector/direct_file_server_spec.rb
|
1873
1882
|
- spec/integration/indirector/facts/facter_spec.rb
|
1874
1883
|
- spec/integration/indirector/file_content/file_server_spec.rb
|
1875
1884
|
- spec/integration/indirector/file_metadata/file_server_spec.rb
|
1885
|
+
- spec/integration/module_tool/forge_spec.rb
|
1876
1886
|
- spec/integration/module_tool/tar/mini_spec.rb
|
1877
1887
|
- spec/integration/network/authconfig_spec.rb
|
1878
1888
|
- spec/integration/network/formats_spec.rb
|
@@ -1964,7 +1974,6 @@ files:
|
|
1964
1974
|
- spec/lib/puppet_spec/settings.rb
|
1965
1975
|
- spec/lib/puppet_spec/ssl.rb
|
1966
1976
|
- spec/lib/puppet_spec/unindent.rb
|
1967
|
-
- spec/lib/puppet_spec/validators.rb
|
1968
1977
|
- spec/lib/puppet_spec/verbose.rb
|
1969
1978
|
- spec/shared_behaviours/all_parsedfile_providers.rb
|
1970
1979
|
- spec/shared_behaviours/an_indirector_face.rb
|
@@ -2002,6 +2011,7 @@ files:
|
|
2002
2011
|
- spec/unit/application_spec.rb
|
2003
2012
|
- spec/unit/capability_spec.rb
|
2004
2013
|
- spec/unit/certificate_factory_spec.rb
|
2014
|
+
- spec/unit/concurrent/lock_spec.rb
|
2005
2015
|
- spec/unit/configurer/downloader_spec.rb
|
2006
2016
|
- spec/unit/configurer/fact_handler_spec.rb
|
2007
2017
|
- spec/unit/configurer/plugin_handler_spec.rb
|
@@ -2094,6 +2104,7 @@ files:
|
|
2094
2104
|
- spec/unit/functions/epp_spec.rb
|
2095
2105
|
- spec/unit/functions/filter_spec.rb
|
2096
2106
|
- spec/unit/functions/find_file_spec.rb
|
2107
|
+
- spec/unit/functions/find_template_spec.rb
|
2097
2108
|
- spec/unit/functions/flatten_spec.rb
|
2098
2109
|
- spec/unit/functions/floor_spec.rb
|
2099
2110
|
- spec/unit/functions/get_spec.rb
|
@@ -2157,6 +2168,7 @@ files:
|
|
2157
2168
|
- spec/unit/http/client_spec.rb
|
2158
2169
|
- spec/unit/http/resolver_spec.rb
|
2159
2170
|
- spec/unit/http/service/ca_spec.rb
|
2171
|
+
- spec/unit/http/service/report_spec.rb
|
2160
2172
|
- spec/unit/http/service_spec.rb
|
2161
2173
|
- spec/unit/http/session_spec.rb
|
2162
2174
|
- spec/unit/indirector/catalog/compiler_spec.rb
|
@@ -2478,6 +2490,7 @@ files:
|
|
2478
2490
|
- spec/unit/provider/package/windows_spec.rb
|
2479
2491
|
- spec/unit/provider/package/yum_spec.rb
|
2480
2492
|
- spec/unit/provider/package/zypper_spec.rb
|
2493
|
+
- spec/unit/provider/package_targetable_spec.rb
|
2481
2494
|
- spec/unit/provider/parsedfile_spec.rb
|
2482
2495
|
- spec/unit/provider/service/base_spec.rb
|
2483
2496
|
- spec/unit/provider/service/bsd_spec.rb
|
@@ -2705,7 +2718,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
2705
2718
|
- !ruby/object:Gem::Version
|
2706
2719
|
version: 1.3.1
|
2707
2720
|
requirements: []
|
2708
|
-
rubygems_version: 3.0.
|
2721
|
+
rubygems_version: 3.0.6
|
2709
2722
|
signing_key:
|
2710
2723
|
specification_version: 4
|
2711
2724
|
summary: Puppet, an automated configuration management tool
|
@@ -2840,6 +2853,7 @@ test_files:
|
|
2840
2853
|
- spec/fixtures/unit/data_providers/environments/production/modules/xyz/functions/data.pp
|
2841
2854
|
- spec/fixtures/unit/data_providers/environments/production/modules/xyz/manifests/init.pp
|
2842
2855
|
- spec/fixtures/unit/data_providers/environments/production/modules/xyz/metadata.json
|
2856
|
+
- spec/fixtures/unit/forge/bacula.json
|
2843
2857
|
- spec/fixtures/unit/functions/hiera/hiera/backend/hieraspec_backend.rb
|
2844
2858
|
- spec/fixtures/unit/functions/lookup/data/common.yaml
|
2845
2859
|
- spec/fixtures/unit/functions/lookup/hiera/backend/custom_backend.rb
|
@@ -3117,11 +3131,13 @@ test_files:
|
|
3117
3131
|
- spec/integration/file_serving/metadata_spec.rb
|
3118
3132
|
- spec/integration/file_serving/terminus_helper_spec.rb
|
3119
3133
|
- spec/integration/file_system/uniquefile_spec.rb
|
3134
|
+
- spec/integration/http/client_spec.rb
|
3120
3135
|
- spec/integration/indirector/catalog/compiler_spec.rb
|
3121
3136
|
- spec/integration/indirector/direct_file_server_spec.rb
|
3122
3137
|
- spec/integration/indirector/facts/facter_spec.rb
|
3123
3138
|
- spec/integration/indirector/file_content/file_server_spec.rb
|
3124
3139
|
- spec/integration/indirector/file_metadata/file_server_spec.rb
|
3140
|
+
- spec/integration/module_tool/forge_spec.rb
|
3125
3141
|
- spec/integration/module_tool/tar/mini_spec.rb
|
3126
3142
|
- spec/integration/network/authconfig_spec.rb
|
3127
3143
|
- spec/integration/network/formats_spec.rb
|
@@ -3213,7 +3229,6 @@ test_files:
|
|
3213
3229
|
- spec/lib/puppet_spec/settings.rb
|
3214
3230
|
- spec/lib/puppet_spec/ssl.rb
|
3215
3231
|
- spec/lib/puppet_spec/unindent.rb
|
3216
|
-
- spec/lib/puppet_spec/validators.rb
|
3217
3232
|
- spec/lib/puppet_spec/verbose.rb
|
3218
3233
|
- spec/shared_behaviours/all_parsedfile_providers.rb
|
3219
3234
|
- spec/shared_behaviours/an_indirector_face.rb
|
@@ -3251,6 +3266,7 @@ test_files:
|
|
3251
3266
|
- spec/unit/application_spec.rb
|
3252
3267
|
- spec/unit/capability_spec.rb
|
3253
3268
|
- spec/unit/certificate_factory_spec.rb
|
3269
|
+
- spec/unit/concurrent/lock_spec.rb
|
3254
3270
|
- spec/unit/configurer/downloader_spec.rb
|
3255
3271
|
- spec/unit/configurer/fact_handler_spec.rb
|
3256
3272
|
- spec/unit/configurer/plugin_handler_spec.rb
|
@@ -3343,6 +3359,7 @@ test_files:
|
|
3343
3359
|
- spec/unit/functions/epp_spec.rb
|
3344
3360
|
- spec/unit/functions/filter_spec.rb
|
3345
3361
|
- spec/unit/functions/find_file_spec.rb
|
3362
|
+
- spec/unit/functions/find_template_spec.rb
|
3346
3363
|
- spec/unit/functions/flatten_spec.rb
|
3347
3364
|
- spec/unit/functions/floor_spec.rb
|
3348
3365
|
- spec/unit/functions/get_spec.rb
|
@@ -3406,6 +3423,7 @@ test_files:
|
|
3406
3423
|
- spec/unit/http/client_spec.rb
|
3407
3424
|
- spec/unit/http/resolver_spec.rb
|
3408
3425
|
- spec/unit/http/service/ca_spec.rb
|
3426
|
+
- spec/unit/http/service/report_spec.rb
|
3409
3427
|
- spec/unit/http/service_spec.rb
|
3410
3428
|
- spec/unit/http/session_spec.rb
|
3411
3429
|
- spec/unit/indirector/catalog/compiler_spec.rb
|
@@ -3727,6 +3745,7 @@ test_files:
|
|
3727
3745
|
- spec/unit/provider/package/windows_spec.rb
|
3728
3746
|
- spec/unit/provider/package/yum_spec.rb
|
3729
3747
|
- spec/unit/provider/package/zypper_spec.rb
|
3748
|
+
- spec/unit/provider/package_targetable_spec.rb
|
3730
3749
|
- spec/unit/provider/parsedfile_spec.rb
|
3731
3750
|
- spec/unit/provider/service/base_spec.rb
|
3732
3751
|
- 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
|
-
|