puppet 6.16.0-x64-mingw32 → 6.20.0-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of puppet might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CODEOWNERS +2 -16
- data/Gemfile +6 -2
- data/Gemfile.lock +40 -36
- data/README.md +3 -4
- data/Rakefile +4 -12
- data/lib/puppet/agent.rb +2 -2
- data/lib/puppet/agent/locker.rb +0 -7
- data/lib/puppet/application.rb +10 -6
- data/lib/puppet/application/agent.rb +23 -6
- data/lib/puppet/application/apply.rb +20 -21
- data/lib/puppet/application/device.rb +1 -0
- data/lib/puppet/application/doc.rb +1 -1
- data/lib/puppet/application/filebucket.rb +2 -2
- data/lib/puppet/application/lookup.rb +16 -4
- data/lib/puppet/application/script.rb +1 -0
- data/lib/puppet/application_support.rb +7 -0
- data/lib/puppet/configurer.rb +70 -20
- 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/defaults.rb +113 -46
- data/lib/puppet/environments.rb +84 -59
- data/lib/puppet/face/catalog.rb +1 -1
- data/lib/puppet/face/config.rb +56 -16
- data/lib/puppet/face/epp.rb +12 -2
- data/lib/puppet/face/facts.rb +60 -0
- data/lib/puppet/face/node.rb +3 -3
- data/lib/puppet/face/node/clean.rb +2 -2
- data/lib/puppet/face/status.rb +1 -1
- data/lib/puppet/feature/base.rb +1 -1
- data/lib/puppet/ffi/posix.rb +10 -0
- data/lib/puppet/ffi/posix/constants.rb +14 -0
- data/lib/puppet/ffi/posix/functions.rb +24 -0
- data/lib/puppet/file_bucket/dipper.rb +1 -1
- data/lib/puppet/file_serving/http_metadata.rb +13 -1
- 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 +8 -16
- data/lib/puppet/forge.rb +1 -1
- data/lib/puppet/forge/cache.rb +1 -1
- data/lib/puppet/forge/repository.rb +3 -7
- data/lib/puppet/functions/epp.rb +1 -0
- data/lib/puppet/functions/inline_epp.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 +6 -1
- 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/fact_search.rb +60 -0
- data/lib/puppet/indirector/facts/facter.rb +3 -3
- data/lib/puppet/indirector/facts/json.rb +27 -0
- data/lib/puppet/indirector/facts/yaml.rb +4 -59
- data/lib/puppet/indirector/file_content/rest.rb +1 -1
- data/lib/puppet/indirector/file_metadata/http.rb +25 -5
- 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 +5 -1
- data/lib/puppet/indirector/msgpack.rb +1 -1
- data/lib/puppet/indirector/node/json.rb +8 -0
- data/lib/puppet/indirector/report/json.rb +34 -0
- data/lib/puppet/indirector/report/processor.rb +2 -2
- data/lib/puppet/indirector/request.rb +5 -5
- data/lib/puppet/indirector/yaml.rb +1 -1
- data/lib/puppet/module.rb +1 -2
- data/lib/puppet/module_tool/applications/installer.rb +48 -2
- data/lib/puppet/module_tool/errors/shared.rb +17 -2
- data/lib/puppet/network/format_support.rb +2 -2
- data/lib/puppet/network/formats.rb +2 -1
- 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/connection_adapter.rb +6 -4
- data/lib/puppet/network/http/route.rb +2 -2
- data/lib/puppet/node/environment.rb +12 -5
- data/lib/puppet/node/facts.rb +17 -0
- data/lib/puppet/pal/pal_impl.rb +90 -13
- data/lib/puppet/parameter.rb +1 -1
- data/lib/puppet/parser/ast/leaf.rb +7 -6
- data/lib/puppet/parser/ast/pops_bridge.rb +0 -4
- data/lib/puppet/parser/compiler.rb +1 -1
- 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/resource.rb +3 -2
- data/lib/puppet/parser/resource/param.rb +6 -0
- data/lib/puppet/parser/templatewrapper.rb +1 -1
- 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/deferred_resolver.rb +5 -3
- data/lib/puppet/pops/evaluator/evaluator_impl.rb +27 -8
- 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/model/ast_transformer.rb +1 -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/apt.rb +38 -0
- data/lib/puppet/provider/package/aptitude.rb +1 -1
- data/lib/puppet/provider/package/dpkg.rb +1 -1
- data/lib/puppet/provider/package/gem.rb +4 -2
- data/lib/puppet/provider/package/pip2.rb +17 -0
- 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 +2 -1
- data/lib/puppet/provider/package/zypper.rb +3 -0
- data/lib/puppet/provider/service/windows.rb +23 -7
- data/lib/puppet/provider/user/aix.rb +3 -3
- data/lib/puppet/provider/user/user_role_add.rb +1 -1
- data/lib/puppet/provider/user/useradd.rb +11 -4
- data/lib/puppet/provider/user/windows_adsi.rb +18 -1
- data/lib/puppet/reference/configuration.rb +6 -5
- data/lib/puppet/reports/http.rb +2 -0
- 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/settings.rb +63 -21
- data/lib/puppet/settings/alias_setting.rb +37 -0
- data/lib/puppet/settings/base_setting.rb +26 -2
- data/lib/puppet/ssl/ssl_context.rb +2 -2
- data/lib/puppet/ssl/ssl_provider.rb +20 -1
- data/lib/puppet/ssl/validator/default_validator.rb +1 -1
- data/lib/puppet/test/test_helper.rb +18 -13
- 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 +32 -12
- data/lib/puppet/type/filebucket.rb +1 -1
- data/lib/puppet/type/notify.rb +2 -2
- data/lib/puppet/type/service.rb +53 -0
- data/lib/puppet/type/user.rb +18 -3
- data/lib/puppet/util.rb +41 -3
- data/lib/puppet/util/autoload.rb +10 -15
- 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/fact_dif.rb +62 -0
- data/lib/puppet/util/fileparsing.rb +2 -2
- data/lib/puppet/util/posix.rb +54 -5
- data/lib/puppet/util/provider_features.rb +1 -1
- data/lib/puppet/util/reference.rb +1 -1
- data/lib/puppet/util/rubygems.rb +5 -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 +501 -443
- data/man/man5/puppet.conf.5 +70 -24
- data/man/man8/puppet-agent.8 +8 -5
- data/man/man8/puppet-apply.8 +2 -2
- 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 +2 -2
- data/man/man8/puppet-doc.8 +1 -1
- data/man/man8/puppet-epp.8 +1 -1
- data/man/man8/puppet-facts.8 +32 -1
- data/man/man8/puppet-filebucket.8 +3 -3
- data/man/man8/puppet-generate.8 +1 -1
- data/man/man8/puppet-help.8 +1 -1
- data/man/man8/puppet-key.8 +1 -1
- data/man/man8/puppet-lookup.8 +2 -2
- data/man/man8/puppet-man.8 +1 -1
- data/man/man8/puppet-module.8 +1 -1
- data/man/man8/puppet-node.8 +7 -4
- data/man/man8/puppet-parser.8 +1 -1
- data/man/man8/puppet-plugin.8 +1 -1
- data/man/man8/puppet-report.8 +4 -1
- data/man/man8/puppet-resource.8 +1 -1
- data/man/man8/puppet-script.8 +2 -2
- data/man/man8/puppet-ssl.8 +1 -1
- data/man/man8/puppet-status.8 +2 -2
- data/man/man8/puppet.8 +2 -2
- data/spec/fixtures/integration/application/agent/cached_deferred_catalog.json +91 -0
- 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/puppetserver_gem/gem-list-local-packages +30 -0
- data/spec/fixtures/unit/provider/user/aix/aix_passwd_file.out +4 -0
- data/spec/integration/application/agent_spec.rb +263 -54
- data/spec/integration/application/apply_spec.rb +168 -149
- 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 +53 -3
- data/spec/integration/configurer_spec.rb +14 -0
- data/spec/integration/data_binding_spec.rb +82 -0
- data/spec/integration/defaults_spec.rb +20 -3
- data/spec/integration/directory_environments_spec.rb +17 -17
- data/spec/integration/environments/setting_hooks_spec.rb +1 -1
- data/spec/integration/indirector/facts/facter_spec.rb +8 -6
- data/spec/integration/network/http_pool_spec.rb +26 -9
- data/spec/integration/node/environment_spec.rb +1 -1
- data/spec/integration/parser/compiler_spec.rb +11 -0
- data/spec/integration/resource/type_collection_spec.rb +2 -6
- data/spec/integration/transaction_spec.rb +4 -9
- 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 +5 -3
- 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 -17
- data/spec/integration/util/windows/user_spec.rb +47 -5
- data/spec/integration/util_spec.rb +7 -33
- data/spec/lib/puppet_spec/matchers.rb +0 -80
- data/spec/lib/puppet_spec/puppetserver.rb +8 -0
- data/spec/lib/puppet_spec/settings.rb +6 -1
- data/spec/shared_contexts/types_setup.rb +2 -0
- data/spec/spec_helper.rb +1 -4
- data/spec/unit/agent_spec.rb +8 -6
- data/spec/unit/application/agent_spec.rb +3 -5
- data/spec/unit/application/config_spec.rb +224 -4
- 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/filebucket_spec.rb +0 -2
- 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 +60 -13
- 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/feature_spec.rb +1 -1
- data/spec/unit/confine_spec.rb +10 -3
- data/spec/unit/context/trusted_information_spec.rb +10 -4
- data/spec/unit/defaults_spec.rb +20 -1
- data/spec/unit/environments_spec.rb +176 -32
- data/spec/unit/face/config_spec.rb +65 -12
- data/spec/unit/face/node_spec.rb +2 -13
- data/spec/unit/file_serving/configuration/parser_spec.rb +0 -1
- data/spec/unit/file_serving/http_metadata_spec.rb +37 -14
- data/spec/unit/file_serving/metadata_spec.rb +3 -3
- 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_helper_spec.rb +11 -4
- data/spec/unit/file_serving/terminus_selector_spec.rb +45 -26
- data/spec/unit/file_system/uniquefile_spec.rb +18 -0
- data/spec/unit/file_system_spec.rb +1 -2
- data/spec/unit/forge/module_release_spec.rb +2 -7
- data/spec/unit/functions/inline_epp_spec.rb +26 -1
- data/spec/unit/http/client_spec.rb +64 -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 +51 -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 +1 -2
- data/spec/unit/http/session_spec.rb +8 -21
- data/spec/unit/indirector/catalog/json_spec.rb +1 -1
- data/spec/unit/indirector/catalog/rest_spec.rb +1 -1
- data/spec/unit/indirector/face_spec.rb +0 -1
- data/spec/unit/indirector/facts/facter_spec.rb +0 -1
- data/spec/unit/indirector/facts/json_spec.rb +255 -0
- data/spec/unit/indirector/facts/rest_spec.rb +1 -1
- data/spec/unit/indirector/file_bucket_file/selector_spec.rb +26 -8
- data/spec/unit/indirector/file_metadata/http_spec.rb +27 -0
- data/spec/unit/indirector/indirection_spec.rb +8 -12
- data/spec/unit/indirector/json_spec.rb +8 -8
- data/spec/unit/indirector/key/file_spec.rb +0 -1
- data/spec/unit/indirector/msgpack_spec.rb +8 -8
- data/spec/unit/indirector/node/json_spec.rb +33 -0
- data/spec/unit/indirector/node/rest_spec.rb +1 -1
- data/spec/{integration/indirector/report/yaml.rb → unit/indirector/report/json_spec.rb} +13 -24
- data/spec/unit/indirector/report/yaml_spec.rb +72 -8
- data/spec/unit/indirector/request_spec.rb +5 -5
- data/spec/unit/indirector/rest_spec.rb +1 -1
- data/spec/unit/indirector/status/rest_spec.rb +1 -1
- data/spec/unit/indirector/yaml_spec.rb +7 -7
- data/spec/unit/indirector_spec.rb +2 -2
- data/spec/unit/interface_spec.rb +3 -3
- data/spec/unit/module_tool/applications/installer_spec.rb +66 -0
- data/spec/unit/module_tool/tar/mini_spec.rb +20 -0
- data/spec/unit/network/authconfig_spec.rb +0 -3
- data/spec/unit/network/format_support_spec.rb +3 -2
- data/spec/unit/network/http/api/indirected_routes_spec.rb +2 -10
- data/spec/unit/network/http/api/master/v3/environments_spec.rb +12 -23
- data/spec/unit/network/http/connection_spec.rb +42 -32
- data/spec/unit/network/http/handler_spec.rb +0 -5
- data/spec/unit/node/environment_spec.rb +18 -1
- data/spec/unit/parser/ast/block_expression_spec.rb +1 -1
- data/spec/unit/parser/compiler_spec.rb +3 -19
- data/spec/unit/parser/environment_compiler_spec.rb +7 -0
- data/spec/unit/parser/resource_spec.rb +14 -8
- data/spec/unit/parser/scope_spec.rb +1 -1
- data/spec/unit/parser/templatewrapper_spec.rb +4 -3
- data/spec/unit/pops/evaluator/deferred_resolver_spec.rb +20 -0
- 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/property_spec.rb +1 -0
- data/spec/unit/provider/exec_spec.rb +4 -3
- data/spec/unit/provider/nameservice_spec.rb +66 -65
- data/spec/unit/provider/package/apt_spec.rb +76 -3
- data/spec/unit/provider/package/aptitude_spec.rb +1 -0
- data/spec/unit/provider/package/base_spec.rb +6 -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/pacman_spec.rb +18 -12
- data/spec/unit/provider/package/pip2_spec.rb +36 -0
- data/spec/unit/provider/package/pip_spec.rb +6 -11
- data/spec/unit/provider/package/pkgdmg_spec.rb +0 -4
- data/spec/unit/provider/package/puppet_gem_spec.rb +4 -1
- data/spec/unit/provider/package/puppetserver_gem_spec.rb +137 -0
- data/spec/unit/provider/package/yum_spec.rb +31 -0
- data/spec/unit/provider/package/zypper_spec.rb +14 -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 +45 -5
- data/spec/unit/provider/service/launchd_spec.rb +5 -6
- data/spec/unit/provider/service/openrc_spec.rb +4 -5
- data/spec/unit/provider/service/openwrt_spec.rb +1 -1
- data/spec/unit/provider/service/redhat_spec.rb +1 -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 +3 -6
- 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/aix_spec.rb +5 -0
- data/spec/unit/provider/user/hpux_spec.rb +1 -1
- data/spec/unit/provider/user/openbsd_spec.rb +1 -0
- data/spec/unit/provider/user/pw_spec.rb +2 -0
- data/spec/unit/provider/user/useradd_spec.rb +23 -16
- data/spec/unit/provider/user/windows_adsi_spec.rb +82 -0
- data/spec/unit/provider_spec.rb +8 -10
- data/spec/unit/puppet_pal_2pec.rb +40 -0
- data/spec/unit/puppet_pal_catalog_spec.rb +45 -0
- data/spec/unit/reports/store_spec.rb +17 -13
- data/spec/unit/resource/capability_finder_spec.rb +6 -1
- data/spec/unit/resource/type_spec.rb +1 -1
- data/spec/unit/resource_spec.rb +14 -13
- data/spec/unit/rest/route_spec.rb +4 -4
- data/spec/unit/settings_spec.rb +576 -239
- data/spec/unit/ssl/base_spec.rb +0 -1
- data/spec/unit/ssl/host_spec.rb +0 -5
- data/spec/unit/ssl/ssl_provider_spec.rb +82 -50
- data/spec/unit/test/test_helper_spec.rb +17 -0
- data/spec/unit/transaction/additional_resource_generator_spec.rb +3 -7
- data/spec/unit/transaction/event_manager_spec.rb +14 -11
- data/spec/unit/transaction/persistence_spec.rb +15 -0
- data/spec/unit/transaction/report_spec.rb +3 -1
- data/spec/unit/transaction_spec.rb +13 -4
- data/spec/unit/type/file/content_spec.rb +0 -1
- data/spec/unit/type/file/selinux_spec.rb +0 -2
- data/spec/unit/type/file/source_spec.rb +4 -4
- data/spec/unit/type/file_spec.rb +122 -102
- data/spec/unit/type/filebucket_spec.rb +1 -1
- data/spec/unit/type/group_spec.rb +13 -6
- data/spec/unit/type/resources_spec.rb +7 -7
- data/spec/unit/type/service_spec.rb +210 -1
- data/spec/unit/type/tidy_spec.rb +0 -1
- data/spec/unit/type/user_spec.rb +31 -2
- data/spec/unit/type_spec.rb +52 -2
- data/spec/unit/util/at_fork_spec.rb +2 -2
- data/spec/unit/util/autoload_spec.rb +5 -1
- data/spec/unit/util/backups_spec.rb +1 -2
- data/spec/unit/util/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/execution_spec.rb +15 -11
- data/spec/unit/util/inifile_spec.rb +6 -14
- data/spec/unit/util/log_spec.rb +8 -7
- data/spec/unit/util/logging_spec.rb +3 -3
- data/spec/unit/util/posix_spec.rb +363 -15
- data/spec/unit/util/rubygems_spec.rb +2 -2
- data/spec/unit/util/run_mode_spec.rb +6 -6
- data/spec/unit/util/selinux_spec.rb +76 -52
- data/spec/unit/util/storage_spec.rb +3 -1
- data/spec/unit/util/suidmanager_spec.rb +44 -41
- data/spec/unit/util/windows/api_types_spec.rb +104 -40
- data/spec/unit/util/windows/service_spec.rb +4 -4
- data/spec/unit/util_spec.rb +16 -9
- data/spec/unit/x509/cert_provider_spec.rb +1 -1
- metadata +52 -53
- 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/catalog_spec.rb +0 -6
- data/spec/unit/face/man_spec.rb +0 -25
- data/spec/unit/face/module_spec.rb +0 -3
- data/spec/unit/man_spec.rb +0 -31
@@ -599,27 +599,27 @@ describe "Puppet::Util::Windows::Service", :if => Puppet.features.microsoft_wind
|
|
599
599
|
end
|
600
600
|
end
|
601
601
|
|
602
|
-
describe "#
|
602
|
+
describe "#set_startup_configuration" do
|
603
603
|
let(:status_checks) { sequence('status_checks') }
|
604
604
|
|
605
605
|
context "when the service control manager cannot be opened" do
|
606
606
|
let(:scm) { FFI::Pointer::NULL_HANDLE }
|
607
607
|
it "raises a puppet error" do
|
608
|
-
expect{ subject.
|
608
|
+
expect{ subject.set_startup_configuration(mock_service_name, options: {startup_type: :SERVICE_DEMAND_START}) }.to raise_error(Puppet::Error)
|
609
609
|
end
|
610
610
|
end
|
611
611
|
|
612
612
|
context "when the service cannot be opened" do
|
613
613
|
let(:service) { FFI::Pointer::NULL_HANDLE }
|
614
614
|
it "raises a puppet error" do
|
615
|
-
expect{ subject.
|
615
|
+
expect{ subject.set_startup_configuration(mock_service_name, options: {startup_type: :SERVICE_DEMAND_START}) }.to raise_error(Puppet::Error)
|
616
616
|
end
|
617
617
|
end
|
618
618
|
|
619
619
|
context "when the service can be opened" do
|
620
620
|
it "Raises an error on an unsuccessful change" do
|
621
621
|
expect(subject).to receive(:ChangeServiceConfigW).and_return(FFI::WIN32_FALSE)
|
622
|
-
expect{ subject.
|
622
|
+
expect{ subject.set_startup_configuration(mock_service_name, options: {startup_type: :SERVICE_DEMAND_START}) }.to raise_error(Puppet::Error)
|
623
623
|
end
|
624
624
|
end
|
625
625
|
end
|
data/spec/unit/util_spec.rb
CHANGED
@@ -299,11 +299,11 @@ describe Puppet::Util do
|
|
299
299
|
expect(uri.to_s.encoding).to eq(expected_encoding)
|
300
300
|
expect(uri.path).to eq("/foo+foo%20bar")
|
301
301
|
# either + or %20 is correct for an encoded space in query
|
302
|
-
# + is usually used for backward compatibility, but %20 is preferred for compat with
|
302
|
+
# + is usually used for backward compatibility, but %20 is preferred for compat with Puppet::Util.uri_unescape
|
303
303
|
expect(uri.query).to eq("foo%2Bfoo%20bar")
|
304
304
|
# complete roundtrip
|
305
|
-
expect(
|
306
|
-
expect(
|
305
|
+
expect(Puppet::Util.uri_unescape(uri.to_s).sub(%r{^file:(//)?}, '')).to eq(path)
|
306
|
+
expect(Puppet::Util.uri_unescape(uri.to_s).encoding).to eq(expected_encoding)
|
307
307
|
end
|
308
308
|
|
309
309
|
it "should perform UTF-8 URI escaping" do
|
@@ -315,7 +315,7 @@ describe Puppet::Util do
|
|
315
315
|
|
316
316
|
describe "when using platform :posix" do
|
317
317
|
before :each do
|
318
|
-
allow(Puppet.features).to receive(:posix).and_return(true)
|
318
|
+
allow(Puppet.features).to receive(:posix?).and_return(true)
|
319
319
|
allow(Puppet::Util::Platform).to receive(:windows?).and_return(false)
|
320
320
|
end
|
321
321
|
|
@@ -328,7 +328,7 @@ describe Puppet::Util do
|
|
328
328
|
|
329
329
|
describe "when using platform :windows" do
|
330
330
|
before :each do
|
331
|
-
allow(Puppet.features).to receive(:posix).and_return(false)
|
331
|
+
allow(Puppet.features).to receive(:posix?).and_return(false)
|
332
332
|
allow(Puppet::Util::Platform).to receive(:windows?).and_return(true)
|
333
333
|
end
|
334
334
|
|
@@ -462,7 +462,7 @@ describe Puppet::Util do
|
|
462
462
|
|
463
463
|
describe "when using platform :posix" do
|
464
464
|
before :each do
|
465
|
-
allow(Puppet.features).to receive(:posix).and_return(true)
|
465
|
+
allow(Puppet.features).to receive(:posix?).and_return(true)
|
466
466
|
allow(Puppet::Util::Platform).to receive(:windows?).and_return(false)
|
467
467
|
end
|
468
468
|
|
@@ -501,7 +501,7 @@ describe Puppet::Util do
|
|
501
501
|
|
502
502
|
describe "when using platform :windows" do
|
503
503
|
before :each do
|
504
|
-
allow(Puppet.features).to receive(:posix).and_return(false)
|
504
|
+
allow(Puppet.features).to receive(:posix?).and_return(false)
|
505
505
|
allow(Puppet::Util::Platform).to receive(:windows?).and_return(true)
|
506
506
|
end
|
507
507
|
|
@@ -539,7 +539,6 @@ describe Puppet::Util do
|
|
539
539
|
expect(Puppet::Util.uri_to_path(URI.parse('http://foo/bar%20baz'))).to eq('/bar baz')
|
540
540
|
end
|
541
541
|
|
542
|
-
|
543
542
|
[
|
544
543
|
"http://foo/A%DB%BF%E1%9A%A0%F0%A0%9C%8E",
|
545
544
|
"http://foo/A%DB%BF%E1%9A%A0%F0%A0%9C%8E".force_encoding(Encoding::ASCII)
|
@@ -589,7 +588,15 @@ describe Puppet::Util do
|
|
589
588
|
end
|
590
589
|
end
|
591
590
|
|
592
|
-
describe "safe_posix_fork" do
|
591
|
+
describe "safe_posix_fork on Windows and JRuby", if: Puppet::Util::Platform.windows? || Puppet::Util::Platform.jruby? do
|
592
|
+
it "raises not implemented error" do
|
593
|
+
expect {
|
594
|
+
Puppet::Util.safe_posix_fork
|
595
|
+
}.to raise_error(NotImplementedError, /fork/)
|
596
|
+
end
|
597
|
+
end
|
598
|
+
|
599
|
+
describe "safe_posix_fork", unless: Puppet::Util::Platform.windows? || Puppet::Util::Platform.jruby? do
|
593
600
|
let(:pid) { 5501 }
|
594
601
|
|
595
602
|
before :each do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.
|
4
|
+
version: 6.20.0
|
5
5
|
platform: x64-mingw32
|
6
6
|
authors:
|
7
7
|
- Puppet Labs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: facter
|
@@ -512,6 +512,9 @@ files:
|
|
512
512
|
- lib/puppet/feature/ssh.rb
|
513
513
|
- lib/puppet/feature/telnet.rb
|
514
514
|
- lib/puppet/feature/zlib.rb
|
515
|
+
- lib/puppet/ffi/posix.rb
|
516
|
+
- lib/puppet/ffi/posix/constants.rb
|
517
|
+
- lib/puppet/ffi/posix/functions.rb
|
515
518
|
- lib/puppet/file_bucket.rb
|
516
519
|
- lib/puppet/file_bucket/dipper.rb
|
517
520
|
- lib/puppet/file_bucket/file.rb
|
@@ -663,6 +666,7 @@ files:
|
|
663
666
|
- lib/puppet/http/service/ca.rb
|
664
667
|
- lib/puppet/http/service/compiler.rb
|
665
668
|
- lib/puppet/http/service/file_server.rb
|
669
|
+
- lib/puppet/http/service/puppetserver.rb
|
666
670
|
- lib/puppet/http/service/report.rb
|
667
671
|
- lib/puppet/http/session.rb
|
668
672
|
- lib/puppet/indirector.rb
|
@@ -685,7 +689,9 @@ files:
|
|
685
689
|
- lib/puppet/indirector/errors.rb
|
686
690
|
- lib/puppet/indirector/exec.rb
|
687
691
|
- lib/puppet/indirector/face.rb
|
692
|
+
- lib/puppet/indirector/fact_search.rb
|
688
693
|
- lib/puppet/indirector/facts/facter.rb
|
694
|
+
- lib/puppet/indirector/facts/json.rb
|
689
695
|
- lib/puppet/indirector/facts/memory.rb
|
690
696
|
- lib/puppet/indirector/facts/network_device.rb
|
691
697
|
- lib/puppet/indirector/facts/rest.rb
|
@@ -716,6 +722,7 @@ files:
|
|
716
722
|
- lib/puppet/indirector/memory.rb
|
717
723
|
- lib/puppet/indirector/msgpack.rb
|
718
724
|
- lib/puppet/indirector/node/exec.rb
|
725
|
+
- lib/puppet/indirector/node/json.rb
|
719
726
|
- lib/puppet/indirector/node/memory.rb
|
720
727
|
- lib/puppet/indirector/node/msgpack.rb
|
721
728
|
- lib/puppet/indirector/node/plain.rb
|
@@ -724,6 +731,7 @@ files:
|
|
724
731
|
- lib/puppet/indirector/node/yaml.rb
|
725
732
|
- lib/puppet/indirector/none.rb
|
726
733
|
- lib/puppet/indirector/plain.rb
|
734
|
+
- lib/puppet/indirector/report/json.rb
|
727
735
|
- lib/puppet/indirector/report/msgpack.rb
|
728
736
|
- lib/puppet/indirector/report/processor.rb
|
729
737
|
- lib/puppet/indirector/report/rest.rb
|
@@ -1143,6 +1151,7 @@ files:
|
|
1143
1151
|
- lib/puppet/provider/package/opkg.rb
|
1144
1152
|
- lib/puppet/provider/package/pacman.rb
|
1145
1153
|
- lib/puppet/provider/package/pip.rb
|
1154
|
+
- lib/puppet/provider/package/pip2.rb
|
1146
1155
|
- lib/puppet/provider/package/pip3.rb
|
1147
1156
|
- lib/puppet/provider/package/pkg.rb
|
1148
1157
|
- lib/puppet/provider/package/pkgdmg.rb
|
@@ -1153,6 +1162,7 @@ files:
|
|
1153
1162
|
- lib/puppet/provider/package/ports.rb
|
1154
1163
|
- lib/puppet/provider/package/portupgrade.rb
|
1155
1164
|
- lib/puppet/provider/package/puppet_gem.rb
|
1165
|
+
- lib/puppet/provider/package/puppetserver_gem.rb
|
1156
1166
|
- lib/puppet/provider/package/rpm.rb
|
1157
1167
|
- lib/puppet/provider/package/rug.rb
|
1158
1168
|
- lib/puppet/provider/package/sun.rb
|
@@ -1226,6 +1236,7 @@ files:
|
|
1226
1236
|
- lib/puppet/scheduler/splay_job.rb
|
1227
1237
|
- lib/puppet/scheduler/timer.rb
|
1228
1238
|
- lib/puppet/settings.rb
|
1239
|
+
- lib/puppet/settings/alias_setting.rb
|
1229
1240
|
- lib/puppet/settings/array_setting.rb
|
1230
1241
|
- lib/puppet/settings/autosign_setting.rb
|
1231
1242
|
- lib/puppet/settings/base_setting.rb
|
@@ -1334,6 +1345,7 @@ files:
|
|
1334
1345
|
- lib/puppet/util/errors.rb
|
1335
1346
|
- lib/puppet/util/execution.rb
|
1336
1347
|
- lib/puppet/util/execution_stub.rb
|
1348
|
+
- lib/puppet/util/fact_dif.rb
|
1337
1349
|
- lib/puppet/util/feature.rb
|
1338
1350
|
- lib/puppet/util/file_watcher.rb
|
1339
1351
|
- lib/puppet/util/fileparsing.rb
|
@@ -1428,6 +1440,7 @@ files:
|
|
1428
1440
|
- lib/puppet/util/windows/error.rb
|
1429
1441
|
- lib/puppet/util/windows/eventlog.rb
|
1430
1442
|
- lib/puppet/util/windows/file.rb
|
1443
|
+
- lib/puppet/util/windows/monkey_patches/dir.rb
|
1431
1444
|
- lib/puppet/util/windows/principal.rb
|
1432
1445
|
- lib/puppet/util/windows/process.rb
|
1433
1446
|
- lib/puppet/util/windows/registry.rb
|
@@ -1487,6 +1500,9 @@ files:
|
|
1487
1500
|
- man/man8/puppet.8
|
1488
1501
|
- spec/fixtures/faulty_face/puppet/face/syntax.rb
|
1489
1502
|
- spec/fixtures/hiera.yaml
|
1503
|
+
- spec/fixtures/integration/application/agent/cached_deferred_catalog.json
|
1504
|
+
- spec/fixtures/integration/application/apply/environments/spec/modules/amod/lib/puppet/provider/applytest/applytest.rb
|
1505
|
+
- spec/fixtures/integration/application/apply/environments/spec/modules/amod/lib/puppet/type/applytest.rb
|
1490
1506
|
- spec/fixtures/integration/node/environment/sitedir/00_a.pp
|
1491
1507
|
- spec/fixtures/integration/node/environment/sitedir/01_b.pp
|
1492
1508
|
- spec/fixtures/integration/node/environment/sitedir/03_empty.pp
|
@@ -1619,7 +1635,9 @@ files:
|
|
1619
1635
|
- spec/fixtures/unit/data_providers/environments/production/modules/xyz/functions/data.pp
|
1620
1636
|
- spec/fixtures/unit/data_providers/environments/production/modules/xyz/manifests/init.pp
|
1621
1637
|
- spec/fixtures/unit/data_providers/environments/production/modules/xyz/metadata.json
|
1638
|
+
- spec/fixtures/unit/forge/bacula-releases.json
|
1622
1639
|
- spec/fixtures/unit/forge/bacula.json
|
1640
|
+
- spec/fixtures/unit/forge/bacula.tar.gz
|
1623
1641
|
- spec/fixtures/unit/functions/hiera/hiera/backend/hieraspec_backend.rb
|
1624
1642
|
- spec/fixtures/unit/functions/lookup/data/common.yaml
|
1625
1643
|
- spec/fixtures/unit/functions/lookup/hiera/backend/custom_backend.rb
|
@@ -1835,6 +1853,7 @@ files:
|
|
1835
1853
|
- spec/fixtures/unit/provider/package/pkgng/pkg.query
|
1836
1854
|
- spec/fixtures/unit/provider/package/pkgng/pkg.query.zsh
|
1837
1855
|
- spec/fixtures/unit/provider/package/pkgng/pkg.version
|
1856
|
+
- spec/fixtures/unit/provider/package/puppetserver_gem/gem-list-local-packages
|
1838
1857
|
- spec/fixtures/unit/provider/package/sun/dummy.server
|
1839
1858
|
- spec/fixtures/unit/provider/package/sun/simple
|
1840
1859
|
- spec/fixtures/unit/provider/package/yum/yum-check-update-broken-notices.txt
|
@@ -1883,7 +1902,9 @@ files:
|
|
1883
1902
|
- spec/integration/application/apply_spec.rb
|
1884
1903
|
- spec/integration/application/doc_spec.rb
|
1885
1904
|
- spec/integration/application/filebucket_spec.rb
|
1905
|
+
- spec/integration/application/help_spec.rb
|
1886
1906
|
- spec/integration/application/lookup_spec.rb
|
1907
|
+
- spec/integration/application/module_spec.rb
|
1887
1908
|
- spec/integration/application/plugin_spec.rb
|
1888
1909
|
- spec/integration/configurer_spec.rb
|
1889
1910
|
- spec/integration/data_binding_spec.rb
|
@@ -1893,23 +1914,12 @@ files:
|
|
1893
1914
|
- spec/integration/environments/setting_hooks_spec.rb
|
1894
1915
|
- spec/integration/environments/settings_interpolation_spec.rb
|
1895
1916
|
- spec/integration/environments/settings_spec.rb
|
1896
|
-
- spec/integration/faces/config_spec.rb
|
1897
|
-
- spec/integration/faces/documentation_spec.rb
|
1898
|
-
- spec/integration/file_bucket/file_spec.rb
|
1899
|
-
- spec/integration/file_serving/content_spec.rb
|
1900
|
-
- spec/integration/file_serving/fileset_spec.rb
|
1901
|
-
- spec/integration/file_serving/metadata_spec.rb
|
1902
|
-
- spec/integration/file_serving/terminus_helper_spec.rb
|
1903
|
-
- spec/integration/file_system/uniquefile_spec.rb
|
1904
1917
|
- spec/integration/http/client_spec.rb
|
1905
1918
|
- spec/integration/indirector/catalog/compiler_spec.rb
|
1906
1919
|
- spec/integration/indirector/direct_file_server_spec.rb
|
1907
1920
|
- spec/integration/indirector/facts/facter_spec.rb
|
1908
1921
|
- spec/integration/indirector/file_content/file_server_spec.rb
|
1909
1922
|
- spec/integration/indirector/file_metadata/file_server_spec.rb
|
1910
|
-
- spec/integration/indirector/report/yaml.rb
|
1911
|
-
- spec/integration/module_tool/forge_spec.rb
|
1912
|
-
- spec/integration/module_tool/tar/mini_spec.rb
|
1913
1923
|
- spec/integration/network/authconfig_spec.rb
|
1914
1924
|
- spec/integration/network/formats_spec.rb
|
1915
1925
|
- spec/integration/network/http/api/indirected_routes_spec.rb
|
@@ -1932,17 +1942,8 @@ files:
|
|
1932
1942
|
- spec/integration/parser/script_compiler_spec.rb
|
1933
1943
|
- spec/integration/parser/undef_param_spec.rb
|
1934
1944
|
- spec/integration/provider/file/windows_spec.rb
|
1935
|
-
- spec/integration/provider/service/init_spec.rb
|
1936
|
-
- spec/integration/provider/service/systemd_spec.rb
|
1937
|
-
- spec/integration/provider/service/windows_spec.rb
|
1938
|
-
- spec/integration/reference/providers_spec.rb
|
1939
|
-
- spec/integration/reports_spec.rb
|
1940
1945
|
- spec/integration/resource/catalog_spec.rb
|
1941
1946
|
- spec/integration/resource/type_collection_spec.rb
|
1942
|
-
- spec/integration/ssl/certificate_request_spec.rb
|
1943
|
-
- spec/integration/ssl/host_spec.rb
|
1944
|
-
- spec/integration/ssl/key_spec.rb
|
1945
|
-
- spec/integration/test/test_helper_spec.rb
|
1946
1947
|
- spec/integration/transaction/report_spec.rb
|
1947
1948
|
- spec/integration/transaction_spec.rb
|
1948
1949
|
- spec/integration/type/exec_spec.rb
|
@@ -1956,6 +1957,7 @@ files:
|
|
1956
1957
|
- spec/integration/util/rdoc/parser_spec.rb
|
1957
1958
|
- spec/integration/util/settings_spec.rb
|
1958
1959
|
- spec/integration/util/windows/adsi_spec.rb
|
1960
|
+
- spec/integration/util/windows/monkey_patches/dir_spec.rb
|
1959
1961
|
- spec/integration/util/windows/principal_spec.rb
|
1960
1962
|
- spec/integration/util/windows/process_spec.rb
|
1961
1963
|
- spec/integration/util/windows/registry_spec.rb
|
@@ -2007,7 +2009,6 @@ files:
|
|
2007
2009
|
- spec/shared_behaviours/documentation_on_faces.rb
|
2008
2010
|
- spec/shared_behaviours/file_server_terminus.rb
|
2009
2011
|
- spec/shared_behaviours/file_serving.rb
|
2010
|
-
- spec/shared_behaviours/file_serving_model.rb
|
2011
2012
|
- spec/shared_behaviours/hiera_indirections.rb
|
2012
2013
|
- spec/shared_behaviours/iterative_functions.rb
|
2013
2014
|
- spec/shared_behaviours/memory_terminus.rb
|
@@ -2034,6 +2035,7 @@ files:
|
|
2034
2035
|
- spec/unit/application/filebucket_spec.rb
|
2035
2036
|
- spec/unit/application/indirection_base_spec.rb
|
2036
2037
|
- spec/unit/application/lookup_spec.rb
|
2038
|
+
- spec/unit/application/man_spec.rb
|
2037
2039
|
- spec/unit/application/resource_spec.rb
|
2038
2040
|
- spec/unit/application/ssl_spec.rb
|
2039
2041
|
- spec/unit/application_spec.rb
|
@@ -2063,20 +2065,17 @@ files:
|
|
2063
2065
|
- spec/unit/environments_spec.rb
|
2064
2066
|
- spec/unit/etc_spec.rb
|
2065
2067
|
- spec/unit/external/pson_spec.rb
|
2066
|
-
- spec/unit/face/catalog_spec.rb
|
2067
2068
|
- spec/unit/face/config_spec.rb
|
2068
2069
|
- spec/unit/face/epp_face_spec.rb
|
2069
2070
|
- spec/unit/face/facts_spec.rb
|
2070
2071
|
- spec/unit/face/generate_spec.rb
|
2071
2072
|
- spec/unit/face/help_spec.rb
|
2072
2073
|
- spec/unit/face/key_spec.rb
|
2073
|
-
- spec/unit/face/man_spec.rb
|
2074
2074
|
- spec/unit/face/module/install_spec.rb
|
2075
2075
|
- spec/unit/face/module/list_spec.rb
|
2076
2076
|
- spec/unit/face/module/search_spec.rb
|
2077
2077
|
- spec/unit/face/module/uninstall_spec.rb
|
2078
2078
|
- spec/unit/face/module/upgrade_spec.rb
|
2079
|
-
- spec/unit/face/module_spec.rb
|
2080
2079
|
- spec/unit/face/node_spec.rb
|
2081
2080
|
- spec/unit/face/parser_spec.rb
|
2082
2081
|
- spec/unit/face/plugin_spec.rb
|
@@ -2200,6 +2199,7 @@ files:
|
|
2200
2199
|
- spec/unit/http/service/ca_spec.rb
|
2201
2200
|
- spec/unit/http/service/compiler_spec.rb
|
2202
2201
|
- spec/unit/http/service/file_server_spec.rb
|
2202
|
+
- spec/unit/http/service/puppetserver_spec.rb
|
2203
2203
|
- spec/unit/http/service/report_spec.rb
|
2204
2204
|
- spec/unit/http/service_spec.rb
|
2205
2205
|
- spec/unit/http/session_spec.rb
|
@@ -2220,6 +2220,7 @@ files:
|
|
2220
2220
|
- spec/unit/indirector/exec_spec.rb
|
2221
2221
|
- spec/unit/indirector/face_spec.rb
|
2222
2222
|
- spec/unit/indirector/facts/facter_spec.rb
|
2223
|
+
- spec/unit/indirector/facts/json_spec.rb
|
2223
2224
|
- spec/unit/indirector/facts/network_device_spec.rb
|
2224
2225
|
- spec/unit/indirector/facts/rest_spec.rb
|
2225
2226
|
- spec/unit/indirector/facts/store_configs_spec.rb
|
@@ -2244,6 +2245,7 @@ files:
|
|
2244
2245
|
- spec/unit/indirector/memory_spec.rb
|
2245
2246
|
- spec/unit/indirector/msgpack_spec.rb
|
2246
2247
|
- spec/unit/indirector/node/exec_spec.rb
|
2248
|
+
- spec/unit/indirector/node/json_spec.rb
|
2247
2249
|
- spec/unit/indirector/node/memory_spec.rb
|
2248
2250
|
- spec/unit/indirector/node/msgpack_spec.rb
|
2249
2251
|
- spec/unit/indirector/node/plain_spec.rb
|
@@ -2252,6 +2254,7 @@ files:
|
|
2252
2254
|
- spec/unit/indirector/node/yaml_spec.rb
|
2253
2255
|
- spec/unit/indirector/none_spec.rb
|
2254
2256
|
- spec/unit/indirector/plain_spec.rb
|
2257
|
+
- spec/unit/indirector/report/json_spec.rb
|
2255
2258
|
- spec/unit/indirector/report/msgpack_spec.rb
|
2256
2259
|
- spec/unit/indirector/report/processor_spec.rb
|
2257
2260
|
- spec/unit/indirector/report/rest_spec.rb
|
@@ -2276,7 +2279,6 @@ files:
|
|
2276
2279
|
- spec/unit/interface/option_builder_spec.rb
|
2277
2280
|
- spec/unit/interface/option_spec.rb
|
2278
2281
|
- spec/unit/interface_spec.rb
|
2279
|
-
- spec/unit/man_spec.rb
|
2280
2282
|
- spec/unit/module_spec.rb
|
2281
2283
|
- spec/unit/module_tool/application_spec.rb
|
2282
2284
|
- spec/unit/module_tool/applications/checksummer_spec.rb
|
@@ -2377,6 +2379,7 @@ files:
|
|
2377
2379
|
- spec/unit/pops/evaluator/collections_ops_spec.rb
|
2378
2380
|
- spec/unit/pops/evaluator/comparison_ops_spec.rb
|
2379
2381
|
- spec/unit/pops/evaluator/conditionals_spec.rb
|
2382
|
+
- spec/unit/pops/evaluator/deferred_resolver_spec.rb
|
2380
2383
|
- spec/unit/pops/evaluator/evaluating_parser_spec.rb
|
2381
2384
|
- spec/unit/pops/evaluator/evaluator_rspec_helper.rb
|
2382
2385
|
- spec/unit/pops/evaluator/json_strict_literal_evaluator_spec.rb
|
@@ -2503,6 +2506,7 @@ files:
|
|
2503
2506
|
- spec/unit/provider/package/openbsd_spec.rb
|
2504
2507
|
- spec/unit/provider/package/opkg_spec.rb
|
2505
2508
|
- spec/unit/provider/package/pacman_spec.rb
|
2509
|
+
- spec/unit/provider/package/pip2_spec.rb
|
2506
2510
|
- spec/unit/provider/package/pip3_spec.rb
|
2507
2511
|
- spec/unit/provider/package/pip_spec.rb
|
2508
2512
|
- spec/unit/provider/package/pkg_spec.rb
|
@@ -2512,6 +2516,7 @@ files:
|
|
2512
2516
|
- spec/unit/provider/package/pkgutil_spec.rb
|
2513
2517
|
- spec/unit/provider/package/portage_spec.rb
|
2514
2518
|
- spec/unit/provider/package/puppet_gem_spec.rb
|
2519
|
+
- spec/unit/provider/package/puppetserver_gem_spec.rb
|
2515
2520
|
- spec/unit/provider/package/rpm_spec.rb
|
2516
2521
|
- spec/unit/provider/package/sun_spec.rb
|
2517
2522
|
- spec/unit/provider/package/tdnf_spec.rb
|
@@ -2604,6 +2609,7 @@ files:
|
|
2604
2609
|
- spec/unit/ssl/verifier_spec.rb
|
2605
2610
|
- spec/unit/status_spec.rb
|
2606
2611
|
- spec/unit/task_spec.rb
|
2612
|
+
- spec/unit/test/test_helper_spec.rb
|
2607
2613
|
- spec/unit/transaction/additional_resource_generator_spec.rb
|
2608
2614
|
- spec/unit/transaction/event_manager_spec.rb
|
2609
2615
|
- spec/unit/transaction/event_spec.rb
|
@@ -2757,13 +2763,16 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
2757
2763
|
- !ruby/object:Gem::Version
|
2758
2764
|
version: 1.3.1
|
2759
2765
|
requirements: []
|
2760
|
-
rubygems_version: 3.0.
|
2766
|
+
rubygems_version: 3.0.8
|
2761
2767
|
signing_key:
|
2762
2768
|
specification_version: 4
|
2763
2769
|
summary: Puppet, an automated configuration management tool
|
2764
2770
|
test_files:
|
2765
2771
|
- spec/fixtures/faulty_face/puppet/face/syntax.rb
|
2766
2772
|
- spec/fixtures/hiera.yaml
|
2773
|
+
- spec/fixtures/integration/application/agent/cached_deferred_catalog.json
|
2774
|
+
- spec/fixtures/integration/application/apply/environments/spec/modules/amod/lib/puppet/provider/applytest/applytest.rb
|
2775
|
+
- spec/fixtures/integration/application/apply/environments/spec/modules/amod/lib/puppet/type/applytest.rb
|
2767
2776
|
- spec/fixtures/integration/node/environment/sitedir/00_a.pp
|
2768
2777
|
- spec/fixtures/integration/node/environment/sitedir/01_b.pp
|
2769
2778
|
- spec/fixtures/integration/node/environment/sitedir/03_empty.pp
|
@@ -2896,7 +2905,9 @@ test_files:
|
|
2896
2905
|
- spec/fixtures/unit/data_providers/environments/production/modules/xyz/functions/data.pp
|
2897
2906
|
- spec/fixtures/unit/data_providers/environments/production/modules/xyz/manifests/init.pp
|
2898
2907
|
- spec/fixtures/unit/data_providers/environments/production/modules/xyz/metadata.json
|
2908
|
+
- spec/fixtures/unit/forge/bacula-releases.json
|
2899
2909
|
- spec/fixtures/unit/forge/bacula.json
|
2910
|
+
- spec/fixtures/unit/forge/bacula.tar.gz
|
2900
2911
|
- spec/fixtures/unit/functions/hiera/hiera/backend/hieraspec_backend.rb
|
2901
2912
|
- spec/fixtures/unit/functions/lookup/data/common.yaml
|
2902
2913
|
- spec/fixtures/unit/functions/lookup/hiera/backend/custom_backend.rb
|
@@ -3112,6 +3123,7 @@ test_files:
|
|
3112
3123
|
- spec/fixtures/unit/provider/package/pkgng/pkg.query
|
3113
3124
|
- spec/fixtures/unit/provider/package/pkgng/pkg.query.zsh
|
3114
3125
|
- spec/fixtures/unit/provider/package/pkgng/pkg.version
|
3126
|
+
- spec/fixtures/unit/provider/package/puppetserver_gem/gem-list-local-packages
|
3115
3127
|
- spec/fixtures/unit/provider/package/sun/dummy.server
|
3116
3128
|
- spec/fixtures/unit/provider/package/sun/simple
|
3117
3129
|
- spec/fixtures/unit/provider/package/yum/yum-check-update-broken-notices.txt
|
@@ -3160,7 +3172,9 @@ test_files:
|
|
3160
3172
|
- spec/integration/application/apply_spec.rb
|
3161
3173
|
- spec/integration/application/doc_spec.rb
|
3162
3174
|
- spec/integration/application/filebucket_spec.rb
|
3175
|
+
- spec/integration/application/help_spec.rb
|
3163
3176
|
- spec/integration/application/lookup_spec.rb
|
3177
|
+
- spec/integration/application/module_spec.rb
|
3164
3178
|
- spec/integration/application/plugin_spec.rb
|
3165
3179
|
- spec/integration/configurer_spec.rb
|
3166
3180
|
- spec/integration/data_binding_spec.rb
|
@@ -3170,23 +3184,12 @@ test_files:
|
|
3170
3184
|
- spec/integration/environments/setting_hooks_spec.rb
|
3171
3185
|
- spec/integration/environments/settings_interpolation_spec.rb
|
3172
3186
|
- spec/integration/environments/settings_spec.rb
|
3173
|
-
- spec/integration/faces/config_spec.rb
|
3174
|
-
- spec/integration/faces/documentation_spec.rb
|
3175
|
-
- spec/integration/file_bucket/file_spec.rb
|
3176
|
-
- spec/integration/file_serving/content_spec.rb
|
3177
|
-
- spec/integration/file_serving/fileset_spec.rb
|
3178
|
-
- spec/integration/file_serving/metadata_spec.rb
|
3179
|
-
- spec/integration/file_serving/terminus_helper_spec.rb
|
3180
|
-
- spec/integration/file_system/uniquefile_spec.rb
|
3181
3187
|
- spec/integration/http/client_spec.rb
|
3182
3188
|
- spec/integration/indirector/catalog/compiler_spec.rb
|
3183
3189
|
- spec/integration/indirector/direct_file_server_spec.rb
|
3184
3190
|
- spec/integration/indirector/facts/facter_spec.rb
|
3185
3191
|
- spec/integration/indirector/file_content/file_server_spec.rb
|
3186
3192
|
- spec/integration/indirector/file_metadata/file_server_spec.rb
|
3187
|
-
- spec/integration/indirector/report/yaml.rb
|
3188
|
-
- spec/integration/module_tool/forge_spec.rb
|
3189
|
-
- spec/integration/module_tool/tar/mini_spec.rb
|
3190
3193
|
- spec/integration/network/authconfig_spec.rb
|
3191
3194
|
- spec/integration/network/formats_spec.rb
|
3192
3195
|
- spec/integration/network/http/api/indirected_routes_spec.rb
|
@@ -3209,17 +3212,8 @@ test_files:
|
|
3209
3212
|
- spec/integration/parser/script_compiler_spec.rb
|
3210
3213
|
- spec/integration/parser/undef_param_spec.rb
|
3211
3214
|
- spec/integration/provider/file/windows_spec.rb
|
3212
|
-
- spec/integration/provider/service/init_spec.rb
|
3213
|
-
- spec/integration/provider/service/systemd_spec.rb
|
3214
|
-
- spec/integration/provider/service/windows_spec.rb
|
3215
|
-
- spec/integration/reference/providers_spec.rb
|
3216
|
-
- spec/integration/reports_spec.rb
|
3217
3215
|
- spec/integration/resource/catalog_spec.rb
|
3218
3216
|
- spec/integration/resource/type_collection_spec.rb
|
3219
|
-
- spec/integration/ssl/certificate_request_spec.rb
|
3220
|
-
- spec/integration/ssl/host_spec.rb
|
3221
|
-
- spec/integration/ssl/key_spec.rb
|
3222
|
-
- spec/integration/test/test_helper_spec.rb
|
3223
3217
|
- spec/integration/transaction/report_spec.rb
|
3224
3218
|
- spec/integration/transaction_spec.rb
|
3225
3219
|
- spec/integration/type/exec_spec.rb
|
@@ -3233,6 +3227,7 @@ test_files:
|
|
3233
3227
|
- spec/integration/util/rdoc/parser_spec.rb
|
3234
3228
|
- spec/integration/util/settings_spec.rb
|
3235
3229
|
- spec/integration/util/windows/adsi_spec.rb
|
3230
|
+
- spec/integration/util/windows/monkey_patches/dir_spec.rb
|
3236
3231
|
- spec/integration/util/windows/principal_spec.rb
|
3237
3232
|
- spec/integration/util/windows/process_spec.rb
|
3238
3233
|
- spec/integration/util/windows/registry_spec.rb
|
@@ -3284,7 +3279,6 @@ test_files:
|
|
3284
3279
|
- spec/shared_behaviours/documentation_on_faces.rb
|
3285
3280
|
- spec/shared_behaviours/file_server_terminus.rb
|
3286
3281
|
- spec/shared_behaviours/file_serving.rb
|
3287
|
-
- spec/shared_behaviours/file_serving_model.rb
|
3288
3282
|
- spec/shared_behaviours/hiera_indirections.rb
|
3289
3283
|
- spec/shared_behaviours/iterative_functions.rb
|
3290
3284
|
- spec/shared_behaviours/memory_terminus.rb
|
@@ -3311,6 +3305,7 @@ test_files:
|
|
3311
3305
|
- spec/unit/application/filebucket_spec.rb
|
3312
3306
|
- spec/unit/application/indirection_base_spec.rb
|
3313
3307
|
- spec/unit/application/lookup_spec.rb
|
3308
|
+
- spec/unit/application/man_spec.rb
|
3314
3309
|
- spec/unit/application/resource_spec.rb
|
3315
3310
|
- spec/unit/application/ssl_spec.rb
|
3316
3311
|
- spec/unit/application_spec.rb
|
@@ -3340,20 +3335,17 @@ test_files:
|
|
3340
3335
|
- spec/unit/environments_spec.rb
|
3341
3336
|
- spec/unit/etc_spec.rb
|
3342
3337
|
- spec/unit/external/pson_spec.rb
|
3343
|
-
- spec/unit/face/catalog_spec.rb
|
3344
3338
|
- spec/unit/face/config_spec.rb
|
3345
3339
|
- spec/unit/face/epp_face_spec.rb
|
3346
3340
|
- spec/unit/face/facts_spec.rb
|
3347
3341
|
- spec/unit/face/generate_spec.rb
|
3348
3342
|
- spec/unit/face/help_spec.rb
|
3349
3343
|
- spec/unit/face/key_spec.rb
|
3350
|
-
- spec/unit/face/man_spec.rb
|
3351
3344
|
- spec/unit/face/module/install_spec.rb
|
3352
3345
|
- spec/unit/face/module/list_spec.rb
|
3353
3346
|
- spec/unit/face/module/search_spec.rb
|
3354
3347
|
- spec/unit/face/module/uninstall_spec.rb
|
3355
3348
|
- spec/unit/face/module/upgrade_spec.rb
|
3356
|
-
- spec/unit/face/module_spec.rb
|
3357
3349
|
- spec/unit/face/node_spec.rb
|
3358
3350
|
- spec/unit/face/parser_spec.rb
|
3359
3351
|
- spec/unit/face/plugin_spec.rb
|
@@ -3477,6 +3469,7 @@ test_files:
|
|
3477
3469
|
- spec/unit/http/service/ca_spec.rb
|
3478
3470
|
- spec/unit/http/service/compiler_spec.rb
|
3479
3471
|
- spec/unit/http/service/file_server_spec.rb
|
3472
|
+
- spec/unit/http/service/puppetserver_spec.rb
|
3480
3473
|
- spec/unit/http/service/report_spec.rb
|
3481
3474
|
- spec/unit/http/service_spec.rb
|
3482
3475
|
- spec/unit/http/session_spec.rb
|
@@ -3497,6 +3490,7 @@ test_files:
|
|
3497
3490
|
- spec/unit/indirector/exec_spec.rb
|
3498
3491
|
- spec/unit/indirector/face_spec.rb
|
3499
3492
|
- spec/unit/indirector/facts/facter_spec.rb
|
3493
|
+
- spec/unit/indirector/facts/json_spec.rb
|
3500
3494
|
- spec/unit/indirector/facts/network_device_spec.rb
|
3501
3495
|
- spec/unit/indirector/facts/rest_spec.rb
|
3502
3496
|
- spec/unit/indirector/facts/store_configs_spec.rb
|
@@ -3521,6 +3515,7 @@ test_files:
|
|
3521
3515
|
- spec/unit/indirector/memory_spec.rb
|
3522
3516
|
- spec/unit/indirector/msgpack_spec.rb
|
3523
3517
|
- spec/unit/indirector/node/exec_spec.rb
|
3518
|
+
- spec/unit/indirector/node/json_spec.rb
|
3524
3519
|
- spec/unit/indirector/node/memory_spec.rb
|
3525
3520
|
- spec/unit/indirector/node/msgpack_spec.rb
|
3526
3521
|
- spec/unit/indirector/node/plain_spec.rb
|
@@ -3529,6 +3524,7 @@ test_files:
|
|
3529
3524
|
- spec/unit/indirector/node/yaml_spec.rb
|
3530
3525
|
- spec/unit/indirector/none_spec.rb
|
3531
3526
|
- spec/unit/indirector/plain_spec.rb
|
3527
|
+
- spec/unit/indirector/report/json_spec.rb
|
3532
3528
|
- spec/unit/indirector/report/msgpack_spec.rb
|
3533
3529
|
- spec/unit/indirector/report/processor_spec.rb
|
3534
3530
|
- spec/unit/indirector/report/rest_spec.rb
|
@@ -3553,7 +3549,6 @@ test_files:
|
|
3553
3549
|
- spec/unit/interface/option_builder_spec.rb
|
3554
3550
|
- spec/unit/interface/option_spec.rb
|
3555
3551
|
- spec/unit/interface_spec.rb
|
3556
|
-
- spec/unit/man_spec.rb
|
3557
3552
|
- spec/unit/module_spec.rb
|
3558
3553
|
- spec/unit/module_tool/application_spec.rb
|
3559
3554
|
- spec/unit/module_tool/applications/checksummer_spec.rb
|
@@ -3654,6 +3649,7 @@ test_files:
|
|
3654
3649
|
- spec/unit/pops/evaluator/collections_ops_spec.rb
|
3655
3650
|
- spec/unit/pops/evaluator/comparison_ops_spec.rb
|
3656
3651
|
- spec/unit/pops/evaluator/conditionals_spec.rb
|
3652
|
+
- spec/unit/pops/evaluator/deferred_resolver_spec.rb
|
3657
3653
|
- spec/unit/pops/evaluator/evaluating_parser_spec.rb
|
3658
3654
|
- spec/unit/pops/evaluator/evaluator_rspec_helper.rb
|
3659
3655
|
- spec/unit/pops/evaluator/json_strict_literal_evaluator_spec.rb
|
@@ -3780,6 +3776,7 @@ test_files:
|
|
3780
3776
|
- spec/unit/provider/package/openbsd_spec.rb
|
3781
3777
|
- spec/unit/provider/package/opkg_spec.rb
|
3782
3778
|
- spec/unit/provider/package/pacman_spec.rb
|
3779
|
+
- spec/unit/provider/package/pip2_spec.rb
|
3783
3780
|
- spec/unit/provider/package/pip3_spec.rb
|
3784
3781
|
- spec/unit/provider/package/pip_spec.rb
|
3785
3782
|
- spec/unit/provider/package/pkg_spec.rb
|
@@ -3789,6 +3786,7 @@ test_files:
|
|
3789
3786
|
- spec/unit/provider/package/pkgutil_spec.rb
|
3790
3787
|
- spec/unit/provider/package/portage_spec.rb
|
3791
3788
|
- spec/unit/provider/package/puppet_gem_spec.rb
|
3789
|
+
- spec/unit/provider/package/puppetserver_gem_spec.rb
|
3792
3790
|
- spec/unit/provider/package/rpm_spec.rb
|
3793
3791
|
- spec/unit/provider/package/sun_spec.rb
|
3794
3792
|
- spec/unit/provider/package/tdnf_spec.rb
|
@@ -3881,6 +3879,7 @@ test_files:
|
|
3881
3879
|
- spec/unit/ssl/verifier_spec.rb
|
3882
3880
|
- spec/unit/status_spec.rb
|
3883
3881
|
- spec/unit/task_spec.rb
|
3882
|
+
- spec/unit/test/test_helper_spec.rb
|
3884
3883
|
- spec/unit/transaction/additional_resource_generator_spec.rb
|
3885
3884
|
- spec/unit/transaction/event_manager_spec.rb
|
3886
3885
|
- spec/unit/transaction/event_spec.rb
|