chef 12.18.31 → 12.19.33
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +5 -4
- data/README.md +12 -13
- data/VERSION +1 -1
- data/acceptance/Gemfile +4 -4
- data/acceptance/Gemfile.lock +70 -69
- data/chef-universal-mingw32.gemspec +2 -3
- data/chef.gemspec +6 -6
- data/lib/chef/api_client.rb +8 -10
- data/lib/chef/api_client_v1.rb +9 -11
- data/lib/chef/application/apply.rb +8 -10
- data/lib/chef/application/client.rb +1 -1
- data/lib/chef/application/exit_code.rb +3 -5
- data/lib/chef/application/knife.rb +2 -2
- data/lib/chef/application/windows_service.rb +29 -30
- data/lib/chef/application/windows_service_manager.rb +1 -1
- data/lib/chef/audit/audit_event_proxy.rb +2 -2
- data/lib/chef/audit/control_group_data.rb +1 -1
- data/lib/chef/chef_class.rb +1 -0
- data/lib/chef/chef_fs/chef_fs_data_store.rb +5 -7
- data/lib/chef/chef_fs/command_line.rb +15 -16
- data/lib/chef/chef_fs/data_handler/client_data_handler.rb +1 -1
- data/lib/chef/chef_fs/data_handler/container_data_handler.rb +1 -1
- data/lib/chef/chef_fs/data_handler/cookbook_data_handler.rb +1 -1
- data/lib/chef/chef_fs/data_handler/data_bag_item_data_handler.rb +1 -1
- data/lib/chef/chef_fs/data_handler/environment_data_handler.rb +1 -1
- data/lib/chef/chef_fs/data_handler/group_data_handler.rb +1 -1
- data/lib/chef/chef_fs/data_handler/node_data_handler.rb +1 -1
- data/lib/chef/chef_fs/data_handler/organization_data_handler.rb +1 -1
- data/lib/chef/chef_fs/data_handler/role_data_handler.rb +1 -1
- data/lib/chef/chef_fs/data_handler/user_data_handler.rb +1 -1
- data/lib/chef/chef_fs/file_pattern.rb +2 -2
- data/lib/chef/chef_fs/file_system.rb +1 -1
- data/lib/chef/chef_fs/file_system/chef_server/cookbook_dir.rb +5 -6
- data/lib/chef/chef_fs/file_system/chef_server/cookbook_file.rb +8 -10
- data/lib/chef/chef_fs/file_system/chef_server/data_bags_dir.rb +8 -10
- data/lib/chef/chef_fs/file_system/chef_server/nodes_dir.rb +10 -12
- data/lib/chef/chef_fs/file_system/chef_server/policies_dir.rb +28 -30
- data/lib/chef/chef_fs/file_system/chef_server/policy_group_entry.rb +1 -1
- data/lib/chef/chef_fs/file_system/chef_server/rest_list_dir.rb +27 -29
- data/lib/chef/chef_fs/file_system/chef_server/rest_list_entry.rb +18 -24
- data/lib/chef/chef_fs/file_system/memory/memory_file.rb +1 -1
- data/lib/chef/chef_fs/file_system/multiplexed_dir.rb +10 -12
- data/lib/chef/chef_fs/file_system/repository/chef_repository_file_system_cookbook_dir.rb +10 -12
- data/lib/chef/chef_fs/file_system/repository/chef_repository_file_system_cookbook_entry.rb +9 -13
- data/lib/chef/chef_fs/file_system/repository/chef_repository_file_system_root_dir.rb +2 -0
- data/lib/chef/chef_fs/file_system/repository/cookbooks_dir.rb +1 -1
- data/lib/chef/chef_fs/file_system/repository/nodes_dir.rb +3 -0
- data/lib/chef/chef_fs/parallelizer.rb +9 -11
- data/lib/chef/cookbook/cookbook_version_loader.rb +25 -31
- data/lib/chef/cookbook/metadata.rb +26 -26
- data/lib/chef/cookbook/syntax_check.rb +1 -1
- data/lib/chef/cookbook_version.rb +3 -3
- data/lib/chef/data_bag.rb +1 -1
- data/lib/chef/data_bag_item.rb +3 -3
- data/lib/chef/data_collector.rb +3 -4
- data/lib/chef/decorator.rb +1 -1
- data/lib/chef/deprecated.rb +30 -0
- data/lib/chef/dsl/audit.rb +2 -2
- data/lib/chef/dsl/declare_resource.rb +1 -1
- data/lib/chef/dsl/platform_introspection.rb +29 -31
- data/lib/chef/dsl/reboot_pending.rb +1 -1
- data/lib/chef/dsl/resources.rb +6 -8
- data/lib/chef/encrypted_data_bag_item.rb +2 -2
- data/lib/chef/environment.rb +9 -11
- data/lib/chef/event_loggers/windows_eventlog.rb +1 -1
- data/lib/chef/exceptions.rb +4 -1
- data/lib/chef/file_access_control/unix.rb +14 -14
- data/lib/chef/file_access_control/windows.rb +1 -1
- data/lib/chef/formatters/error_inspectors/api_error_formatting.rb +4 -5
- data/lib/chef/formatters/error_mapper.rb +6 -6
- data/lib/chef/http/api_versions.rb +50 -0
- data/lib/chef/http/validate_content_length.rb +2 -2
- data/lib/chef/json_compat.rb +6 -10
- data/lib/chef/key.rb +5 -5
- data/lib/chef/knife.rb +4 -4
- data/lib/chef/knife/cookbook_site_install.rb +2 -2
- data/lib/chef/knife/core/cookbook_scm_repo.rb +2 -2
- data/lib/chef/knife/core/gem_glob_loader.rb +1 -1
- data/lib/chef/knife/core/status_presenter.rb +1 -1
- data/lib/chef/knife/core/ui.rb +19 -25
- data/lib/chef/knife/data_bag_secret_options.rb +1 -1
- data/lib/chef/knife/deps.rb +32 -34
- data/lib/chef/knife/help.rb +1 -1
- data/lib/chef/knife/list.rb +1 -1
- data/lib/chef/knife/search.rb +2 -2
- data/lib/chef/knife/ssh.rb +37 -27
- data/lib/chef/knife/ssl_check.rb +1 -1
- data/lib/chef/knife/user_delete.rb +1 -1
- data/lib/chef/mash.rb +1 -1
- data/lib/chef/mixin/command.rb +2 -2
- data/lib/chef/mixin/create_path.rb +3 -5
- data/lib/chef/mixin/from_file.rb +2 -2
- data/lib/chef/mixin/get_source_from_package.rb +2 -2
- data/lib/chef/mixin/notifying_block.rb +7 -9
- data/lib/chef/mixin/params_validate.rb +3 -3
- data/lib/chef/mixin/securable.rb +1 -1
- data/lib/chef/mixin/shell_out.rb +23 -3
- data/lib/chef/mixin/unformatter.rb +2 -2
- data/lib/chef/mixin/uris.rb +4 -6
- data/lib/chef/mixin/versioned_api.rb +69 -0
- data/lib/chef/mixin/which.rb +25 -8
- data/lib/chef/mixin/windows_architecture_helper.rb +2 -2
- data/lib/chef/mixin/xml_escape.rb +3 -5
- data/lib/chef/monkey_patches/webrick-utils.rb +1 -1
- data/lib/chef/node.rb +8 -8
- data/lib/chef/node/attribute.rb +4 -4
- data/lib/chef/node/common_api.rb +5 -7
- data/lib/chef/org.rb +10 -12
- data/lib/chef/platform/provider_mapping.rb +7 -7
- data/lib/chef/platform/query_helpers.rb +1 -1
- data/lib/chef/policy_builder/policyfile.rb +1 -0
- data/lib/chef/property.rb +31 -0
- data/lib/chef/provider/batch.rb +1 -1
- data/lib/chef/provider/breakpoint.rb +1 -1
- data/lib/chef/provider/cookbook_file.rb +3 -3
- data/lib/chef/provider/cron.rb +38 -38
- data/lib/chef/provider/deploy.rb +81 -81
- data/lib/chef/provider/deploy/revision.rb +3 -5
- data/lib/chef/provider/directory.rb +32 -32
- data/lib/chef/provider/dsc_resource.rb +22 -6
- data/lib/chef/provider/env.rb +28 -28
- data/lib/chef/provider/env/windows.rb +1 -1
- data/lib/chef/provider/erl_call.rb +13 -13
- data/lib/chef/provider/execute.rb +5 -2
- data/lib/chef/provider/file.rb +49 -51
- data/lib/chef/provider/git.rb +55 -55
- data/lib/chef/provider/http_request.rb +36 -36
- data/lib/chef/provider/launchd.rb +2 -2
- data/lib/chef/provider/link.rb +50 -50
- data/lib/chef/provider/log.rb +2 -2
- data/lib/chef/provider/mdadm.rb +25 -25
- data/lib/chef/provider/mount/aix.rb +2 -2
- data/lib/chef/provider/mount/mount.rb +2 -2
- data/lib/chef/provider/ohai.rb +1 -1
- data/lib/chef/provider/osx_profile.rb +23 -23
- data/lib/chef/provider/package.rb +74 -56
- data/lib/chef/provider/package/aix.rb +55 -52
- data/lib/chef/provider/package/apt.rb +15 -13
- data/lib/chef/provider/package/cab.rb +49 -20
- data/lib/chef/provider/package/chocolatey.rb +9 -10
- data/lib/chef/provider/package/dnf.rb +20 -18
- data/lib/chef/provider/package/dnf/dnf_helper.py +1 -1
- data/lib/chef/provider/package/dnf/python_helper.rb +63 -26
- data/lib/chef/provider/package/dnf/version.rb +1 -1
- data/lib/chef/provider/package/dpkg.rb +8 -9
- data/lib/chef/provider/package/easy_install.rb +22 -22
- data/lib/chef/provider/package/freebsd/base.rb +10 -10
- data/lib/chef/provider/package/freebsd/pkg.rb +15 -15
- data/lib/chef/provider/package/freebsd/pkgng.rb +13 -15
- data/lib/chef/provider/package/freebsd/port.rb +7 -7
- data/lib/chef/provider/package/homebrew.rb +11 -10
- data/lib/chef/provider/package/ips.rb +18 -23
- data/lib/chef/provider/package/macports.rb +23 -23
- data/lib/chef/provider/package/msu.rb +11 -11
- data/lib/chef/provider/package/openbsd.rb +25 -22
- data/lib/chef/provider/package/pacman.rb +16 -16
- data/lib/chef/provider/package/paludis.rb +26 -27
- data/lib/chef/provider/package/portage.rb +22 -22
- data/lib/chef/provider/package/powershell.rb +17 -17
- data/lib/chef/provider/package/rpm.rb +25 -25
- data/lib/chef/provider/package/rubygems.rb +60 -60
- data/lib/chef/provider/package/smartos.rb +16 -16
- data/lib/chef/provider/package/solaris.rb +44 -44
- data/lib/chef/provider/package/windows.rb +3 -3
- data/lib/chef/provider/package/windows/exe.rb +6 -6
- data/lib/chef/provider/package/windows/msi.rb +6 -6
- data/lib/chef/provider/package/yum.rb +318 -268
- data/lib/chef/provider/package/yum/rpm_utils.rb +34 -34
- data/lib/chef/provider/package/yum/yum_cache.rb +12 -12
- data/lib/chef/provider/package/zypper.rb +11 -11
- data/lib/chef/provider/powershell_script.rb +15 -7
- data/lib/chef/provider/reboot.rb +10 -10
- data/lib/chef/provider/registry_key.rb +39 -39
- data/lib/chef/provider/remote_directory.rb +3 -3
- data/lib/chef/provider/remote_file.rb +3 -3
- data/lib/chef/provider/route.rb +1 -1
- data/lib/chef/provider/ruby_block.rb +3 -3
- data/lib/chef/provider/script.rb +42 -6
- data/lib/chef/provider/service.rb +49 -49
- data/lib/chef/provider/service/solaris.rb +1 -1
- data/lib/chef/provider/service/systemd.rb +1 -1
- data/lib/chef/provider/subversion.rb +39 -39
- data/lib/chef/provider/systemd_unit.rb +2 -0
- data/lib/chef/provider/template.rb +3 -3
- data/lib/chef/provider/user.rb +42 -42
- data/lib/chef/provider/whyrun_safe_ruby_block.rb +4 -4
- data/lib/chef/resource.rb +27 -16
- data/lib/chef/resource/apt_repository.rb +0 -1
- data/lib/chef/resource/chef_gem.rb +1 -1
- data/lib/chef/resource/dnf_package.rb +6 -3
- data/lib/chef/resource/dsc_resource.rb +9 -1
- data/lib/chef/resource/execute.rb +70 -6
- data/lib/chef/resource/file/verification/systemd_unit.rb +67 -0
- data/lib/chef/resource/freebsd_package.rb +1 -1
- data/lib/chef/resource/gem_package.rb +1 -1
- data/lib/chef/resource/launchd.rb +13 -1
- data/lib/chef/resource/package.rb +2 -2
- data/lib/chef/resource/registry_key.rb +1 -1
- data/lib/chef/resource/yum_package.rb +12 -3
- data/lib/chef/resource/yum_repository.rb +0 -1
- data/lib/chef/resource_collection/resource_collection_serialization.rb +3 -3
- data/lib/chef/resource_collection/resource_set.rb +2 -2
- data/lib/chef/resource_reporter.rb +1 -1
- data/lib/chef/run_context.rb +3 -3
- data/lib/chef/run_list/run_list_item.rb +1 -1
- data/lib/chef/run_list/versioned_recipe_list.rb +6 -6
- data/lib/chef/server_api.rb +2 -0
- data/lib/chef/server_api_versions.rb +40 -0
- data/lib/chef/shell.rb +1 -1
- data/lib/chef/shell/ext.rb +3 -3
- data/lib/chef/shell/shell_session.rb +1 -1
- data/lib/chef/user.rb +9 -11
- data/lib/chef/user_v1.rb +9 -11
- data/lib/chef/util/diff.rb +1 -1
- data/lib/chef/util/dsc/lcm_output_parser.rb +1 -1
- data/lib/chef/util/selinux.rb +1 -1
- data/lib/chef/util/windows/net_group.rb +18 -30
- data/lib/chef/util/windows/net_use.rb +7 -11
- data/lib/chef/util/windows/net_user.rb +11 -17
- data/lib/chef/util/windows/volume.rb +9 -15
- data/lib/chef/version.rb +1 -1
- data/lib/chef/version_class.rb +1 -1
- data/lib/chef/win32/api.rb +4 -6
- data/lib/chef/win32/api/file.rb +25 -31
- data/lib/chef/win32/api/installer.rb +2 -2
- data/lib/chef/win32/file.rb +4 -6
- data/lib/chef/win32/registry.rb +9 -9
- data/lib/chef/win32/security.rb +2 -2
- data/lib/chef/win32/security/acl.rb +2 -2
- data/lib/chef/win32/unicode.rb +2 -2
- data/lib/chef/win32/version.rb +1 -1
- data/spec/data/prefer_metadata_json/metadata.json +51 -0
- data/spec/data/prefer_metadata_json/metadata.rb +6 -0
- data/spec/data/prefer_metadata_json/recipes/default.rb +0 -0
- data/spec/functional/knife/ssh_spec.rb +5 -5
- data/spec/functional/resource/batch_spec.rb +5 -1
- data/spec/functional/resource/dsc_script_spec.rb +2 -4
- data/spec/functional/resource/execute_spec.rb +17 -0
- data/spec/functional/resource/user/dscl_spec.rb +2 -4
- data/spec/integration/client/client_spec.rb +33 -0
- data/spec/integration/recipes/recipe_dsl_spec.rb +58 -58
- data/spec/spec_helper.rb +4 -0
- data/spec/support/chef_helpers.rb +5 -7
- data/spec/support/platform_helpers.rb +6 -0
- data/spec/support/platforms/prof/gc.rb +4 -6
- data/spec/support/shared/context/client.rb +1 -1
- data/spec/support/shared/functional/execute_resource.rb +150 -0
- data/spec/support/shared/functional/windows_script.rb +74 -4
- data/spec/support/shared/unit/execute_resource.rb +37 -0
- data/spec/support/shared/unit/provider/file.rb +10 -0
- data/spec/unit/cookbook/cookbook_version_loader_spec.rb +9 -0
- data/spec/unit/cookbook/syntax_check_spec.rb +8 -2
- data/spec/unit/http/api_versions_spec.rb +69 -0
- data/spec/unit/knife/ssh_spec.rb +34 -36
- data/spec/unit/mixin/versioned_api_spec.rb +107 -0
- data/spec/unit/mixin/which.rb +160 -0
- data/spec/unit/platform_spec.rb +28 -1
- data/spec/unit/provider/deploy_spec.rb +1 -1
- data/spec/unit/provider/directory_spec.rb +10 -0
- data/spec/unit/provider/dsc_resource_spec.rb +175 -0
- data/spec/unit/provider/execute_spec.rb +0 -1
- data/spec/unit/provider/launchd_spec.rb +2 -2
- data/spec/unit/provider/package/aix_spec.rb +22 -22
- data/spec/unit/provider/package/apt_spec.rb +27 -27
- data/spec/unit/provider/package/cab_spec.rb +59 -5
- data/spec/unit/provider/package/dnf/python_helper_spec.rb +29 -0
- data/spec/unit/provider/package/dpkg_spec.rb +16 -16
- data/spec/unit/provider/package/easy_install_spec.rb +18 -18
- data/spec/unit/provider/package/freebsd/pkg_spec.rb +15 -15
- data/spec/unit/provider/package/freebsd/pkgng_spec.rb +9 -9
- data/spec/unit/provider/package/freebsd/port_spec.rb +9 -9
- data/spec/unit/provider/package/homebrew_spec.rb +9 -9
- data/spec/unit/provider/package/ips_spec.rb +37 -31
- data/spec/unit/provider/package/macports_spec.rb +10 -10
- data/spec/unit/provider/package/openbsd_spec.rb +10 -10
- data/spec/unit/provider/package/pacman_spec.rb +6 -6
- data/spec/unit/provider/package/paludis_spec.rb +7 -7
- data/spec/unit/provider/package/portage_spec.rb +6 -7
- data/spec/unit/provider/package/rpm_spec.rb +23 -23
- data/spec/unit/provider/package/rubygems_spec.rb +38 -38
- data/spec/unit/provider/package/solaris_spec.rb +15 -15
- data/spec/unit/provider/package/windows_spec.rb +2 -1
- data/spec/unit/provider/package/yum_spec.rb +51 -43
- data/spec/unit/provider/package/zypper_spec.rb +34 -34
- data/spec/unit/provider/package_spec.rb +8 -0
- data/spec/unit/provider/remote_file/sftp_spec.rb +3 -3
- data/spec/unit/provider/route_spec.rb +7 -1
- data/spec/unit/provider/script_spec.rb +49 -6
- data/spec/unit/resource/dsc_resource_spec.rb +6 -0
- data/spec/unit/resource/execute_spec.rb +214 -0
- data/spec/unit/resource/file/verification/systemd_unit_spec.rb +103 -0
- data/spec/unit/resource/freebsd_package_spec.rb +2 -2
- data/spec/unit/resource/package_spec.rb +5 -0
- data/spec/unit/resource/yum_package_spec.rb +42 -1
- data/spec/unit/resource_reporter_spec.rb +1 -1
- data/spec/unit/resource_spec.rb +18 -0
- data/spec/unit/server_api_versions_spec.rb +44 -0
- data/spec/unit/util/selinux_spec.rb +3 -14
- data/spec/unit/win32/error_spec.rb +67 -0
- data/spec/unit/win32/security_spec.rb +66 -0
- data/tasks/changelog.rb +1 -1
- data/tasks/dependencies.rb +20 -4
- metadata +39 -18
- data/lib/chef/monkey_patches/net-ssh-multi.rb +0 -141
@@ -65,7 +65,7 @@ describe Chef::Resource::FreebsdPackage do
|
|
65
65
|
describe "if pkgng enabled" do
|
66
66
|
it "should be Freebsd::Pkgng" do
|
67
67
|
pkg_enabled = OpenStruct.new(:stdout => "yes\n")
|
68
|
-
allow(@resource).to receive(:shell_out!).with("make -V WITH_PKGNG", :env => nil).and_return(pkg_enabled)
|
68
|
+
allow(@resource).to receive(:shell_out!).with("make", "-V", "WITH_PKGNG", :env => nil).and_return(pkg_enabled)
|
69
69
|
@resource.after_created
|
70
70
|
expect(@resource.provider).to eq(Chef::Provider::Package::Freebsd::Pkgng)
|
71
71
|
end
|
@@ -74,7 +74,7 @@ describe Chef::Resource::FreebsdPackage do
|
|
74
74
|
describe "if freebsd_version is less than 1000017 and pkgng not enabled" do
|
75
75
|
it "should be Freebsd::Pkg" do
|
76
76
|
pkg_enabled = OpenStruct.new(:stdout => "\n")
|
77
|
-
allow(@resource).to receive(:shell_out!).with("make -V WITH_PKGNG", :env => nil).and_return(pkg_enabled)
|
77
|
+
allow(@resource).to receive(:shell_out!).with("make", "-V", "WITH_PKGNG", :env => nil).and_return(pkg_enabled)
|
78
78
|
|
79
79
|
[1000016, 1000000, 901503, 902506, 802511].each do |freebsd_version|
|
80
80
|
@node.automatic_attrs[:os_version] = freebsd_version
|
@@ -80,6 +80,11 @@ describe Chef::Resource::Package do
|
|
80
80
|
it "returns the file path as its identity" do
|
81
81
|
expect(@resource.identity).to eq("tomcat")
|
82
82
|
end
|
83
|
+
|
84
|
+
it "takes options as an array" do
|
85
|
+
@resource.options [ "-a", "-l" ]
|
86
|
+
expect(@resource.options).to eq(["-a", "-l" ])
|
87
|
+
end
|
83
88
|
end
|
84
89
|
|
85
90
|
# String, Integer
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# Author:: AJ Christensen (<aj@chef.io>)
|
3
|
-
# Copyright:: Copyright 2008-
|
3
|
+
# Copyright:: Copyright 2008-2017, Chef Software Inc.
|
4
4
|
# License:: Apache License, Version 2.0
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -32,6 +32,47 @@ describe Chef::Resource::YumPackage, "initialize" do
|
|
32
32
|
|
33
33
|
end
|
34
34
|
|
35
|
+
describe Chef::Resource::YumPackage do
|
36
|
+
before(:each) do
|
37
|
+
@resource = Chef::Resource::YumPackage.new("foo")
|
38
|
+
end
|
39
|
+
|
40
|
+
# this set of tests is somewhat terrible. the yum provider promiscuously writes over
|
41
|
+
# the new_resource.package_named/version/arch properties. until that is fixed properly
|
42
|
+
# we need to coerce and dup those properties into normal arrays. this does not affect
|
43
|
+
# strings because those are not mutated in place and they are not (currently) frozen
|
44
|
+
# in immutable attributes (even though they really, really should be).
|
45
|
+
context "when passed immutable node attribute arrays" do
|
46
|
+
let(:node) { Chef::Node.new }
|
47
|
+
|
48
|
+
before do
|
49
|
+
node.default["foo"] = %w{one two three}
|
50
|
+
end
|
51
|
+
|
52
|
+
it "allows mutation of the package_name array" do
|
53
|
+
@resource.package_name node["foo"]
|
54
|
+
expect(@resource.package_name).not_to be_a_kind_of(Chef::Node::ImmutableArray)
|
55
|
+
expect { @resource.package_name[0] = "four" }.not_to raise_error
|
56
|
+
expect(@resource.package_name).to eql(%w{four two three})
|
57
|
+
end
|
58
|
+
|
59
|
+
it "allows mutation of the version array" do
|
60
|
+
@resource.version node["foo"]
|
61
|
+
expect(@resource.version).not_to be_a_kind_of(Chef::Node::ImmutableArray)
|
62
|
+
expect { @resource.version[0] = "four" }.not_to raise_error
|
63
|
+
expect(@resource.version).to eql(%w{four two three})
|
64
|
+
end
|
65
|
+
|
66
|
+
it "allows mutation of the arch array" do
|
67
|
+
@resource.arch node["foo"]
|
68
|
+
expect(@resource.arch).not_to be_a_kind_of(Chef::Node::ImmutableArray)
|
69
|
+
expect { @resource.arch[0] = "four" }.not_to raise_error
|
70
|
+
expect(@resource.arch).to eql(%w{four two three})
|
71
|
+
end
|
72
|
+
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
35
76
|
describe Chef::Resource::YumPackage, "arch" do
|
36
77
|
before(:each) do
|
37
78
|
@resource = Chef::Resource::YumPackage.new("foo")
|
@@ -285,7 +285,7 @@ describe Chef::ResourceReporter do
|
|
285
285
|
end
|
286
286
|
|
287
287
|
it "resource_command in prepared_run_data should be blank" do
|
288
|
-
expect(@first_update_report["after"]).to eq({ :command => "sensitive-resource" })
|
288
|
+
expect(@first_update_report["after"]).to eq({ :command => "sensitive-resource", :user => nil })
|
289
289
|
end
|
290
290
|
end
|
291
291
|
|
data/spec/unit/resource_spec.rb
CHANGED
@@ -354,6 +354,24 @@ describe Chef::Resource do
|
|
354
354
|
end
|
355
355
|
end
|
356
356
|
|
357
|
+
describe "to_text" do
|
358
|
+
it "prints nice message" do
|
359
|
+
resource_class = Class.new(Chef::Resource) { property :foo, String }
|
360
|
+
resource = resource_class.new("sensitive_property_tests")
|
361
|
+
resource.foo = "some value"
|
362
|
+
expect(resource.to_text).to match(/foo "some value"/)
|
363
|
+
end
|
364
|
+
|
365
|
+
context "when property is sensitive" do
|
366
|
+
it "supresses that properties value" do
|
367
|
+
resource_class = Class.new(Chef::Resource) { property :foo, String, sensitive: true }
|
368
|
+
resource = resource_class.new("sensitive_property_tests")
|
369
|
+
resource.foo = "some value"
|
370
|
+
expect(resource.to_text).to match(/foo "\*sensitive value suppressed\*"/)
|
371
|
+
end
|
372
|
+
end
|
373
|
+
end
|
374
|
+
|
357
375
|
describe "self.resource_name" do
|
358
376
|
context "When resource_name is not set" do
|
359
377
|
it "and there are no provides lines, resource_name is nil" do
|
@@ -0,0 +1,44 @@
|
|
1
|
+
#
|
2
|
+
# Copyright:: Copyright 2017, Chef Software, Inc.
|
3
|
+
# License:: Apache License, Version 2.0
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
#
|
17
|
+
|
18
|
+
require "spec_helper"
|
19
|
+
|
20
|
+
describe Chef::ServerAPIVersions do
|
21
|
+
before do
|
22
|
+
Chef::ServerAPIVersions.instance.reset!
|
23
|
+
end
|
24
|
+
|
25
|
+
describe "#min_server_version" do
|
26
|
+
it "returns nil if no versions have been recorded" do
|
27
|
+
expect(Chef::ServerAPIVersions.instance.min_server_version).to be_nil
|
28
|
+
end
|
29
|
+
it "returns the correct value" do
|
30
|
+
Chef::ServerAPIVersions.instance.set_versions({ "min_version" => 0, "max_version" => 2 })
|
31
|
+
expect(Chef::ServerAPIVersions.instance.min_server_version).to eq(0)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
describe "#max_server_version" do
|
36
|
+
it "returns nil if no versions have been recorded" do
|
37
|
+
expect(Chef::ServerAPIVersions.instance.max_server_version).to be_nil
|
38
|
+
end
|
39
|
+
it "returns the correct value" do
|
40
|
+
Chef::ServerAPIVersions.instance.set_versions({ "min_version" => 0, "max_version" => 2 })
|
41
|
+
expect(Chef::ServerAPIVersions.instance.max_server_version).to eq(2)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# Author:: Serdar Sutay (<serdar@chef.io>)
|
3
|
-
# Copyright:: Copyright 2013-
|
3
|
+
# Copyright:: Copyright 2013-2017, Chef Software Inc.
|
4
4
|
# License:: Apache License, Version 2.0
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -148,21 +148,10 @@ describe Chef::Util::Selinux do
|
|
148
148
|
end
|
149
149
|
|
150
150
|
describe "when restorecon doesn't exist on the system" do
|
151
|
-
before do
|
152
|
-
allow(File).to receive(:executable?) do |file_path|
|
153
|
-
expect(file_path.end_with?("restorecon")).to be_truthy
|
154
|
-
false
|
155
|
-
end
|
156
|
-
end
|
157
|
-
|
158
151
|
it "should log a warning message" do
|
159
|
-
|
160
|
-
|
161
|
-
log << message
|
162
|
-
end
|
163
|
-
|
152
|
+
allow(File).to receive(:executable?).with(/restorecon$/).and_return(false)
|
153
|
+
expect(Chef::Log).to receive(:warn).with(/Can not find 'restorecon' on the system. Skipping selinux security context restore./).at_least(:once)
|
164
154
|
@test_instance.restore_security_context(path)
|
165
|
-
expect(log).not_to be_empty
|
166
155
|
expect(File).not_to receive(:executable?)
|
167
156
|
@test_instance.restore_security_context(path)
|
168
157
|
end
|
@@ -0,0 +1,67 @@
|
|
1
|
+
#
|
2
|
+
# Author:: Aliasgar Batterywala (aliasgar.batterywala@msystechnologies.com)
|
3
|
+
# Copyright:: Copyright 2017, Chef Software Inc.
|
4
|
+
# License:: Apache License, Version 2.0
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require "spec_helper"
|
20
|
+
if Chef::Platform.windows?
|
21
|
+
require "chef/win32/error"
|
22
|
+
require "chef/win32/api/error"
|
23
|
+
end
|
24
|
+
|
25
|
+
describe "Chef::Win32::Error", :windows_only do
|
26
|
+
describe "self.raise!" do
|
27
|
+
context "code is not passed to the raise! method" do
|
28
|
+
context "last error received is user_not_found" do
|
29
|
+
it "raises UserIDNotFound exception" do
|
30
|
+
expect(Chef::ReservedNames::Win32::Error).to receive(:get_last_error).and_return(
|
31
|
+
Chef::ReservedNames::Win32::API::Error::ERROR_USER_NOT_FOUND
|
32
|
+
)
|
33
|
+
expect(Chef::ReservedNames::Win32::Error).to receive_message_chain(:format_message, :strip)
|
34
|
+
expect { Chef::ReservedNames::Win32::Error.raise! }.to raise_error Chef::Exceptions::UserIDNotFound
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
context "last error received is not user_not_found" do
|
39
|
+
it "raises Win32APIError exception" do
|
40
|
+
expect(Chef::ReservedNames::Win32::Error).to receive(:get_last_error).and_return(
|
41
|
+
Chef::ReservedNames::Win32::API::Error::ERROR_BAD_USERNAME
|
42
|
+
)
|
43
|
+
expect(Chef::ReservedNames::Win32::Error).to receive_message_chain(:format_message, :strip).and_return("Bad Username")
|
44
|
+
expect { Chef::ReservedNames::Win32::Error.raise! }.to raise_error Chef::Exceptions::Win32APIError
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
context "code is passed to the raise! method" do
|
50
|
+
context "last error received is user_not_found" do
|
51
|
+
it "raises UserIDNotFound exception" do
|
52
|
+
expect(Chef::ReservedNames::Win32::Error).to_not receive(:get_last_error)
|
53
|
+
expect(Chef::ReservedNames::Win32::Error).to receive_message_chain(:format_message, :strip)
|
54
|
+
expect { Chef::ReservedNames::Win32::Error.raise! nil, Chef::ReservedNames::Win32::API::Error::ERROR_USER_NOT_FOUND }.to raise_error Chef::Exceptions::UserIDNotFound
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
context "last error received is not user_not_found" do
|
59
|
+
it "raises Win32APIError exception" do
|
60
|
+
expect(Chef::ReservedNames::Win32::Error).to_not receive(:get_last_error)
|
61
|
+
expect(Chef::ReservedNames::Win32::Error).to receive_message_chain(:format_message, :strip).and_return("Bad Username")
|
62
|
+
expect { Chef::ReservedNames::Win32::Error.raise! nil, Chef::ReservedNames::Win32::API::Error::ERROR_BAD_USERNAME }.to raise_error Chef::Exceptions::Win32APIError
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
@@ -0,0 +1,66 @@
|
|
1
|
+
#
|
2
|
+
# Author:: Aliasgar Batterywala (aliasgar.batterywala@msystechnologies.com)
|
3
|
+
# Copyright:: Copyright 2017, Chef Software Inc.
|
4
|
+
# License:: Apache License, Version 2.0
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require "spec_helper"
|
20
|
+
if Chef::Platform.windows?
|
21
|
+
require "chef/win32/error"
|
22
|
+
require "chef/win32/security"
|
23
|
+
require "chef/win32/api/error"
|
24
|
+
end
|
25
|
+
|
26
|
+
describe "Chef::Win32::Security", :windows_only do
|
27
|
+
describe "self.get_named_security_info" do
|
28
|
+
context "when HR result is ERROR_SUCCESS" do
|
29
|
+
it "does not raise the exception" do
|
30
|
+
expect(Chef::ReservedNames::Win32::Security).to receive(:GetNamedSecurityInfoW).and_return(
|
31
|
+
Chef::ReservedNames::Win32::API::Error::ERROR_SUCCESS
|
32
|
+
)
|
33
|
+
expect { Chef::ReservedNames::Win32::Security.get_named_security_info "/temp_path" }.to_not raise_error
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
context "when HR result is not ERROR_SUCCESS and not ERROR_USER_NOT_FOUND" do
|
38
|
+
it "raises Win32APIError exception" do
|
39
|
+
expect(Chef::ReservedNames::Win32::Security).to receive(:GetNamedSecurityInfoW).and_return(
|
40
|
+
Chef::ReservedNames::Win32::API::Error::ERROR_INVALID_ACCESS
|
41
|
+
)
|
42
|
+
expect { Chef::ReservedNames::Win32::Security.get_named_security_info "/temp_path" }.to raise_error Chef::Exceptions::Win32APIError
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe "self.set_named_security_info" do
|
48
|
+
context "when HR result is ERROR_SUCCESS" do
|
49
|
+
it "does not raise the exception" do
|
50
|
+
expect(Chef::ReservedNames::Win32::Security).to receive(:SetNamedSecurityInfoW).and_return(
|
51
|
+
Chef::ReservedNames::Win32::API::Error::ERROR_SUCCESS
|
52
|
+
)
|
53
|
+
expect { Chef::ReservedNames::Win32::Security.set_named_security_info "/temp_path", :SE_FILE_OBJECT, {} }.to_not raise_error
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
context "when HR result is not ERROR_SUCCESS but it is ERROR_USER_NOT_FOUND" do
|
58
|
+
it "raises UserIDNotFound exception" do
|
59
|
+
expect(Chef::ReservedNames::Win32::Security).to receive(:SetNamedSecurityInfoW).and_return(
|
60
|
+
Chef::ReservedNames::Win32::API::Error::ERROR_USER_NOT_FOUND
|
61
|
+
)
|
62
|
+
expect { Chef::ReservedNames::Win32::Security.set_named_security_info "/temp_path", :SE_FILE_OBJECT, {} }.to raise_error Chef::Exceptions::Chef::Exceptions::UserIDNotFound
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
data/tasks/changelog.rb
CHANGED
@@ -22,7 +22,7 @@ begin
|
|
22
22
|
config.add_issues_wo_labels = false
|
23
23
|
config.enhancement_labels = "enhancement,Enhancement,New Feature,Feature".split(",")
|
24
24
|
config.bug_labels = "bug,Bug,Improvement,Upstream Bug".split(",")
|
25
|
-
config.exclude_labels = "duplicate,question,invalid,wontfix,no_changelog,Exclude From Changelog,Question,Discussion".split(",")
|
25
|
+
config.exclude_labels = "duplicate,question,invalid,wontfix,no_changelog,Exclude From Changelog,Question,Discussion,Meta: Exclude From Changelog".split(",")
|
26
26
|
config.header = "This changelog reflects the current state of chef's master branch on github and may not reflect the current released version of chef, which is [![Gem Version](https://badge.fury.io/rb/chef.svg)](https://badge.fury.io/rb/chef)."
|
27
27
|
end
|
28
28
|
end
|
data/tasks/dependencies.rb
CHANGED
@@ -21,9 +21,23 @@ require_relative "../version_policy"
|
|
21
21
|
|
22
22
|
desc "Tasks to update and check dependencies"
|
23
23
|
namespace :dependencies do
|
24
|
-
|
24
|
+
|
25
|
+
# Running update_ci on your local system wont' work. The best way to update
|
26
|
+
# dependencies locally is by running the dependency update script.
|
25
27
|
desc "Update all dependencies. dependencies:update to update as little as possible."
|
26
|
-
task :update
|
28
|
+
task :update do |t, rake_args|
|
29
|
+
system("#{File.join(Dir.pwd, "ci", "dependency_update.sh")}")
|
30
|
+
end
|
31
|
+
|
32
|
+
desc "Force update (when adding new gems to Gemfiles)"
|
33
|
+
task :force_update do |t, rake_args|
|
34
|
+
FileUtils.rm_f(File.join(Dir.pwd, ".bundle", "config"))
|
35
|
+
system("#{File.join(Dir.pwd, "ci", "dependency_update.sh")}")
|
36
|
+
end
|
37
|
+
|
38
|
+
# Update all dependencies to the latest constraint-matching version
|
39
|
+
desc "Update all dependencies. dependencies:update to update as little as possible (CI-only)."
|
40
|
+
task :update_ci => %w{
|
27
41
|
dependencies:update_gemfile_lock
|
28
42
|
dependencies:update_omnibus_overrides
|
29
43
|
dependencies:update_omnibus_gemfile_lock
|
@@ -130,6 +144,8 @@ namespace :dependencies do
|
|
130
144
|
end
|
131
145
|
end
|
132
146
|
end
|
147
|
+
|
133
148
|
desc "Update all dependencies and check for outdated gems."
|
134
|
-
task :
|
135
|
-
task :
|
149
|
+
task :dependencies_ci => [ "dependencies:update_ci", "bundle:outdated" ]
|
150
|
+
task :dependencies => [ "dependencies:update" ]
|
151
|
+
task :update => [ "dependencies:update" ]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 12.
|
4
|
+
version: 12.19.33
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Jacob
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef-config
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 12.
|
19
|
+
version: 12.19.33
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 12.
|
26
|
+
version: 12.19.33
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: mixlib-cli
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -84,16 +84,16 @@ dependencies:
|
|
84
84
|
name: mixlib-archive
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.
|
89
|
+
version: '0.4'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.
|
96
|
+
version: '0.4'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: ohai
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -103,7 +103,7 @@ dependencies:
|
|
103
103
|
version: 8.6.0.alpha.1
|
104
104
|
- - "<"
|
105
105
|
- !ruby/object:Gem::Version
|
106
|
-
version: '
|
106
|
+
version: '13'
|
107
107
|
type: :runtime
|
108
108
|
prerelease: false
|
109
109
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -113,7 +113,7 @@ dependencies:
|
|
113
113
|
version: 8.6.0.alpha.1
|
114
114
|
- - "<"
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
116
|
+
version: '13'
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
118
|
name: ffi-yajl
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -137,7 +137,7 @@ dependencies:
|
|
137
137
|
version: '2.9'
|
138
138
|
- - "<"
|
139
139
|
- !ruby/object:Gem::Version
|
140
|
-
version: '
|
140
|
+
version: '5.0'
|
141
141
|
type: :runtime
|
142
142
|
prerelease: false
|
143
143
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -147,21 +147,27 @@ dependencies:
|
|
147
147
|
version: '2.9'
|
148
148
|
- - "<"
|
149
149
|
- !ruby/object:Gem::Version
|
150
|
-
version: '
|
150
|
+
version: '5.0'
|
151
151
|
- !ruby/object:Gem::Dependency
|
152
152
|
name: net-ssh-multi
|
153
153
|
requirement: !ruby/object:Gem::Requirement
|
154
154
|
requirements:
|
155
155
|
- - "~>"
|
156
156
|
- !ruby/object:Gem::Version
|
157
|
-
version: '1.
|
157
|
+
version: '1.2'
|
158
|
+
- - ">="
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: 1.2.1
|
158
161
|
type: :runtime
|
159
162
|
prerelease: false
|
160
163
|
version_requirements: !ruby/object:Gem::Requirement
|
161
164
|
requirements:
|
162
165
|
- - "~>"
|
163
166
|
- !ruby/object:Gem::Version
|
164
|
-
version: '1.
|
167
|
+
version: '1.2'
|
168
|
+
- - ">="
|
169
|
+
- !ruby/object:Gem::Version
|
170
|
+
version: 1.2.1
|
165
171
|
- !ruby/object:Gem::Dependency
|
166
172
|
name: net-sftp
|
167
173
|
requirement: !ruby/object:Gem::Requirement
|
@@ -958,6 +964,7 @@ files:
|
|
958
964
|
- lib/chef/handler/error_report.rb
|
959
965
|
- lib/chef/handler/json_file.rb
|
960
966
|
- lib/chef/http.rb
|
967
|
+
- lib/chef/http/api_versions.rb
|
961
968
|
- lib/chef/http/auth_credentials.rb
|
962
969
|
- lib/chef/http/authenticator.rb
|
963
970
|
- lib/chef/http/basic_client.rb
|
@@ -1166,6 +1173,7 @@ files:
|
|
1166
1173
|
- lib/chef/mixin/template.rb
|
1167
1174
|
- lib/chef/mixin/unformatter.rb
|
1168
1175
|
- lib/chef/mixin/uris.rb
|
1176
|
+
- lib/chef/mixin/versioned_api.rb
|
1169
1177
|
- lib/chef/mixin/which.rb
|
1170
1178
|
- lib/chef/mixin/why_run.rb
|
1171
1179
|
- lib/chef/mixin/wide_string.rb
|
@@ -1173,7 +1181,6 @@ files:
|
|
1173
1181
|
- lib/chef/mixin/windows_env_helper.rb
|
1174
1182
|
- lib/chef/mixin/xml_escape.rb
|
1175
1183
|
- lib/chef/mixins.rb
|
1176
|
-
- lib/chef/monkey_patches/net-ssh-multi.rb
|
1177
1184
|
- lib/chef/monkey_patches/net_http.rb
|
1178
1185
|
- lib/chef/monkey_patches/webrick-utils.rb
|
1179
1186
|
- lib/chef/monkey_patches/win32/registry.rb
|
@@ -1382,6 +1389,7 @@ files:
|
|
1382
1389
|
- lib/chef/resource/execute.rb
|
1383
1390
|
- lib/chef/resource/file.rb
|
1384
1391
|
- lib/chef/resource/file/verification.rb
|
1392
|
+
- lib/chef/resource/file/verification/systemd_unit.rb
|
1385
1393
|
- lib/chef/resource/freebsd_package.rb
|
1386
1394
|
- lib/chef/resource/gem_package.rb
|
1387
1395
|
- lib/chef/resource/git.rb
|
@@ -1469,6 +1477,7 @@ files:
|
|
1469
1477
|
- lib/chef/scan_access_control.rb
|
1470
1478
|
- lib/chef/search/query.rb
|
1471
1479
|
- lib/chef/server_api.rb
|
1480
|
+
- lib/chef/server_api_versions.rb
|
1472
1481
|
- lib/chef/shell.rb
|
1473
1482
|
- lib/chef/shell/ext.rb
|
1474
1483
|
- lib/chef/shell/model_wrapper.rb
|
@@ -1764,6 +1773,9 @@ files:
|
|
1764
1773
|
- spec/data/old_home_dir/my-dot-emacs
|
1765
1774
|
- spec/data/old_home_dir/my-dot-vim
|
1766
1775
|
- spec/data/partial_one.erb
|
1776
|
+
- spec/data/prefer_metadata_json/metadata.json
|
1777
|
+
- spec/data/prefer_metadata_json/metadata.rb
|
1778
|
+
- spec/data/prefer_metadata_json/recipes/default.rb
|
1767
1779
|
- spec/data/recipes.tgz
|
1768
1780
|
- spec/data/recipes/test.rb
|
1769
1781
|
- spec/data/remote_directory_data/remote_dir_file.txt
|
@@ -2056,6 +2068,7 @@ files:
|
|
2056
2068
|
- spec/support/shared/examples/client.rb
|
2057
2069
|
- spec/support/shared/functional/diff_disabled.rb
|
2058
2070
|
- spec/support/shared/functional/directory_resource.rb
|
2071
|
+
- spec/support/shared/functional/execute_resource.rb
|
2059
2072
|
- spec/support/shared/functional/file_resource.rb
|
2060
2073
|
- spec/support/shared/functional/http.rb
|
2061
2074
|
- spec/support/shared/functional/knife.rb
|
@@ -2177,6 +2190,7 @@ files:
|
|
2177
2190
|
- spec/unit/guard_interpreter_spec.rb
|
2178
2191
|
- spec/unit/handler/json_file_spec.rb
|
2179
2192
|
- spec/unit/handler_spec.rb
|
2193
|
+
- spec/unit/http/api_versions_spec.rb
|
2180
2194
|
- spec/unit/http/authenticator_spec.rb
|
2181
2195
|
- spec/unit/http/basic_client_spec.rb
|
2182
2196
|
- spec/unit/http/http_request_spec.rb
|
@@ -2318,6 +2332,8 @@ files:
|
|
2318
2332
|
- spec/unit/mixin/template_spec.rb
|
2319
2333
|
- spec/unit/mixin/unformatter_spec.rb
|
2320
2334
|
- spec/unit/mixin/uris_spec.rb
|
2335
|
+
- spec/unit/mixin/versioned_api_spec.rb
|
2336
|
+
- spec/unit/mixin/which.rb
|
2321
2337
|
- spec/unit/mixin/windows_architecture_helper_spec.rb
|
2322
2338
|
- spec/unit/mixin/xml_escape_spec.rb
|
2323
2339
|
- spec/unit/monkey_patches/uri_spec.rb
|
@@ -2386,6 +2402,7 @@ files:
|
|
2386
2402
|
- spec/unit/provider/package/apt_spec.rb
|
2387
2403
|
- spec/unit/provider/package/cab_spec.rb
|
2388
2404
|
- spec/unit/provider/package/chocolatey_spec.rb
|
2405
|
+
- spec/unit/provider/package/dnf/python_helper_spec.rb
|
2389
2406
|
- spec/unit/provider/package/dpkg_spec.rb
|
2390
2407
|
- spec/unit/provider/package/easy_install_spec.rb
|
2391
2408
|
- spec/unit/provider/package/freebsd/pkg_spec.rb
|
@@ -2485,6 +2502,7 @@ files:
|
|
2485
2502
|
- spec/unit/resource/env_spec.rb
|
2486
2503
|
- spec/unit/resource/erl_call_spec.rb
|
2487
2504
|
- spec/unit/resource/execute_spec.rb
|
2505
|
+
- spec/unit/resource/file/verification/systemd_unit_spec.rb
|
2488
2506
|
- spec/unit/resource/file/verification_spec.rb
|
2489
2507
|
- spec/unit/resource/file_spec.rb
|
2490
2508
|
- spec/unit/resource/freebsd_package_spec.rb
|
@@ -2560,6 +2578,7 @@ files:
|
|
2560
2578
|
- spec/unit/scan_access_control_spec.rb
|
2561
2579
|
- spec/unit/search/query_spec.rb
|
2562
2580
|
- spec/unit/server_api_spec.rb
|
2581
|
+
- spec/unit/server_api_versions_spec.rb
|
2563
2582
|
- spec/unit/shell/model_wrapper_spec.rb
|
2564
2583
|
- spec/unit/shell/shell_ext_spec.rb
|
2565
2584
|
- spec/unit/shell/shell_session_spec.rb
|
@@ -2583,7 +2602,9 @@ files:
|
|
2583
2602
|
- spec/unit/version_class_spec.rb
|
2584
2603
|
- spec/unit/version_constraint/platform_spec.rb
|
2585
2604
|
- spec/unit/version_constraint_spec.rb
|
2605
|
+
- spec/unit/win32/error_spec.rb
|
2586
2606
|
- spec/unit/win32/registry_spec.rb
|
2607
|
+
- spec/unit/win32/security_spec.rb
|
2587
2608
|
- spec/unit/windows_service_spec.rb
|
2588
2609
|
- tasks/announce.rb
|
2589
2610
|
- tasks/bin/bundle-platform
|
@@ -2602,7 +2623,7 @@ files:
|
|
2602
2623
|
- tasks/rspec.rb
|
2603
2624
|
- tasks/templates/prerelease.md.erb
|
2604
2625
|
- tasks/templates/release.md.erb
|
2605
|
-
homepage:
|
2626
|
+
homepage: https://www.chef.io
|
2606
2627
|
licenses:
|
2607
2628
|
- Apache-2.0
|
2608
2629
|
metadata: {}
|
@@ -2615,7 +2636,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
2615
2636
|
requirements:
|
2616
2637
|
- - ">="
|
2617
2638
|
- !ruby/object:Gem::Version
|
2618
|
-
version: 2.2.
|
2639
|
+
version: 2.2.2
|
2619
2640
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
2620
2641
|
requirements:
|
2621
2642
|
- - ">="
|
@@ -2623,7 +2644,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
2623
2644
|
version: '0'
|
2624
2645
|
requirements: []
|
2625
2646
|
rubyforge_project:
|
2626
|
-
rubygems_version: 2.6.
|
2647
|
+
rubygems_version: 2.6.10
|
2627
2648
|
signing_key:
|
2628
2649
|
specification_version: 4
|
2629
2650
|
summary: A systems integration framework, built to bring the benefits of configuration
|