puppet 6.19.0-x86-mingw32 → 6.22.1-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of puppet might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CODEOWNERS +2 -16
- data/Gemfile +3 -1
- data/Gemfile.lock +50 -39
- data/ext/project_data.yaml +2 -2
- 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/filebucket.rb +2 -2
- data/lib/puppet/application/script.rb +1 -0
- data/lib/puppet/application/ssl.rb +11 -0
- data/lib/puppet/application_support.rb +7 -0
- data/lib/puppet/configurer.rb +28 -18
- data/lib/puppet/defaults.rb +46 -20
- data/lib/puppet/environments.rb +54 -55
- data/lib/puppet/face/config.rb +10 -0
- data/lib/puppet/face/epp.rb +12 -2
- data/lib/puppet/face/facts.rb +158 -0
- data/lib/puppet/ffi/posix.rb +10 -0
- data/lib/puppet/ffi/posix/constants.rb +14 -0
- data/lib/puppet/ffi/posix/functions.rb +24 -0
- data/lib/puppet/file_system/memory_file.rb +8 -1
- data/lib/puppet/file_system/windows.rb +2 -0
- data/lib/puppet/functions/epp.rb +1 -0
- data/lib/puppet/functions/inline_epp.rb +1 -0
- data/lib/puppet/functions/partition.rb +8 -0
- data/lib/puppet/indirector/fact_search.rb +60 -0
- data/lib/puppet/indirector/facts/facter.rb +24 -3
- data/lib/puppet/indirector/facts/json.rb +27 -0
- data/lib/puppet/indirector/facts/yaml.rb +3 -58
- data/lib/puppet/indirector/json.rb +5 -1
- data/lib/puppet/indirector/node/json.rb +8 -0
- data/lib/puppet/indirector/report/json.rb +34 -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 +69 -1
- data/lib/puppet/network/http/factory.rb +4 -0
- data/lib/puppet/pal/pal_impl.rb +70 -17
- data/lib/puppet/parser/ast/leaf.rb +3 -2
- data/lib/puppet/parser/templatewrapper.rb +1 -1
- data/lib/puppet/pops/evaluator/deferred_resolver.rb +5 -3
- data/lib/puppet/pops/evaluator/evaluator_impl.rb +22 -3
- data/lib/puppet/pops/model/ast_transformer.rb +1 -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/service/debian.rb +2 -0
- data/lib/puppet/provider/service/systemd.rb +1 -1
- data/lib/puppet/provider/user/aix.rb +2 -2
- data/lib/puppet/provider/user/useradd.rb +62 -8
- data/lib/puppet/reference/configuration.rb +6 -5
- data/lib/puppet/settings.rb +43 -15
- data/lib/puppet/settings/alias_setting.rb +37 -0
- data/lib/puppet/settings/base_setting.rb +26 -2
- 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/fact_dif.rb +81 -0
- data/lib/puppet/util/monkey_patches.rb +7 -0
- data/lib/puppet/util/posix.rb +54 -5
- data/lib/puppet/util/rubygems.rb +5 -1
- data/lib/puppet/util/windows/adsi.rb +46 -0
- data/lib/puppet/util/windows/api_types.rb +1 -1
- data/lib/puppet/util/windows/principal.rb +9 -2
- data/lib/puppet/util/windows/service.rb +1 -1
- data/lib/puppet/util/windows/sid.rb +4 -2
- data/lib/puppet/version.rb +1 -1
- data/locales/puppet.pot +295 -219
- data/man/man5/puppet.conf.5 +15 -7
- 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 +90 -1
- data/man/man8/puppet-filebucket.8 +3 -3
- 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 +4 -1
- data/man/man8/puppet-parser.8 +1 -1
- data/man/man8/puppet-plugin.8 +1 -1
- data/man/man8/puppet-report.8 +4 -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-status.8 +1 -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/fixtures/unit/provider/user/aix/aix_passwd_file.out +4 -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/environments/setting_hooks_spec.rb +1 -1
- data/spec/integration/http/client_spec.rb +12 -0
- data/spec/integration/indirector/direct_file_server_spec.rb +1 -3
- 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/lib/puppet_spec/settings.rb +6 -1
- 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/config_spec.rb +224 -4
- data/spec/unit/application/facts_spec.rb +482 -3
- data/spec/unit/application/filebucket_spec.rb +0 -2
- data/spec/unit/application/ssl_spec.rb +23 -0
- data/spec/unit/application_spec.rb +51 -9
- data/spec/unit/confine/feature_spec.rb +1 -1
- data/spec/unit/confine_spec.rb +8 -2
- data/spec/unit/defaults_spec.rb +36 -1
- data/spec/unit/environments_spec.rb +221 -68
- data/spec/unit/face/config_spec.rb +27 -32
- data/spec/unit/face/facts_spec.rb +4 -0
- data/spec/unit/face/node_spec.rb +0 -11
- data/spec/unit/file_serving/configuration/parser_spec.rb +0 -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/functions/inline_epp_spec.rb +26 -1
- data/spec/unit/http/service/compiler_spec.rb +49 -0
- data/spec/unit/http/service_spec.rb +1 -1
- data/spec/unit/indirector/face_spec.rb +0 -1
- data/spec/unit/indirector/facts/facter_spec.rb +95 -1
- data/spec/unit/indirector/facts/json_spec.rb +255 -0
- 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/key/file_spec.rb +0 -1
- data/spec/unit/indirector/node/json_spec.rb +33 -0
- data/spec/{integration/indirector/report/yaml.rb → unit/indirector/report/json_spec.rb} +13 -24
- data/spec/unit/indirector/report/yaml_spec.rb +72 -8
- data/spec/unit/indirector_spec.rb +2 -2
- data/spec/unit/module_tool/applications/installer_spec.rb +66 -0
- data/spec/unit/network/authconfig_spec.rb +0 -3
- data/spec/unit/network/formats_spec.rb +41 -0
- data/spec/unit/network/http/api/indirected_routes_spec.rb +0 -9
- data/spec/unit/network/http/factory_spec.rb +19 -0
- data/spec/unit/network/http/handler_spec.rb +0 -5
- data/spec/unit/parser/compiler_spec.rb +3 -19
- data/spec/unit/parser/resource_spec.rb +14 -8
- data/spec/unit/parser/templatewrapper_spec.rb +4 -3
- data/spec/unit/pops/evaluator/deferred_resolver_spec.rb +20 -0
- 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/service/systemd_spec.rb +11 -0
- data/spec/unit/provider/user/aix_spec.rb +5 -0
- data/spec/unit/provider/user/hpux_spec.rb +1 -1
- data/spec/unit/provider/user/pw_spec.rb +2 -0
- data/spec/unit/provider/user/useradd_spec.rb +71 -3
- data/spec/unit/provider_spec.rb +8 -10
- data/spec/unit/puppet_pal_catalog_spec.rb +45 -0
- data/spec/unit/resource/capability_finder_spec.rb +6 -1
- data/spec/unit/resource/catalog_spec.rb +1 -1
- data/spec/unit/resource/type_spec.rb +1 -1
- data/spec/unit/resource_spec.rb +11 -10
- data/spec/unit/settings_spec.rb +543 -228
- data/spec/unit/ssl/base_spec.rb +0 -1
- data/spec/unit/ssl/host_spec.rb +0 -5
- data/spec/unit/ssl/ssl_provider_spec.rb +14 -8
- 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 +363 -15
- data/spec/unit/util/rubygems_spec.rb +2 -2
- data/spec/unit/util/selinux_spec.rb +76 -52
- data/spec/unit/util/storage_spec.rb +3 -1
- 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 +31 -16
- data/spec/integration/application/config_spec.rb +0 -74
- data/spec/lib/matchers/include.rb +0 -27
- data/spec/lib/matchers/include_spec.rb +0 -32
- data/spec/unit/face/catalog_spec.rb +0 -6
- data/spec/unit/face/module_spec.rb +0 -3
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.22.1
|
5
5
|
platform: x86-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-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: facter
|
@@ -186,16 +186,22 @@ dependencies:
|
|
186
186
|
name: win32-dir
|
187
187
|
requirement: !ruby/object:Gem::Requirement
|
188
188
|
requirements:
|
189
|
-
- -
|
189
|
+
- - ">="
|
190
190
|
- !ruby/object:Gem::Version
|
191
191
|
version: 0.4.9
|
192
|
+
- - "<="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: 0.7.2
|
192
195
|
type: :runtime
|
193
196
|
prerelease: false
|
194
197
|
version_requirements: !ruby/object:Gem::Requirement
|
195
198
|
requirements:
|
196
|
-
- -
|
199
|
+
- - ">="
|
197
200
|
- !ruby/object:Gem::Version
|
198
201
|
version: 0.4.9
|
202
|
+
- - "<="
|
203
|
+
- !ruby/object:Gem::Version
|
204
|
+
version: 0.7.2
|
199
205
|
- !ruby/object:Gem::Dependency
|
200
206
|
name: win32-process
|
201
207
|
requirement: !ruby/object:Gem::Requirement
|
@@ -512,6 +518,9 @@ files:
|
|
512
518
|
- lib/puppet/feature/ssh.rb
|
513
519
|
- lib/puppet/feature/telnet.rb
|
514
520
|
- lib/puppet/feature/zlib.rb
|
521
|
+
- lib/puppet/ffi/posix.rb
|
522
|
+
- lib/puppet/ffi/posix/constants.rb
|
523
|
+
- lib/puppet/ffi/posix/functions.rb
|
515
524
|
- lib/puppet/file_bucket.rb
|
516
525
|
- lib/puppet/file_bucket/dipper.rb
|
517
526
|
- lib/puppet/file_bucket/file.rb
|
@@ -686,7 +695,9 @@ files:
|
|
686
695
|
- lib/puppet/indirector/errors.rb
|
687
696
|
- lib/puppet/indirector/exec.rb
|
688
697
|
- lib/puppet/indirector/face.rb
|
698
|
+
- lib/puppet/indirector/fact_search.rb
|
689
699
|
- lib/puppet/indirector/facts/facter.rb
|
700
|
+
- lib/puppet/indirector/facts/json.rb
|
690
701
|
- lib/puppet/indirector/facts/memory.rb
|
691
702
|
- lib/puppet/indirector/facts/network_device.rb
|
692
703
|
- lib/puppet/indirector/facts/rest.rb
|
@@ -717,6 +728,7 @@ files:
|
|
717
728
|
- lib/puppet/indirector/memory.rb
|
718
729
|
- lib/puppet/indirector/msgpack.rb
|
719
730
|
- lib/puppet/indirector/node/exec.rb
|
731
|
+
- lib/puppet/indirector/node/json.rb
|
720
732
|
- lib/puppet/indirector/node/memory.rb
|
721
733
|
- lib/puppet/indirector/node/msgpack.rb
|
722
734
|
- lib/puppet/indirector/node/plain.rb
|
@@ -725,6 +737,7 @@ files:
|
|
725
737
|
- lib/puppet/indirector/node/yaml.rb
|
726
738
|
- lib/puppet/indirector/none.rb
|
727
739
|
- lib/puppet/indirector/plain.rb
|
740
|
+
- lib/puppet/indirector/report/json.rb
|
728
741
|
- lib/puppet/indirector/report/msgpack.rb
|
729
742
|
- lib/puppet/indirector/report/processor.rb
|
730
743
|
- lib/puppet/indirector/report/rest.rb
|
@@ -1229,6 +1242,7 @@ files:
|
|
1229
1242
|
- lib/puppet/scheduler/splay_job.rb
|
1230
1243
|
- lib/puppet/scheduler/timer.rb
|
1231
1244
|
- lib/puppet/settings.rb
|
1245
|
+
- lib/puppet/settings/alias_setting.rb
|
1232
1246
|
- lib/puppet/settings/array_setting.rb
|
1233
1247
|
- lib/puppet/settings/autosign_setting.rb
|
1234
1248
|
- lib/puppet/settings/base_setting.rb
|
@@ -1337,6 +1351,7 @@ files:
|
|
1337
1351
|
- lib/puppet/util/errors.rb
|
1338
1352
|
- lib/puppet/util/execution.rb
|
1339
1353
|
- lib/puppet/util/execution_stub.rb
|
1354
|
+
- lib/puppet/util/fact_dif.rb
|
1340
1355
|
- lib/puppet/util/feature.rb
|
1341
1356
|
- lib/puppet/util/file_watcher.rb
|
1342
1357
|
- lib/puppet/util/fileparsing.rb
|
@@ -1491,6 +1506,7 @@ files:
|
|
1491
1506
|
- man/man8/puppet.8
|
1492
1507
|
- spec/fixtures/faulty_face/puppet/face/syntax.rb
|
1493
1508
|
- spec/fixtures/hiera.yaml
|
1509
|
+
- spec/fixtures/integration/application/agent/cached_deferred_catalog.json
|
1494
1510
|
- spec/fixtures/integration/application/apply/environments/spec/modules/amod/lib/puppet/provider/applytest/applytest.rb
|
1495
1511
|
- spec/fixtures/integration/application/apply/environments/spec/modules/amod/lib/puppet/type/applytest.rb
|
1496
1512
|
- spec/fixtures/integration/node/environment/sitedir/00_a.pp
|
@@ -1867,6 +1883,7 @@ files:
|
|
1867
1883
|
- spec/fixtures/unit/provider/service/smf/svcs_fmri.out
|
1868
1884
|
- spec/fixtures/unit/provider/service/smf/svcs_multiple_fmris.out
|
1869
1885
|
- spec/fixtures/unit/provider/service/systemd/list_unit_files_services
|
1886
|
+
- spec/fixtures/unit/provider/service/systemd/list_unit_files_services_vendor_preset
|
1870
1887
|
- spec/fixtures/unit/provider/user/aix/aix_passwd_file.out
|
1871
1888
|
- spec/fixtures/unit/reports/tagmail/tagmail_email.conf
|
1872
1889
|
- spec/fixtures/unit/reports/tagmail/tagmail_failers.conf
|
@@ -1890,7 +1907,6 @@ files:
|
|
1890
1907
|
- spec/integration/agent/logging_spec.rb
|
1891
1908
|
- spec/integration/application/agent_spec.rb
|
1892
1909
|
- spec/integration/application/apply_spec.rb
|
1893
|
-
- spec/integration/application/config_spec.rb
|
1894
1910
|
- spec/integration/application/doc_spec.rb
|
1895
1911
|
- spec/integration/application/filebucket_spec.rb
|
1896
1912
|
- spec/integration/application/help_spec.rb
|
@@ -1911,7 +1927,6 @@ files:
|
|
1911
1927
|
- spec/integration/indirector/facts/facter_spec.rb
|
1912
1928
|
- spec/integration/indirector/file_content/file_server_spec.rb
|
1913
1929
|
- spec/integration/indirector/file_metadata/file_server_spec.rb
|
1914
|
-
- spec/integration/indirector/report/yaml.rb
|
1915
1930
|
- spec/integration/network/authconfig_spec.rb
|
1916
1931
|
- spec/integration/network/formats_spec.rb
|
1917
1932
|
- spec/integration/network/http/api/indirected_routes_spec.rb
|
@@ -1957,10 +1972,8 @@ files:
|
|
1957
1972
|
- spec/integration/util/windows/user_spec.rb
|
1958
1973
|
- spec/integration/util_spec.rb
|
1959
1974
|
- spec/lib/matchers/containment_matchers.rb
|
1960
|
-
- spec/lib/matchers/include.rb
|
1961
1975
|
- spec/lib/matchers/include_in_order.rb
|
1962
1976
|
- spec/lib/matchers/include_in_order_spec.rb
|
1963
|
-
- spec/lib/matchers/include_spec.rb
|
1964
1977
|
- spec/lib/matchers/json.rb
|
1965
1978
|
- spec/lib/matchers/match_tokens2.rb
|
1966
1979
|
- spec/lib/matchers/relationship_graph_matchers.rb
|
@@ -2057,7 +2070,6 @@ files:
|
|
2057
2070
|
- spec/unit/environments_spec.rb
|
2058
2071
|
- spec/unit/etc_spec.rb
|
2059
2072
|
- spec/unit/external/pson_spec.rb
|
2060
|
-
- spec/unit/face/catalog_spec.rb
|
2061
2073
|
- spec/unit/face/config_spec.rb
|
2062
2074
|
- spec/unit/face/epp_face_spec.rb
|
2063
2075
|
- spec/unit/face/facts_spec.rb
|
@@ -2069,7 +2081,6 @@ files:
|
|
2069
2081
|
- spec/unit/face/module/search_spec.rb
|
2070
2082
|
- spec/unit/face/module/uninstall_spec.rb
|
2071
2083
|
- spec/unit/face/module/upgrade_spec.rb
|
2072
|
-
- spec/unit/face/module_spec.rb
|
2073
2084
|
- spec/unit/face/node_spec.rb
|
2074
2085
|
- spec/unit/face/parser_spec.rb
|
2075
2086
|
- spec/unit/face/plugin_spec.rb
|
@@ -2214,6 +2225,7 @@ files:
|
|
2214
2225
|
- spec/unit/indirector/exec_spec.rb
|
2215
2226
|
- spec/unit/indirector/face_spec.rb
|
2216
2227
|
- spec/unit/indirector/facts/facter_spec.rb
|
2228
|
+
- spec/unit/indirector/facts/json_spec.rb
|
2217
2229
|
- spec/unit/indirector/facts/network_device_spec.rb
|
2218
2230
|
- spec/unit/indirector/facts/rest_spec.rb
|
2219
2231
|
- spec/unit/indirector/facts/store_configs_spec.rb
|
@@ -2238,6 +2250,7 @@ files:
|
|
2238
2250
|
- spec/unit/indirector/memory_spec.rb
|
2239
2251
|
- spec/unit/indirector/msgpack_spec.rb
|
2240
2252
|
- spec/unit/indirector/node/exec_spec.rb
|
2253
|
+
- spec/unit/indirector/node/json_spec.rb
|
2241
2254
|
- spec/unit/indirector/node/memory_spec.rb
|
2242
2255
|
- spec/unit/indirector/node/msgpack_spec.rb
|
2243
2256
|
- spec/unit/indirector/node/plain_spec.rb
|
@@ -2246,6 +2259,7 @@ files:
|
|
2246
2259
|
- spec/unit/indirector/node/yaml_spec.rb
|
2247
2260
|
- spec/unit/indirector/none_spec.rb
|
2248
2261
|
- spec/unit/indirector/plain_spec.rb
|
2262
|
+
- spec/unit/indirector/report/json_spec.rb
|
2249
2263
|
- spec/unit/indirector/report/msgpack_spec.rb
|
2250
2264
|
- spec/unit/indirector/report/processor_spec.rb
|
2251
2265
|
- spec/unit/indirector/report/rest_spec.rb
|
@@ -2370,6 +2384,7 @@ files:
|
|
2370
2384
|
- spec/unit/pops/evaluator/collections_ops_spec.rb
|
2371
2385
|
- spec/unit/pops/evaluator/comparison_ops_spec.rb
|
2372
2386
|
- spec/unit/pops/evaluator/conditionals_spec.rb
|
2387
|
+
- spec/unit/pops/evaluator/deferred_resolver_spec.rb
|
2373
2388
|
- spec/unit/pops/evaluator/evaluating_parser_spec.rb
|
2374
2389
|
- spec/unit/pops/evaluator/evaluator_rspec_helper.rb
|
2375
2390
|
- spec/unit/pops/evaluator/json_strict_literal_evaluator_spec.rb
|
@@ -2760,6 +2775,7 @@ summary: Puppet, an automated configuration management tool
|
|
2760
2775
|
test_files:
|
2761
2776
|
- spec/fixtures/faulty_face/puppet/face/syntax.rb
|
2762
2777
|
- spec/fixtures/hiera.yaml
|
2778
|
+
- spec/fixtures/integration/application/agent/cached_deferred_catalog.json
|
2763
2779
|
- spec/fixtures/integration/application/apply/environments/spec/modules/amod/lib/puppet/provider/applytest/applytest.rb
|
2764
2780
|
- spec/fixtures/integration/application/apply/environments/spec/modules/amod/lib/puppet/type/applytest.rb
|
2765
2781
|
- spec/fixtures/integration/node/environment/sitedir/00_a.pp
|
@@ -3136,6 +3152,7 @@ test_files:
|
|
3136
3152
|
- spec/fixtures/unit/provider/service/smf/svcs_fmri.out
|
3137
3153
|
- spec/fixtures/unit/provider/service/smf/svcs_multiple_fmris.out
|
3138
3154
|
- spec/fixtures/unit/provider/service/systemd/list_unit_files_services
|
3155
|
+
- spec/fixtures/unit/provider/service/systemd/list_unit_files_services_vendor_preset
|
3139
3156
|
- spec/fixtures/unit/provider/user/aix/aix_passwd_file.out
|
3140
3157
|
- spec/fixtures/unit/reports/tagmail/tagmail_email.conf
|
3141
3158
|
- spec/fixtures/unit/reports/tagmail/tagmail_failers.conf
|
@@ -3159,7 +3176,6 @@ test_files:
|
|
3159
3176
|
- spec/integration/agent/logging_spec.rb
|
3160
3177
|
- spec/integration/application/agent_spec.rb
|
3161
3178
|
- spec/integration/application/apply_spec.rb
|
3162
|
-
- spec/integration/application/config_spec.rb
|
3163
3179
|
- spec/integration/application/doc_spec.rb
|
3164
3180
|
- spec/integration/application/filebucket_spec.rb
|
3165
3181
|
- spec/integration/application/help_spec.rb
|
@@ -3180,7 +3196,6 @@ test_files:
|
|
3180
3196
|
- spec/integration/indirector/facts/facter_spec.rb
|
3181
3197
|
- spec/integration/indirector/file_content/file_server_spec.rb
|
3182
3198
|
- spec/integration/indirector/file_metadata/file_server_spec.rb
|
3183
|
-
- spec/integration/indirector/report/yaml.rb
|
3184
3199
|
- spec/integration/network/authconfig_spec.rb
|
3185
3200
|
- spec/integration/network/formats_spec.rb
|
3186
3201
|
- spec/integration/network/http/api/indirected_routes_spec.rb
|
@@ -3226,10 +3241,8 @@ test_files:
|
|
3226
3241
|
- spec/integration/util/windows/user_spec.rb
|
3227
3242
|
- spec/integration/util_spec.rb
|
3228
3243
|
- spec/lib/matchers/containment_matchers.rb
|
3229
|
-
- spec/lib/matchers/include.rb
|
3230
3244
|
- spec/lib/matchers/include_in_order.rb
|
3231
3245
|
- spec/lib/matchers/include_in_order_spec.rb
|
3232
|
-
- spec/lib/matchers/include_spec.rb
|
3233
3246
|
- spec/lib/matchers/json.rb
|
3234
3247
|
- spec/lib/matchers/match_tokens2.rb
|
3235
3248
|
- spec/lib/matchers/relationship_graph_matchers.rb
|
@@ -3326,7 +3339,6 @@ test_files:
|
|
3326
3339
|
- spec/unit/environments_spec.rb
|
3327
3340
|
- spec/unit/etc_spec.rb
|
3328
3341
|
- spec/unit/external/pson_spec.rb
|
3329
|
-
- spec/unit/face/catalog_spec.rb
|
3330
3342
|
- spec/unit/face/config_spec.rb
|
3331
3343
|
- spec/unit/face/epp_face_spec.rb
|
3332
3344
|
- spec/unit/face/facts_spec.rb
|
@@ -3338,7 +3350,6 @@ test_files:
|
|
3338
3350
|
- spec/unit/face/module/search_spec.rb
|
3339
3351
|
- spec/unit/face/module/uninstall_spec.rb
|
3340
3352
|
- spec/unit/face/module/upgrade_spec.rb
|
3341
|
-
- spec/unit/face/module_spec.rb
|
3342
3353
|
- spec/unit/face/node_spec.rb
|
3343
3354
|
- spec/unit/face/parser_spec.rb
|
3344
3355
|
- spec/unit/face/plugin_spec.rb
|
@@ -3483,6 +3494,7 @@ test_files:
|
|
3483
3494
|
- spec/unit/indirector/exec_spec.rb
|
3484
3495
|
- spec/unit/indirector/face_spec.rb
|
3485
3496
|
- spec/unit/indirector/facts/facter_spec.rb
|
3497
|
+
- spec/unit/indirector/facts/json_spec.rb
|
3486
3498
|
- spec/unit/indirector/facts/network_device_spec.rb
|
3487
3499
|
- spec/unit/indirector/facts/rest_spec.rb
|
3488
3500
|
- spec/unit/indirector/facts/store_configs_spec.rb
|
@@ -3507,6 +3519,7 @@ test_files:
|
|
3507
3519
|
- spec/unit/indirector/memory_spec.rb
|
3508
3520
|
- spec/unit/indirector/msgpack_spec.rb
|
3509
3521
|
- spec/unit/indirector/node/exec_spec.rb
|
3522
|
+
- spec/unit/indirector/node/json_spec.rb
|
3510
3523
|
- spec/unit/indirector/node/memory_spec.rb
|
3511
3524
|
- spec/unit/indirector/node/msgpack_spec.rb
|
3512
3525
|
- spec/unit/indirector/node/plain_spec.rb
|
@@ -3515,6 +3528,7 @@ test_files:
|
|
3515
3528
|
- spec/unit/indirector/node/yaml_spec.rb
|
3516
3529
|
- spec/unit/indirector/none_spec.rb
|
3517
3530
|
- spec/unit/indirector/plain_spec.rb
|
3531
|
+
- spec/unit/indirector/report/json_spec.rb
|
3518
3532
|
- spec/unit/indirector/report/msgpack_spec.rb
|
3519
3533
|
- spec/unit/indirector/report/processor_spec.rb
|
3520
3534
|
- spec/unit/indirector/report/rest_spec.rb
|
@@ -3639,6 +3653,7 @@ test_files:
|
|
3639
3653
|
- spec/unit/pops/evaluator/collections_ops_spec.rb
|
3640
3654
|
- spec/unit/pops/evaluator/comparison_ops_spec.rb
|
3641
3655
|
- spec/unit/pops/evaluator/conditionals_spec.rb
|
3656
|
+
- spec/unit/pops/evaluator/deferred_resolver_spec.rb
|
3642
3657
|
- spec/unit/pops/evaluator/evaluating_parser_spec.rb
|
3643
3658
|
- spec/unit/pops/evaluator/evaluator_rspec_helper.rb
|
3644
3659
|
- spec/unit/pops/evaluator/json_strict_literal_evaluator_spec.rb
|
@@ -1,74 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
require 'spec_helper'
|
3
|
-
require 'puppet/application/config'
|
4
|
-
|
5
|
-
#describe "puppet config" do
|
6
|
-
describe Puppet::Face[:config, '0.0.1'] do
|
7
|
-
include PuppetSpec::Files
|
8
|
-
|
9
|
-
# different UTF-8 widths
|
10
|
-
# 1-byte A
|
11
|
-
# 2-byte ۿ - http://www.fileformat.info/info/unicode/char/06ff/index.htm - 0xDB 0xBF / 219 191
|
12
|
-
# 3-byte ᚠ - http://www.fileformat.info/info/unicode/char/16A0/index.htm - 0xE1 0x9A 0xA0 / 225 154 160
|
13
|
-
# 4-byte 𠜎 - http://www.fileformat.info/info/unicode/char/2070E/index.htm - 0xF0 0xA0 0x9C 0x8E / 240 160 156 142
|
14
|
-
MIXED_UTF8 = "A\u06FF\u16A0\u{2070E}" # Aۿᚠ𠜎
|
15
|
-
|
16
|
-
let(:tmp_config) { tmpfile('puppet.conf') }
|
17
|
-
let(:config) { Puppet::Application[:config] }
|
18
|
-
|
19
|
-
def read_utf8(path)
|
20
|
-
File.read(tmp_config, :encoding => 'UTF-8')
|
21
|
-
end
|
22
|
-
|
23
|
-
def write_utf8(path, content)
|
24
|
-
File.write(tmp_config, content, 0, :encoding => 'UTF-8')
|
25
|
-
end
|
26
|
-
|
27
|
-
it "reads a UTF-8 value" do
|
28
|
-
write_utf8(tmp_config, <<~EOF)
|
29
|
-
[main]
|
30
|
-
tags=#{MIXED_UTF8}
|
31
|
-
EOF
|
32
|
-
|
33
|
-
Puppet.initialize_settings(['--config', tmp_config])
|
34
|
-
config.command_line.args = ['print', 'tags' ]
|
35
|
-
|
36
|
-
expect {
|
37
|
-
config.run
|
38
|
-
}.to exit_with(0)
|
39
|
-
.and output("#{MIXED_UTF8}\n").to_stdout
|
40
|
-
end
|
41
|
-
|
42
|
-
it "sets a UTF-8 value" do
|
43
|
-
Puppet.initialize_settings(['--config', tmp_config])
|
44
|
-
config.command_line.args = ['set', 'tags', MIXED_UTF8 ]
|
45
|
-
|
46
|
-
expect {
|
47
|
-
config.run
|
48
|
-
}.to exit_with(0)
|
49
|
-
|
50
|
-
expect(read_utf8(tmp_config)).to eq(<<~EOF)
|
51
|
-
[main]
|
52
|
-
tags = #{MIXED_UTF8}
|
53
|
-
EOF
|
54
|
-
end
|
55
|
-
|
56
|
-
it "deletes a key" do
|
57
|
-
write_utf8(tmp_config, <<~EOF)
|
58
|
-
[main]
|
59
|
-
tags=#{MIXED_UTF8}
|
60
|
-
EOF
|
61
|
-
|
62
|
-
Puppet.initialize_settings(['--config', tmp_config])
|
63
|
-
config.command_line.args = ['delete', 'tags']
|
64
|
-
|
65
|
-
expect {
|
66
|
-
config.run
|
67
|
-
}.to exit_with(0)
|
68
|
-
.and output(/Deleted setting from 'main': 'tags=#{MIXED_UTF8}'/).to_stdout
|
69
|
-
|
70
|
-
expect(read_utf8(tmp_config)).to eq(<<~EOF)
|
71
|
-
[main]
|
72
|
-
EOF
|
73
|
-
end
|
74
|
-
end
|
@@ -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
|