chef 12.4.3-universal-mingw32 → 12.5.1-universal-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CONTRIBUTING.md +21 -25
- data/Gemfile +46 -0
- data/README.md +4 -4
- data/Rakefile +4 -110
- data/bin/chef-service-manager +3 -1
- data/distro/common/html/knife_cookbook_site.html +18 -18
- data/distro/common/man/man1/knife-cookbook-site.1 +11 -11
- data/lib/chef.rb +1 -1
- data/lib/chef/application.rb +1 -1
- data/lib/chef/application/apply.rb +19 -1
- data/lib/chef/application/client.rb +11 -5
- data/lib/chef/application/knife.rb +2 -2
- data/lib/chef/application/solo.rb +1 -1
- data/lib/chef/application/windows_service_manager.rb +19 -12
- data/lib/chef/chef_class.rb +46 -0
- data/lib/chef/chef_fs/config.rb +22 -24
- data/lib/chef/chef_fs/data_handler/client_data_handler.rb +3 -1
- data/lib/chef/chef_fs/file_pattern.rb +4 -15
- data/lib/chef/chef_fs/file_system/acl_dir.rb +3 -4
- data/lib/chef/chef_fs/file_system/acls_dir.rb +5 -1
- data/lib/chef/chef_fs/file_system/base_fs_dir.rb +0 -5
- data/lib/chef/chef_fs/file_system/base_fs_object.rb +5 -2
- data/lib/chef/chef_fs/file_system/chef_repository_file_system_cookbook_dir.rb +2 -9
- data/lib/chef/chef_fs/file_system/chef_repository_file_system_cookbook_entry.rb +2 -9
- data/lib/chef/chef_fs/file_system/chef_repository_file_system_cookbooks_dir.rb +10 -17
- data/lib/chef/chef_fs/file_system/chef_repository_file_system_entry.rb +1 -12
- data/lib/chef/chef_fs/file_system/chef_repository_file_system_root_dir.rb +15 -11
- data/lib/chef/chef_fs/file_system/chef_server_root_dir.rb +8 -2
- data/lib/chef/chef_fs/file_system/cookbook_dir.rb +4 -4
- data/lib/chef/chef_fs/file_system/cookbooks_acl_dir.rb +1 -1
- data/lib/chef/chef_fs/file_system/cookbooks_dir.rb +3 -11
- data/lib/chef/chef_fs/file_system/data_bags_dir.rb +3 -5
- data/lib/chef/chef_fs/file_system/environments_dir.rb +1 -1
- data/lib/chef/chef_fs/file_system/file_system_entry.rb +7 -4
- data/lib/chef/chef_fs/file_system/memory_dir.rb +2 -3
- data/lib/chef/chef_fs/file_system/multiplexed_dir.rb +15 -0
- data/lib/chef/chef_fs/file_system/nodes_dir.rb +1 -1
- data/lib/chef/chef_fs/file_system/organization_members_entry.rb +2 -2
- data/lib/chef/chef_fs/file_system/rest_list_dir.rb +4 -9
- data/lib/chef/chef_fs/knife.rb +35 -7
- data/lib/chef/chef_fs/path_utils.rb +65 -34
- data/lib/chef/client.rb +2 -3
- data/lib/chef/config.rb +34 -2
- data/lib/chef/{mixin/wstring.rb → constants.rb} +9 -13
- data/lib/chef/cookbook/metadata.rb +25 -3
- data/lib/chef/cookbook/synchronizer.rb +1 -1
- data/lib/chef/cookbook_site_streaming_uploader.rb +1 -1
- data/lib/chef/cookbook_version.rb +3 -3
- data/lib/chef/delayed_evaluator.rb +21 -0
- data/lib/chef/deprecation/mixin/template.rb +1 -2
- data/lib/chef/deprecation/provider/cookbook_file.rb +1 -1
- data/lib/chef/deprecation/provider/file.rb +1 -1
- data/lib/chef/deprecation/provider/remote_directory.rb +52 -0
- data/lib/chef/deprecation/provider/remote_file.rb +1 -2
- data/lib/chef/deprecation/provider/template.rb +1 -1
- data/lib/chef/deprecation/warnings.rb +3 -4
- data/lib/chef/dsl/reboot_pending.rb +3 -2
- data/lib/chef/dsl/recipe.rb +26 -7
- data/lib/chef/dsl/resources.rb +2 -2
- data/lib/chef/event_dispatch/base.rb +51 -22
- data/lib/chef/event_dispatch/dispatcher.rb +21 -6
- data/lib/chef/event_dispatch/dsl.rb +64 -0
- data/lib/chef/exceptions.rb +28 -1
- data/lib/chef/file_content_management/tempfile.rb +1 -1
- data/lib/chef/formatters/base.rb +3 -0
- data/lib/chef/formatters/doc.rb +56 -6
- data/lib/chef/formatters/error_inspectors/compile_error_inspector.rb +36 -0
- data/lib/chef/formatters/minimal.rb +2 -2
- data/lib/chef/guard_interpreter/resource_guard_interpreter.rb +3 -1
- data/lib/chef/http/http_request.rb +1 -1
- data/lib/chef/knife.rb +35 -55
- data/lib/chef/knife/bootstrap.rb +41 -0
- data/lib/chef/knife/bootstrap/chef_vault_handler.rb +1 -0
- data/lib/chef/knife/bootstrap/client_builder.rb +16 -0
- data/lib/chef/knife/bootstrap/templates/README.md +3 -4
- data/lib/chef/knife/bootstrap/templates/chef-full.erb +1 -1
- data/lib/chef/knife/cookbook_create.rb +1 -1
- data/lib/chef/knife/cookbook_site_download.rb +1 -1
- data/lib/chef/knife/cookbook_site_install.rb +1 -1
- data/lib/chef/knife/cookbook_site_share.rb +6 -6
- data/lib/chef/knife/cookbook_site_unshare.rb +2 -2
- data/lib/chef/knife/core/bootstrap_context.rb +12 -4
- data/lib/chef/knife/core/custom_manifest_loader.rb +69 -0
- data/lib/chef/knife/core/gem_glob_loader.rb +138 -0
- data/lib/chef/knife/core/hashed_command_loader.rb +80 -0
- data/lib/chef/knife/core/node_presenter.rb +24 -1
- data/lib/chef/knife/core/object_loader.rb +1 -0
- data/lib/chef/knife/core/subcommand_loader.rb +131 -146
- data/lib/chef/knife/node_run_list_remove.rb +12 -1
- data/lib/chef/knife/null.rb +10 -0
- data/lib/chef/knife/rehash.rb +62 -0
- data/lib/chef/knife/search.rb +3 -3
- data/lib/chef/knife/ssh.rb +52 -30
- data/lib/chef/knife/ssl_check.rb +3 -2
- data/lib/chef/knife/user_edit.rb +1 -2
- data/lib/chef/local_mode.rb +5 -0
- data/lib/chef/log.rb +5 -1
- data/lib/chef/mixin/deprecation.rb +8 -8
- data/lib/chef/mixin/params_validate.rb +362 -135
- data/lib/chef/mixin/template.rb +48 -0
- data/lib/chef/mixin/which.rb +1 -1
- data/lib/chef/mixin/wide_string.rb +72 -0
- data/lib/chef/mixin/windows_architecture_helper.rb +15 -39
- data/lib/chef/mixin/windows_env_helper.rb +4 -1
- data/lib/chef/monkey_patches/webrick-utils.rb +51 -0
- data/lib/chef/monkey_patches/win32/registry.rb +72 -0
- data/lib/chef/node.rb +116 -3
- data/lib/chef/node_map.rb +2 -2
- data/lib/chef/platform/handler_map.rb +0 -5
- data/lib/chef/platform/provider_mapping.rb +5 -6
- data/lib/chef/platform/query_helpers.rb +46 -4
- data/lib/chef/platform/rebooter.rb +1 -1
- data/lib/chef/platform/service_helpers.rb +30 -32
- data/lib/chef/policy_builder.rb +1 -8
- data/lib/chef/policy_builder/dynamic.rb +186 -0
- data/lib/chef/policy_builder/expand_node_object.rb +30 -15
- data/lib/chef/policy_builder/policyfile.rb +155 -18
- data/lib/chef/property.rb +568 -0
- data/lib/chef/provider.rb +222 -13
- data/lib/chef/provider/batch.rb +8 -0
- data/lib/chef/provider/deploy.rb +5 -7
- data/lib/chef/provider/directory.rb +14 -2
- data/lib/chef/provider/dsc_resource.rb +5 -9
- data/lib/chef/provider/group/pw.rb +1 -1
- data/lib/chef/provider/ifconfig.rb +2 -2
- data/lib/chef/provider/lwrp_base.rb +1 -75
- data/lib/chef/provider/mount.rb +7 -3
- data/lib/chef/provider/package.rb +1 -1
- data/lib/chef/provider/package/dpkg.rb +5 -11
- data/lib/chef/provider/package/rpm.rb +2 -2
- data/lib/chef/provider/package/rubygems.rb +1 -1
- data/lib/chef/provider/package/windows/msi.rb +2 -2
- data/lib/chef/provider/package/yum.rb +17 -5
- data/lib/chef/provider/powershell_script.rb +59 -23
- data/lib/chef/provider/registry_key.rb +5 -5
- data/lib/chef/provider/remote_directory.rb +190 -102
- data/lib/chef/provider/service.rb +12 -2
- data/lib/chef/provider/service/aix.rb +1 -1
- data/lib/chef/provider/service/debian.rb +3 -5
- data/lib/chef/provider/service/freebsd.rb +1 -1
- data/lib/chef/provider/service/gentoo.rb +3 -3
- data/lib/chef/provider/service/init.rb +3 -3
- data/lib/chef/provider/service/insserv.rb +2 -4
- data/lib/chef/provider/service/invokercd.rb +2 -4
- data/lib/chef/provider/service/macosx.rb +5 -1
- data/lib/chef/provider/service/openbsd.rb +2 -1
- data/lib/chef/provider/service/redhat.rb +52 -16
- data/lib/chef/provider/service/simple.rb +2 -2
- data/lib/chef/provider/service/systemd.rb +3 -5
- data/lib/chef/provider/service/upstart.rb +4 -6
- data/lib/chef/provider/subversion.rb +13 -7
- data/lib/chef/provider/template/content.rb +16 -6
- data/lib/chef/provider/user/solaris.rb +32 -4
- data/lib/chef/provider/windows_script.rb +3 -5
- data/lib/chef/provider_resolver.rb +2 -2
- data/lib/chef/recipe.rb +1 -8
- data/lib/chef/resource.rb +563 -90
- data/lib/chef/resource/action_class.rb +83 -0
- data/lib/chef/resource/chef_gem.rb +3 -3
- data/lib/chef/resource/deploy.rb +8 -2
- data/lib/chef/resource/dsc_script.rb +2 -0
- data/lib/chef/resource/file/verification.rb +7 -1
- data/lib/chef/resource/lwrp_base.rb +1 -7
- data/lib/chef/resource/registry_key.rb +1 -1
- data/lib/chef/resource/service.rb +10 -2
- data/lib/chef/resource/subversion.rb +5 -0
- data/lib/chef/resource/windows_script.rb +6 -2
- data/lib/chef/resource/yum_package.rb +10 -1
- data/lib/chef/resource_resolver.rb +3 -3
- data/lib/chef/run_context.rb +402 -83
- data/lib/chef/run_list/versioned_recipe_list.rb +15 -0
- data/lib/chef/run_lock.rb +30 -21
- data/lib/chef/util/powershell/ps_credential.rb +4 -0
- data/lib/chef/util/windows.rb +0 -32
- data/lib/chef/util/windows/net_group.rb +85 -106
- data/lib/chef/util/windows/net_use.rb +35 -71
- data/lib/chef/util/windows/net_user.rb +0 -1
- data/lib/chef/util/windows/volume.rb +19 -19
- data/lib/chef/version.rb +3 -3
- data/lib/chef/win32/api.rb +1 -0
- data/lib/chef/win32/api/file.rb +20 -0
- data/lib/chef/win32/api/net.rb +163 -43
- data/lib/chef/win32/api/registry.rb +51 -0
- data/lib/chef/win32/api/system.rb +23 -0
- data/lib/chef/win32/api/unicode.rb +0 -43
- data/lib/chef/win32/crypto.rb +2 -1
- data/lib/chef/win32/file.rb +28 -3
- data/lib/chef/win32/mutex.rb +1 -2
- data/lib/chef/win32/net.rb +162 -8
- data/lib/chef/win32/process.rb +13 -0
- data/lib/chef/win32/registry.rb +35 -30
- data/lib/chef/win32/security.rb +1 -1
- data/lib/chef/win32/security/token.rb +1 -1
- data/lib/chef/win32/system.rb +62 -0
- data/lib/chef/win32/unicode.rb +7 -2
- data/lib/chef/win32/version.rb +0 -4
- data/lib/chef/workstation_config_loader.rb +3 -158
- data/spec/data/cookbooks/openldap/templates/default/helpers.erb +14 -0
- data/spec/data/cookbooks/openldap/templates/default/nested_openldap_partials.erb +1 -0
- data/spec/data/cookbooks/openldap/templates/default/nested_partial.erb +1 -0
- data/spec/data/dsc_lcm.pfx +0 -0
- data/spec/data/run_context/cookbooks/include/recipes/default.rb +24 -0
- data/spec/data/run_context/cookbooks/include/recipes/includee.rb +3 -0
- data/spec/functional/dsl/reboot_pending_spec.rb +33 -43
- data/spec/functional/knife/cookbook_delete_spec.rb +17 -7
- data/spec/functional/knife/ssh_spec.rb +16 -0
- data/spec/functional/rebooter_spec.rb +1 -1
- data/spec/functional/resource/deploy_revision_spec.rb +1 -1
- data/spec/functional/resource/dsc_resource_spec.rb +2 -0
- data/spec/functional/resource/dsc_script_spec.rb +91 -2
- data/spec/functional/resource/group_spec.rb +67 -44
- data/spec/functional/resource/{powershell_spec.rb → powershell_script_spec.rb} +107 -18
- data/spec/functional/resource/windows_service_spec.rb +1 -1
- data/spec/functional/run_lock_spec.rb +368 -189
- data/spec/functional/win32/{registry_helper_spec.rb → registry_spec.rb} +16 -23
- data/spec/functional/win32/service_manager_spec.rb +2 -2
- data/spec/integration/client/client_spec.rb +51 -0
- data/spec/integration/knife/chef_repo_path_spec.rb +13 -11
- data/spec/integration/knife/download_spec.rb +4 -0
- data/spec/integration/knife/list_spec.rb +8 -0
- data/spec/integration/knife/upload_spec.rb +1 -1
- data/spec/integration/recipes/recipe_dsl_spec.rb +1 -16
- data/spec/integration/recipes/remote_directory.rb +74 -0
- data/spec/integration/recipes/resource_action_spec.rb +363 -0
- data/spec/integration/recipes/resource_converge_if_changed_spec.rb +423 -0
- data/spec/integration/recipes/resource_load_spec.rb +206 -0
- data/spec/spec_helper.rb +9 -0
- data/spec/support/platform_helpers.rb +13 -0
- data/spec/support/shared/context/win32.rb +34 -0
- data/spec/support/shared/functional/win32_service.rb +2 -1
- data/spec/support/shared/functional/windows_script.rb +63 -26
- data/spec/support/shared/unit/mock_shellout.rb +46 -0
- data/spec/support/shared/unit/provider/file.rb +10 -4
- data/spec/unit/application/client_spec.rb +16 -3
- data/spec/unit/application/knife_spec.rb +2 -2
- data/spec/unit/application/solo_spec.rb +4 -3
- data/spec/unit/chef_class_spec.rb +23 -4
- data/spec/unit/chef_fs/path_util_spec.rb +108 -0
- data/spec/unit/client_spec.rb +6 -1
- data/spec/unit/config_spec.rb +31 -0
- data/spec/unit/cookbook/metadata_spec.rb +23 -3
- data/spec/unit/cookbook/syntax_check_spec.rb +3 -0
- data/spec/unit/deprecation_spec.rb +3 -6
- data/spec/unit/dsl/reboot_pending_spec.rb +12 -6
- data/spec/unit/event_dispatch/dispatcher_spec.rb +65 -3
- data/spec/unit/event_dispatch/dsl_spec.rb +83 -0
- data/spec/unit/formatters/doc_spec.rb +32 -0
- data/spec/unit/formatters/error_inspectors/compile_error_inspector_spec.rb +26 -0
- data/spec/unit/json_compat_spec.rb +4 -3
- data/spec/unit/knife/bootstrap/client_builder_spec.rb +27 -0
- data/spec/unit/knife/bootstrap_spec.rb +55 -3
- data/spec/unit/knife/cookbook_site_share_spec.rb +3 -3
- data/spec/unit/knife/core/bootstrap_context_spec.rb +21 -4
- data/spec/unit/knife/core/custom_manifest_loader_spec.rb +41 -0
- data/spec/unit/knife/core/gem_glob_loader_spec.rb +210 -0
- data/spec/unit/knife/core/hashed_command_loader_spec.rb +93 -0
- data/spec/unit/knife/core/subcommand_loader_spec.rb +16 -192
- data/spec/unit/knife/node_run_list_remove_spec.rb +17 -0
- data/spec/unit/knife/ssl_check_spec.rb +4 -0
- data/spec/unit/mixin/enforce_ownership_and_permissions_spec.rb +10 -10
- data/spec/unit/mixin/params_validate_spec.rb +4 -2
- data/spec/unit/mixin/template_spec.rb +5 -1
- data/spec/unit/mixin/windows_architecture_helper_spec.rb +13 -8
- data/spec/unit/node_spec.rb +220 -0
- data/spec/unit/platform/query_helpers_spec.rb +146 -3
- data/spec/unit/policy_builder/dynamic_spec.rb +275 -0
- data/spec/unit/policy_builder/expand_node_object_spec.rb +37 -38
- data/spec/unit/policy_builder/policyfile_spec.rb +260 -46
- data/spec/unit/property/state_spec.rb +506 -0
- data/spec/unit/property/validation_spec.rb +663 -0
- data/spec/unit/property_spec.rb +1094 -0
- data/spec/unit/provider/deploy_spec.rb +5 -5
- data/spec/unit/provider/directory_spec.rb +35 -0
- data/spec/unit/provider/dsc_resource_spec.rb +3 -10
- data/spec/unit/provider/ifconfig_spec.rb +22 -2
- data/spec/unit/provider/mount/aix_spec.rb +2 -1
- data/spec/unit/provider/mount/mount_spec.rb +6 -0
- data/spec/unit/provider/mount/windows_spec.rb +14 -0
- data/spec/unit/provider/mount_spec.rb +12 -1
- data/spec/unit/provider/package/dpkg_spec.rb +8 -1
- data/spec/unit/provider/package/rpm_spec.rb +18 -1
- data/spec/unit/provider/package/rubygems_spec.rb +18 -0
- data/spec/unit/provider/package/yum_spec.rb +97 -24
- data/spec/unit/provider/powershell_script_spec.rb +106 -0
- data/spec/unit/provider/registry_key_spec.rb +12 -0
- data/spec/unit/provider/remote_directory_spec.rb +1 -2
- data/spec/unit/provider/service/aix_service_spec.rb +3 -3
- data/spec/unit/provider/service/gentoo_service_spec.rb +4 -4
- data/spec/unit/provider/service/macosx_spec.rb +4 -4
- data/spec/unit/provider/service/openbsd_service_spec.rb +10 -8
- data/spec/unit/provider/service/redhat_spec.rb +88 -8
- data/spec/unit/provider/service/upstart_service_spec.rb +11 -7
- data/spec/unit/provider/service/windows_spec.rb +211 -200
- data/spec/unit/provider/subversion_spec.rb +50 -31
- data/spec/unit/provider/template/content_spec.rb +93 -2
- data/spec/unit/provider/user/solaris_spec.rb +66 -9
- data/spec/unit/provider_resolver_spec.rb +707 -650
- data/spec/unit/provider_spec.rb +1 -3
- data/spec/unit/recipe_spec.rb +0 -4
- data/spec/unit/resource/deploy_spec.rb +7 -1
- data/spec/unit/resource/dsc_script_spec.rb +4 -0
- data/spec/unit/resource/file/verification_spec.rb +33 -5
- data/spec/unit/resource/{powershell_spec.rb → powershell_script_spec.rb} +17 -13
- data/spec/unit/resource/service_spec.rb +4 -4
- data/spec/unit/resource/subversion_spec.rb +4 -0
- data/spec/unit/resource/yum_package_spec.rb +10 -1
- data/spec/unit/resource_spec.rb +2 -2
- data/spec/unit/run_context/child_run_context_spec.rb +133 -0
- data/spec/unit/run_context_spec.rb +7 -0
- data/spec/unit/run_list/versioned_recipe_list_spec.rb +5 -0
- data/spec/unit/win32/registry_spec.rb +394 -0
- data/tasks/external_tests.rb +47 -23
- data/tasks/maintainers.rb +155 -14
- metadata +64 -53
- data/lib/chef/knife/bootstrap/templates/archlinux-gems.erb +0 -76
- data/lib/chef/knife/bootstrap/templates/chef-aix.erb +0 -72
- data/spec/unit/provider/powershell_spec.rb +0 -80
- data/spec/unit/registry_helper_spec.rb +0 -376
- data/spec/unit/workstation_config_loader_spec.rb +0 -283
data/tasks/external_tests.rb
CHANGED
@@ -1,29 +1,53 @@
|
|
1
|
-
|
2
|
-
gem_path = Bundler.environment.specs['chef-sugar'].first.full_gem_path
|
3
|
-
system("cd #{gem_path} && rake")
|
4
|
-
end
|
1
|
+
require 'tempfile'
|
5
2
|
|
6
|
-
|
7
|
-
gem_path = Bundler.environment.specs[
|
8
|
-
|
3
|
+
def bundle_exec_with_chef(test_gem, commands)
|
4
|
+
gem_path = Bundler.environment.specs[test_gem].first.full_gem_path
|
5
|
+
gemfile_path = File.join(gem_path, 'Gemfile.chef-external-test')
|
6
|
+
gemfile = File.open(gemfile_path, "w")
|
7
|
+
begin
|
8
|
+
IO.read(File.join(gem_path, 'Gemfile')).each_line do |line|
|
9
|
+
if line =~ /^\s*gemspec/
|
10
|
+
next
|
11
|
+
elsif line =~ /^\s*gem 'chef'|\s*gem "chef"/
|
12
|
+
next
|
13
|
+
elsif line =~ /^\s*dev_gem\s*['"](.+)['"]\s*$/
|
14
|
+
line = "gem '#{$1}', github: 'poise/#{$1}'"
|
15
|
+
elsif line =~ /\s*gem\s*['"]#{test_gem}['"]/ # foodcritic
|
16
|
+
next
|
17
|
+
end
|
18
|
+
gemfile.puts(line)
|
19
|
+
end
|
20
|
+
gemfile.puts("gem 'chef', path: #{File.expand_path('../..', __FILE__).inspect}")
|
21
|
+
gemfile.puts("gemspec path: #{gem_path.inspect}")
|
22
|
+
gemfile.close
|
23
|
+
Dir.chdir(gem_path) do
|
24
|
+
system({ 'BUNDLE_GEMFILE' => gemfile.path, 'RUBYOPT' => nil }, "bundle install")
|
25
|
+
Array(commands).each do |command|
|
26
|
+
system({ 'BUNDLE_GEMFILE' => gemfile.path, 'RUBYOPT' => nil }, "bundle exec #{command}")
|
27
|
+
end
|
28
|
+
end
|
29
|
+
ensure
|
30
|
+
File.delete(gemfile_path)
|
31
|
+
end
|
9
32
|
end
|
10
33
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
34
|
+
EXTERNAL_PROJECTS = {
|
35
|
+
"chef-zero" => [ "rake spec", "rake pedant" ],
|
36
|
+
"cheffish" => "rake spec",
|
37
|
+
"chef-provisioning" => "rake spec",
|
38
|
+
"chef-provisioning-aws" => "rake spec",
|
39
|
+
"chef-sugar" => "rake",
|
40
|
+
"foodcritic" => "rake test",
|
41
|
+
"chefspec" => "rake",
|
42
|
+
"chef-rewind" => "rake spec",
|
43
|
+
"poise" => "rake spec",
|
44
|
+
"halite" => "rake spec"
|
45
|
+
}
|
15
46
|
|
16
|
-
task :
|
17
|
-
gem_path = Bundler.environment.specs['chef-rewind'].first.full_gem_path
|
18
|
-
system("cd #{gem_path} && rake spec")
|
19
|
-
end
|
20
|
-
|
21
|
-
task :poise_spec do
|
22
|
-
gem_path = Bundler.environment.specs['poise'].first.full_gem_path
|
23
|
-
system("cd #{gem_path} && rake spec")
|
24
|
-
end
|
47
|
+
task :external_specs => EXTERNAL_PROJECTS.keys.map { |g| :"#{g.sub("-","_")}_spec" }
|
25
48
|
|
26
|
-
|
27
|
-
|
28
|
-
|
49
|
+
EXTERNAL_PROJECTS.each do |test_gem, commands|
|
50
|
+
task :"#{test_gem.gsub('-','_')}_spec" do
|
51
|
+
bundle_exec_with_chef(test_gem, commands)
|
52
|
+
end
|
29
53
|
end
|
data/tasks/maintainers.rb
CHANGED
@@ -20,50 +20,191 @@ require 'rake'
|
|
20
20
|
SOURCE = File.join(File.dirname(__FILE__), "..", "MAINTAINERS.toml")
|
21
21
|
TARGET = File.join(File.dirname(__FILE__), "..", "MAINTAINERS.md")
|
22
22
|
|
23
|
+
# The list of repositories that teams should own
|
24
|
+
REPOSITORIES = ["chef/chef", "chef/chef-census", "chef/chef-repo",
|
25
|
+
"chef/client-docs", "chef/ffi-yajl", "chef/libyajl2-gem",
|
26
|
+
"chef/mixlib-authentication", "chef/mixlib-cli",
|
27
|
+
"chef/mixlib-config", "chef/mixlib-install", "chef/mixlib-log",
|
28
|
+
"chef/mixlib-shellout", "chef/ohai", "chef/omnibus-chef"]
|
29
|
+
|
23
30
|
begin
|
24
31
|
require 'tomlrb'
|
32
|
+
require 'octokit'
|
33
|
+
require 'pp'
|
25
34
|
task :default => :generate
|
26
35
|
|
27
36
|
namespace :maintainers do
|
28
37
|
desc "Generate MarkDown version of MAINTAINERS file"
|
29
38
|
task :generate do
|
30
|
-
maintainers = Tomlrb.load_file SOURCE
|
31
39
|
out = "<!-- This is a generated file. Please do not edit directly -->\n\n"
|
32
|
-
out << "# " +
|
33
|
-
out <<
|
34
|
-
|
35
|
-
|
36
|
-
out <<
|
40
|
+
out << "# " + source["Preamble"]["title"] + "\n\n"
|
41
|
+
out << source["Preamble"]["text"] + "\n"
|
42
|
+
|
43
|
+
# The project lead is a special case
|
44
|
+
out << "# " + source["Org"]["Lead"]["title"] + "\n\n"
|
45
|
+
out << format_person(source["Org"]["Lead"]["person"]) + "\n\n"
|
46
|
+
|
47
|
+
out << format_components(source["Org"]["Components"])
|
37
48
|
File.open(TARGET, "w") { |fn|
|
38
49
|
fn.write out
|
39
50
|
}
|
40
51
|
end
|
52
|
+
|
53
|
+
desc "Synchronize GitHub teams"
|
54
|
+
# there's a special @chef/client-maintainers team that's everyone
|
55
|
+
# and then there's a team per component
|
56
|
+
task :synchronize do
|
57
|
+
Octokit.auto_paginate = true
|
58
|
+
get_github_teams
|
59
|
+
prepare_teams(source["Org"]["Components"].dup)
|
60
|
+
sync_teams!
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
def github
|
65
|
+
@github ||= Octokit::Client.new(:netrc => true)
|
66
|
+
end
|
67
|
+
|
68
|
+
def source
|
69
|
+
@source ||= Tomlrb.load_file SOURCE
|
41
70
|
end
|
42
71
|
|
43
|
-
def
|
72
|
+
def teams
|
73
|
+
@teams ||= {"client-maintainers" => {"title" => "Client Maintainers"}}
|
74
|
+
end
|
75
|
+
|
76
|
+
def add_members(team, name)
|
77
|
+
teams["client-maintainers"]["members"] ||= []
|
78
|
+
teams["client-maintainers"]["members"] << name
|
79
|
+
teams[team] ||= {}
|
80
|
+
teams[team]["members"] ||= []
|
81
|
+
teams[team]["members"] << name
|
82
|
+
end
|
83
|
+
|
84
|
+
def set_team_title(team, title)
|
85
|
+
teams[team] ||= {}
|
86
|
+
teams[team]["title"] = title
|
87
|
+
end
|
88
|
+
|
89
|
+
def gh_teams
|
90
|
+
@gh_teams ||= {}
|
91
|
+
end
|
92
|
+
|
93
|
+
# we have to resolve team names to ids. While we're at it, we can get the privacy
|
94
|
+
# setting, so we know whether we need to update it
|
95
|
+
def get_github_teams
|
96
|
+
github.org_teams("chef").each do |team|
|
97
|
+
gh_teams[team[:slug]] = {"id" => team[:id], "privacy" => team[:privacy]}
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
def get_github_team(team)
|
102
|
+
github.team_members(gh_teams[team]["id"]).map do |member|
|
103
|
+
member[:login]
|
104
|
+
end.sort.uniq.map(&:downcase)
|
105
|
+
rescue
|
106
|
+
[]
|
107
|
+
end
|
108
|
+
|
109
|
+
def create_team(team)
|
110
|
+
puts "creating new github team: #{team} with title: #{teams[team]["title"]} "
|
111
|
+
t = github.create_team("chef", name: team, description: teams[team]["title"],
|
112
|
+
privacy: "closed", repo_names: REPOSITORIES,
|
113
|
+
accept: "application/vnd.github.ironman-preview+json")
|
114
|
+
gh_teams[team] = { "id" => t[:id], "privacy" => t[:privacy] }
|
115
|
+
end
|
116
|
+
|
117
|
+
def compare_teams(current, desired)
|
118
|
+
# additions are the subtraction of the current state from the desired state
|
119
|
+
# deletions are the subtraction of the desired state from the current state
|
120
|
+
[desired - current, current - desired]
|
121
|
+
end
|
122
|
+
|
123
|
+
def prepare_teams(cmp)
|
124
|
+
%w(text paths).each { |k| cmp.delete(k) }
|
125
|
+
if cmp.key?("team")
|
126
|
+
team = cmp.delete("team")
|
127
|
+
add_members(team, cmp.delete("lieutenant")) if cmp.key?("lieutenant")
|
128
|
+
add_members(team, cmp.delete("maintainers")) if cmp.key?("maintainers")
|
129
|
+
set_team_title(team, cmp.delete("title"))
|
130
|
+
else
|
131
|
+
%w(maintainers lieutenant title).each { |k| cmp.delete(k) }
|
132
|
+
end
|
133
|
+
cmp.each { |_k, v| prepare_teams(v) }
|
134
|
+
end
|
135
|
+
|
136
|
+
def update_team(team, additions, deletions)
|
137
|
+
create_team(team) unless gh_teams.key?(team)
|
138
|
+
update_team_privacy(team)
|
139
|
+
add_team_members(team, additions)
|
140
|
+
remove_team_members(team, deletions)
|
141
|
+
rescue
|
142
|
+
puts "failed for #{team}"
|
143
|
+
end
|
144
|
+
|
145
|
+
def update_team_privacy(team)
|
146
|
+
return if gh_teams[team]["privacy"] == "closed"
|
147
|
+
puts "Setting #{team} privacy to closed from #{gh_teams[team]["privacy"]}"
|
148
|
+
github.update_team(gh_teams[team]["id"], privacy: "closed",
|
149
|
+
accept: "application/vnd.github.ironman-preview+json")
|
150
|
+
end
|
151
|
+
|
152
|
+
def add_team_members(team, additions)
|
153
|
+
additions.each do |member|
|
154
|
+
puts "Adding #{member} to #{team}"
|
155
|
+
github.add_team_membership(gh_teams[team]["id"], member, role: "member",
|
156
|
+
accept: "application/vnd.github.ironman-preview+json")
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
def remove_team_members(team, deletions)
|
161
|
+
deletions.each do |member|
|
162
|
+
puts "Removing #{member} from #{team}"
|
163
|
+
github.remove_team_membership(gh_teams[team]["id"], member,
|
164
|
+
accept: "application/vnd.github.ironman-preview+json")
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
168
|
+
def sync_teams!
|
169
|
+
teams.each do |name, details|
|
170
|
+
current = get_github_team(name)
|
171
|
+
desired = details["members"].flatten.sort.uniq.map(&:downcase)
|
172
|
+
additions, deletions = compare_teams(current, desired)
|
173
|
+
update_team(name, additions, deletions)
|
174
|
+
end
|
175
|
+
end
|
176
|
+
|
177
|
+
def get_person(person)
|
178
|
+
source["people"][person]
|
179
|
+
end
|
180
|
+
|
181
|
+
def format_components(cmp)
|
44
182
|
out = "## " + cmp.delete("title") + "\n\n"
|
45
183
|
out << cmp.delete("text") + "\n" if cmp.has_key?("text")
|
184
|
+
out << "To mention the team, use @chef/#{cmp.delete("team")}\n\n" if cmp.has_key?("team")
|
46
185
|
if cmp.has_key?("lieutenant")
|
47
186
|
out << "### Lieutenant\n\n"
|
48
|
-
out <<
|
187
|
+
out << format_person(cmp.delete("lieutenant")) + "\n\n"
|
49
188
|
end
|
50
|
-
out <<
|
189
|
+
out << format_maintainers(cmp.delete("maintainers")) + "\n" if cmp.has_key?("maintainers")
|
51
190
|
cmp.delete("paths")
|
52
|
-
cmp.each {|k,v| out <<
|
191
|
+
cmp.each {|k,v| out << format_components(v) }
|
53
192
|
out
|
54
193
|
end
|
55
194
|
|
56
|
-
def
|
195
|
+
def format_maintainers(people)
|
57
196
|
o = "### Maintainers\n\n"
|
58
197
|
people.each do |p|
|
59
|
-
o <<
|
198
|
+
o << format_person(p) + "\n"
|
60
199
|
end
|
61
200
|
o
|
62
201
|
end
|
63
202
|
|
64
|
-
def
|
65
|
-
|
203
|
+
def format_person(person)
|
204
|
+
mnt = get_person(person)
|
205
|
+
"* [#{mnt["Name"]}](https://github.com/#{mnt["GitHub"]})"
|
66
206
|
end
|
207
|
+
|
67
208
|
rescue LoadError
|
68
209
|
STDERR.puts "\n*** TomlRb not available.\n\n"
|
69
210
|
end
|
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.5.1
|
5
5
|
platform: universal-mingw32
|
6
6
|
authors:
|
7
7
|
- Adam Jacob
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-08 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.5.1
|
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.5.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: mixlib-cli
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -70,42 +70,36 @@ dependencies:
|
|
70
70
|
name: mixlib-shellout
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: 2.0.0.rc.0
|
76
|
-
- - "<"
|
73
|
+
- - "~>"
|
77
74
|
- !ruby/object:Gem::Version
|
78
|
-
version: '2.
|
75
|
+
version: '2.0'
|
79
76
|
type: :runtime
|
80
77
|
prerelease: false
|
81
78
|
version_requirements: !ruby/object:Gem::Requirement
|
82
79
|
requirements:
|
83
|
-
- - "
|
84
|
-
- !ruby/object:Gem::Version
|
85
|
-
version: 2.0.0.rc.0
|
86
|
-
- - "<"
|
80
|
+
- - "~>"
|
87
81
|
- !ruby/object:Gem::Version
|
88
|
-
version: '2.
|
82
|
+
version: '2.0'
|
89
83
|
- !ruby/object:Gem::Dependency
|
90
84
|
name: ohai
|
91
85
|
requirement: !ruby/object:Gem::Requirement
|
92
86
|
requirements:
|
93
|
-
- - "
|
87
|
+
- - ">="
|
94
88
|
- !ruby/object:Gem::Version
|
95
|
-
version:
|
89
|
+
version: 8.6.0.alpha.1
|
96
90
|
- - "<"
|
97
91
|
- !ruby/object:Gem::Version
|
98
|
-
version: '
|
92
|
+
version: '9'
|
99
93
|
type: :runtime
|
100
94
|
prerelease: false
|
101
95
|
version_requirements: !ruby/object:Gem::Requirement
|
102
96
|
requirements:
|
103
|
-
- - "
|
97
|
+
- - ">="
|
104
98
|
- !ruby/object:Gem::Version
|
105
|
-
version:
|
99
|
+
version: 8.6.0.alpha.1
|
106
100
|
- - "<"
|
107
101
|
- !ruby/object:Gem::Version
|
108
|
-
version: '
|
102
|
+
version: '9'
|
109
103
|
- !ruby/object:Gem::Dependency
|
110
104
|
name: ffi-yajl
|
111
105
|
requirement: !ruby/object:Gem::Requirement
|
@@ -212,9 +206,6 @@ dependencies:
|
|
212
206
|
- - ">="
|
213
207
|
- !ruby/object:Gem::Version
|
214
208
|
version: 4.2.2
|
215
|
-
- - "<"
|
216
|
-
- !ruby/object:Gem::Version
|
217
|
-
version: 4.3.0
|
218
209
|
type: :runtime
|
219
210
|
prerelease: false
|
220
211
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -225,9 +216,6 @@ dependencies:
|
|
225
216
|
- - ">="
|
226
217
|
- !ruby/object:Gem::Version
|
227
218
|
version: 4.2.2
|
228
|
-
- - "<"
|
229
|
-
- !ruby/object:Gem::Version
|
230
|
-
version: 4.3.0
|
231
219
|
- !ruby/object:Gem::Dependency
|
232
220
|
name: pry
|
233
221
|
requirement: !ruby/object:Gem::Requirement
|
@@ -512,16 +500,16 @@ dependencies:
|
|
512
500
|
name: win32-service
|
513
501
|
requirement: !ruby/object:Gem::Requirement
|
514
502
|
requirements:
|
515
|
-
- -
|
503
|
+
- - "~>"
|
516
504
|
- !ruby/object:Gem::Version
|
517
|
-
version: 0.8.
|
505
|
+
version: 0.8.7
|
518
506
|
type: :runtime
|
519
507
|
prerelease: false
|
520
508
|
version_requirements: !ruby/object:Gem::Requirement
|
521
509
|
requirements:
|
522
|
-
- -
|
510
|
+
- - "~>"
|
523
511
|
- !ruby/object:Gem::Version
|
524
|
-
version: 0.8.
|
512
|
+
version: 0.8.7
|
525
513
|
- !ruby/object:Gem::Dependency
|
526
514
|
name: windows-api
|
527
515
|
requirement: !ruby/object:Gem::Requirement
|
@@ -536,20 +524,6 @@ dependencies:
|
|
536
524
|
- - "~>"
|
537
525
|
- !ruby/object:Gem::Version
|
538
526
|
version: 0.4.4
|
539
|
-
- !ruby/object:Gem::Dependency
|
540
|
-
name: windows-pr
|
541
|
-
requirement: !ruby/object:Gem::Requirement
|
542
|
-
requirements:
|
543
|
-
- - "~>"
|
544
|
-
- !ruby/object:Gem::Version
|
545
|
-
version: 1.2.4
|
546
|
-
type: :runtime
|
547
|
-
prerelease: false
|
548
|
-
version_requirements: !ruby/object:Gem::Requirement
|
549
|
-
requirements:
|
550
|
-
- - "~>"
|
551
|
-
- !ruby/object:Gem::Version
|
552
|
-
version: 1.2.4
|
553
527
|
- !ruby/object:Gem::Dependency
|
554
528
|
name: wmi-lite
|
555
529
|
requirement: !ruby/object:Gem::Requirement
|
@@ -583,6 +557,7 @@ extra_rdoc_files:
|
|
583
557
|
- LICENSE
|
584
558
|
files:
|
585
559
|
- CONTRIBUTING.md
|
560
|
+
- Gemfile
|
586
561
|
- LICENSE
|
587
562
|
- README.md
|
588
563
|
- Rakefile
|
@@ -850,6 +825,7 @@ files:
|
|
850
825
|
- lib/chef/client.rb
|
851
826
|
- lib/chef/config.rb
|
852
827
|
- lib/chef/config_fetcher.rb
|
828
|
+
- lib/chef/constants.rb
|
853
829
|
- lib/chef/cookbook/chefignore.rb
|
854
830
|
- lib/chef/cookbook/cookbook_collection.rb
|
855
831
|
- lib/chef/cookbook/cookbook_version_loader.rb
|
@@ -867,9 +843,11 @@ files:
|
|
867
843
|
- lib/chef/daemon.rb
|
868
844
|
- lib/chef/data_bag.rb
|
869
845
|
- lib/chef/data_bag_item.rb
|
846
|
+
- lib/chef/delayed_evaluator.rb
|
870
847
|
- lib/chef/deprecation/mixin/template.rb
|
871
848
|
- lib/chef/deprecation/provider/cookbook_file.rb
|
872
849
|
- lib/chef/deprecation/provider/file.rb
|
850
|
+
- lib/chef/deprecation/provider/remote_directory.rb
|
873
851
|
- lib/chef/deprecation/provider/remote_file.rb
|
874
852
|
- lib/chef/deprecation/provider/template.rb
|
875
853
|
- lib/chef/deprecation/warnings.rb
|
@@ -900,6 +878,7 @@ files:
|
|
900
878
|
- lib/chef/environment.rb
|
901
879
|
- lib/chef/event_dispatch/base.rb
|
902
880
|
- lib/chef/event_dispatch/dispatcher.rb
|
881
|
+
- lib/chef/event_dispatch/dsl.rb
|
903
882
|
- lib/chef/event_dispatch/events_output_stream.rb
|
904
883
|
- lib/chef/event_loggers/base.rb
|
905
884
|
- lib/chef/event_loggers/windows_eventlog.rb
|
@@ -958,8 +937,6 @@ files:
|
|
958
937
|
- lib/chef/knife/bootstrap/chef_vault_handler.rb
|
959
938
|
- lib/chef/knife/bootstrap/client_builder.rb
|
960
939
|
- lib/chef/knife/bootstrap/templates/README.md
|
961
|
-
- lib/chef/knife/bootstrap/templates/archlinux-gems.erb
|
962
|
-
- lib/chef/knife/bootstrap/templates/chef-aix.erb
|
963
940
|
- lib/chef/knife/bootstrap/templates/chef-full.erb
|
964
941
|
- lib/chef/knife/client_bulk_delete.rb
|
965
942
|
- lib/chef/knife/client_create.rb
|
@@ -995,7 +972,10 @@ files:
|
|
995
972
|
- lib/chef/knife/cookbook_upload.rb
|
996
973
|
- lib/chef/knife/core/bootstrap_context.rb
|
997
974
|
- lib/chef/knife/core/cookbook_scm_repo.rb
|
975
|
+
- lib/chef/knife/core/custom_manifest_loader.rb
|
976
|
+
- lib/chef/knife/core/gem_glob_loader.rb
|
998
977
|
- lib/chef/knife/core/generic_presenter.rb
|
978
|
+
- lib/chef/knife/core/hashed_command_loader.rb
|
999
979
|
- lib/chef/knife/core/node_editor.rb
|
1000
980
|
- lib/chef/knife/core/node_presenter.rb
|
1001
981
|
- lib/chef/knife/core/object_loader.rb
|
@@ -1046,6 +1026,7 @@ files:
|
|
1046
1026
|
- lib/chef/knife/node_run_list_remove.rb
|
1047
1027
|
- lib/chef/knife/node_run_list_set.rb
|
1048
1028
|
- lib/chef/knife/node_show.rb
|
1029
|
+
- lib/chef/knife/null.rb
|
1049
1030
|
- lib/chef/knife/osc_user_create.rb
|
1050
1031
|
- lib/chef/knife/osc_user_delete.rb
|
1051
1032
|
- lib/chef/knife/osc_user_edit.rb
|
@@ -1054,6 +1035,7 @@ files:
|
|
1054
1035
|
- lib/chef/knife/osc_user_show.rb
|
1055
1036
|
- lib/chef/knife/raw.rb
|
1056
1037
|
- lib/chef/knife/recipe_list.rb
|
1038
|
+
- lib/chef/knife/rehash.rb
|
1057
1039
|
- lib/chef/knife/role_bulk_delete.rb
|
1058
1040
|
- lib/chef/knife/role_create.rb
|
1059
1041
|
- lib/chef/knife/role_delete.rb
|
@@ -1130,13 +1112,15 @@ files:
|
|
1130
1112
|
- lib/chef/mixin/uris.rb
|
1131
1113
|
- lib/chef/mixin/which.rb
|
1132
1114
|
- lib/chef/mixin/why_run.rb
|
1115
|
+
- lib/chef/mixin/wide_string.rb
|
1133
1116
|
- lib/chef/mixin/windows_architecture_helper.rb
|
1134
1117
|
- lib/chef/mixin/windows_env_helper.rb
|
1135
|
-
- lib/chef/mixin/wstring.rb
|
1136
1118
|
- lib/chef/mixin/xml_escape.rb
|
1137
1119
|
- lib/chef/mixins.rb
|
1138
1120
|
- lib/chef/monkey_patches/net-ssh-multi.rb
|
1139
1121
|
- lib/chef/monkey_patches/net_http.rb
|
1122
|
+
- lib/chef/monkey_patches/webrick-utils.rb
|
1123
|
+
- lib/chef/monkey_patches/win32/registry.rb
|
1140
1124
|
- lib/chef/monologger.rb
|
1141
1125
|
- lib/chef/nil_argument.rb
|
1142
1126
|
- lib/chef/node.rb
|
@@ -1158,8 +1142,10 @@ files:
|
|
1158
1142
|
- lib/chef/platform/resource_priority_map.rb
|
1159
1143
|
- lib/chef/platform/service_helpers.rb
|
1160
1144
|
- lib/chef/policy_builder.rb
|
1145
|
+
- lib/chef/policy_builder/dynamic.rb
|
1161
1146
|
- lib/chef/policy_builder/expand_node_object.rb
|
1162
1147
|
- lib/chef/policy_builder/policyfile.rb
|
1148
|
+
- lib/chef/property.rb
|
1163
1149
|
- lib/chef/provider.rb
|
1164
1150
|
- lib/chef/provider/batch.rb
|
1165
1151
|
- lib/chef/provider/breakpoint.rb
|
@@ -1285,6 +1271,7 @@ files:
|
|
1285
1271
|
- lib/chef/request_id.rb
|
1286
1272
|
- lib/chef/reserved_names.rb
|
1287
1273
|
- lib/chef/resource.rb
|
1274
|
+
- lib/chef/resource/action_class.rb
|
1288
1275
|
- lib/chef/resource/apt_package.rb
|
1289
1276
|
- lib/chef/resource/bash.rb
|
1290
1277
|
- lib/chef/resource/batch.rb
|
@@ -1426,6 +1413,7 @@ files:
|
|
1426
1413
|
- lib/chef/win32/api/net.rb
|
1427
1414
|
- lib/chef/win32/api/process.rb
|
1428
1415
|
- lib/chef/win32/api/psapi.rb
|
1416
|
+
- lib/chef/win32/api/registry.rb
|
1429
1417
|
- lib/chef/win32/api/security.rb
|
1430
1418
|
- lib/chef/win32/api/synchronization.rb
|
1431
1419
|
- lib/chef/win32/api/system.rb
|
@@ -1448,6 +1436,7 @@ files:
|
|
1448
1436
|
- lib/chef/win32/security/security_descriptor.rb
|
1449
1437
|
- lib/chef/win32/security/sid.rb
|
1450
1438
|
- lib/chef/win32/security/token.rb
|
1439
|
+
- lib/chef/win32/system.rb
|
1451
1440
|
- lib/chef/win32/unicode.rb
|
1452
1441
|
- lib/chef/win32/version.rb
|
1453
1442
|
- lib/chef/workstation_config_loader.rb
|
@@ -1565,7 +1554,10 @@ files:
|
|
1565
1554
|
- spec/data/cookbooks/openldap/recipes/return.rb
|
1566
1555
|
- spec/data/cookbooks/openldap/templates/default/all_windows_line_endings.erb
|
1567
1556
|
- spec/data/cookbooks/openldap/templates/default/helper_test.erb
|
1557
|
+
- spec/data/cookbooks/openldap/templates/default/helpers.erb
|
1568
1558
|
- spec/data/cookbooks/openldap/templates/default/helpers_via_partial_test.erb
|
1559
|
+
- spec/data/cookbooks/openldap/templates/default/nested_openldap_partials.erb
|
1560
|
+
- spec/data/cookbooks/openldap/templates/default/nested_partial.erb
|
1569
1561
|
- spec/data/cookbooks/openldap/templates/default/no_windows_line_endings.erb
|
1570
1562
|
- spec/data/cookbooks/openldap/templates/default/openldap_stuff.conf.erb
|
1571
1563
|
- spec/data/cookbooks/openldap/templates/default/openldap_variable_stuff.conf.erb
|
@@ -1577,6 +1569,7 @@ files:
|
|
1577
1569
|
- spec/data/cookbooks/preseed/templates/default/preseed-template-variables.seed
|
1578
1570
|
- spec/data/cookbooks/preseed/templates/default/preseed-template.seed
|
1579
1571
|
- spec/data/definitions/test.rb
|
1572
|
+
- spec/data/dsc_lcm.pfx
|
1580
1573
|
- spec/data/environment-config.rb
|
1581
1574
|
- spec/data/file-providers-method-snapshot-chef-11-4.json
|
1582
1575
|
- spec/data/fileedit/blank
|
@@ -1678,6 +1671,8 @@ files:
|
|
1678
1671
|
- spec/data/run_context/cookbooks/dependency2/providers/provider.rb
|
1679
1672
|
- spec/data/run_context/cookbooks/dependency2/recipes/default.rb
|
1680
1673
|
- spec/data/run_context/cookbooks/dependency2/resources/resource.rb
|
1674
|
+
- spec/data/run_context/cookbooks/include/recipes/default.rb
|
1675
|
+
- spec/data/run_context/cookbooks/include/recipes/includee.rb
|
1681
1676
|
- spec/data/run_context/cookbooks/no-default-attr/attributes/server.rb
|
1682
1677
|
- spec/data/run_context/cookbooks/no-default-attr/definitions/no_default-attr_res.rb
|
1683
1678
|
- spec/data/run_context/cookbooks/no-default-attr/providers/provider.rb
|
@@ -1775,7 +1770,7 @@ files:
|
|
1775
1770
|
- spec/functional/resource/mount_spec.rb
|
1776
1771
|
- spec/functional/resource/ohai_spec.rb
|
1777
1772
|
- spec/functional/resource/package_spec.rb
|
1778
|
-
- spec/functional/resource/
|
1773
|
+
- spec/functional/resource/powershell_script_spec.rb
|
1779
1774
|
- spec/functional/resource/reboot_spec.rb
|
1780
1775
|
- spec/functional/resource/registry_spec.rb
|
1781
1776
|
- spec/functional/resource/remote_directory_spec.rb
|
@@ -1794,7 +1789,7 @@ files:
|
|
1794
1789
|
- spec/functional/util/powershell/cmdlet_spec.rb
|
1795
1790
|
- spec/functional/version_spec.rb
|
1796
1791
|
- spec/functional/win32/crypto_spec.rb
|
1797
|
-
- spec/functional/win32/
|
1792
|
+
- spec/functional/win32/registry_spec.rb
|
1798
1793
|
- spec/functional/win32/security_spec.rb
|
1799
1794
|
- spec/functional/win32/service_manager_spec.rb
|
1800
1795
|
- spec/functional/win32/sid_spec.rb
|
@@ -1821,6 +1816,10 @@ files:
|
|
1821
1816
|
- spec/integration/recipes/lwrp_spec.rb
|
1822
1817
|
- spec/integration/recipes/provider_choice.rb
|
1823
1818
|
- spec/integration/recipes/recipe_dsl_spec.rb
|
1819
|
+
- spec/integration/recipes/remote_directory.rb
|
1820
|
+
- spec/integration/recipes/resource_action_spec.rb
|
1821
|
+
- spec/integration/recipes/resource_converge_if_changed_spec.rb
|
1822
|
+
- spec/integration/recipes/resource_load_spec.rb
|
1824
1823
|
- spec/integration/solo/solo_spec.rb
|
1825
1824
|
- spec/rcov.opts
|
1826
1825
|
- spec/scripts/ssl-serve.rb
|
@@ -1853,6 +1852,7 @@ files:
|
|
1853
1852
|
- spec/support/platforms/win32/spec_service.rb
|
1854
1853
|
- spec/support/shared/context/client.rb
|
1855
1854
|
- spec/support/shared/context/config.rb
|
1855
|
+
- spec/support/shared/context/win32.rb
|
1856
1856
|
- spec/support/shared/examples/client.rb
|
1857
1857
|
- spec/support/shared/functional/diff_disabled.rb
|
1858
1858
|
- spec/support/shared/functional/directory_resource.rb
|
@@ -1874,6 +1874,7 @@ files:
|
|
1874
1874
|
- spec/support/shared/unit/execute_resource.rb
|
1875
1875
|
- spec/support/shared/unit/file_system_support.rb
|
1876
1876
|
- spec/support/shared/unit/knife_shared.rb
|
1877
|
+
- spec/support/shared/unit/mock_shellout.rb
|
1877
1878
|
- spec/support/shared/unit/platform_introspector.rb
|
1878
1879
|
- spec/support/shared/unit/provider/file.rb
|
1879
1880
|
- spec/support/shared/unit/provider/useradd_based_user_provider.rb
|
@@ -1906,9 +1907,11 @@ files:
|
|
1906
1907
|
- spec/unit/chef_fs/file_system/operation_failed_error_spec.rb
|
1907
1908
|
- spec/unit/chef_fs/file_system_spec.rb
|
1908
1909
|
- spec/unit/chef_fs/parallelizer.rb
|
1910
|
+
- spec/unit/chef_fs/path_util_spec.rb
|
1909
1911
|
- spec/unit/chef_spec.rb
|
1910
1912
|
- spec/unit/client_spec.rb
|
1911
1913
|
- spec/unit/config_fetcher_spec.rb
|
1914
|
+
- spec/unit/config_spec.rb
|
1912
1915
|
- spec/unit/cookbook/chefignore_spec.rb
|
1913
1916
|
- spec/unit/cookbook/cookbook_version_loader_spec.rb
|
1914
1917
|
- spec/unit/cookbook/file_vendor_spec.rb
|
@@ -1938,6 +1941,7 @@ files:
|
|
1938
1941
|
- spec/unit/encrypted_data_bag_item_spec.rb
|
1939
1942
|
- spec/unit/environment_spec.rb
|
1940
1943
|
- spec/unit/event_dispatch/dispatcher_spec.rb
|
1944
|
+
- spec/unit/event_dispatch/dsl_spec.rb
|
1941
1945
|
- spec/unit/exceptions_spec.rb
|
1942
1946
|
- spec/unit/file_access_control_spec.rb
|
1943
1947
|
- spec/unit/file_cache_spec.rb
|
@@ -1997,6 +2001,9 @@ files:
|
|
1997
2001
|
- spec/unit/knife/cookbook_upload_spec.rb
|
1998
2002
|
- spec/unit/knife/core/bootstrap_context_spec.rb
|
1999
2003
|
- spec/unit/knife/core/cookbook_scm_repo_spec.rb
|
2004
|
+
- spec/unit/knife/core/custom_manifest_loader_spec.rb
|
2005
|
+
- spec/unit/knife/core/gem_glob_loader_spec.rb
|
2006
|
+
- spec/unit/knife/core/hashed_command_loader_spec.rb
|
2000
2007
|
- spec/unit/knife/core/object_loader_spec.rb
|
2001
2008
|
- spec/unit/knife/core/subcommand_loader_spec.rb
|
2002
2009
|
- spec/unit/knife/core/ui_spec.rb
|
@@ -2101,9 +2108,13 @@ files:
|
|
2101
2108
|
- spec/unit/org_spec.rb
|
2102
2109
|
- spec/unit/platform/query_helpers_spec.rb
|
2103
2110
|
- spec/unit/platform_spec.rb
|
2111
|
+
- spec/unit/policy_builder/dynamic_spec.rb
|
2104
2112
|
- spec/unit/policy_builder/expand_node_object_spec.rb
|
2105
2113
|
- spec/unit/policy_builder/policyfile_spec.rb
|
2106
2114
|
- spec/unit/policy_builder_spec.rb
|
2115
|
+
- spec/unit/property/state_spec.rb
|
2116
|
+
- spec/unit/property/validation_spec.rb
|
2117
|
+
- spec/unit/property_spec.rb
|
2107
2118
|
- spec/unit/provider/breakpoint_spec.rb
|
2108
2119
|
- spec/unit/provider/cookbook_file/content_spec.rb
|
2109
2120
|
- spec/unit/provider/cookbook_file_spec.rb
|
@@ -2168,7 +2179,7 @@ files:
|
|
2168
2179
|
- spec/unit/provider/package/zypper_spec.rb
|
2169
2180
|
- spec/unit/provider/package_spec.rb
|
2170
2181
|
- spec/unit/provider/package_spec.rbe
|
2171
|
-
- spec/unit/provider/
|
2182
|
+
- spec/unit/provider/powershell_script_spec.rb
|
2172
2183
|
- spec/unit/provider/registry_key_spec.rb
|
2173
2184
|
- spec/unit/provider/remote_directory_spec.rb
|
2174
2185
|
- spec/unit/provider/remote_file/cache_control_data_spec.rb
|
@@ -2214,7 +2225,6 @@ files:
|
|
2214
2225
|
- spec/unit/provider_spec.rb
|
2215
2226
|
- spec/unit/pure_application_spec.rb
|
2216
2227
|
- spec/unit/recipe_spec.rb
|
2217
|
-
- spec/unit/registry_helper_spec.rb
|
2218
2228
|
- spec/unit/resource/apt_package_spec.rb
|
2219
2229
|
- spec/unit/resource/bash_spec.rb
|
2220
2230
|
- spec/unit/resource/batch_spec.rb
|
@@ -2256,7 +2266,7 @@ files:
|
|
2256
2266
|
- spec/unit/resource/pacman_package_spec.rb
|
2257
2267
|
- spec/unit/resource/perl_spec.rb
|
2258
2268
|
- spec/unit/resource/portage_package_spec.rb
|
2259
|
-
- spec/unit/resource/
|
2269
|
+
- spec/unit/resource/powershell_script_spec.rb
|
2260
2270
|
- spec/unit/resource/python_spec.rb
|
2261
2271
|
- spec/unit/resource/registry_key_spec.rb
|
2262
2272
|
- spec/unit/resource/remote_directory_spec.rb
|
@@ -2290,6 +2300,7 @@ files:
|
|
2290
2300
|
- spec/unit/rest/auth_credentials_spec.rb
|
2291
2301
|
- spec/unit/rest_spec.rb
|
2292
2302
|
- spec/unit/role_spec.rb
|
2303
|
+
- spec/unit/run_context/child_run_context_spec.rb
|
2293
2304
|
- spec/unit/run_context/cookbook_compiler_spec.rb
|
2294
2305
|
- spec/unit/run_context_spec.rb
|
2295
2306
|
- spec/unit/run_list/run_list_expansion_spec.rb
|
@@ -2324,8 +2335,8 @@ files:
|
|
2324
2335
|
- spec/unit/version_class_spec.rb
|
2325
2336
|
- spec/unit/version_constraint/platform_spec.rb
|
2326
2337
|
- spec/unit/version_constraint_spec.rb
|
2338
|
+
- spec/unit/win32/registry_spec.rb
|
2327
2339
|
- spec/unit/windows_service_spec.rb
|
2328
|
-
- spec/unit/workstation_config_loader_spec.rb
|
2329
2340
|
- tasks/external_tests.rb
|
2330
2341
|
- tasks/maintainers.rb
|
2331
2342
|
- tasks/rspec.rb
|