puppet 6.15.0-universal-darwin → 6.19.1-universal-darwin
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of puppet might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CODEOWNERS +2 -7
- data/Gemfile +4 -2
- data/Gemfile.lock +29 -27
- data/README.md +3 -4
- data/Rakefile +4 -12
- data/lib/puppet.rb +32 -8
- data/lib/puppet/agent.rb +18 -4
- data/lib/puppet/agent/locker.rb +0 -7
- data/lib/puppet/application/agent.rb +23 -8
- data/lib/puppet/application/apply.rb +18 -20
- data/lib/puppet/application/device.rb +1 -1
- data/lib/puppet/application/doc.rb +1 -1
- data/lib/puppet/application/lookup.rb +16 -4
- data/lib/puppet/application/plugin.rb +1 -0
- data/lib/puppet/application/ssl.rb +1 -1
- data/lib/puppet/configurer.rb +61 -21
- data/lib/puppet/configurer/downloader.rb +31 -10
- data/lib/puppet/confine.rb +2 -2
- data/lib/puppet/confine/any.rb +1 -1
- data/lib/puppet/context/trusted_information.rb +14 -8
- data/lib/puppet/daemon.rb +13 -27
- data/lib/puppet/defaults.rb +119 -39
- data/lib/puppet/environments.rb +51 -10
- data/lib/puppet/face/catalog.rb +1 -1
- data/lib/puppet/face/config.rb +46 -16
- data/lib/puppet/face/facts.rb +1 -1
- data/lib/puppet/face/help.rb +29 -3
- data/lib/puppet/face/module/search.rb +5 -0
- data/lib/puppet/face/node.rb +3 -3
- data/lib/puppet/face/node/clean.rb +2 -2
- data/lib/puppet/face/plugin.rb +1 -1
- data/lib/puppet/face/status.rb +1 -1
- data/lib/puppet/feature/base.rb +1 -1
- data/lib/puppet/file_bucket/dipper.rb +1 -1
- data/lib/puppet/file_serving/http_metadata.rb +14 -2
- data/lib/puppet/file_serving/metadata.rb +4 -1
- data/lib/puppet/file_serving/mount/locales.rb +1 -2
- data/lib/puppet/file_serving/mount/pluginfacts.rb +1 -2
- data/lib/puppet/file_serving/mount/plugins.rb +1 -2
- data/lib/puppet/file_serving/terminus_selector.rb +7 -8
- data/lib/puppet/file_system/file_impl.rb +4 -4
- data/lib/puppet/file_system/uniquefile.rb +12 -16
- data/lib/puppet/forge.rb +1 -1
- data/lib/puppet/forge/cache.rb +1 -1
- data/lib/puppet/forge/repository.rb +4 -7
- data/lib/puppet/functions/filter.rb +1 -0
- data/lib/puppet/functions/lstrip.rb +4 -4
- data/lib/puppet/functions/new.rb +8 -3
- data/lib/puppet/functions/reverse_each.rb +1 -1
- data/lib/puppet/functions/rstrip.rb +4 -4
- data/lib/puppet/functions/step.rb +1 -1
- data/lib/puppet/functions/strip.rb +4 -4
- data/lib/puppet/gettext/config.rb +5 -5
- data/lib/puppet/gettext/module_translations.rb +4 -4
- data/lib/puppet/http.rb +1 -0
- data/lib/puppet/http/client.rb +28 -12
- data/lib/puppet/http/external_client.rb +0 -6
- data/lib/puppet/http/redirector.rb +9 -7
- data/lib/puppet/http/resolver.rb +5 -8
- data/lib/puppet/http/resolver/server_list.rb +18 -36
- data/lib/puppet/http/resolver/settings.rb +4 -4
- data/lib/puppet/http/resolver/srv.rb +5 -5
- data/lib/puppet/http/response.rb +19 -0
- data/lib/puppet/http/service.rb +3 -1
- data/lib/puppet/http/service/compiler.rb +1 -1
- data/lib/puppet/http/service/file_server.rb +1 -1
- data/lib/puppet/http/service/puppetserver.rb +39 -0
- data/lib/puppet/http/session.rb +5 -4
- data/lib/puppet/indirector.rb +1 -1
- data/lib/puppet/indirector/catalog/compiler.rb +1 -1
- data/lib/puppet/indirector/exec.rb +1 -1
- data/lib/puppet/indirector/facts/facter.rb +3 -3
- data/lib/puppet/indirector/facts/yaml.rb +1 -1
- data/lib/puppet/indirector/file_content/http.rb +5 -0
- data/lib/puppet/indirector/file_content/rest.rb +1 -1
- data/lib/puppet/indirector/file_metadata/http.rb +28 -8
- data/lib/puppet/indirector/file_metadata/rest.rb +2 -2
- data/lib/puppet/indirector/hiera.rb +4 -0
- data/lib/puppet/indirector/indirection.rb +1 -1
- data/lib/puppet/indirector/json.rb +1 -1
- data/lib/puppet/indirector/msgpack.rb +1 -1
- data/lib/puppet/indirector/report/processor.rb +2 -2
- data/lib/puppet/indirector/request.rb +5 -5
- data/lib/puppet/indirector/rest.rb +7 -1
- data/lib/puppet/indirector/yaml.rb +1 -1
- data/lib/puppet/module.rb +1 -2
- data/lib/puppet/network/format_support.rb +2 -2
- data/lib/puppet/network/http/api/indirected_routes.rb +1 -1
- data/lib/puppet/network/http/api/master/v3/environment.rb +3 -0
- data/lib/puppet/network/http/api/master/v3/environments.rb +0 -1
- data/lib/puppet/network/http/compression.rb +7 -0
- data/lib/puppet/network/http/connection.rb +2 -0
- data/lib/puppet/network/http/connection_adapter.rb +184 -0
- data/lib/puppet/network/http/nocache_pool.rb +1 -0
- data/lib/puppet/network/http/route.rb +2 -2
- data/lib/puppet/network/http_pool.rb +2 -2
- data/lib/puppet/node/environment.rb +12 -5
- data/lib/puppet/node/facts.rb +17 -0
- data/lib/puppet/pal/catalog_compiler.rb +5 -0
- data/lib/puppet/pal/pal_impl.rb +31 -4
- data/lib/puppet/parameter.rb +1 -1
- data/lib/puppet/parser/ast/leaf.rb +5 -5
- data/lib/puppet/parser/ast/pops_bridge.rb +0 -4
- data/lib/puppet/parser/compiler.rb +29 -26
- data/lib/puppet/parser/compiler/catalog_validator/env_relationship_validator.rb +2 -0
- data/lib/puppet/parser/compiler/catalog_validator/site_validator.rb +2 -0
- data/lib/puppet/parser/environment_compiler.rb +4 -1
- data/lib/puppet/parser/functions.rb +21 -17
- data/lib/puppet/parser/functions/create_resources.rb +11 -7
- data/lib/puppet/parser/functions/filter.rb +1 -0
- data/lib/puppet/parser/resource.rb +3 -2
- data/lib/puppet/parser/resource/param.rb +6 -0
- data/lib/puppet/parser/type_loader.rb +2 -2
- data/lib/puppet/pops/adaptable.rb +7 -13
- data/lib/puppet/pops/adapters.rb +8 -4
- data/lib/puppet/pops/evaluator/collectors/abstract_collector.rb +1 -3
- data/lib/puppet/pops/evaluator/evaluator_impl.rb +5 -5
- data/lib/puppet/pops/evaluator/runtime3_converter.rb +2 -2
- data/lib/puppet/pops/issues.rb +5 -0
- data/lib/puppet/pops/loader/runtime3_type_loader.rb +4 -2
- data/lib/puppet/pops/loaders.rb +18 -11
- data/lib/puppet/pops/lookup/context.rb +1 -1
- data/lib/puppet/pops/lookup/hiera_config.rb +14 -1
- data/lib/puppet/pops/resource/resource_type_impl.rb +2 -0
- data/lib/puppet/pops/types/iterable.rb +34 -8
- data/lib/puppet/pops/types/p_meta_type.rb +1 -1
- data/lib/puppet/pops/types/p_type_set_type.rb +4 -0
- data/lib/puppet/pops/validation/checker4_0.rb +29 -15
- data/lib/puppet/pops/validation/validator_factory_4_0.rb +1 -0
- data/lib/puppet/provider/file/windows.rb +1 -1
- data/lib/puppet/provider/package/aix.rb +17 -2
- data/lib/puppet/provider/package/apt.rb +38 -1
- data/lib/puppet/provider/package/aptitude.rb +1 -1
- data/lib/puppet/provider/package/dnfmodule.rb +24 -4
- data/lib/puppet/provider/package/dpkg.rb +1 -1
- data/lib/puppet/provider/package/gem.rb +4 -2
- data/lib/puppet/provider/package/pip.rb +60 -37
- data/lib/puppet/provider/package/pip2.rb +17 -0
- data/lib/puppet/provider/package/portage.rb +2 -2
- data/lib/puppet/provider/package/puppet_gem.rb +5 -0
- data/lib/puppet/provider/package/puppetserver_gem.rb +180 -0
- data/lib/puppet/provider/package/yum.rb +9 -1
- data/lib/puppet/provider/package/zypper.rb +62 -1
- data/lib/puppet/provider/service/systemd.rb +21 -4
- data/lib/puppet/provider/service/windows.rb +23 -7
- data/lib/puppet/provider/user/aix.rb +1 -1
- data/lib/puppet/provider/user/user_role_add.rb +1 -1
- data/lib/puppet/provider/user/useradd.rb +16 -5
- data/lib/puppet/provider/user/windows_adsi.rb +18 -1
- data/lib/puppet/reports/http.rb +7 -3
- data/lib/puppet/resource.rb +2 -1
- data/lib/puppet/resource/type.rb +10 -1
- data/lib/puppet/rest/route.rb +2 -2
- data/lib/puppet/runtime.rb +25 -2
- data/lib/puppet/settings.rb +43 -6
- data/lib/puppet/ssl/ssl_context.rb +2 -2
- data/lib/puppet/ssl/ssl_provider.rb +20 -1
- data/lib/puppet/ssl/state_machine.rb +33 -8
- data/lib/puppet/ssl/validator/default_validator.rb +1 -1
- data/lib/puppet/ssl/verifier_adapter.rb +9 -1
- data/lib/puppet/test/test_helper.rb +19 -14
- data/lib/puppet/transaction.rb +2 -2
- data/lib/puppet/transaction/persistence.rb +1 -1
- data/lib/puppet/transaction/report.rb +12 -8
- data/lib/puppet/trusted_external.rb +29 -1
- data/lib/puppet/type.rb +15 -7
- data/lib/puppet/type/file.rb +40 -15
- data/lib/puppet/type/file/checksum.rb +4 -4
- data/lib/puppet/type/file/source.rb +33 -13
- data/lib/puppet/type/filebucket.rb +1 -1
- data/lib/puppet/type/notify.rb +2 -2
- data/lib/puppet/type/package.rb +16 -1
- data/lib/puppet/type/service.rb +59 -8
- data/lib/puppet/type/user.rb +19 -10
- data/lib/puppet/util.rb +41 -3
- data/lib/puppet/util/autoload.rb +10 -25
- data/lib/puppet/util/character_encoding.rb +9 -5
- data/lib/puppet/util/checksums.rb +19 -4
- data/lib/puppet/util/connection.rb +8 -8
- data/lib/puppet/util/execution.rb +2 -2
- data/lib/puppet/util/fileparsing.rb +2 -2
- data/lib/puppet/util/log/destinations.rb +1 -10
- data/lib/puppet/util/package/version/range.rb +4 -1
- data/lib/puppet/util/package/version/range/eq.rb +14 -0
- data/lib/puppet/util/provider_features.rb +1 -1
- data/lib/puppet/util/reference.rb +1 -1
- data/lib/puppet/util/run_mode.rb +5 -1
- data/lib/puppet/util/windows.rb +1 -0
- data/lib/puppet/util/windows/api_types.rb +60 -33
- data/lib/puppet/util/windows/eventlog.rb +1 -6
- data/lib/puppet/util/windows/monkey_patches/dir.rb +40 -0
- data/lib/puppet/util/windows/principal.rb +8 -6
- data/lib/puppet/util/windows/registry.rb +11 -11
- data/lib/puppet/util/windows/security.rb +4 -4
- data/lib/puppet/util/windows/service.rb +43 -26
- data/lib/puppet/util/windows/user.rb +242 -8
- data/lib/puppet/version.rb +1 -1
- data/locales/puppet.pot +541 -427
- data/man/man5/puppet.conf.5 +84 -19
- data/man/man8/puppet-agent.8 +7 -4
- data/man/man8/puppet-apply.8 +1 -1
- data/man/man8/puppet-catalog.8 +1 -1
- data/man/man8/puppet-config.8 +6 -6
- 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 +6 -3
- data/man/man8/puppet-key.8 +1 -1
- data/man/man8/puppet-lookup.8 +2 -2
- data/man/man8/puppet-man.8 +1 -1
- data/man/man8/puppet-module.8 +4 -1
- data/man/man8/puppet-node.8 +4 -4
- 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 +2 -2
- data/man/man8/puppet.8 +2 -2
- data/spec/fixtures/integration/application/apply/environments/spec/modules/amod/lib/puppet/provider/applytest/applytest.rb +2 -0
- data/spec/fixtures/integration/application/apply/environments/spec/modules/amod/lib/puppet/type/applytest.rb +25 -0
- data/spec/fixtures/unit/forge/bacula-releases.json +128 -0
- data/spec/fixtures/unit/forge/bacula.tar.gz +0 -0
- data/spec/fixtures/unit/provider/package/dnfmodule/{dnf-module-list-enabled.txt → dnf-module-list.txt} +6 -0
- data/spec/fixtures/unit/provider/package/puppetserver_gem/gem-list-local-packages +30 -0
- data/spec/fixtures/unit/provider/package/zypper/zypper-search-uninstalled.out +13 -0
- data/spec/integration/application/agent_spec.rb +202 -52
- data/spec/integration/application/apply_spec.rb +149 -149
- data/spec/integration/application/config_spec.rb +74 -0
- data/spec/integration/application/doc_spec.rb +16 -6
- data/spec/integration/application/filebucket_spec.rb +70 -21
- data/spec/integration/application/help_spec.rb +42 -0
- data/spec/integration/application/lookup_spec.rb +13 -0
- data/spec/integration/application/module_spec.rb +68 -0
- data/spec/integration/application/plugin_spec.rb +75 -2
- data/spec/integration/configurer_spec.rb +14 -0
- data/spec/integration/data_binding_spec.rb +82 -0
- data/spec/integration/defaults_spec.rb +27 -3
- data/spec/integration/directory_environments_spec.rb +17 -17
- data/spec/integration/http/client_spec.rb +6 -1
- data/spec/integration/indirector/facts/facter_spec.rb +8 -6
- data/spec/integration/network/http_pool_spec.rb +73 -0
- data/spec/integration/node/environment_spec.rb +1 -1
- data/spec/integration/parser/compiler_spec.rb +11 -0
- data/spec/integration/type/file_spec.rb +1 -1
- data/spec/integration/util/execution_spec.rb +22 -0
- data/spec/integration/util/windows/adsi_spec.rb +7 -2
- data/spec/integration/util/windows/monkey_patches/dir_spec.rb +11 -0
- data/spec/integration/util/windows/process_spec.rb +26 -32
- data/spec/integration/util/windows/registry_spec.rb +7 -7
- data/spec/integration/util/windows/user_spec.rb +47 -5
- data/spec/integration/util_spec.rb +7 -33
- data/spec/lib/puppet_spec/https.rb +6 -0
- data/spec/lib/puppet_spec/matchers.rb +0 -80
- data/spec/lib/puppet_spec/puppetserver.rb +8 -0
- data/spec/shared_contexts/types_setup.rb +2 -0
- data/spec/unit/agent_spec.rb +47 -1
- data/spec/unit/application/agent_spec.rb +7 -8
- data/spec/unit/application/doc_spec.rb +2 -2
- data/spec/unit/application/face_base_spec.rb +6 -4
- data/spec/unit/application/facts_spec.rb +41 -10
- data/spec/unit/application/man_spec.rb +52 -0
- data/spec/unit/application/resource_spec.rb +3 -1
- data/spec/unit/application/ssl_spec.rb +15 -2
- data/spec/unit/application_spec.rb +9 -4
- data/spec/unit/configurer/downloader_spec.rb +10 -0
- data/spec/unit/configurer/fact_handler_spec.rb +4 -4
- data/spec/unit/configurer_spec.rb +86 -37
- data/spec/unit/confine_spec.rb +2 -1
- data/spec/unit/context/trusted_information_spec.rb +25 -2
- data/spec/unit/daemon_spec.rb +5 -64
- data/spec/unit/environments_spec.rb +99 -32
- data/spec/unit/face/config_spec.rb +59 -1
- data/spec/unit/face/module/search_spec.rb +17 -0
- data/spec/unit/face/node_spec.rb +2 -2
- data/spec/unit/file_serving/http_metadata_spec.rb +37 -14
- data/spec/unit/file_serving/mount/locales_spec.rb +2 -2
- data/spec/unit/file_serving/mount/pluginfacts_spec.rb +2 -2
- data/spec/unit/file_serving/mount/plugins_spec.rb +2 -2
- data/spec/unit/file_serving/terminus_selector_spec.rb +45 -26
- data/spec/unit/file_system/uniquefile_spec.rb +29 -0
- data/spec/unit/file_system_spec.rb +1 -2
- data/spec/unit/http/client_spec.rb +74 -19
- data/spec/unit/http/external_client_spec.rb +9 -9
- data/spec/unit/http/resolver_spec.rb +24 -5
- data/spec/unit/http/response_spec.rb +6 -0
- data/spec/unit/http/service/ca_spec.rb +2 -3
- data/spec/unit/http/service/compiler_spec.rb +2 -3
- data/spec/unit/http/service/file_server_spec.rb +2 -3
- data/spec/unit/http/service/puppetserver_spec.rb +82 -0
- data/spec/unit/http/service/report_spec.rb +2 -3
- data/spec/unit/http/service_spec.rb +0 -1
- data/spec/unit/http/session_spec.rb +8 -21
- data/spec/unit/indirector/catalog/compiler_spec.rb +1 -0
- data/spec/unit/indirector/catalog/json_spec.rb +1 -1
- data/spec/unit/indirector/catalog/rest_spec.rb +1 -1
- data/spec/unit/indirector/facts/rest_spec.rb +1 -1
- data/spec/unit/indirector/file_metadata/http_spec.rb +194 -0
- data/spec/unit/indirector/file_metadata/rest_spec.rb +15 -14
- data/spec/unit/indirector/json_spec.rb +8 -8
- data/spec/unit/indirector/msgpack_spec.rb +8 -8
- data/spec/unit/indirector/node/rest_spec.rb +1 -1
- data/spec/unit/indirector/request_spec.rb +5 -5
- data/spec/unit/indirector/rest_spec.rb +14 -1
- data/spec/unit/indirector/status/rest_spec.rb +1 -1
- data/spec/unit/indirector/yaml_spec.rb +7 -7
- data/spec/unit/interface_spec.rb +3 -3
- data/spec/unit/module_tool/tar/mini_spec.rb +20 -0
- data/spec/unit/network/format_support_spec.rb +3 -2
- data/spec/unit/network/http/api/indirected_routes_spec.rb +2 -1
- data/spec/unit/network/http/api/master/v3/environments_spec.rb +12 -23
- data/spec/unit/network/http/connection_spec.rb +552 -190
- data/spec/unit/network/http/nocache_pool_spec.rb +22 -0
- data/spec/unit/network/http_pool_spec.rb +63 -57
- data/spec/unit/network/http_spec.rb +1 -1
- data/spec/unit/node/environment_spec.rb +18 -1
- data/spec/unit/parser/ast/block_expression_spec.rb +1 -1
- data/spec/unit/parser/environment_compiler_spec.rb +7 -0
- data/spec/unit/parser/scope_spec.rb +1 -1
- data/spec/unit/pops/evaluator/evaluating_parser_spec.rb +15 -1
- data/spec/unit/pops/loaders/loaders_spec.rb +71 -1
- data/spec/unit/pops/lookup/lookup_spec.rb +25 -0
- data/spec/unit/pops/types/type_calculator_spec.rb +1 -11
- data/spec/unit/provider/exec_spec.rb +4 -3
- data/spec/unit/provider/package/aix_spec.rb +29 -0
- data/spec/unit/provider/package/apt_spec.rb +77 -0
- data/spec/unit/provider/package/aptitude_spec.rb +1 -0
- data/spec/unit/provider/package/dnfmodule_spec.rb +25 -5
- data/spec/unit/provider/package/dpkg_spec.rb +22 -7
- data/spec/unit/provider/package/openbsd_spec.rb +2 -0
- data/spec/unit/provider/package/pip2_spec.rb +36 -0
- data/spec/unit/provider/package/pip_spec.rb +42 -16
- data/spec/unit/provider/package/portage_spec.rb +5 -0
- data/spec/unit/provider/package/puppet_gem_spec.rb +4 -1
- data/spec/unit/provider/package/puppetserver_gem_spec.rb +137 -0
- data/spec/unit/provider/package/yum_spec.rb +47 -8
- data/spec/unit/provider/package/zypper_spec.rb +98 -0
- data/spec/unit/provider/service/base_spec.rb +2 -4
- data/spec/unit/provider/service/bsd_spec.rb +5 -1
- data/spec/unit/provider/service/daemontools_spec.rb +1 -1
- data/spec/unit/provider/service/debian_spec.rb +3 -5
- data/spec/unit/provider/service/freebsd_spec.rb +1 -1
- data/spec/unit/provider/service/gentoo_spec.rb +4 -5
- data/spec/unit/provider/service/init_spec.rb +46 -5
- data/spec/unit/provider/service/launchd_spec.rb +5 -6
- data/spec/unit/provider/service/openbsd_spec.rb +9 -0
- data/spec/unit/provider/service/openrc_spec.rb +4 -5
- data/spec/unit/provider/service/openwrt_spec.rb +2 -1
- data/spec/unit/provider/service/redhat_spec.rb +10 -1
- data/spec/unit/provider/service/runit_spec.rb +2 -1
- data/spec/unit/provider/service/smf_spec.rb +1 -1
- data/spec/unit/provider/service/src_spec.rb +3 -5
- data/spec/unit/provider/service/systemd_spec.rb +87 -19
- data/spec/unit/provider/service/upstart_spec.rb +4 -5
- data/spec/unit/provider/service/windows_spec.rb +50 -14
- data/spec/unit/provider/user/openbsd_spec.rb +1 -0
- data/spec/unit/provider/user/useradd_spec.rb +30 -16
- data/spec/unit/provider/user/windows_adsi_spec.rb +82 -0
- data/spec/unit/puppet_pal_2pec.rb +40 -0
- data/spec/unit/puppet_pal_catalog_spec.rb +43 -0
- data/spec/unit/puppet_spec.rb +33 -0
- data/spec/unit/reports/http_spec.rb +1 -1
- data/spec/unit/reports/store_spec.rb +17 -13
- data/spec/unit/resource_spec.rb +3 -3
- data/spec/unit/rest/route_spec.rb +4 -4
- data/spec/unit/settings_spec.rb +182 -22
- data/spec/unit/ssl/ssl_provider_spec.rb +69 -43
- data/spec/unit/ssl/state_machine_spec.rb +52 -8
- data/spec/unit/test/test_helper_spec.rb +17 -0
- data/spec/unit/transaction/persistence_spec.rb +15 -0
- data/spec/unit/transaction/report_spec.rb +3 -1
- data/spec/unit/type/file/source_spec.rb +4 -4
- data/spec/unit/type/file_spec.rb +122 -96
- data/spec/unit/type/filebucket_spec.rb +1 -1
- data/spec/unit/type/service_spec.rb +218 -8
- data/spec/unit/type/user_spec.rb +32 -3
- data/spec/unit/type_spec.rb +50 -0
- data/spec/unit/util/autoload_spec.rb +2 -1
- data/spec/unit/util/character_encoding_spec.rb +4 -4
- data/spec/unit/util/checksums_spec.rb +16 -0
- data/spec/unit/util/command_line_spec.rb +11 -6
- data/spec/unit/util/log/destinations_spec.rb +1 -29
- data/spec/unit/util/package/version/range_spec.rb +22 -1
- data/spec/unit/util/run_mode_spec.rb +6 -6
- data/spec/unit/util/windows/api_types_spec.rb +104 -40
- data/spec/unit/util/windows/service_spec.rb +4 -4
- data/spec/unit/util_spec.rb +3 -3
- data/spec/unit/x509/cert_provider_spec.rb +1 -1
- data/tasks/manpages.rake +5 -35
- metadata +43 -49
- data/spec/integration/faces/config_spec.rb +0 -91
- data/spec/integration/faces/documentation_spec.rb +0 -57
- data/spec/integration/file_bucket/file_spec.rb +0 -50
- data/spec/integration/file_serving/content_spec.rb +0 -7
- data/spec/integration/file_serving/fileset_spec.rb +0 -12
- data/spec/integration/file_serving/metadata_spec.rb +0 -8
- data/spec/integration/file_serving/terminus_helper_spec.rb +0 -20
- data/spec/integration/file_system/uniquefile_spec.rb +0 -26
- data/spec/integration/module_tool/forge_spec.rb +0 -51
- data/spec/integration/module_tool/tar/mini_spec.rb +0 -28
- data/spec/integration/provider/service/init_spec.rb +0 -48
- data/spec/integration/provider/service/systemd_spec.rb +0 -25
- data/spec/integration/provider/service/windows_spec.rb +0 -50
- data/spec/integration/reference/providers_spec.rb +0 -21
- data/spec/integration/reports_spec.rb +0 -13
- data/spec/integration/ssl/certificate_request_spec.rb +0 -44
- data/spec/integration/ssl/host_spec.rb +0 -72
- data/spec/integration/ssl/key_spec.rb +0 -99
- data/spec/integration/test/test_helper_spec.rb +0 -31
- data/spec/shared_behaviours/file_serving_model.rb +0 -51
- data/spec/unit/face/man_spec.rb +0 -25
- data/spec/unit/man_spec.rb +0 -31
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.19.1
|
5
5
|
platform: universal-darwin
|
6
6
|
authors:
|
7
7
|
- Puppet Labs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: facter
|
@@ -587,6 +587,7 @@ files:
|
|
587
587
|
- lib/puppet/http/service/ca.rb
|
588
588
|
- lib/puppet/http/service/compiler.rb
|
589
589
|
- lib/puppet/http/service/file_server.rb
|
590
|
+
- lib/puppet/http/service/puppetserver.rb
|
590
591
|
- lib/puppet/http/service/report.rb
|
591
592
|
- lib/puppet/http/session.rb
|
592
593
|
- lib/puppet/indirector.rb
|
@@ -730,6 +731,7 @@ files:
|
|
730
731
|
- lib/puppet/network/http/base_pool.rb
|
731
732
|
- lib/puppet/network/http/compression.rb
|
732
733
|
- lib/puppet/network/http/connection.rb
|
734
|
+
- lib/puppet/network/http/connection_adapter.rb
|
733
735
|
- lib/puppet/network/http/error.rb
|
734
736
|
- lib/puppet/network/http/factory.rb
|
735
737
|
- lib/puppet/network/http/handler.rb
|
@@ -1066,6 +1068,7 @@ files:
|
|
1066
1068
|
- lib/puppet/provider/package/opkg.rb
|
1067
1069
|
- lib/puppet/provider/package/pacman.rb
|
1068
1070
|
- lib/puppet/provider/package/pip.rb
|
1071
|
+
- lib/puppet/provider/package/pip2.rb
|
1069
1072
|
- lib/puppet/provider/package/pip3.rb
|
1070
1073
|
- lib/puppet/provider/package/pkg.rb
|
1071
1074
|
- lib/puppet/provider/package/pkgdmg.rb
|
@@ -1076,6 +1079,7 @@ files:
|
|
1076
1079
|
- lib/puppet/provider/package/ports.rb
|
1077
1080
|
- lib/puppet/provider/package/portupgrade.rb
|
1078
1081
|
- lib/puppet/provider/package/puppet_gem.rb
|
1082
|
+
- lib/puppet/provider/package/puppetserver_gem.rb
|
1079
1083
|
- lib/puppet/provider/package/rpm.rb
|
1080
1084
|
- lib/puppet/provider/package/rug.rb
|
1081
1085
|
- lib/puppet/provider/package/sun.rb
|
@@ -1292,6 +1296,7 @@ files:
|
|
1292
1296
|
- lib/puppet/util/package/version/gem.rb
|
1293
1297
|
- lib/puppet/util/package/version/pip.rb
|
1294
1298
|
- lib/puppet/util/package/version/range.rb
|
1299
|
+
- lib/puppet/util/package/version/range/eq.rb
|
1295
1300
|
- lib/puppet/util/package/version/range/gt.rb
|
1296
1301
|
- lib/puppet/util/package/version/range/gt_eq.rb
|
1297
1302
|
- lib/puppet/util/package/version/range/lt.rb
|
@@ -1350,6 +1355,7 @@ files:
|
|
1350
1355
|
- lib/puppet/util/windows/error.rb
|
1351
1356
|
- lib/puppet/util/windows/eventlog.rb
|
1352
1357
|
- lib/puppet/util/windows/file.rb
|
1358
|
+
- lib/puppet/util/windows/monkey_patches/dir.rb
|
1353
1359
|
- lib/puppet/util/windows/principal.rb
|
1354
1360
|
- lib/puppet/util/windows/process.rb
|
1355
1361
|
- lib/puppet/util/windows/registry.rb
|
@@ -1409,6 +1415,8 @@ files:
|
|
1409
1415
|
- man/man8/puppet.8
|
1410
1416
|
- spec/fixtures/faulty_face/puppet/face/syntax.rb
|
1411
1417
|
- spec/fixtures/hiera.yaml
|
1418
|
+
- spec/fixtures/integration/application/apply/environments/spec/modules/amod/lib/puppet/provider/applytest/applytest.rb
|
1419
|
+
- spec/fixtures/integration/application/apply/environments/spec/modules/amod/lib/puppet/type/applytest.rb
|
1412
1420
|
- spec/fixtures/integration/node/environment/sitedir/00_a.pp
|
1413
1421
|
- spec/fixtures/integration/node/environment/sitedir/01_b.pp
|
1414
1422
|
- spec/fixtures/integration/node/environment/sitedir/03_empty.pp
|
@@ -1541,7 +1549,9 @@ files:
|
|
1541
1549
|
- spec/fixtures/unit/data_providers/environments/production/modules/xyz/functions/data.pp
|
1542
1550
|
- spec/fixtures/unit/data_providers/environments/production/modules/xyz/manifests/init.pp
|
1543
1551
|
- spec/fixtures/unit/data_providers/environments/production/modules/xyz/metadata.json
|
1552
|
+
- spec/fixtures/unit/forge/bacula-releases.json
|
1544
1553
|
- spec/fixtures/unit/forge/bacula.json
|
1554
|
+
- spec/fixtures/unit/forge/bacula.tar.gz
|
1545
1555
|
- spec/fixtures/unit/functions/hiera/hiera/backend/hieraspec_backend.rb
|
1546
1556
|
- spec/fixtures/unit/functions/lookup/data/common.yaml
|
1547
1557
|
- spec/fixtures/unit/functions/lookup/hiera/backend/custom_backend.rb
|
@@ -1737,7 +1747,7 @@ files:
|
|
1737
1747
|
- spec/fixtures/unit/provider/cron/crontab/vixie_header.txt
|
1738
1748
|
- spec/fixtures/unit/provider/cron/parsed/managed
|
1739
1749
|
- spec/fixtures/unit/provider/cron/parsed/simple
|
1740
|
-
- spec/fixtures/unit/provider/package/dnfmodule/dnf-module-list
|
1750
|
+
- spec/fixtures/unit/provider/package/dnfmodule/dnf-module-list.txt
|
1741
1751
|
- spec/fixtures/unit/provider/package/gem/gem-list-single-package
|
1742
1752
|
- spec/fixtures/unit/provider/package/gem/line-with-1.8.5-warning
|
1743
1753
|
- spec/fixtures/unit/provider/package/openbsd/pkginfo.detail
|
@@ -1757,6 +1767,7 @@ files:
|
|
1757
1767
|
- spec/fixtures/unit/provider/package/pkgng/pkg.query
|
1758
1768
|
- spec/fixtures/unit/provider/package/pkgng/pkg.query.zsh
|
1759
1769
|
- spec/fixtures/unit/provider/package/pkgng/pkg.version
|
1770
|
+
- spec/fixtures/unit/provider/package/puppetserver_gem/gem-list-local-packages
|
1760
1771
|
- spec/fixtures/unit/provider/package/sun/dummy.server
|
1761
1772
|
- spec/fixtures/unit/provider/package/sun/simple
|
1762
1773
|
- spec/fixtures/unit/provider/package/yum/yum-check-update-broken-notices.txt
|
@@ -1768,6 +1779,7 @@ files:
|
|
1768
1779
|
- spec/fixtures/unit/provider/package/yum/yum-check-update-subscription-manager.txt
|
1769
1780
|
- spec/fixtures/unit/provider/package/zypper/zypper-list-updates-SLES11sp1.out
|
1770
1781
|
- spec/fixtures/unit/provider/package/zypper/zypper-list-updates-empty.out
|
1782
|
+
- spec/fixtures/unit/provider/package/zypper/zypper-search-uninstalled.out
|
1771
1783
|
- spec/fixtures/unit/provider/parsedfile/aliases.txt
|
1772
1784
|
- spec/fixtures/unit/provider/parsedfile/simple.txt
|
1773
1785
|
- spec/fixtures/unit/provider/service/base/ps_ef.mixed_encoding
|
@@ -1802,9 +1814,12 @@ files:
|
|
1802
1814
|
- spec/integration/agent/logging_spec.rb
|
1803
1815
|
- spec/integration/application/agent_spec.rb
|
1804
1816
|
- spec/integration/application/apply_spec.rb
|
1817
|
+
- spec/integration/application/config_spec.rb
|
1805
1818
|
- spec/integration/application/doc_spec.rb
|
1806
1819
|
- spec/integration/application/filebucket_spec.rb
|
1820
|
+
- spec/integration/application/help_spec.rb
|
1807
1821
|
- spec/integration/application/lookup_spec.rb
|
1822
|
+
- spec/integration/application/module_spec.rb
|
1808
1823
|
- spec/integration/application/plugin_spec.rb
|
1809
1824
|
- spec/integration/configurer_spec.rb
|
1810
1825
|
- spec/integration/data_binding_spec.rb
|
@@ -1814,14 +1829,6 @@ files:
|
|
1814
1829
|
- spec/integration/environments/setting_hooks_spec.rb
|
1815
1830
|
- spec/integration/environments/settings_interpolation_spec.rb
|
1816
1831
|
- spec/integration/environments/settings_spec.rb
|
1817
|
-
- spec/integration/faces/config_spec.rb
|
1818
|
-
- spec/integration/faces/documentation_spec.rb
|
1819
|
-
- spec/integration/file_bucket/file_spec.rb
|
1820
|
-
- spec/integration/file_serving/content_spec.rb
|
1821
|
-
- spec/integration/file_serving/fileset_spec.rb
|
1822
|
-
- spec/integration/file_serving/metadata_spec.rb
|
1823
|
-
- spec/integration/file_serving/terminus_helper_spec.rb
|
1824
|
-
- spec/integration/file_system/uniquefile_spec.rb
|
1825
1832
|
- spec/integration/http/client_spec.rb
|
1826
1833
|
- spec/integration/indirector/catalog/compiler_spec.rb
|
1827
1834
|
- spec/integration/indirector/direct_file_server_spec.rb
|
@@ -1829,8 +1836,6 @@ files:
|
|
1829
1836
|
- spec/integration/indirector/file_content/file_server_spec.rb
|
1830
1837
|
- spec/integration/indirector/file_metadata/file_server_spec.rb
|
1831
1838
|
- spec/integration/indirector/report/yaml.rb
|
1832
|
-
- spec/integration/module_tool/forge_spec.rb
|
1833
|
-
- spec/integration/module_tool/tar/mini_spec.rb
|
1834
1839
|
- spec/integration/network/authconfig_spec.rb
|
1835
1840
|
- spec/integration/network/formats_spec.rb
|
1836
1841
|
- spec/integration/network/http/api/indirected_routes_spec.rb
|
@@ -1853,17 +1858,8 @@ files:
|
|
1853
1858
|
- spec/integration/parser/script_compiler_spec.rb
|
1854
1859
|
- spec/integration/parser/undef_param_spec.rb
|
1855
1860
|
- spec/integration/provider/file/windows_spec.rb
|
1856
|
-
- spec/integration/provider/service/init_spec.rb
|
1857
|
-
- spec/integration/provider/service/systemd_spec.rb
|
1858
|
-
- spec/integration/provider/service/windows_spec.rb
|
1859
|
-
- spec/integration/reference/providers_spec.rb
|
1860
|
-
- spec/integration/reports_spec.rb
|
1861
1861
|
- spec/integration/resource/catalog_spec.rb
|
1862
1862
|
- spec/integration/resource/type_collection_spec.rb
|
1863
|
-
- spec/integration/ssl/certificate_request_spec.rb
|
1864
|
-
- spec/integration/ssl/host_spec.rb
|
1865
|
-
- spec/integration/ssl/key_spec.rb
|
1866
|
-
- spec/integration/test/test_helper_spec.rb
|
1867
1863
|
- spec/integration/transaction/report_spec.rb
|
1868
1864
|
- spec/integration/transaction_spec.rb
|
1869
1865
|
- spec/integration/type/exec_spec.rb
|
@@ -1877,6 +1873,7 @@ files:
|
|
1877
1873
|
- spec/integration/util/rdoc/parser_spec.rb
|
1878
1874
|
- spec/integration/util/settings_spec.rb
|
1879
1875
|
- spec/integration/util/windows/adsi_spec.rb
|
1876
|
+
- spec/integration/util/windows/monkey_patches/dir_spec.rb
|
1880
1877
|
- spec/integration/util/windows/principal_spec.rb
|
1881
1878
|
- spec/integration/util/windows/process_spec.rb
|
1882
1879
|
- spec/integration/util/windows/registry_spec.rb
|
@@ -1928,7 +1925,6 @@ files:
|
|
1928
1925
|
- spec/shared_behaviours/documentation_on_faces.rb
|
1929
1926
|
- spec/shared_behaviours/file_server_terminus.rb
|
1930
1927
|
- spec/shared_behaviours/file_serving.rb
|
1931
|
-
- spec/shared_behaviours/file_serving_model.rb
|
1932
1928
|
- spec/shared_behaviours/hiera_indirections.rb
|
1933
1929
|
- spec/shared_behaviours/iterative_functions.rb
|
1934
1930
|
- spec/shared_behaviours/memory_terminus.rb
|
@@ -1955,6 +1951,7 @@ files:
|
|
1955
1951
|
- spec/unit/application/filebucket_spec.rb
|
1956
1952
|
- spec/unit/application/indirection_base_spec.rb
|
1957
1953
|
- spec/unit/application/lookup_spec.rb
|
1954
|
+
- spec/unit/application/man_spec.rb
|
1958
1955
|
- spec/unit/application/resource_spec.rb
|
1959
1956
|
- spec/unit/application/ssl_spec.rb
|
1960
1957
|
- spec/unit/application_spec.rb
|
@@ -1991,7 +1988,6 @@ files:
|
|
1991
1988
|
- spec/unit/face/generate_spec.rb
|
1992
1989
|
- spec/unit/face/help_spec.rb
|
1993
1990
|
- spec/unit/face/key_spec.rb
|
1994
|
-
- spec/unit/face/man_spec.rb
|
1995
1991
|
- spec/unit/face/module/install_spec.rb
|
1996
1992
|
- spec/unit/face/module/list_spec.rb
|
1997
1993
|
- spec/unit/face/module/search_spec.rb
|
@@ -2121,6 +2117,7 @@ files:
|
|
2121
2117
|
- spec/unit/http/service/ca_spec.rb
|
2122
2118
|
- spec/unit/http/service/compiler_spec.rb
|
2123
2119
|
- spec/unit/http/service/file_server_spec.rb
|
2120
|
+
- spec/unit/http/service/puppetserver_spec.rb
|
2124
2121
|
- spec/unit/http/service/report_spec.rb
|
2125
2122
|
- spec/unit/http/service_spec.rb
|
2126
2123
|
- spec/unit/http/session_spec.rb
|
@@ -2154,6 +2151,7 @@ files:
|
|
2154
2151
|
- spec/unit/indirector/file_content/selector_spec.rb
|
2155
2152
|
- spec/unit/indirector/file_metadata/file_server_spec.rb
|
2156
2153
|
- spec/unit/indirector/file_metadata/file_spec.rb
|
2154
|
+
- spec/unit/indirector/file_metadata/http_spec.rb
|
2157
2155
|
- spec/unit/indirector/file_metadata/rest_spec.rb
|
2158
2156
|
- spec/unit/indirector/file_metadata/selector_spec.rb
|
2159
2157
|
- spec/unit/indirector/file_server_spec.rb
|
@@ -2196,7 +2194,6 @@ files:
|
|
2196
2194
|
- spec/unit/interface/option_builder_spec.rb
|
2197
2195
|
- spec/unit/interface/option_spec.rb
|
2198
2196
|
- spec/unit/interface_spec.rb
|
2199
|
-
- spec/unit/man_spec.rb
|
2200
2197
|
- spec/unit/module_spec.rb
|
2201
2198
|
- spec/unit/module_tool/application_spec.rb
|
2202
2199
|
- spec/unit/module_tool/applications/checksummer_spec.rb
|
@@ -2423,6 +2420,7 @@ files:
|
|
2423
2420
|
- spec/unit/provider/package/openbsd_spec.rb
|
2424
2421
|
- spec/unit/provider/package/opkg_spec.rb
|
2425
2422
|
- spec/unit/provider/package/pacman_spec.rb
|
2423
|
+
- spec/unit/provider/package/pip2_spec.rb
|
2426
2424
|
- spec/unit/provider/package/pip3_spec.rb
|
2427
2425
|
- spec/unit/provider/package/pip_spec.rb
|
2428
2426
|
- spec/unit/provider/package/pkg_spec.rb
|
@@ -2432,6 +2430,7 @@ files:
|
|
2432
2430
|
- spec/unit/provider/package/pkgutil_spec.rb
|
2433
2431
|
- spec/unit/provider/package/portage_spec.rb
|
2434
2432
|
- spec/unit/provider/package/puppet_gem_spec.rb
|
2433
|
+
- spec/unit/provider/package/puppetserver_gem_spec.rb
|
2435
2434
|
- spec/unit/provider/package/rpm_spec.rb
|
2436
2435
|
- spec/unit/provider/package/sun_spec.rb
|
2437
2436
|
- spec/unit/provider/package/tdnf_spec.rb
|
@@ -2524,6 +2523,7 @@ files:
|
|
2524
2523
|
- spec/unit/ssl/verifier_spec.rb
|
2525
2524
|
- spec/unit/status_spec.rb
|
2526
2525
|
- spec/unit/task_spec.rb
|
2526
|
+
- spec/unit/test/test_helper_spec.rb
|
2527
2527
|
- spec/unit/transaction/additional_resource_generator_spec.rb
|
2528
2528
|
- spec/unit/transaction/event_manager_spec.rb
|
2529
2529
|
- spec/unit/transaction/event_spec.rb
|
@@ -2677,13 +2677,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
2677
2677
|
- !ruby/object:Gem::Version
|
2678
2678
|
version: 1.3.1
|
2679
2679
|
requirements: []
|
2680
|
-
rubygems_version: 3.0.
|
2680
|
+
rubygems_version: 3.0.8
|
2681
2681
|
signing_key:
|
2682
2682
|
specification_version: 4
|
2683
2683
|
summary: Puppet, an automated configuration management tool
|
2684
2684
|
test_files:
|
2685
2685
|
- spec/fixtures/faulty_face/puppet/face/syntax.rb
|
2686
2686
|
- spec/fixtures/hiera.yaml
|
2687
|
+
- spec/fixtures/integration/application/apply/environments/spec/modules/amod/lib/puppet/provider/applytest/applytest.rb
|
2688
|
+
- spec/fixtures/integration/application/apply/environments/spec/modules/amod/lib/puppet/type/applytest.rb
|
2687
2689
|
- spec/fixtures/integration/node/environment/sitedir/00_a.pp
|
2688
2690
|
- spec/fixtures/integration/node/environment/sitedir/01_b.pp
|
2689
2691
|
- spec/fixtures/integration/node/environment/sitedir/03_empty.pp
|
@@ -2816,7 +2818,9 @@ test_files:
|
|
2816
2818
|
- spec/fixtures/unit/data_providers/environments/production/modules/xyz/functions/data.pp
|
2817
2819
|
- spec/fixtures/unit/data_providers/environments/production/modules/xyz/manifests/init.pp
|
2818
2820
|
- spec/fixtures/unit/data_providers/environments/production/modules/xyz/metadata.json
|
2821
|
+
- spec/fixtures/unit/forge/bacula-releases.json
|
2819
2822
|
- spec/fixtures/unit/forge/bacula.json
|
2823
|
+
- spec/fixtures/unit/forge/bacula.tar.gz
|
2820
2824
|
- spec/fixtures/unit/functions/hiera/hiera/backend/hieraspec_backend.rb
|
2821
2825
|
- spec/fixtures/unit/functions/lookup/data/common.yaml
|
2822
2826
|
- spec/fixtures/unit/functions/lookup/hiera/backend/custom_backend.rb
|
@@ -3012,7 +3016,7 @@ test_files:
|
|
3012
3016
|
- spec/fixtures/unit/provider/cron/crontab/vixie_header.txt
|
3013
3017
|
- spec/fixtures/unit/provider/cron/parsed/managed
|
3014
3018
|
- spec/fixtures/unit/provider/cron/parsed/simple
|
3015
|
-
- spec/fixtures/unit/provider/package/dnfmodule/dnf-module-list
|
3019
|
+
- spec/fixtures/unit/provider/package/dnfmodule/dnf-module-list.txt
|
3016
3020
|
- spec/fixtures/unit/provider/package/gem/gem-list-single-package
|
3017
3021
|
- spec/fixtures/unit/provider/package/gem/line-with-1.8.5-warning
|
3018
3022
|
- spec/fixtures/unit/provider/package/openbsd/pkginfo.detail
|
@@ -3032,6 +3036,7 @@ test_files:
|
|
3032
3036
|
- spec/fixtures/unit/provider/package/pkgng/pkg.query
|
3033
3037
|
- spec/fixtures/unit/provider/package/pkgng/pkg.query.zsh
|
3034
3038
|
- spec/fixtures/unit/provider/package/pkgng/pkg.version
|
3039
|
+
- spec/fixtures/unit/provider/package/puppetserver_gem/gem-list-local-packages
|
3035
3040
|
- spec/fixtures/unit/provider/package/sun/dummy.server
|
3036
3041
|
- spec/fixtures/unit/provider/package/sun/simple
|
3037
3042
|
- spec/fixtures/unit/provider/package/yum/yum-check-update-broken-notices.txt
|
@@ -3043,6 +3048,7 @@ test_files:
|
|
3043
3048
|
- spec/fixtures/unit/provider/package/yum/yum-check-update-subscription-manager.txt
|
3044
3049
|
- spec/fixtures/unit/provider/package/zypper/zypper-list-updates-SLES11sp1.out
|
3045
3050
|
- spec/fixtures/unit/provider/package/zypper/zypper-list-updates-empty.out
|
3051
|
+
- spec/fixtures/unit/provider/package/zypper/zypper-search-uninstalled.out
|
3046
3052
|
- spec/fixtures/unit/provider/parsedfile/aliases.txt
|
3047
3053
|
- spec/fixtures/unit/provider/parsedfile/simple.txt
|
3048
3054
|
- spec/fixtures/unit/provider/service/base/ps_ef.mixed_encoding
|
@@ -3077,9 +3083,12 @@ test_files:
|
|
3077
3083
|
- spec/integration/agent/logging_spec.rb
|
3078
3084
|
- spec/integration/application/agent_spec.rb
|
3079
3085
|
- spec/integration/application/apply_spec.rb
|
3086
|
+
- spec/integration/application/config_spec.rb
|
3080
3087
|
- spec/integration/application/doc_spec.rb
|
3081
3088
|
- spec/integration/application/filebucket_spec.rb
|
3089
|
+
- spec/integration/application/help_spec.rb
|
3082
3090
|
- spec/integration/application/lookup_spec.rb
|
3091
|
+
- spec/integration/application/module_spec.rb
|
3083
3092
|
- spec/integration/application/plugin_spec.rb
|
3084
3093
|
- spec/integration/configurer_spec.rb
|
3085
3094
|
- spec/integration/data_binding_spec.rb
|
@@ -3089,14 +3098,6 @@ test_files:
|
|
3089
3098
|
- spec/integration/environments/setting_hooks_spec.rb
|
3090
3099
|
- spec/integration/environments/settings_interpolation_spec.rb
|
3091
3100
|
- spec/integration/environments/settings_spec.rb
|
3092
|
-
- spec/integration/faces/config_spec.rb
|
3093
|
-
- spec/integration/faces/documentation_spec.rb
|
3094
|
-
- spec/integration/file_bucket/file_spec.rb
|
3095
|
-
- spec/integration/file_serving/content_spec.rb
|
3096
|
-
- spec/integration/file_serving/fileset_spec.rb
|
3097
|
-
- spec/integration/file_serving/metadata_spec.rb
|
3098
|
-
- spec/integration/file_serving/terminus_helper_spec.rb
|
3099
|
-
- spec/integration/file_system/uniquefile_spec.rb
|
3100
3101
|
- spec/integration/http/client_spec.rb
|
3101
3102
|
- spec/integration/indirector/catalog/compiler_spec.rb
|
3102
3103
|
- spec/integration/indirector/direct_file_server_spec.rb
|
@@ -3104,8 +3105,6 @@ test_files:
|
|
3104
3105
|
- spec/integration/indirector/file_content/file_server_spec.rb
|
3105
3106
|
- spec/integration/indirector/file_metadata/file_server_spec.rb
|
3106
3107
|
- spec/integration/indirector/report/yaml.rb
|
3107
|
-
- spec/integration/module_tool/forge_spec.rb
|
3108
|
-
- spec/integration/module_tool/tar/mini_spec.rb
|
3109
3108
|
- spec/integration/network/authconfig_spec.rb
|
3110
3109
|
- spec/integration/network/formats_spec.rb
|
3111
3110
|
- spec/integration/network/http/api/indirected_routes_spec.rb
|
@@ -3128,17 +3127,8 @@ test_files:
|
|
3128
3127
|
- spec/integration/parser/script_compiler_spec.rb
|
3129
3128
|
- spec/integration/parser/undef_param_spec.rb
|
3130
3129
|
- spec/integration/provider/file/windows_spec.rb
|
3131
|
-
- spec/integration/provider/service/init_spec.rb
|
3132
|
-
- spec/integration/provider/service/systemd_spec.rb
|
3133
|
-
- spec/integration/provider/service/windows_spec.rb
|
3134
|
-
- spec/integration/reference/providers_spec.rb
|
3135
|
-
- spec/integration/reports_spec.rb
|
3136
3130
|
- spec/integration/resource/catalog_spec.rb
|
3137
3131
|
- spec/integration/resource/type_collection_spec.rb
|
3138
|
-
- spec/integration/ssl/certificate_request_spec.rb
|
3139
|
-
- spec/integration/ssl/host_spec.rb
|
3140
|
-
- spec/integration/ssl/key_spec.rb
|
3141
|
-
- spec/integration/test/test_helper_spec.rb
|
3142
3132
|
- spec/integration/transaction/report_spec.rb
|
3143
3133
|
- spec/integration/transaction_spec.rb
|
3144
3134
|
- spec/integration/type/exec_spec.rb
|
@@ -3152,6 +3142,7 @@ test_files:
|
|
3152
3142
|
- spec/integration/util/rdoc/parser_spec.rb
|
3153
3143
|
- spec/integration/util/settings_spec.rb
|
3154
3144
|
- spec/integration/util/windows/adsi_spec.rb
|
3145
|
+
- spec/integration/util/windows/monkey_patches/dir_spec.rb
|
3155
3146
|
- spec/integration/util/windows/principal_spec.rb
|
3156
3147
|
- spec/integration/util/windows/process_spec.rb
|
3157
3148
|
- spec/integration/util/windows/registry_spec.rb
|
@@ -3203,7 +3194,6 @@ test_files:
|
|
3203
3194
|
- spec/shared_behaviours/documentation_on_faces.rb
|
3204
3195
|
- spec/shared_behaviours/file_server_terminus.rb
|
3205
3196
|
- spec/shared_behaviours/file_serving.rb
|
3206
|
-
- spec/shared_behaviours/file_serving_model.rb
|
3207
3197
|
- spec/shared_behaviours/hiera_indirections.rb
|
3208
3198
|
- spec/shared_behaviours/iterative_functions.rb
|
3209
3199
|
- spec/shared_behaviours/memory_terminus.rb
|
@@ -3230,6 +3220,7 @@ test_files:
|
|
3230
3220
|
- spec/unit/application/filebucket_spec.rb
|
3231
3221
|
- spec/unit/application/indirection_base_spec.rb
|
3232
3222
|
- spec/unit/application/lookup_spec.rb
|
3223
|
+
- spec/unit/application/man_spec.rb
|
3233
3224
|
- spec/unit/application/resource_spec.rb
|
3234
3225
|
- spec/unit/application/ssl_spec.rb
|
3235
3226
|
- spec/unit/application_spec.rb
|
@@ -3266,7 +3257,6 @@ test_files:
|
|
3266
3257
|
- spec/unit/face/generate_spec.rb
|
3267
3258
|
- spec/unit/face/help_spec.rb
|
3268
3259
|
- spec/unit/face/key_spec.rb
|
3269
|
-
- spec/unit/face/man_spec.rb
|
3270
3260
|
- spec/unit/face/module/install_spec.rb
|
3271
3261
|
- spec/unit/face/module/list_spec.rb
|
3272
3262
|
- spec/unit/face/module/search_spec.rb
|
@@ -3396,6 +3386,7 @@ test_files:
|
|
3396
3386
|
- spec/unit/http/service/ca_spec.rb
|
3397
3387
|
- spec/unit/http/service/compiler_spec.rb
|
3398
3388
|
- spec/unit/http/service/file_server_spec.rb
|
3389
|
+
- spec/unit/http/service/puppetserver_spec.rb
|
3399
3390
|
- spec/unit/http/service/report_spec.rb
|
3400
3391
|
- spec/unit/http/service_spec.rb
|
3401
3392
|
- spec/unit/http/session_spec.rb
|
@@ -3429,6 +3420,7 @@ test_files:
|
|
3429
3420
|
- spec/unit/indirector/file_content/selector_spec.rb
|
3430
3421
|
- spec/unit/indirector/file_metadata/file_server_spec.rb
|
3431
3422
|
- spec/unit/indirector/file_metadata/file_spec.rb
|
3423
|
+
- spec/unit/indirector/file_metadata/http_spec.rb
|
3432
3424
|
- spec/unit/indirector/file_metadata/rest_spec.rb
|
3433
3425
|
- spec/unit/indirector/file_metadata/selector_spec.rb
|
3434
3426
|
- spec/unit/indirector/file_server_spec.rb
|
@@ -3471,7 +3463,6 @@ test_files:
|
|
3471
3463
|
- spec/unit/interface/option_builder_spec.rb
|
3472
3464
|
- spec/unit/interface/option_spec.rb
|
3473
3465
|
- spec/unit/interface_spec.rb
|
3474
|
-
- spec/unit/man_spec.rb
|
3475
3466
|
- spec/unit/module_spec.rb
|
3476
3467
|
- spec/unit/module_tool/application_spec.rb
|
3477
3468
|
- spec/unit/module_tool/applications/checksummer_spec.rb
|
@@ -3698,6 +3689,7 @@ test_files:
|
|
3698
3689
|
- spec/unit/provider/package/openbsd_spec.rb
|
3699
3690
|
- spec/unit/provider/package/opkg_spec.rb
|
3700
3691
|
- spec/unit/provider/package/pacman_spec.rb
|
3692
|
+
- spec/unit/provider/package/pip2_spec.rb
|
3701
3693
|
- spec/unit/provider/package/pip3_spec.rb
|
3702
3694
|
- spec/unit/provider/package/pip_spec.rb
|
3703
3695
|
- spec/unit/provider/package/pkg_spec.rb
|
@@ -3707,6 +3699,7 @@ test_files:
|
|
3707
3699
|
- spec/unit/provider/package/pkgutil_spec.rb
|
3708
3700
|
- spec/unit/provider/package/portage_spec.rb
|
3709
3701
|
- spec/unit/provider/package/puppet_gem_spec.rb
|
3702
|
+
- spec/unit/provider/package/puppetserver_gem_spec.rb
|
3710
3703
|
- spec/unit/provider/package/rpm_spec.rb
|
3711
3704
|
- spec/unit/provider/package/sun_spec.rb
|
3712
3705
|
- spec/unit/provider/package/tdnf_spec.rb
|
@@ -3799,6 +3792,7 @@ test_files:
|
|
3799
3792
|
- spec/unit/ssl/verifier_spec.rb
|
3800
3793
|
- spec/unit/status_spec.rb
|
3801
3794
|
- spec/unit/task_spec.rb
|
3795
|
+
- spec/unit/test/test_helper_spec.rb
|
3802
3796
|
- spec/unit/transaction/additional_resource_generator_spec.rb
|
3803
3797
|
- spec/unit/transaction/event_manager_spec.rb
|
3804
3798
|
- spec/unit/transaction/event_spec.rb
|
@@ -1,91 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'puppet/face'
|
3
|
-
|
4
|
-
describe Puppet::Face[:config, '0.0.1'] do
|
5
|
-
include PuppetSpec::Files
|
6
|
-
|
7
|
-
# different UTF-8 widths
|
8
|
-
# 1-byte A
|
9
|
-
# 2-byte ۿ - http://www.fileformat.info/info/unicode/char/06ff/index.htm - 0xDB 0xBF / 219 191
|
10
|
-
# 3-byte ᚠ - http://www.fileformat.info/info/unicode/char/16A0/index.htm - 0xE1 0x9A 0xA0 / 225 154 160
|
11
|
-
# 4-byte 𠜎 - http://www.fileformat.info/info/unicode/char/2070E/index.htm - 0xF0 0xA0 0x9C 0x8E / 240 160 156 142
|
12
|
-
MIXED_UTF8 = "A\u06FF\u16A0\u{2070E}" # Aۿᚠ𠜎
|
13
|
-
let (:tmp_environment_path) { tmpdir('envpath') }
|
14
|
-
let (:tmp_config) { tmpfile('puppet.conf') }
|
15
|
-
|
16
|
-
def load_settings(path)
|
17
|
-
test_settings = Puppet::Settings.new
|
18
|
-
|
19
|
-
test_settings.define_settings(:main,
|
20
|
-
:config => {
|
21
|
-
:type => :file,
|
22
|
-
:default => path,
|
23
|
-
:desc => '',
|
24
|
-
},
|
25
|
-
:environmentpath => {
|
26
|
-
:default => tmp_environment_path,
|
27
|
-
:desc => '',
|
28
|
-
},
|
29
|
-
:basemodulepath => {
|
30
|
-
:default => '',
|
31
|
-
:desc => '',
|
32
|
-
},
|
33
|
-
# definition required to use the value
|
34
|
-
:rando_key => {
|
35
|
-
:default => '',
|
36
|
-
:desc => ''
|
37
|
-
},
|
38
|
-
MIXED_UTF8.to_sym => {
|
39
|
-
:default => '',
|
40
|
-
:desc => ''
|
41
|
-
},
|
42
|
-
)
|
43
|
-
|
44
|
-
test_settings.initialize_global_settings
|
45
|
-
test_settings
|
46
|
-
end
|
47
|
-
|
48
|
-
before :each do
|
49
|
-
File.open(tmp_config, 'w', :encoding => 'UTF-8') do |file|
|
50
|
-
file.puts <<-EOF
|
51
|
-
[main]
|
52
|
-
rando_key=foobar
|
53
|
-
#{MIXED_UTF8}=foobar
|
54
|
-
EOF
|
55
|
-
end
|
56
|
-
end
|
57
|
-
|
58
|
-
context 'when getting / setting UTF8 values' do
|
59
|
-
|
60
|
-
let(:config) { described_class }
|
61
|
-
|
62
|
-
def render(action, result)
|
63
|
-
config.get_action(action).when_rendering(:console).call(result)
|
64
|
-
end
|
65
|
-
|
66
|
-
before :each do
|
67
|
-
allow(subject).to receive(:report_section_and_environment)
|
68
|
-
end
|
69
|
-
|
70
|
-
# key must be a defined setting
|
71
|
-
['rando_key', MIXED_UTF8].each do |key|
|
72
|
-
it "can change '#{key}' keyed ASCII value to a UTF-8 value and read it back" do
|
73
|
-
value = "value#{key.reverse}value"
|
74
|
-
|
75
|
-
# needed for the subject.set to write to correct file
|
76
|
-
allow(Puppet.settings).to receive(:which_configuration_file).and_return(tmp_config)
|
77
|
-
subject.set(key, value)
|
78
|
-
|
79
|
-
# make sure subject.print looks at the newly modified settings
|
80
|
-
test_settings = load_settings(tmp_config)
|
81
|
-
# instead of the default Puppet.settings (implementation detail)
|
82
|
-
allow(Puppet).to receive(:settings).and_return(test_settings)
|
83
|
-
|
84
|
-
result = subject.print()
|
85
|
-
expect(render(:print, result)).to match(/^#{key} = #{value}$/)
|
86
|
-
result = subject.print(key, :section => 'main')
|
87
|
-
expect(render(:print, result)).to eq("#{value}\n")
|
88
|
-
end
|
89
|
-
end
|
90
|
-
end
|
91
|
-
end
|