puppet 7.1.0-x64-mingw32 → 7.6.1-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/Gemfile.lock +38 -30
- data/ext/build_defaults.yaml +0 -1
- data/lib/puppet/application.rb +10 -6
- data/lib/puppet/application/agent.rb +1 -0
- data/lib/puppet/application/apply.rb +3 -2
- data/lib/puppet/application/device.rb +1 -0
- data/lib/puppet/application/script.rb +1 -0
- data/lib/puppet/application/ssl.rb +11 -0
- data/lib/puppet/configurer.rb +16 -3
- data/lib/puppet/defaults.rb +14 -19
- data/lib/puppet/environments.rb +16 -1
- data/lib/puppet/face/facts.rb +26 -2
- data/lib/puppet/ffi/windows/api_types.rb +1 -1
- data/lib/puppet/ffi/windows/constants.rb +1 -1
- data/lib/puppet/file_serving/configuration/parser.rb +5 -2
- data/lib/puppet/file_system/memory_file.rb +8 -1
- data/lib/puppet/file_system/windows.rb +2 -0
- data/lib/puppet/functions.rb +1 -1
- data/lib/puppet/functions/partition.rb +8 -0
- data/lib/puppet/http/factory.rb +4 -0
- data/lib/puppet/indirector/facts/facter.rb +1 -0
- data/lib/puppet/loaders.rb +0 -4
- data/lib/puppet/module.rb +1 -0
- data/lib/puppet/module_tool/applications/installer.rb +48 -2
- data/lib/puppet/module_tool/errors/shared.rb +17 -2
- data/lib/puppet/network/formats.rb +67 -0
- data/lib/puppet/network/http.rb +5 -2
- data/lib/puppet/network/http/api.rb +10 -6
- data/lib/puppet/network/http/api/master.rb +3 -2
- data/lib/puppet/network/http/api/master/v3.rb +2 -25
- data/lib/puppet/network/http/api/master/v3/environments.rb +2 -33
- data/lib/puppet/network/http/api/server.rb +10 -0
- data/lib/puppet/network/http/api/server/v3.rb +39 -0
- data/lib/puppet/network/http/api/server/v3/environments.rb +48 -0
- data/lib/puppet/node/environment.rb +12 -5
- data/lib/puppet/parser/ast/leaf.rb +3 -2
- data/lib/puppet/pops/evaluator/deferred_resolver.rb +5 -3
- data/lib/puppet/pops/loader/base_loader.rb +42 -32
- data/lib/puppet/pops/loader/dependency_loader.rb +2 -2
- data/lib/puppet/pops/loader/loader.rb +15 -5
- data/lib/puppet/pops/loader/module_loaders.rb +8 -8
- data/lib/puppet/pops/loader/predefined_loader.rb +4 -0
- data/lib/puppet/pops/loader/runtime3_type_loader.rb +1 -1
- data/lib/puppet/pops/loader/static_loader.rb +4 -0
- data/lib/puppet/pops/loaders.rb +4 -4
- data/lib/puppet/pops/model/ast_transformer.rb +1 -1
- data/lib/puppet/pops/parser/lexer2.rb +0 -4
- data/lib/puppet/pops/types/p_type_set_type.rb +1 -1
- data/lib/puppet/pops/validation/checker4_0.rb +0 -1
- data/lib/puppet/property/list.rb +1 -1
- data/lib/puppet/provider/group/groupadd.rb +13 -8
- data/lib/puppet/provider/package/apt.rb +34 -2
- data/lib/puppet/provider/package/aptitude.rb +6 -0
- data/lib/puppet/provider/package/dnfmodule.rb +1 -1
- data/lib/puppet/provider/package/puppet_gem.rb +12 -1
- data/lib/puppet/provider/service/debian.rb +2 -0
- data/lib/puppet/provider/service/systemd.rb +1 -1
- data/lib/puppet/provider/user/useradd.rb +62 -8
- data/lib/puppet/reference/configuration.rb +6 -5
- data/lib/puppet/settings.rb +36 -30
- data/lib/puppet/settings/alias_setting.rb +37 -0
- data/lib/puppet/settings/environment_conf.rb +1 -0
- data/lib/puppet/type/package.rb +3 -3
- data/lib/puppet/util/autoload.rb +1 -8
- data/lib/puppet/util/monkey_patches.rb +7 -0
- data/lib/puppet/util/posix.rb +1 -1
- data/lib/puppet/util/windows/adsi.rb +46 -0
- data/lib/puppet/util/windows/principal.rb +9 -2
- data/lib/puppet/util/windows/sid.rb +4 -2
- data/lib/puppet/version.rb +1 -1
- data/locales/puppet.pot +166 -146
- data/man/man5/puppet.conf.5 +14 -6
- data/man/man8/puppet-agent.8 +2 -2
- data/man/man8/puppet-apply.8 +2 -2
- 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 +2 -2
- data/man/man8/puppet-doc.8 +1 -1
- data/man/man8/puppet-epp.8 +1 -1
- data/man/man8/puppet-facts.8 +8 -2
- 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-lookup.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 +2 -2
- data/man/man8/puppet-ssl.8 +5 -1
- data/man/man8/puppet.8 +2 -2
- data/spec/fixtures/integration/application/agent/cached_deferred_catalog.json +91 -0
- data/spec/fixtures/unit/provider/service/systemd/list_unit_files_services_vendor_preset +9 -0
- data/spec/integration/application/agent_spec.rb +160 -3
- data/spec/integration/application/apply_spec.rb +19 -0
- data/spec/integration/application/plugin_spec.rb +1 -1
- data/spec/integration/defaults_spec.rb +0 -7
- data/spec/integration/http/client_spec.rb +12 -0
- data/spec/integration/indirector/direct_file_server_spec.rb +1 -3
- data/spec/integration/indirector/file_content/file_server_spec.rb +0 -2
- data/spec/integration/indirector/file_metadata/file_server_spec.rb +0 -2
- data/spec/integration/parser/collection_spec.rb +10 -0
- data/spec/integration/resource/type_collection_spec.rb +2 -6
- data/spec/integration/transaction_spec.rb +4 -9
- data/spec/integration/util/windows/adsi_spec.rb +21 -1
- data/spec/integration/util/windows/principal_spec.rb +21 -0
- data/spec/integration/util/windows/registry_spec.rb +6 -10
- data/spec/spec_helper.rb +12 -5
- data/spec/unit/agent_spec.rb +8 -6
- data/spec/unit/application/agent_spec.rb +0 -1
- data/spec/unit/application/facts_spec.rb +58 -7
- data/spec/unit/application/filebucket_spec.rb +0 -2
- data/spec/unit/application/ssl_spec.rb +23 -0
- data/spec/unit/application_spec.rb +17 -9
- data/spec/unit/confine/feature_spec.rb +1 -1
- data/spec/unit/confine_spec.rb +8 -2
- data/spec/unit/environments_spec.rb +164 -88
- data/spec/unit/face/node_spec.rb +0 -11
- data/spec/unit/file_serving/configuration/parser_spec.rb +8 -1
- data/spec/unit/file_serving/metadata_spec.rb +3 -3
- data/spec/unit/file_serving/terminus_helper_spec.rb +11 -4
- data/spec/unit/file_system_spec.rb +9 -0
- data/spec/unit/forge/module_release_spec.rb +2 -7
- data/spec/unit/http/factory_spec.rb +19 -0
- data/spec/unit/indirector/face_spec.rb +0 -1
- data/spec/unit/indirector/facts/facter_spec.rb +20 -5
- data/spec/unit/indirector/file_bucket_file/selector_spec.rb +26 -8
- data/spec/unit/indirector/indirection_spec.rb +8 -12
- data/spec/unit/indirector_spec.rb +2 -2
- data/spec/unit/module_spec.rb +1 -1
- data/spec/unit/module_tool/applications/installer_spec.rb +66 -0
- data/spec/unit/network/formats_spec.rb +41 -0
- data/spec/unit/network/http/api/indirected_routes_spec.rb +0 -4
- data/spec/unit/network/http/api/master_spec.rb +38 -0
- data/spec/unit/network/http/api/{master → server}/v3/environments_spec.rb +2 -2
- data/spec/unit/network/http/api/{master → server}/v3_spec.rb +19 -19
- data/spec/unit/network/http/api_spec.rb +11 -11
- data/spec/unit/parser/compiler_spec.rb +3 -19
- data/spec/unit/parser/resource_spec.rb +14 -8
- data/spec/unit/pops/evaluator/deferred_resolver_spec.rb +20 -0
- data/spec/unit/pops/loaders/dependency_loader_spec.rb +1 -1
- data/spec/unit/pops/parser/lexer2_spec.rb +0 -4
- data/spec/unit/pops/types/type_parser_spec.rb +2 -1
- data/spec/unit/pops/validator/validator_spec.rb +20 -43
- data/spec/unit/property_spec.rb +1 -0
- data/spec/unit/provider/group/groupadd_spec.rb +5 -2
- data/spec/unit/provider/nameservice_spec.rb +66 -65
- data/spec/unit/provider/package/apt_spec.rb +28 -23
- data/spec/unit/provider/package/aptitude_spec.rb +1 -1
- data/spec/unit/provider/package/base_spec.rb +6 -5
- data/spec/unit/provider/package/dnfmodule_spec.rb +10 -1
- data/spec/unit/provider/package/pacman_spec.rb +18 -12
- data/spec/unit/provider/package/pip_spec.rb +6 -11
- data/spec/unit/provider/package/pkgdmg_spec.rb +0 -4
- data/spec/unit/provider/package/puppet_gem_spec.rb +28 -0
- data/spec/unit/provider/service/systemd_spec.rb +11 -0
- data/spec/unit/provider/user/hpux_spec.rb +1 -1
- data/spec/unit/provider/user/useradd_spec.rb +70 -3
- data/spec/unit/provider_spec.rb +6 -8
- data/spec/unit/resource/type_spec.rb +1 -1
- data/spec/unit/resource_spec.rb +11 -10
- data/spec/unit/settings_spec.rb +13 -6
- data/spec/unit/ssl/base_spec.rb +0 -1
- data/spec/unit/ssl/certificate_request_spec.rb +4 -10
- data/spec/unit/ssl/ssl_provider_spec.rb +5 -2
- data/spec/unit/transaction/additional_resource_generator_spec.rb +3 -7
- data/spec/unit/transaction/event_manager_spec.rb +14 -11
- data/spec/unit/transaction_spec.rb +13 -4
- data/spec/unit/type/file/content_spec.rb +0 -1
- data/spec/unit/type/file/selinux_spec.rb +0 -2
- data/spec/unit/type/file_spec.rb +0 -6
- data/spec/unit/type/group_spec.rb +13 -6
- data/spec/unit/type/resources_spec.rb +7 -7
- data/spec/unit/type/service_spec.rb +1 -1
- data/spec/unit/type/tidy_spec.rb +0 -1
- data/spec/unit/type_spec.rb +2 -2
- data/spec/unit/util/at_fork_spec.rb +2 -2
- data/spec/unit/util/autoload_spec.rb +5 -1
- data/spec/unit/util/backups_spec.rb +1 -2
- data/spec/unit/util/execution_spec.rb +15 -11
- data/spec/unit/util/inifile_spec.rb +6 -14
- data/spec/unit/util/log_spec.rb +8 -7
- data/spec/unit/util/logging_spec.rb +3 -3
- data/spec/unit/util/posix_spec.rb +16 -10
- data/spec/unit/util/selinux_spec.rb +76 -52
- data/spec/unit/util/suidmanager_spec.rb +44 -41
- data/spec/unit/util/windows/sid_spec.rb +6 -0
- data/spec/unit/util_spec.rb +13 -6
- metadata +18 -16
- data/spec/lib/matchers/include.rb +0 -27
- data/spec/lib/matchers/include_spec.rb +0 -32
- data/spec/unit/pops/parser/parse_application_spec.rb +0 -13
- data/spec/unit/pops/parser/parse_capabilities_spec.rb +0 -23
- data/spec/unit/pops/parser/parse_site_spec.rb +0 -43
@@ -158,6 +158,12 @@ describe "Puppet::Util::Windows::SID", :if => Puppet::Util::Platform.windows? do
|
|
158
158
|
# this works in French Windows, even though the account is really AUTORITE NT\\Syst\u00E8me
|
159
159
|
expect(subject.name_to_principal('NT AUTHORITY\SYSTEM').sid).to eq(sid)
|
160
160
|
end
|
161
|
+
|
162
|
+
it "should print a debug message on failures" do
|
163
|
+
expect(Puppet).to receive(:debug).with(/Could not retrieve raw SID bytes from 'NonExistingUser'/)
|
164
|
+
expect(Puppet).to receive(:debug).with(/No mapping between account names and security IDs was done/)
|
165
|
+
subject.name_to_principal('NonExistingUser')
|
166
|
+
end
|
161
167
|
end
|
162
168
|
|
163
169
|
context "#ads_to_principal" do
|
data/spec/unit/util_spec.rb
CHANGED
@@ -309,7 +309,7 @@ describe Puppet::Util do
|
|
309
309
|
|
310
310
|
describe "when using platform :posix" do
|
311
311
|
before :each do
|
312
|
-
allow(Puppet.features).to receive(:posix).and_return(true)
|
312
|
+
allow(Puppet.features).to receive(:posix?).and_return(true)
|
313
313
|
allow(Puppet::Util::Platform).to receive(:windows?).and_return(false)
|
314
314
|
end
|
315
315
|
|
@@ -322,7 +322,7 @@ describe Puppet::Util do
|
|
322
322
|
|
323
323
|
describe "when using platform :windows" do
|
324
324
|
before :each do
|
325
|
-
allow(Puppet.features).to receive(:posix).and_return(false)
|
325
|
+
allow(Puppet.features).to receive(:posix?).and_return(false)
|
326
326
|
allow(Puppet::Util::Platform).to receive(:windows?).and_return(true)
|
327
327
|
end
|
328
328
|
|
@@ -456,7 +456,7 @@ describe Puppet::Util do
|
|
456
456
|
|
457
457
|
describe "when using platform :posix" do
|
458
458
|
before :each do
|
459
|
-
allow(Puppet.features).to receive(:posix).and_return(true)
|
459
|
+
allow(Puppet.features).to receive(:posix?).and_return(true)
|
460
460
|
allow(Puppet::Util::Platform).to receive(:windows?).and_return(false)
|
461
461
|
end
|
462
462
|
|
@@ -495,7 +495,7 @@ describe Puppet::Util do
|
|
495
495
|
|
496
496
|
describe "when using platform :windows" do
|
497
497
|
before :each do
|
498
|
-
allow(Puppet.features).to receive(:posix).and_return(false)
|
498
|
+
allow(Puppet.features).to receive(:posix?).and_return(false)
|
499
499
|
allow(Puppet::Util::Platform).to receive(:windows?).and_return(true)
|
500
500
|
end
|
501
501
|
|
@@ -533,7 +533,6 @@ describe Puppet::Util do
|
|
533
533
|
expect(Puppet::Util.uri_to_path(URI.parse('http://foo/bar%20baz'))).to eq('/bar baz')
|
534
534
|
end
|
535
535
|
|
536
|
-
|
537
536
|
[
|
538
537
|
"http://foo/A%DB%BF%E1%9A%A0%F0%A0%9C%8E",
|
539
538
|
"http://foo/A%DB%BF%E1%9A%A0%F0%A0%9C%8E".force_encoding(Encoding::ASCII)
|
@@ -583,7 +582,15 @@ describe Puppet::Util do
|
|
583
582
|
end
|
584
583
|
end
|
585
584
|
|
586
|
-
describe "safe_posix_fork" do
|
585
|
+
describe "safe_posix_fork on Windows and JRuby", if: Puppet::Util::Platform.windows? || Puppet::Util::Platform.jruby? do
|
586
|
+
it "raises not implemented error" do
|
587
|
+
expect {
|
588
|
+
Puppet::Util.safe_posix_fork
|
589
|
+
}.to raise_error(NotImplementedError, /fork/)
|
590
|
+
end
|
591
|
+
end
|
592
|
+
|
593
|
+
describe "safe_posix_fork", unless: Puppet::Util::Platform.windows? || Puppet::Util::Platform.jruby? do
|
587
594
|
let(:pid) { 5501 }
|
588
595
|
|
589
596
|
before :each do
|
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: 7.1
|
4
|
+
version: 7.6.1
|
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: 2021-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: facter
|
@@ -740,6 +740,9 @@ files:
|
|
740
740
|
- lib/puppet/network/http/api/master.rb
|
741
741
|
- lib/puppet/network/http/api/master/v3.rb
|
742
742
|
- lib/puppet/network/http/api/master/v3/environments.rb
|
743
|
+
- lib/puppet/network/http/api/server.rb
|
744
|
+
- lib/puppet/network/http/api/server/v3.rb
|
745
|
+
- lib/puppet/network/http/api/server/v3/environments.rb
|
743
746
|
- lib/puppet/network/http/connection.rb
|
744
747
|
- lib/puppet/network/http/error.rb
|
745
748
|
- lib/puppet/network/http/handler.rb
|
@@ -1145,6 +1148,7 @@ files:
|
|
1145
1148
|
- lib/puppet/scheduler/splay_job.rb
|
1146
1149
|
- lib/puppet/scheduler/timer.rb
|
1147
1150
|
- lib/puppet/settings.rb
|
1151
|
+
- lib/puppet/settings/alias_setting.rb
|
1148
1152
|
- lib/puppet/settings/array_setting.rb
|
1149
1153
|
- lib/puppet/settings/autosign_setting.rb
|
1150
1154
|
- lib/puppet/settings/base_setting.rb
|
@@ -1388,6 +1392,7 @@ files:
|
|
1388
1392
|
- man/man8/puppet.8
|
1389
1393
|
- spec/fixtures/faulty_face/puppet/face/syntax.rb
|
1390
1394
|
- spec/fixtures/hiera.yaml
|
1395
|
+
- spec/fixtures/integration/application/agent/cached_deferred_catalog.json
|
1391
1396
|
- spec/fixtures/integration/application/apply/environments/spec/modules/amod/lib/puppet/provider/applytest/applytest.rb
|
1392
1397
|
- spec/fixtures/integration/application/apply/environments/spec/modules/amod/lib/puppet/type/applytest.rb
|
1393
1398
|
- spec/fixtures/integration/node/environment/sitedir/00_a.pp
|
@@ -1764,6 +1769,7 @@ files:
|
|
1764
1769
|
- spec/fixtures/unit/provider/service/smf/svcs_instances.out
|
1765
1770
|
- spec/fixtures/unit/provider/service/smf/svcs_multiple_fmris.out
|
1766
1771
|
- spec/fixtures/unit/provider/service/systemd/list_unit_files_services
|
1772
|
+
- spec/fixtures/unit/provider/service/systemd/list_unit_files_services_vendor_preset
|
1767
1773
|
- spec/fixtures/unit/provider/user/aix/aix_passwd_file.out
|
1768
1774
|
- spec/fixtures/unit/reports/tagmail/tagmail_email.conf
|
1769
1775
|
- spec/fixtures/unit/reports/tagmail/tagmail_failers.conf
|
@@ -1851,10 +1857,8 @@ files:
|
|
1851
1857
|
- spec/integration/util/windows/user_spec.rb
|
1852
1858
|
- spec/integration/util_spec.rb
|
1853
1859
|
- spec/lib/matchers/containment_matchers.rb
|
1854
|
-
- spec/lib/matchers/include.rb
|
1855
1860
|
- spec/lib/matchers/include_in_order.rb
|
1856
1861
|
- spec/lib/matchers/include_in_order_spec.rb
|
1857
|
-
- spec/lib/matchers/include_spec.rb
|
1858
1862
|
- spec/lib/matchers/json.rb
|
1859
1863
|
- spec/lib/matchers/match_tokens2.rb
|
1860
1864
|
- spec/lib/matchers/relationship_graph_matchers.rb
|
@@ -2179,8 +2183,9 @@ files:
|
|
2179
2183
|
- spec/unit/network/format_support_spec.rb
|
2180
2184
|
- spec/unit/network/formats_spec.rb
|
2181
2185
|
- spec/unit/network/http/api/indirected_routes_spec.rb
|
2182
|
-
- spec/unit/network/http/api/
|
2183
|
-
- spec/unit/network/http/api/
|
2186
|
+
- spec/unit/network/http/api/master_spec.rb
|
2187
|
+
- spec/unit/network/http/api/server/v3/environments_spec.rb
|
2188
|
+
- spec/unit/network/http/api/server/v3_spec.rb
|
2184
2189
|
- spec/unit/network/http/api_spec.rb
|
2185
2190
|
- spec/unit/network/http/connection_spec.rb
|
2186
2191
|
- spec/unit/network/http/error_spec.rb
|
@@ -2243,6 +2248,7 @@ files:
|
|
2243
2248
|
- spec/unit/pops/evaluator/collections_ops_spec.rb
|
2244
2249
|
- spec/unit/pops/evaluator/comparison_ops_spec.rb
|
2245
2250
|
- spec/unit/pops/evaluator/conditionals_spec.rb
|
2251
|
+
- spec/unit/pops/evaluator/deferred_resolver_spec.rb
|
2246
2252
|
- spec/unit/pops/evaluator/evaluating_parser_spec.rb
|
2247
2253
|
- spec/unit/pops/evaluator/evaluator_rspec_helper.rb
|
2248
2254
|
- spec/unit/pops/evaluator/json_strict_literal_evaluator_spec.rb
|
@@ -2273,10 +2279,8 @@ files:
|
|
2273
2279
|
- spec/unit/pops/parser/evaluating_parser_spec.rb
|
2274
2280
|
- spec/unit/pops/parser/lexer2_spec.rb
|
2275
2281
|
- spec/unit/pops/parser/locator_spec.rb
|
2276
|
-
- spec/unit/pops/parser/parse_application_spec.rb
|
2277
2282
|
- spec/unit/pops/parser/parse_basic_expressions_spec.rb
|
2278
2283
|
- spec/unit/pops/parser/parse_calls_spec.rb
|
2279
|
-
- spec/unit/pops/parser/parse_capabilities_spec.rb
|
2280
2284
|
- spec/unit/pops/parser/parse_conditionals_spec.rb
|
2281
2285
|
- spec/unit/pops/parser/parse_containers_spec.rb
|
2282
2286
|
- spec/unit/pops/parser/parse_functions_spec.rb
|
@@ -2284,7 +2288,6 @@ files:
|
|
2284
2288
|
- spec/unit/pops/parser/parse_lambda_spec.rb
|
2285
2289
|
- spec/unit/pops/parser/parse_plan_spec.rb
|
2286
2290
|
- spec/unit/pops/parser/parse_resource_spec.rb
|
2287
|
-
- spec/unit/pops/parser/parse_site_spec.rb
|
2288
2291
|
- spec/unit/pops/parser/parser_rspec_helper.rb
|
2289
2292
|
- spec/unit/pops/parser/parser_spec.rb
|
2290
2293
|
- spec/unit/pops/parser/parsing_typed_parameters_spec.rb
|
@@ -2626,6 +2629,7 @@ summary: Puppet, an automated configuration management tool
|
|
2626
2629
|
test_files:
|
2627
2630
|
- spec/fixtures/faulty_face/puppet/face/syntax.rb
|
2628
2631
|
- spec/fixtures/hiera.yaml
|
2632
|
+
- spec/fixtures/integration/application/agent/cached_deferred_catalog.json
|
2629
2633
|
- spec/fixtures/integration/application/apply/environments/spec/modules/amod/lib/puppet/provider/applytest/applytest.rb
|
2630
2634
|
- spec/fixtures/integration/application/apply/environments/spec/modules/amod/lib/puppet/type/applytest.rb
|
2631
2635
|
- spec/fixtures/integration/node/environment/sitedir/00_a.pp
|
@@ -3002,6 +3006,7 @@ test_files:
|
|
3002
3006
|
- spec/fixtures/unit/provider/service/smf/svcs_instances.out
|
3003
3007
|
- spec/fixtures/unit/provider/service/smf/svcs_multiple_fmris.out
|
3004
3008
|
- spec/fixtures/unit/provider/service/systemd/list_unit_files_services
|
3009
|
+
- spec/fixtures/unit/provider/service/systemd/list_unit_files_services_vendor_preset
|
3005
3010
|
- spec/fixtures/unit/provider/user/aix/aix_passwd_file.out
|
3006
3011
|
- spec/fixtures/unit/reports/tagmail/tagmail_email.conf
|
3007
3012
|
- spec/fixtures/unit/reports/tagmail/tagmail_failers.conf
|
@@ -3089,10 +3094,8 @@ test_files:
|
|
3089
3094
|
- spec/integration/util/windows/user_spec.rb
|
3090
3095
|
- spec/integration/util_spec.rb
|
3091
3096
|
- spec/lib/matchers/containment_matchers.rb
|
3092
|
-
- spec/lib/matchers/include.rb
|
3093
3097
|
- spec/lib/matchers/include_in_order.rb
|
3094
3098
|
- spec/lib/matchers/include_in_order_spec.rb
|
3095
|
-
- spec/lib/matchers/include_spec.rb
|
3096
3099
|
- spec/lib/matchers/json.rb
|
3097
3100
|
- spec/lib/matchers/match_tokens2.rb
|
3098
3101
|
- spec/lib/matchers/relationship_graph_matchers.rb
|
@@ -3417,8 +3420,9 @@ test_files:
|
|
3417
3420
|
- spec/unit/network/format_support_spec.rb
|
3418
3421
|
- spec/unit/network/formats_spec.rb
|
3419
3422
|
- spec/unit/network/http/api/indirected_routes_spec.rb
|
3420
|
-
- spec/unit/network/http/api/
|
3421
|
-
- spec/unit/network/http/api/
|
3423
|
+
- spec/unit/network/http/api/master_spec.rb
|
3424
|
+
- spec/unit/network/http/api/server/v3/environments_spec.rb
|
3425
|
+
- spec/unit/network/http/api/server/v3_spec.rb
|
3422
3426
|
- spec/unit/network/http/api_spec.rb
|
3423
3427
|
- spec/unit/network/http/connection_spec.rb
|
3424
3428
|
- spec/unit/network/http/error_spec.rb
|
@@ -3481,6 +3485,7 @@ test_files:
|
|
3481
3485
|
- spec/unit/pops/evaluator/collections_ops_spec.rb
|
3482
3486
|
- spec/unit/pops/evaluator/comparison_ops_spec.rb
|
3483
3487
|
- spec/unit/pops/evaluator/conditionals_spec.rb
|
3488
|
+
- spec/unit/pops/evaluator/deferred_resolver_spec.rb
|
3484
3489
|
- spec/unit/pops/evaluator/evaluating_parser_spec.rb
|
3485
3490
|
- spec/unit/pops/evaluator/evaluator_rspec_helper.rb
|
3486
3491
|
- spec/unit/pops/evaluator/json_strict_literal_evaluator_spec.rb
|
@@ -3511,10 +3516,8 @@ test_files:
|
|
3511
3516
|
- spec/unit/pops/parser/evaluating_parser_spec.rb
|
3512
3517
|
- spec/unit/pops/parser/lexer2_spec.rb
|
3513
3518
|
- spec/unit/pops/parser/locator_spec.rb
|
3514
|
-
- spec/unit/pops/parser/parse_application_spec.rb
|
3515
3519
|
- spec/unit/pops/parser/parse_basic_expressions_spec.rb
|
3516
3520
|
- spec/unit/pops/parser/parse_calls_spec.rb
|
3517
|
-
- spec/unit/pops/parser/parse_capabilities_spec.rb
|
3518
3521
|
- spec/unit/pops/parser/parse_conditionals_spec.rb
|
3519
3522
|
- spec/unit/pops/parser/parse_containers_spec.rb
|
3520
3523
|
- spec/unit/pops/parser/parse_functions_spec.rb
|
@@ -3522,7 +3525,6 @@ test_files:
|
|
3522
3525
|
- spec/unit/pops/parser/parse_lambda_spec.rb
|
3523
3526
|
- spec/unit/pops/parser/parse_plan_spec.rb
|
3524
3527
|
- spec/unit/pops/parser/parse_resource_spec.rb
|
3525
|
-
- spec/unit/pops/parser/parse_site_spec.rb
|
3526
3528
|
- spec/unit/pops/parser/parser_rspec_helper.rb
|
3527
3529
|
- spec/unit/pops/parser/parser_spec.rb
|
3528
3530
|
- spec/unit/pops/parser/parsing_typed_parameters_spec.rb
|
@@ -1,27 +0,0 @@
|
|
1
|
-
module Matchers; module Include
|
2
|
-
extend RSpec::Matchers::DSL
|
3
|
-
|
4
|
-
matcher :include_in_any_order do |*matchers|
|
5
|
-
match do |enumerable|
|
6
|
-
@not_matched = []
|
7
|
-
expected_as_array.each do |matcher|
|
8
|
-
if enumerable.empty?
|
9
|
-
break
|
10
|
-
end
|
11
|
-
|
12
|
-
if found = enumerable.find { |elem| matcher.matches?(elem) }
|
13
|
-
enumerable = enumerable.reject { |elem| elem == found }
|
14
|
-
else
|
15
|
-
@not_matched << matcher
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
|
20
|
-
@not_matched.empty? && enumerable.empty?
|
21
|
-
end
|
22
|
-
|
23
|
-
failure_message do |enumerable|
|
24
|
-
"did not match #{@not_matched.collect(&:description).join(', ')} in #{enumerable.inspect}: <#{@not_matched.collect(&:failure_message).join('>, <')}>"
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end; end
|
@@ -1,32 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'matchers/include'
|
3
|
-
|
4
|
-
describe "include matchers" do
|
5
|
-
include Matchers::Include
|
6
|
-
|
7
|
-
context :include_in_any_order do
|
8
|
-
it "matches an empty list" do
|
9
|
-
expect([]).to include_in_any_order()
|
10
|
-
end
|
11
|
-
|
12
|
-
it "matches a list with a single element" do
|
13
|
-
expect([1]).to include_in_any_order(eq(1))
|
14
|
-
end
|
15
|
-
|
16
|
-
it "does not match when an expected element is missing" do
|
17
|
-
expect([1]).to_not include_in_any_order(eq(2))
|
18
|
-
end
|
19
|
-
|
20
|
-
it "matches a list with 2 elements in a different order from the expectation" do
|
21
|
-
expect([1, 2]).to include_in_any_order(eq(2), eq(1))
|
22
|
-
end
|
23
|
-
|
24
|
-
it "does not match when there are more than just the expected elements" do
|
25
|
-
expect([1, 2]).to_not include_in_any_order(eq(1))
|
26
|
-
end
|
27
|
-
|
28
|
-
it "matches multiple, equal elements when there are multiple, equal exepectations" do
|
29
|
-
expect([1, 1]).to include_in_any_order(eq(1), eq(1))
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'puppet/pops'
|
3
|
-
require_relative 'parser_rspec_helper'
|
4
|
-
|
5
|
-
describe "egrammar parsing of 'application'" do
|
6
|
-
include ParserRspecHelper
|
7
|
-
|
8
|
-
it "raises a syntax error" do
|
9
|
-
expect {
|
10
|
-
parse("application foo { }")
|
11
|
-
}.to raise_error(Puppet::ParseErrorWithIssue, /Syntax error at 'application' \(line: 1, column: 1\)/)
|
12
|
-
end
|
13
|
-
end
|
@@ -1,23 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'puppet/pops'
|
3
|
-
require_relative 'parser_rspec_helper'
|
4
|
-
|
5
|
-
describe "egrammar parsing of capability mappings" do
|
6
|
-
include ParserRspecHelper
|
7
|
-
|
8
|
-
context "when parsing 'produces'" do
|
9
|
-
it "raises syntax error" do
|
10
|
-
expect {
|
11
|
-
parse("Foo produces Sql { name => value }")
|
12
|
-
}.to raise_error(Puppet::ParseErrorWithIssue, /Syntax error at 'produces' \(line: 1, column: 5\)/)
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
context "when parsing 'consumes'" do
|
17
|
-
it "raises syntax error" do
|
18
|
-
expect {
|
19
|
-
parse("Foo consumes Sql { name => value }")
|
20
|
-
}.to raise_error(Puppet::ParseErrorWithIssue, /Syntax error at 'consumes' \(line: 1, column: 5\)/)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
@@ -1,43 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'puppet/pops'
|
3
|
-
require_relative 'parser_rspec_helper'
|
4
|
-
|
5
|
-
describe "egrammar parsing of site expression" do
|
6
|
-
include ParserRspecHelper
|
7
|
-
|
8
|
-
context "when parsing 'site'" do
|
9
|
-
it "raises a syntax error" do
|
10
|
-
expect {
|
11
|
-
parse("site { }")
|
12
|
-
}.to raise_error(Puppet::ParseErrorWithIssue, /Syntax error at 'site' \(line: 1, column: 1\)/)
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
context 'When parsing collections containing application management specific keywords' do
|
17
|
-
%w(application site produces consumes).each do |keyword|
|
18
|
-
it "disallows the keyword '#{keyword}' in a list" do
|
19
|
-
expect {
|
20
|
-
parse("$a = [#{keyword}]")
|
21
|
-
}.to raise_error(Puppet::ParseErrorWithIssue, /Syntax error at '#{keyword}' \(line: 1, column: 7\)/)
|
22
|
-
end
|
23
|
-
|
24
|
-
it "disallows the keyword '#{keyword}' as a key in a hash" do
|
25
|
-
expect {
|
26
|
-
parse("$a = {#{keyword}=>'x'}")
|
27
|
-
}.to raise_error(Puppet::ParseErrorWithIssue, /Syntax error at '#{keyword}' \(line: 1, column: 7\)/)
|
28
|
-
end
|
29
|
-
|
30
|
-
it "disallows the keyword '#{keyword}' as a value in a hash" do
|
31
|
-
expect {
|
32
|
-
parse("$a = {'x'=>#{keyword}}")
|
33
|
-
}.to raise_error(Puppet::ParseErrorWithIssue, /Syntax error at '#{keyword}' \(line: 1, column: 12\)/)
|
34
|
-
end
|
35
|
-
|
36
|
-
it "disallows the keyword '#{keyword}' as an attribute name" do
|
37
|
-
expect {
|
38
|
-
parse("foo { 'x': #{keyword} => 'value' } ")
|
39
|
-
}.to raise_error(Puppet::ParseErrorWithIssue, /Syntax error at '#{keyword}' \(line: 1, column: 12\)/)
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|