puppet 6.15.0-x64-mingw32 → 6.19.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/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: x64-mingw32
|
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
|
@@ -663,6 +663,7 @@ files:
|
|
663
663
|
- lib/puppet/http/service/ca.rb
|
664
664
|
- lib/puppet/http/service/compiler.rb
|
665
665
|
- lib/puppet/http/service/file_server.rb
|
666
|
+
- lib/puppet/http/service/puppetserver.rb
|
666
667
|
- lib/puppet/http/service/report.rb
|
667
668
|
- lib/puppet/http/session.rb
|
668
669
|
- lib/puppet/indirector.rb
|
@@ -806,6 +807,7 @@ files:
|
|
806
807
|
- lib/puppet/network/http/base_pool.rb
|
807
808
|
- lib/puppet/network/http/compression.rb
|
808
809
|
- lib/puppet/network/http/connection.rb
|
810
|
+
- lib/puppet/network/http/connection_adapter.rb
|
809
811
|
- lib/puppet/network/http/error.rb
|
810
812
|
- lib/puppet/network/http/factory.rb
|
811
813
|
- lib/puppet/network/http/handler.rb
|
@@ -1142,6 +1144,7 @@ files:
|
|
1142
1144
|
- lib/puppet/provider/package/opkg.rb
|
1143
1145
|
- lib/puppet/provider/package/pacman.rb
|
1144
1146
|
- lib/puppet/provider/package/pip.rb
|
1147
|
+
- lib/puppet/provider/package/pip2.rb
|
1145
1148
|
- lib/puppet/provider/package/pip3.rb
|
1146
1149
|
- lib/puppet/provider/package/pkg.rb
|
1147
1150
|
- lib/puppet/provider/package/pkgdmg.rb
|
@@ -1152,6 +1155,7 @@ files:
|
|
1152
1155
|
- lib/puppet/provider/package/ports.rb
|
1153
1156
|
- lib/puppet/provider/package/portupgrade.rb
|
1154
1157
|
- lib/puppet/provider/package/puppet_gem.rb
|
1158
|
+
- lib/puppet/provider/package/puppetserver_gem.rb
|
1155
1159
|
- lib/puppet/provider/package/rpm.rb
|
1156
1160
|
- lib/puppet/provider/package/rug.rb
|
1157
1161
|
- lib/puppet/provider/package/sun.rb
|
@@ -1368,6 +1372,7 @@ files:
|
|
1368
1372
|
- lib/puppet/util/package/version/gem.rb
|
1369
1373
|
- lib/puppet/util/package/version/pip.rb
|
1370
1374
|
- lib/puppet/util/package/version/range.rb
|
1375
|
+
- lib/puppet/util/package/version/range/eq.rb
|
1371
1376
|
- lib/puppet/util/package/version/range/gt.rb
|
1372
1377
|
- lib/puppet/util/package/version/range/gt_eq.rb
|
1373
1378
|
- lib/puppet/util/package/version/range/lt.rb
|
@@ -1426,6 +1431,7 @@ files:
|
|
1426
1431
|
- lib/puppet/util/windows/error.rb
|
1427
1432
|
- lib/puppet/util/windows/eventlog.rb
|
1428
1433
|
- lib/puppet/util/windows/file.rb
|
1434
|
+
- lib/puppet/util/windows/monkey_patches/dir.rb
|
1429
1435
|
- lib/puppet/util/windows/principal.rb
|
1430
1436
|
- lib/puppet/util/windows/process.rb
|
1431
1437
|
- lib/puppet/util/windows/registry.rb
|
@@ -1485,6 +1491,8 @@ files:
|
|
1485
1491
|
- man/man8/puppet.8
|
1486
1492
|
- spec/fixtures/faulty_face/puppet/face/syntax.rb
|
1487
1493
|
- spec/fixtures/hiera.yaml
|
1494
|
+
- spec/fixtures/integration/application/apply/environments/spec/modules/amod/lib/puppet/provider/applytest/applytest.rb
|
1495
|
+
- spec/fixtures/integration/application/apply/environments/spec/modules/amod/lib/puppet/type/applytest.rb
|
1488
1496
|
- spec/fixtures/integration/node/environment/sitedir/00_a.pp
|
1489
1497
|
- spec/fixtures/integration/node/environment/sitedir/01_b.pp
|
1490
1498
|
- spec/fixtures/integration/node/environment/sitedir/03_empty.pp
|
@@ -1617,7 +1625,9 @@ files:
|
|
1617
1625
|
- spec/fixtures/unit/data_providers/environments/production/modules/xyz/functions/data.pp
|
1618
1626
|
- spec/fixtures/unit/data_providers/environments/production/modules/xyz/manifests/init.pp
|
1619
1627
|
- spec/fixtures/unit/data_providers/environments/production/modules/xyz/metadata.json
|
1628
|
+
- spec/fixtures/unit/forge/bacula-releases.json
|
1620
1629
|
- spec/fixtures/unit/forge/bacula.json
|
1630
|
+
- spec/fixtures/unit/forge/bacula.tar.gz
|
1621
1631
|
- spec/fixtures/unit/functions/hiera/hiera/backend/hieraspec_backend.rb
|
1622
1632
|
- spec/fixtures/unit/functions/lookup/data/common.yaml
|
1623
1633
|
- spec/fixtures/unit/functions/lookup/hiera/backend/custom_backend.rb
|
@@ -1813,7 +1823,7 @@ files:
|
|
1813
1823
|
- spec/fixtures/unit/provider/cron/crontab/vixie_header.txt
|
1814
1824
|
- spec/fixtures/unit/provider/cron/parsed/managed
|
1815
1825
|
- spec/fixtures/unit/provider/cron/parsed/simple
|
1816
|
-
- spec/fixtures/unit/provider/package/dnfmodule/dnf-module-list
|
1826
|
+
- spec/fixtures/unit/provider/package/dnfmodule/dnf-module-list.txt
|
1817
1827
|
- spec/fixtures/unit/provider/package/gem/gem-list-single-package
|
1818
1828
|
- spec/fixtures/unit/provider/package/gem/line-with-1.8.5-warning
|
1819
1829
|
- spec/fixtures/unit/provider/package/openbsd/pkginfo.detail
|
@@ -1833,6 +1843,7 @@ files:
|
|
1833
1843
|
- spec/fixtures/unit/provider/package/pkgng/pkg.query
|
1834
1844
|
- spec/fixtures/unit/provider/package/pkgng/pkg.query.zsh
|
1835
1845
|
- spec/fixtures/unit/provider/package/pkgng/pkg.version
|
1846
|
+
- spec/fixtures/unit/provider/package/puppetserver_gem/gem-list-local-packages
|
1836
1847
|
- spec/fixtures/unit/provider/package/sun/dummy.server
|
1837
1848
|
- spec/fixtures/unit/provider/package/sun/simple
|
1838
1849
|
- spec/fixtures/unit/provider/package/yum/yum-check-update-broken-notices.txt
|
@@ -1844,6 +1855,7 @@ files:
|
|
1844
1855
|
- spec/fixtures/unit/provider/package/yum/yum-check-update-subscription-manager.txt
|
1845
1856
|
- spec/fixtures/unit/provider/package/zypper/zypper-list-updates-SLES11sp1.out
|
1846
1857
|
- spec/fixtures/unit/provider/package/zypper/zypper-list-updates-empty.out
|
1858
|
+
- spec/fixtures/unit/provider/package/zypper/zypper-search-uninstalled.out
|
1847
1859
|
- spec/fixtures/unit/provider/parsedfile/aliases.txt
|
1848
1860
|
- spec/fixtures/unit/provider/parsedfile/simple.txt
|
1849
1861
|
- spec/fixtures/unit/provider/service/base/ps_ef.mixed_encoding
|
@@ -1878,9 +1890,12 @@ files:
|
|
1878
1890
|
- spec/integration/agent/logging_spec.rb
|
1879
1891
|
- spec/integration/application/agent_spec.rb
|
1880
1892
|
- spec/integration/application/apply_spec.rb
|
1893
|
+
- spec/integration/application/config_spec.rb
|
1881
1894
|
- spec/integration/application/doc_spec.rb
|
1882
1895
|
- spec/integration/application/filebucket_spec.rb
|
1896
|
+
- spec/integration/application/help_spec.rb
|
1883
1897
|
- spec/integration/application/lookup_spec.rb
|
1898
|
+
- spec/integration/application/module_spec.rb
|
1884
1899
|
- spec/integration/application/plugin_spec.rb
|
1885
1900
|
- spec/integration/configurer_spec.rb
|
1886
1901
|
- spec/integration/data_binding_spec.rb
|
@@ -1890,14 +1905,6 @@ files:
|
|
1890
1905
|
- spec/integration/environments/setting_hooks_spec.rb
|
1891
1906
|
- spec/integration/environments/settings_interpolation_spec.rb
|
1892
1907
|
- spec/integration/environments/settings_spec.rb
|
1893
|
-
- spec/integration/faces/config_spec.rb
|
1894
|
-
- spec/integration/faces/documentation_spec.rb
|
1895
|
-
- spec/integration/file_bucket/file_spec.rb
|
1896
|
-
- spec/integration/file_serving/content_spec.rb
|
1897
|
-
- spec/integration/file_serving/fileset_spec.rb
|
1898
|
-
- spec/integration/file_serving/metadata_spec.rb
|
1899
|
-
- spec/integration/file_serving/terminus_helper_spec.rb
|
1900
|
-
- spec/integration/file_system/uniquefile_spec.rb
|
1901
1908
|
- spec/integration/http/client_spec.rb
|
1902
1909
|
- spec/integration/indirector/catalog/compiler_spec.rb
|
1903
1910
|
- spec/integration/indirector/direct_file_server_spec.rb
|
@@ -1905,8 +1912,6 @@ files:
|
|
1905
1912
|
- spec/integration/indirector/file_content/file_server_spec.rb
|
1906
1913
|
- spec/integration/indirector/file_metadata/file_server_spec.rb
|
1907
1914
|
- spec/integration/indirector/report/yaml.rb
|
1908
|
-
- spec/integration/module_tool/forge_spec.rb
|
1909
|
-
- spec/integration/module_tool/tar/mini_spec.rb
|
1910
1915
|
- spec/integration/network/authconfig_spec.rb
|
1911
1916
|
- spec/integration/network/formats_spec.rb
|
1912
1917
|
- spec/integration/network/http/api/indirected_routes_spec.rb
|
@@ -1929,17 +1934,8 @@ files:
|
|
1929
1934
|
- spec/integration/parser/script_compiler_spec.rb
|
1930
1935
|
- spec/integration/parser/undef_param_spec.rb
|
1931
1936
|
- spec/integration/provider/file/windows_spec.rb
|
1932
|
-
- spec/integration/provider/service/init_spec.rb
|
1933
|
-
- spec/integration/provider/service/systemd_spec.rb
|
1934
|
-
- spec/integration/provider/service/windows_spec.rb
|
1935
|
-
- spec/integration/reference/providers_spec.rb
|
1936
|
-
- spec/integration/reports_spec.rb
|
1937
1937
|
- spec/integration/resource/catalog_spec.rb
|
1938
1938
|
- spec/integration/resource/type_collection_spec.rb
|
1939
|
-
- spec/integration/ssl/certificate_request_spec.rb
|
1940
|
-
- spec/integration/ssl/host_spec.rb
|
1941
|
-
- spec/integration/ssl/key_spec.rb
|
1942
|
-
- spec/integration/test/test_helper_spec.rb
|
1943
1939
|
- spec/integration/transaction/report_spec.rb
|
1944
1940
|
- spec/integration/transaction_spec.rb
|
1945
1941
|
- spec/integration/type/exec_spec.rb
|
@@ -1953,6 +1949,7 @@ files:
|
|
1953
1949
|
- spec/integration/util/rdoc/parser_spec.rb
|
1954
1950
|
- spec/integration/util/settings_spec.rb
|
1955
1951
|
- spec/integration/util/windows/adsi_spec.rb
|
1952
|
+
- spec/integration/util/windows/monkey_patches/dir_spec.rb
|
1956
1953
|
- spec/integration/util/windows/principal_spec.rb
|
1957
1954
|
- spec/integration/util/windows/process_spec.rb
|
1958
1955
|
- spec/integration/util/windows/registry_spec.rb
|
@@ -2004,7 +2001,6 @@ files:
|
|
2004
2001
|
- spec/shared_behaviours/documentation_on_faces.rb
|
2005
2002
|
- spec/shared_behaviours/file_server_terminus.rb
|
2006
2003
|
- spec/shared_behaviours/file_serving.rb
|
2007
|
-
- spec/shared_behaviours/file_serving_model.rb
|
2008
2004
|
- spec/shared_behaviours/hiera_indirections.rb
|
2009
2005
|
- spec/shared_behaviours/iterative_functions.rb
|
2010
2006
|
- spec/shared_behaviours/memory_terminus.rb
|
@@ -2031,6 +2027,7 @@ files:
|
|
2031
2027
|
- spec/unit/application/filebucket_spec.rb
|
2032
2028
|
- spec/unit/application/indirection_base_spec.rb
|
2033
2029
|
- spec/unit/application/lookup_spec.rb
|
2030
|
+
- spec/unit/application/man_spec.rb
|
2034
2031
|
- spec/unit/application/resource_spec.rb
|
2035
2032
|
- spec/unit/application/ssl_spec.rb
|
2036
2033
|
- spec/unit/application_spec.rb
|
@@ -2067,7 +2064,6 @@ files:
|
|
2067
2064
|
- spec/unit/face/generate_spec.rb
|
2068
2065
|
- spec/unit/face/help_spec.rb
|
2069
2066
|
- spec/unit/face/key_spec.rb
|
2070
|
-
- spec/unit/face/man_spec.rb
|
2071
2067
|
- spec/unit/face/module/install_spec.rb
|
2072
2068
|
- spec/unit/face/module/list_spec.rb
|
2073
2069
|
- spec/unit/face/module/search_spec.rb
|
@@ -2197,6 +2193,7 @@ files:
|
|
2197
2193
|
- spec/unit/http/service/ca_spec.rb
|
2198
2194
|
- spec/unit/http/service/compiler_spec.rb
|
2199
2195
|
- spec/unit/http/service/file_server_spec.rb
|
2196
|
+
- spec/unit/http/service/puppetserver_spec.rb
|
2200
2197
|
- spec/unit/http/service/report_spec.rb
|
2201
2198
|
- spec/unit/http/service_spec.rb
|
2202
2199
|
- spec/unit/http/session_spec.rb
|
@@ -2230,6 +2227,7 @@ files:
|
|
2230
2227
|
- spec/unit/indirector/file_content/selector_spec.rb
|
2231
2228
|
- spec/unit/indirector/file_metadata/file_server_spec.rb
|
2232
2229
|
- spec/unit/indirector/file_metadata/file_spec.rb
|
2230
|
+
- spec/unit/indirector/file_metadata/http_spec.rb
|
2233
2231
|
- spec/unit/indirector/file_metadata/rest_spec.rb
|
2234
2232
|
- spec/unit/indirector/file_metadata/selector_spec.rb
|
2235
2233
|
- spec/unit/indirector/file_server_spec.rb
|
@@ -2272,7 +2270,6 @@ files:
|
|
2272
2270
|
- spec/unit/interface/option_builder_spec.rb
|
2273
2271
|
- spec/unit/interface/option_spec.rb
|
2274
2272
|
- spec/unit/interface_spec.rb
|
2275
|
-
- spec/unit/man_spec.rb
|
2276
2273
|
- spec/unit/module_spec.rb
|
2277
2274
|
- spec/unit/module_tool/application_spec.rb
|
2278
2275
|
- spec/unit/module_tool/applications/checksummer_spec.rb
|
@@ -2499,6 +2496,7 @@ files:
|
|
2499
2496
|
- spec/unit/provider/package/openbsd_spec.rb
|
2500
2497
|
- spec/unit/provider/package/opkg_spec.rb
|
2501
2498
|
- spec/unit/provider/package/pacman_spec.rb
|
2499
|
+
- spec/unit/provider/package/pip2_spec.rb
|
2502
2500
|
- spec/unit/provider/package/pip3_spec.rb
|
2503
2501
|
- spec/unit/provider/package/pip_spec.rb
|
2504
2502
|
- spec/unit/provider/package/pkg_spec.rb
|
@@ -2508,6 +2506,7 @@ files:
|
|
2508
2506
|
- spec/unit/provider/package/pkgutil_spec.rb
|
2509
2507
|
- spec/unit/provider/package/portage_spec.rb
|
2510
2508
|
- spec/unit/provider/package/puppet_gem_spec.rb
|
2509
|
+
- spec/unit/provider/package/puppetserver_gem_spec.rb
|
2511
2510
|
- spec/unit/provider/package/rpm_spec.rb
|
2512
2511
|
- spec/unit/provider/package/sun_spec.rb
|
2513
2512
|
- spec/unit/provider/package/tdnf_spec.rb
|
@@ -2600,6 +2599,7 @@ files:
|
|
2600
2599
|
- spec/unit/ssl/verifier_spec.rb
|
2601
2600
|
- spec/unit/status_spec.rb
|
2602
2601
|
- spec/unit/task_spec.rb
|
2602
|
+
- spec/unit/test/test_helper_spec.rb
|
2603
2603
|
- spec/unit/transaction/additional_resource_generator_spec.rb
|
2604
2604
|
- spec/unit/transaction/event_manager_spec.rb
|
2605
2605
|
- spec/unit/transaction/event_spec.rb
|
@@ -2753,13 +2753,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
2753
2753
|
- !ruby/object:Gem::Version
|
2754
2754
|
version: 1.3.1
|
2755
2755
|
requirements: []
|
2756
|
-
rubygems_version: 3.0.
|
2756
|
+
rubygems_version: 3.0.8
|
2757
2757
|
signing_key:
|
2758
2758
|
specification_version: 4
|
2759
2759
|
summary: Puppet, an automated configuration management tool
|
2760
2760
|
test_files:
|
2761
2761
|
- spec/fixtures/faulty_face/puppet/face/syntax.rb
|
2762
2762
|
- spec/fixtures/hiera.yaml
|
2763
|
+
- spec/fixtures/integration/application/apply/environments/spec/modules/amod/lib/puppet/provider/applytest/applytest.rb
|
2764
|
+
- spec/fixtures/integration/application/apply/environments/spec/modules/amod/lib/puppet/type/applytest.rb
|
2763
2765
|
- spec/fixtures/integration/node/environment/sitedir/00_a.pp
|
2764
2766
|
- spec/fixtures/integration/node/environment/sitedir/01_b.pp
|
2765
2767
|
- spec/fixtures/integration/node/environment/sitedir/03_empty.pp
|
@@ -2892,7 +2894,9 @@ test_files:
|
|
2892
2894
|
- spec/fixtures/unit/data_providers/environments/production/modules/xyz/functions/data.pp
|
2893
2895
|
- spec/fixtures/unit/data_providers/environments/production/modules/xyz/manifests/init.pp
|
2894
2896
|
- spec/fixtures/unit/data_providers/environments/production/modules/xyz/metadata.json
|
2897
|
+
- spec/fixtures/unit/forge/bacula-releases.json
|
2895
2898
|
- spec/fixtures/unit/forge/bacula.json
|
2899
|
+
- spec/fixtures/unit/forge/bacula.tar.gz
|
2896
2900
|
- spec/fixtures/unit/functions/hiera/hiera/backend/hieraspec_backend.rb
|
2897
2901
|
- spec/fixtures/unit/functions/lookup/data/common.yaml
|
2898
2902
|
- spec/fixtures/unit/functions/lookup/hiera/backend/custom_backend.rb
|
@@ -3088,7 +3092,7 @@ test_files:
|
|
3088
3092
|
- spec/fixtures/unit/provider/cron/crontab/vixie_header.txt
|
3089
3093
|
- spec/fixtures/unit/provider/cron/parsed/managed
|
3090
3094
|
- spec/fixtures/unit/provider/cron/parsed/simple
|
3091
|
-
- spec/fixtures/unit/provider/package/dnfmodule/dnf-module-list
|
3095
|
+
- spec/fixtures/unit/provider/package/dnfmodule/dnf-module-list.txt
|
3092
3096
|
- spec/fixtures/unit/provider/package/gem/gem-list-single-package
|
3093
3097
|
- spec/fixtures/unit/provider/package/gem/line-with-1.8.5-warning
|
3094
3098
|
- spec/fixtures/unit/provider/package/openbsd/pkginfo.detail
|
@@ -3108,6 +3112,7 @@ test_files:
|
|
3108
3112
|
- spec/fixtures/unit/provider/package/pkgng/pkg.query
|
3109
3113
|
- spec/fixtures/unit/provider/package/pkgng/pkg.query.zsh
|
3110
3114
|
- spec/fixtures/unit/provider/package/pkgng/pkg.version
|
3115
|
+
- spec/fixtures/unit/provider/package/puppetserver_gem/gem-list-local-packages
|
3111
3116
|
- spec/fixtures/unit/provider/package/sun/dummy.server
|
3112
3117
|
- spec/fixtures/unit/provider/package/sun/simple
|
3113
3118
|
- spec/fixtures/unit/provider/package/yum/yum-check-update-broken-notices.txt
|
@@ -3119,6 +3124,7 @@ test_files:
|
|
3119
3124
|
- spec/fixtures/unit/provider/package/yum/yum-check-update-subscription-manager.txt
|
3120
3125
|
- spec/fixtures/unit/provider/package/zypper/zypper-list-updates-SLES11sp1.out
|
3121
3126
|
- spec/fixtures/unit/provider/package/zypper/zypper-list-updates-empty.out
|
3127
|
+
- spec/fixtures/unit/provider/package/zypper/zypper-search-uninstalled.out
|
3122
3128
|
- spec/fixtures/unit/provider/parsedfile/aliases.txt
|
3123
3129
|
- spec/fixtures/unit/provider/parsedfile/simple.txt
|
3124
3130
|
- spec/fixtures/unit/provider/service/base/ps_ef.mixed_encoding
|
@@ -3153,9 +3159,12 @@ test_files:
|
|
3153
3159
|
- spec/integration/agent/logging_spec.rb
|
3154
3160
|
- spec/integration/application/agent_spec.rb
|
3155
3161
|
- spec/integration/application/apply_spec.rb
|
3162
|
+
- spec/integration/application/config_spec.rb
|
3156
3163
|
- spec/integration/application/doc_spec.rb
|
3157
3164
|
- spec/integration/application/filebucket_spec.rb
|
3165
|
+
- spec/integration/application/help_spec.rb
|
3158
3166
|
- spec/integration/application/lookup_spec.rb
|
3167
|
+
- spec/integration/application/module_spec.rb
|
3159
3168
|
- spec/integration/application/plugin_spec.rb
|
3160
3169
|
- spec/integration/configurer_spec.rb
|
3161
3170
|
- spec/integration/data_binding_spec.rb
|
@@ -3165,14 +3174,6 @@ test_files:
|
|
3165
3174
|
- spec/integration/environments/setting_hooks_spec.rb
|
3166
3175
|
- spec/integration/environments/settings_interpolation_spec.rb
|
3167
3176
|
- spec/integration/environments/settings_spec.rb
|
3168
|
-
- spec/integration/faces/config_spec.rb
|
3169
|
-
- spec/integration/faces/documentation_spec.rb
|
3170
|
-
- spec/integration/file_bucket/file_spec.rb
|
3171
|
-
- spec/integration/file_serving/content_spec.rb
|
3172
|
-
- spec/integration/file_serving/fileset_spec.rb
|
3173
|
-
- spec/integration/file_serving/metadata_spec.rb
|
3174
|
-
- spec/integration/file_serving/terminus_helper_spec.rb
|
3175
|
-
- spec/integration/file_system/uniquefile_spec.rb
|
3176
3177
|
- spec/integration/http/client_spec.rb
|
3177
3178
|
- spec/integration/indirector/catalog/compiler_spec.rb
|
3178
3179
|
- spec/integration/indirector/direct_file_server_spec.rb
|
@@ -3180,8 +3181,6 @@ test_files:
|
|
3180
3181
|
- spec/integration/indirector/file_content/file_server_spec.rb
|
3181
3182
|
- spec/integration/indirector/file_metadata/file_server_spec.rb
|
3182
3183
|
- spec/integration/indirector/report/yaml.rb
|
3183
|
-
- spec/integration/module_tool/forge_spec.rb
|
3184
|
-
- spec/integration/module_tool/tar/mini_spec.rb
|
3185
3184
|
- spec/integration/network/authconfig_spec.rb
|
3186
3185
|
- spec/integration/network/formats_spec.rb
|
3187
3186
|
- spec/integration/network/http/api/indirected_routes_spec.rb
|
@@ -3204,17 +3203,8 @@ test_files:
|
|
3204
3203
|
- spec/integration/parser/script_compiler_spec.rb
|
3205
3204
|
- spec/integration/parser/undef_param_spec.rb
|
3206
3205
|
- spec/integration/provider/file/windows_spec.rb
|
3207
|
-
- spec/integration/provider/service/init_spec.rb
|
3208
|
-
- spec/integration/provider/service/systemd_spec.rb
|
3209
|
-
- spec/integration/provider/service/windows_spec.rb
|
3210
|
-
- spec/integration/reference/providers_spec.rb
|
3211
|
-
- spec/integration/reports_spec.rb
|
3212
3206
|
- spec/integration/resource/catalog_spec.rb
|
3213
3207
|
- spec/integration/resource/type_collection_spec.rb
|
3214
|
-
- spec/integration/ssl/certificate_request_spec.rb
|
3215
|
-
- spec/integration/ssl/host_spec.rb
|
3216
|
-
- spec/integration/ssl/key_spec.rb
|
3217
|
-
- spec/integration/test/test_helper_spec.rb
|
3218
3208
|
- spec/integration/transaction/report_spec.rb
|
3219
3209
|
- spec/integration/transaction_spec.rb
|
3220
3210
|
- spec/integration/type/exec_spec.rb
|
@@ -3228,6 +3218,7 @@ test_files:
|
|
3228
3218
|
- spec/integration/util/rdoc/parser_spec.rb
|
3229
3219
|
- spec/integration/util/settings_spec.rb
|
3230
3220
|
- spec/integration/util/windows/adsi_spec.rb
|
3221
|
+
- spec/integration/util/windows/monkey_patches/dir_spec.rb
|
3231
3222
|
- spec/integration/util/windows/principal_spec.rb
|
3232
3223
|
- spec/integration/util/windows/process_spec.rb
|
3233
3224
|
- spec/integration/util/windows/registry_spec.rb
|
@@ -3279,7 +3270,6 @@ test_files:
|
|
3279
3270
|
- spec/shared_behaviours/documentation_on_faces.rb
|
3280
3271
|
- spec/shared_behaviours/file_server_terminus.rb
|
3281
3272
|
- spec/shared_behaviours/file_serving.rb
|
3282
|
-
- spec/shared_behaviours/file_serving_model.rb
|
3283
3273
|
- spec/shared_behaviours/hiera_indirections.rb
|
3284
3274
|
- spec/shared_behaviours/iterative_functions.rb
|
3285
3275
|
- spec/shared_behaviours/memory_terminus.rb
|
@@ -3306,6 +3296,7 @@ test_files:
|
|
3306
3296
|
- spec/unit/application/filebucket_spec.rb
|
3307
3297
|
- spec/unit/application/indirection_base_spec.rb
|
3308
3298
|
- spec/unit/application/lookup_spec.rb
|
3299
|
+
- spec/unit/application/man_spec.rb
|
3309
3300
|
- spec/unit/application/resource_spec.rb
|
3310
3301
|
- spec/unit/application/ssl_spec.rb
|
3311
3302
|
- spec/unit/application_spec.rb
|
@@ -3342,7 +3333,6 @@ test_files:
|
|
3342
3333
|
- spec/unit/face/generate_spec.rb
|
3343
3334
|
- spec/unit/face/help_spec.rb
|
3344
3335
|
- spec/unit/face/key_spec.rb
|
3345
|
-
- spec/unit/face/man_spec.rb
|
3346
3336
|
- spec/unit/face/module/install_spec.rb
|
3347
3337
|
- spec/unit/face/module/list_spec.rb
|
3348
3338
|
- spec/unit/face/module/search_spec.rb
|
@@ -3472,6 +3462,7 @@ test_files:
|
|
3472
3462
|
- spec/unit/http/service/ca_spec.rb
|
3473
3463
|
- spec/unit/http/service/compiler_spec.rb
|
3474
3464
|
- spec/unit/http/service/file_server_spec.rb
|
3465
|
+
- spec/unit/http/service/puppetserver_spec.rb
|
3475
3466
|
- spec/unit/http/service/report_spec.rb
|
3476
3467
|
- spec/unit/http/service_spec.rb
|
3477
3468
|
- spec/unit/http/session_spec.rb
|
@@ -3505,6 +3496,7 @@ test_files:
|
|
3505
3496
|
- spec/unit/indirector/file_content/selector_spec.rb
|
3506
3497
|
- spec/unit/indirector/file_metadata/file_server_spec.rb
|
3507
3498
|
- spec/unit/indirector/file_metadata/file_spec.rb
|
3499
|
+
- spec/unit/indirector/file_metadata/http_spec.rb
|
3508
3500
|
- spec/unit/indirector/file_metadata/rest_spec.rb
|
3509
3501
|
- spec/unit/indirector/file_metadata/selector_spec.rb
|
3510
3502
|
- spec/unit/indirector/file_server_spec.rb
|
@@ -3547,7 +3539,6 @@ test_files:
|
|
3547
3539
|
- spec/unit/interface/option_builder_spec.rb
|
3548
3540
|
- spec/unit/interface/option_spec.rb
|
3549
3541
|
- spec/unit/interface_spec.rb
|
3550
|
-
- spec/unit/man_spec.rb
|
3551
3542
|
- spec/unit/module_spec.rb
|
3552
3543
|
- spec/unit/module_tool/application_spec.rb
|
3553
3544
|
- spec/unit/module_tool/applications/checksummer_spec.rb
|
@@ -3774,6 +3765,7 @@ test_files:
|
|
3774
3765
|
- spec/unit/provider/package/openbsd_spec.rb
|
3775
3766
|
- spec/unit/provider/package/opkg_spec.rb
|
3776
3767
|
- spec/unit/provider/package/pacman_spec.rb
|
3768
|
+
- spec/unit/provider/package/pip2_spec.rb
|
3777
3769
|
- spec/unit/provider/package/pip3_spec.rb
|
3778
3770
|
- spec/unit/provider/package/pip_spec.rb
|
3779
3771
|
- spec/unit/provider/package/pkg_spec.rb
|
@@ -3783,6 +3775,7 @@ test_files:
|
|
3783
3775
|
- spec/unit/provider/package/pkgutil_spec.rb
|
3784
3776
|
- spec/unit/provider/package/portage_spec.rb
|
3785
3777
|
- spec/unit/provider/package/puppet_gem_spec.rb
|
3778
|
+
- spec/unit/provider/package/puppetserver_gem_spec.rb
|
3786
3779
|
- spec/unit/provider/package/rpm_spec.rb
|
3787
3780
|
- spec/unit/provider/package/sun_spec.rb
|
3788
3781
|
- spec/unit/provider/package/tdnf_spec.rb
|
@@ -3875,6 +3868,7 @@ test_files:
|
|
3875
3868
|
- spec/unit/ssl/verifier_spec.rb
|
3876
3869
|
- spec/unit/status_spec.rb
|
3877
3870
|
- spec/unit/task_spec.rb
|
3871
|
+
- spec/unit/test/test_helper_spec.rb
|
3878
3872
|
- spec/unit/transaction/additional_resource_generator_spec.rb
|
3879
3873
|
- spec/unit/transaction/event_manager_spec.rb
|
3880
3874
|
- 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
|