chef 14.14.29-universal-mingw32 → 14.15.6-universal-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +18 -7
- data/Rakefile +7 -4
- data/chef.gemspec +1 -1
- data/lib/chef/knife/ssh.rb +6 -0
- data/lib/chef/provider/ifconfig.rb +14 -5
- data/lib/chef/provider/windows_task.rb +9 -5
- data/lib/chef/resource/kernel_module.rb +61 -0
- data/lib/chef/resource/windows_task.rb +4 -0
- data/lib/chef/version.rb +1 -1
- data/spec/data/cookbooks/openldap/metadata.rb +2 -2
- data/spec/data/metadata/quick_start/metadata.rb +2 -7
- data/spec/functional/audit/runner_spec.rb +1 -1
- data/spec/functional/dsl/reboot_pending_spec.rb +7 -25
- data/spec/functional/event_loggers/windows_eventlog_spec.rb +6 -4
- data/spec/functional/file_content_management/deploy_strategies_spec.rb +21 -21
- data/spec/functional/knife/exec_spec.rb +1 -1
- data/spec/functional/knife/ssh_spec.rb +3 -3
- data/spec/functional/mixin/user_context_spec.rb +3 -1
- data/spec/functional/rebooter_spec.rb +1 -1
- data/spec/functional/resource/aix_service_spec.rb +1 -1
- data/spec/functional/resource/aixinit_service_spec.rb +1 -1
- data/spec/functional/resource/apt_package_spec.rb +1 -1
- data/spec/functional/resource/chocolatey_package_spec.rb +2 -2
- data/spec/functional/resource/cookbook_file_spec.rb +1 -3
- data/spec/functional/resource/cron_spec.rb +4 -3
- data/spec/functional/resource/dpkg_package_spec.rb +4 -4
- data/spec/functional/resource/dsc_resource_spec.rb +2 -1
- data/spec/functional/resource/dsc_script_spec.rb +16 -20
- data/spec/functional/resource/execute_spec.rb +2 -2
- data/spec/functional/resource/git_spec.rb +6 -6
- data/spec/functional/resource/group_spec.rb +8 -6
- data/spec/functional/resource/ifconfig_spec.rb +3 -5
- data/spec/functional/resource/link_spec.rb +2 -2
- data/spec/functional/resource/mount_spec.rb +3 -7
- data/spec/functional/resource/powershell_script_spec.rb +9 -8
- data/spec/functional/resource/reboot_spec.rb +1 -1
- data/spec/functional/resource/remote_file_spec.rb +2 -2
- data/spec/functional/resource/template_spec.rb +1 -1
- data/spec/functional/resource/user/windows_spec.rb +2 -2
- data/spec/functional/resource/windows_certificate_spec.rb +3 -3
- data/spec/functional/resource/windows_service_spec.rb +3 -3
- data/spec/functional/resource/windows_task_spec.rb +51 -0
- data/spec/functional/run_lock_spec.rb +10 -3
- data/spec/functional/shell_spec.rb +1 -1
- data/spec/functional/util/powershell/cmdlet_spec.rb +1 -1
- data/spec/functional/version_spec.rb +1 -1
- data/spec/functional/win32/security_spec.rb +12 -7
- data/spec/functional/win32/service_manager_spec.rb +1 -1
- data/spec/functional/win32/version_info_spec.rb +4 -4
- data/spec/integration/client/client_spec.rb +114 -132
- data/spec/integration/client/exit_code_spec.rb +8 -8
- data/spec/integration/client/ipv6_spec.rb +5 -5
- data/spec/integration/knife/chef_fs_data_store_spec.rb +38 -38
- data/spec/integration/knife/chef_repo_path_spec.rb +42 -42
- data/spec/integration/knife/chef_repository_file_system_spec.rb +9 -9
- data/spec/integration/knife/chefignore_spec.rb +13 -13
- data/spec/integration/knife/client_bulk_delete_spec.rb +8 -8
- data/spec/integration/knife/client_create_spec.rb +1 -1
- data/spec/integration/knife/client_delete_spec.rb +4 -4
- data/spec/integration/knife/client_key_delete_spec.rb +1 -1
- data/spec/integration/knife/client_key_list_spec.rb +1 -1
- data/spec/integration/knife/client_list_spec.rb +1 -1
- data/spec/integration/knife/common_options_spec.rb +1 -1
- data/spec/integration/knife/config_get_spec.rb +1 -1
- data/spec/integration/knife/config_list_profiles_spec.rb +2 -1
- data/spec/integration/knife/cookbook_api_ipv6_spec.rb +3 -3
- data/spec/integration/knife/cookbook_bulk_delete_spec.rb +3 -3
- data/spec/integration/knife/cookbook_download_spec.rb +4 -4
- data/spec/integration/knife/cookbook_list_spec.rb +2 -2
- data/spec/integration/knife/cookbook_show_spec.rb +3 -3
- data/spec/integration/knife/cookbook_upload_spec.rb +6 -6
- data/spec/integration/knife/data_bag_delete_spec.rb +4 -4
- data/spec/integration/knife/data_bag_from_file_spec.rb +7 -7
- data/spec/integration/knife/data_bag_list_spec.rb +1 -1
- data/spec/integration/knife/delete_spec.rb +37 -37
- data/spec/integration/knife/deps_spec.rb +23 -23
- data/spec/integration/knife/diff_spec.rb +23 -23
- data/spec/integration/knife/download_spec.rb +79 -79
- data/spec/integration/knife/environment_compare_spec.rb +3 -3
- data/spec/integration/knife/environment_from_file_spec.rb +6 -6
- data/spec/integration/knife/environment_list_spec.rb +1 -1
- data/spec/integration/knife/environment_show_spec.rb +4 -4
- data/spec/integration/knife/list_spec.rb +25 -25
- data/spec/integration/knife/node_bulk_delete_spec.rb +2 -2
- data/spec/integration/knife/node_delete_spec.rb +2 -2
- data/spec/integration/knife/node_environment_set_spec.rb +1 -1
- data/spec/integration/knife/node_from_file_spec.rb +2 -2
- data/spec/integration/knife/node_list_spec.rb +1 -1
- data/spec/integration/knife/raw_spec.rb +12 -12
- data/spec/integration/knife/redirection_spec.rb +1 -1
- data/spec/integration/knife/role_bulk_delete_spec.rb +2 -2
- data/spec/integration/knife/role_delete_spec.rb +2 -2
- data/spec/integration/knife/role_from_file_spec.rb +5 -5
- data/spec/integration/knife/role_list_spec.rb +1 -1
- data/spec/integration/knife/role_show_spec.rb +1 -1
- data/spec/integration/knife/show_spec.rb +10 -10
- data/spec/integration/knife/upload_spec.rb +85 -85
- data/spec/integration/recipes/accumulator_spec.rb +4 -4
- data/spec/integration/recipes/lwrp_inline_resources_spec.rb +6 -6
- data/spec/integration/recipes/lwrp_spec.rb +6 -6
- data/spec/integration/recipes/notifies_spec.rb +45 -45
- data/spec/integration/recipes/notifying_block_spec.rb +4 -4
- data/spec/integration/recipes/provider_choice.rb +1 -2
- data/spec/integration/recipes/recipe_dsl_spec.rb +9 -9
- data/spec/integration/recipes/remote_directory.rb +2 -2
- data/spec/integration/recipes/resource_action_spec.rb +1 -1
- data/spec/integration/recipes/resource_converge_if_changed_spec.rb +19 -19
- data/spec/integration/solo/solo_spec.rb +29 -29
- data/spec/scripts/ssl-serve.rb +1 -1
- data/spec/spec_helper.rb +11 -14
- data/spec/stress/win32/security_spec.rb +1 -1
- data/spec/support/lib/chef/resource/zen_follower.rb +1 -1
- data/spec/support/lib/chef/resource/zen_master.rb +1 -1
- data/spec/support/mock/platform.rb +2 -2
- data/spec/support/platform_helpers.rb +12 -3
- data/spec/support/platforms/win32/spec_service.rb +6 -10
- data/spec/support/shared/context/client.rb +2 -1
- data/spec/support/shared/functional/execute_resource.rb +4 -4
- data/spec/support/shared/functional/file_resource.rb +1 -3
- data/spec/support/shared/functional/http.rb +20 -44
- data/spec/support/shared/functional/securable_resource.rb +4 -8
- data/spec/support/shared/functional/win32_service.rb +1 -1
- data/spec/support/shared/functional/windows_script.rb +2 -1
- data/spec/support/shared/integration/app_server_support.rb +3 -4
- data/spec/support/shared/integration/integration_helper.rb +1 -0
- data/spec/support/shared/integration/knife_support.rb +5 -5
- data/spec/support/shared/unit/application_dot_d.rb +10 -4
- data/spec/support/shared/unit/file_system_support.rb +3 -2
- data/spec/support/shared/unit/platform_introspector.rb +12 -12
- data/spec/support/shared/unit/provider/file.rb +1 -1
- data/spec/support/shared/unit/script_resource.rb +1 -1
- data/spec/support/shared/unit/windows_script_resource.rb +1 -1
- data/spec/tiny_server.rb +1 -1
- data/spec/unit/api_client/registration_spec.rb +1 -1
- data/spec/unit/api_client_spec.rb +5 -5
- data/spec/unit/api_client_v1_spec.rb +6 -6
- data/spec/unit/application/client_spec.rb +8 -8
- data/spec/unit/application/exit_code_spec.rb +3 -2
- data/spec/unit/application/knife_spec.rb +1 -2
- data/spec/unit/audit/audit_event_proxy_spec.rb +14 -7
- data/spec/unit/audit/audit_reporter_spec.rb +20 -11
- data/spec/unit/audit/control_group_data_spec.rb +17 -12
- data/spec/unit/chef_fs/config_spec.rb +3 -3
- data/spec/unit/chef_fs/file_system/repository/directory_spec.rb +1 -1
- data/spec/unit/chef_fs/parallelizer.rb +1 -1
- data/spec/unit/client_spec.rb +3 -3
- data/spec/unit/config_fetcher_spec.rb +1 -1
- data/spec/unit/cookbook/metadata_spec.rb +13 -13
- data/spec/unit/cookbook/synchronizer_spec.rb +6 -6
- data/spec/unit/cookbook_loader_spec.rb +17 -17
- data/spec/unit/cookbook_manifest_spec.rb +9 -9
- data/spec/unit/cookbook_site_streaming_uploader_spec.rb +1 -2
- data/spec/unit/cookbook_uploader_spec.rb +2 -2
- data/spec/unit/cookbook_version_file_specificity_spec.rb +9 -9
- data/spec/unit/cookbook_version_spec.rb +2 -2
- data/spec/unit/data_bag_item_spec.rb +7 -7
- data/spec/unit/data_bag_spec.rb +1 -1
- data/spec/unit/data_collector_spec.rb +23 -23
- data/spec/unit/decorator_spec.rb +2 -2
- data/spec/unit/deprecated_spec.rb +2 -2
- data/spec/unit/dsl/data_query_spec.rb +3 -2
- data/spec/unit/dsl/declare_resource_spec.rb +1 -1
- data/spec/unit/dsl/platform_introspection_spec.rb +2 -2
- data/spec/unit/encrypted_data_bag_item/check_encrypted_spec.rb +2 -1
- data/spec/unit/encrypted_data_bag_item_spec.rb +2 -1
- data/spec/unit/environment_spec.rb +13 -13
- data/spec/unit/event_dispatch/dsl_spec.rb +1 -1
- data/spec/unit/file_content_management/deploy/mv_unix_spec.rb +3 -3
- data/spec/unit/file_content_management/deploy/mv_windows_spec.rb +2 -2
- data/spec/unit/formatters/error_inspectors/resource_failure_inspector_spec.rb +3 -3
- data/spec/unit/guard_interpreter/resource_guard_interpreter_spec.rb +1 -1
- data/spec/unit/http/authenticator_spec.rb +4 -3
- data/spec/unit/http/json_input_spec.rb +1 -1
- data/spec/unit/http/socketless_chef_zero_client_spec.rb +15 -15
- data/spec/unit/key_spec.rb +8 -8
- data/spec/unit/knife/bootstrap_spec.rb +14 -10
- data/spec/unit/knife/client_bulk_delete_spec.rb +4 -4
- data/spec/unit/knife/configure_client_spec.rb +1 -1
- data/spec/unit/knife/configure_spec.rb +1 -1
- data/spec/unit/knife/cookbook_bulk_delete_spec.rb +1 -1
- data/spec/unit/knife/cookbook_delete_spec.rb +2 -2
- data/spec/unit/knife/cookbook_download_spec.rb +2 -2
- data/spec/unit/knife/cookbook_metadata_spec.rb +4 -4
- data/spec/unit/knife/cookbook_upload_spec.rb +7 -5
- data/spec/unit/knife/core/bootstrap_context_spec.rb +1 -1
- data/spec/unit/knife/core/cookbook_scm_repo_spec.rb +2 -2
- data/spec/unit/knife/core/gem_glob_loader_spec.rb +4 -4
- data/spec/unit/knife/core/hashed_command_loader_spec.rb +4 -2
- data/spec/unit/knife/core/node_editor_spec.rb +12 -12
- data/spec/unit/knife/core/ui_spec.rb +11 -11
- data/spec/unit/knife/data_bag_from_file_spec.rb +2 -1
- data/spec/unit/knife/data_bag_show_spec.rb +2 -1
- data/spec/unit/knife/key_create_spec.rb +1 -1
- data/spec/unit/knife/key_delete_spec.rb +3 -3
- data/spec/unit/knife/key_edit_spec.rb +4 -4
- data/spec/unit/knife/key_list_spec.rb +1 -1
- data/spec/unit/knife/key_show_spec.rb +3 -3
- data/spec/unit/knife/node_bulk_delete_spec.rb +3 -3
- data/spec/unit/knife/node_delete_spec.rb +2 -2
- data/spec/unit/knife/node_edit_spec.rb +1 -1
- data/spec/unit/knife/node_environment_set_spec.rb +1 -1
- data/spec/unit/knife/node_from_file_spec.rb +1 -1
- data/spec/unit/knife/node_policy_set_spec.rb +1 -1
- data/spec/unit/knife/node_run_list_add_spec.rb +1 -1
- data/spec/unit/knife/node_run_list_remove_spec.rb +1 -1
- data/spec/unit/knife/node_run_list_set_spec.rb +1 -1
- data/spec/unit/knife/node_show_spec.rb +1 -1
- data/spec/unit/knife/raw_spec.rb +2 -2
- data/spec/unit/knife/role_bulk_delete_spec.rb +2 -2
- data/spec/unit/knife/role_create_spec.rb +1 -1
- data/spec/unit/knife/role_delete_spec.rb +1 -1
- data/spec/unit/knife/role_edit_spec.rb +1 -1
- data/spec/unit/knife/role_env_run_list_add_spec.rb +1 -1
- data/spec/unit/knife/role_env_run_list_clear_spec.rb +1 -1
- data/spec/unit/knife/role_env_run_list_remove_spec.rb +1 -1
- data/spec/unit/knife/role_env_run_list_replace_spec.rb +1 -1
- data/spec/unit/knife/role_env_run_list_set_spec.rb +1 -1
- data/spec/unit/knife/role_from_file_spec.rb +1 -1
- data/spec/unit/knife/role_run_list_add_spec.rb +1 -1
- data/spec/unit/knife/role_run_list_clear_spec.rb +1 -1
- data/spec/unit/knife/role_run_list_remove_spec.rb +1 -1
- data/spec/unit/knife/role_run_list_replace_spec.rb +1 -1
- data/spec/unit/knife/role_run_list_set_spec.rb +1 -1
- data/spec/unit/knife/ssh_spec.rb +27 -17
- data/spec/unit/knife/ssl_check_spec.rb +4 -4
- data/spec/unit/knife/ssl_fetch_spec.rb +5 -5
- data/spec/unit/knife/status_spec.rb +3 -2
- data/spec/unit/knife/supermarket_download_spec.rb +4 -4
- data/spec/unit/knife/supermarket_install_spec.rb +5 -4
- data/spec/unit/knife/supermarket_share_spec.rb +1 -1
- data/spec/unit/knife_spec.rb +34 -33
- data/spec/unit/lwrp_spec.rb +19 -19
- data/spec/unit/mixin/homebrew_user_spec.rb +1 -1
- data/spec/unit/mixin/params_validate_spec.rb +10 -10
- data/spec/unit/mixin/properties_spec.rb +4 -4
- data/spec/unit/mixin/shell_out_spec.rb +27 -27
- data/spec/unit/mixin/template_spec.rb +4 -8
- data/spec/unit/mixin/unformatter_spec.rb +1 -2
- data/spec/unit/mixin/user_context_spec.rb +1 -2
- data/spec/unit/mixin/which.rb +2 -0
- data/spec/unit/mixin/windows_architecture_helper_spec.rb +3 -3
- data/spec/unit/node/attribute_spec.rb +79 -79
- data/spec/unit/node/immutable_collections_spec.rb +50 -50
- data/spec/unit/node_spec.rb +16 -16
- data/spec/unit/org_spec.rb +3 -3
- data/spec/unit/policy_builder/policyfile_spec.rb +2 -2
- data/spec/unit/property/state_spec.rb +26 -25
- data/spec/unit/property/validation_spec.rb +14 -13
- data/spec/unit/property_spec.rb +10 -9
- data/spec/unit/provider/apt_update_spec.rb +6 -6
- data/spec/unit/provider/cron_spec.rb +15 -15
- data/spec/unit/provider/dsc_resource_spec.rb +6 -3
- data/spec/unit/provider/dsc_script_spec.rb +1 -1
- data/spec/unit/provider/execute_spec.rb +5 -5
- data/spec/unit/provider/git_spec.rb +39 -39
- data/spec/unit/provider/group/dscl_spec.rb +3 -3
- data/spec/unit/provider/group/groupadd_spec.rb +1 -1
- data/spec/unit/provider/group_spec.rb +2 -3
- data/spec/unit/provider/ifconfig/aix_spec.rb +1 -1
- data/spec/unit/provider/ifconfig/debian_spec.rb +2 -2
- data/spec/unit/provider/ifconfig_spec.rb +45 -16
- data/spec/unit/provider/launchd_spec.rb +23 -15
- data/spec/unit/provider/link_spec.rb +22 -11
- data/spec/unit/provider/mount/aix_spec.rb +6 -6
- data/spec/unit/provider/mount/mount_spec.rb +31 -31
- data/spec/unit/provider/mount/solaris_spec.rb +11 -11
- data/spec/unit/provider/ohai_spec.rb +1 -1
- data/spec/unit/provider/osx_profile_spec.rb +5 -7
- data/spec/unit/provider/package/apt_spec.rb +5 -5
- data/spec/unit/provider/package/bff_spec.rb +1 -1
- data/spec/unit/provider/package/cab_spec.rb +1 -1
- data/spec/unit/provider/package/chocolatey_spec.rb +8 -8
- data/spec/unit/provider/package/freebsd/pkg_spec.rb +1 -1
- data/spec/unit/provider/package/ips_spec.rb +6 -6
- data/spec/unit/provider/package/macports_spec.rb +1 -1
- data/spec/unit/provider/package/msu_spec.rb +1 -1
- data/spec/unit/provider/package/openbsd_spec.rb +15 -11
- data/spec/unit/provider/package/pacman_spec.rb +3 -3
- data/spec/unit/provider/package/paludis_spec.rb +4 -4
- data/spec/unit/provider/package/portage_spec.rb +1 -1
- data/spec/unit/provider/package/powershell_spec.rb +1 -1
- data/spec/unit/provider/package/smartos_spec.rb +3 -3
- data/spec/unit/provider/package/solaris_spec.rb +1 -1
- data/spec/unit/provider/package/windows/exe_spec.rb +9 -9
- data/spec/unit/provider/package/windows/msi_spec.rb +7 -7
- data/spec/unit/provider/package/windows_spec.rb +2 -1
- data/spec/unit/provider/package/yum/yum_cache_spec.rb +1 -1
- data/spec/unit/provider/package/zypper_spec.rb +4 -4
- data/spec/unit/provider/package_spec.rb +1 -1
- data/spec/unit/provider/powershell_script_spec.rb +7 -7
- data/spec/unit/provider/registry_key_spec.rb +1 -1
- data/spec/unit/provider/remote_directory_spec.rb +6 -6
- data/spec/unit/provider/route_spec.rb +11 -11
- data/spec/unit/provider/service/arch_service_spec.rb +13 -13
- data/spec/unit/provider/service/debian_service_spec.rb +2 -1
- data/spec/unit/provider/service/freebsd_service_spec.rb +28 -24
- data/spec/unit/provider/service/gentoo_service_spec.rb +2 -2
- data/spec/unit/provider/service/init_service_spec.rb +11 -11
- data/spec/unit/provider/service/invokercd_service_spec.rb +11 -11
- data/spec/unit/provider/service/macosx_spec.rb +5 -5
- data/spec/unit/provider/service/openbsd_service_spec.rb +15 -11
- data/spec/unit/provider/service/simple_service_spec.rb +7 -7
- data/spec/unit/provider/service/upstart_service_spec.rb +14 -14
- data/spec/unit/provider/service/windows_spec.rb +53 -35
- data/spec/unit/provider/subversion_spec.rb +8 -4
- data/spec/unit/provider/systemd_unit_spec.rb +142 -142
- data/spec/unit/provider/template/content_spec.rb +29 -29
- data/spec/unit/provider/windows_task_spec.rb +1 -1
- data/spec/unit/provider_resolver_spec.rb +75 -75
- data/spec/unit/provider_spec.rb +2 -4
- data/spec/unit/recipe_spec.rb +4 -4
- data/spec/unit/resource/batch_spec.rb +1 -1
- data/spec/unit/resource/chef_gem_spec.rb +1 -1
- data/spec/unit/resource/chocolatey_config_spec.rb +1 -1
- data/spec/unit/resource/chocolatey_source_spec.rb +1 -1
- data/spec/unit/resource/directory_spec.rb +1 -1
- data/spec/unit/resource/dnf_package_spec.rb +1 -1
- data/spec/unit/resource/dsc_resource_spec.rb +1 -1
- data/spec/unit/resource/file/verification_spec.rb +1 -2
- data/spec/unit/resource/file_spec.rb +1 -1
- data/spec/unit/resource/group_spec.rb +1 -1
- data/spec/unit/resource/link_spec.rb +1 -1
- data/spec/unit/resource/osx_profile_spec.rb +2 -1
- data/spec/unit/resource/powershell_script_spec.rb +12 -7
- data/spec/unit/resource/registry_key_spec.rb +3 -3
- data/spec/unit/resource/rhsm_subscription_spec.rb +1 -1
- data/spec/unit/resource/service_spec.rb +1 -1
- data/spec/unit/resource/template_spec.rb +2 -2
- data/spec/unit/resource/windows_env_spec.rb +1 -1
- data/spec/unit/resource/windows_service_spec.rb +5 -5
- data/spec/unit/resource/windows_task_spec.rb +6 -2
- data/spec/unit/resource/yum_package_spec.rb +1 -1
- data/spec/unit/resource_collection/resource_list_spec.rb +1 -1
- data/spec/unit/resource_collection/resource_set_spec.rb +7 -7
- data/spec/unit/resource_collection/stepable_iterator_spec.rb +2 -2
- data/spec/unit/resource_collection_spec.rb +4 -4
- data/spec/unit/resource_definition_spec.rb +2 -2
- data/spec/unit/resource_inspector_spec.rb +1 -1
- data/spec/unit/resource_reporter_spec.rb +4 -4
- data/spec/unit/resource_spec.rb +22 -22
- data/spec/unit/role_spec.rb +3 -3
- data/spec/unit/run_context/cookbook_compiler_spec.rb +23 -23
- data/spec/unit/run_list/run_list_expansion_spec.rb +9 -6
- data/spec/unit/run_list_spec.rb +1 -1
- data/spec/unit/runner_spec.rb +3 -3
- data/spec/unit/search/query_spec.rb +3 -2
- data/spec/unit/shell/model_wrapper_spec.rb +1 -1
- data/spec/unit/shell/shell_session_spec.rb +8 -11
- data/spec/unit/shell_spec.rb +1 -2
- data/spec/unit/user_spec.rb +4 -4
- data/spec/unit/user_v1_spec.rb +3 -3
- data/spec/unit/util/backup_spec.rb +1 -1
- data/spec/unit/util/dsc/lcm_output_parser_spec.rb +13 -13
- data/spec/unit/util/dsc/local_configuration_manager_spec.rb +3 -3
- data/spec/unit/util/editor_spec.rb +1 -1
- data/spec/unit/util/powershell/ps_credential_spec.rb +3 -2
- data/spec/unit/util/threaded_job_queue_spec.rb +2 -2
- data/spec/unit/version_class_spec.rb +4 -4
- data/spec/unit/win32/registry_spec.rb +5 -5
- data/spec/unit/win32/security_spec.rb +2 -1
- data/tasks/announce.rb +4 -11
- metadata +10 -6
- data/tasks/maintainers.rb +0 -211
- data/tasks/templates/prerelease.md.erb +0 -35
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b589c5e45307c74c225c57d1a057411024f1cd2ed24db99c6d7ed48864d80ddd
|
4
|
+
data.tar.gz: 28423ae1ce1f10ed65ec3dc1e473aff7eacb97197c7e13c31e003d369040c04b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65bf8b59d224e4e76947d6c47a126c58b2e6e6cbe326a606b7f2af0f29e865155536cf1c2c6236f3af7c0402b56c10ac4db9e7d8dd90882b3c72f8b77280961b
|
7
|
+
data.tar.gz: b0124dbc15dfa69c20337999527e49b47e4625bea0627d807e830938a25226662f5a6c6fec4b91f982386fabafe4397a68c9500079d210e3aa70398aa6fa8d11
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,15 +1,26 @@
|
|
1
|
-
# Chef
|
1
|
+
# Chef Infra
|
2
2
|
[](https://codeclimate.com/github/chef/chef)
|
3
|
-
[](https://ci.appveyor.com/project/Chef/chef/branch/master)
|
3
|
+
[](https://buildkite.com/chef-oss/chef-chef-chef-14-verify)
|
5
4
|
[](https://badge.fury.io/rb/chef)
|
6
|
-
[](https://github.com/chef/chef
|
5
|
+
[](https://github.com/chef/chef/blob/master/docs/dev/design_documents/client_release_cadence.md)
|
6
|
+
|
7
|
+
**Umbrella Project**: [Chef Infra](https://github.com/chef/chef-oss-practices/blob/master/projects/chef-infra.md)
|
8
|
+
|
9
|
+
**Project State**: [Active](https://github.com/chef/chef-oss-practices/blob/master/repo-management/repo-states.md#active)
|
10
|
+
|
11
|
+
**Issues [Response Time Maximum](https://github.com/chef/chef-oss-practices/blob/master/repo-management/repo-states.md)**: 14 days
|
12
|
+
|
13
|
+
**Pull Request [Response Time Maximum](https://github.com/chef/chef-oss-practices/blob/master/repo-management/repo-states.md)**: 14 days
|
7
14
|
|
8
15
|
## Getting Started
|
9
16
|
|
10
|
-
|
11
|
-
|
12
|
-
|
17
|
+
Chef Infra is a configuration management tool designed to bring automation to your entire infrastructure.
|
18
|
+
|
19
|
+
### Want to try Chef Infra?
|
20
|
+
|
21
|
+
For Chef Infra usage, please refer to our [Learn Chef Rally](https://learn.chef.io/) website, which includes module-based training for Chef Infra, as well as Automate, Habitat, and InSpec.
|
22
|
+
|
23
|
+
Other useful resources for Chef Infra users:
|
13
24
|
|
14
25
|
- Documentation: <https://docs.chef.io>
|
15
26
|
- Source: <https://github.com/chef/chef/tree/master>
|
data/Rakefile
CHANGED
@@ -17,10 +17,13 @@
|
|
17
17
|
# limitations under the License.
|
18
18
|
#
|
19
19
|
|
20
|
-
|
21
|
-
require_relative "tasks/
|
22
|
-
require_relative "tasks/dependencies"
|
23
|
-
require_relative "tasks/announce"
|
20
|
+
begin
|
21
|
+
require_relative "tasks/rspec"
|
22
|
+
require_relative "tasks/dependencies"
|
23
|
+
require_relative "tasks/announce"
|
24
|
+
rescue LoadError => e
|
25
|
+
puts "Skipping missing rake dep: #{e}"
|
26
|
+
end
|
24
27
|
|
25
28
|
# hack the chef-config install to run before the traditional install task
|
26
29
|
task :super_install do
|
data/chef.gemspec
CHANGED
@@ -33,7 +33,7 @@ Gem::Specification.new do |s|
|
|
33
33
|
s.add_dependency "erubis", "~> 2.7"
|
34
34
|
s.add_dependency "diff-lcs", "~> 1.2", ">= 1.2.4"
|
35
35
|
|
36
|
-
s.add_dependency "chef-zero", ">= 13.0"
|
36
|
+
s.add_dependency "chef-zero", ">= 13.0", "< 15.0"
|
37
37
|
|
38
38
|
s.add_dependency "plist", "~> 3.2"
|
39
39
|
s.add_dependency "iniparse", "~> 1.4"
|
data/lib/chef/knife/ssh.rb
CHANGED
@@ -590,6 +590,12 @@ class Chef
|
|
590
590
|
def run
|
591
591
|
@longest = 0
|
592
592
|
|
593
|
+
if @name_args.length < 1
|
594
|
+
show_usage
|
595
|
+
ui.fatal("You must specify the SEARCH QUERY.")
|
596
|
+
exit(1)
|
597
|
+
end
|
598
|
+
|
593
599
|
configure_user
|
594
600
|
configure_password
|
595
601
|
@password = config[:ssh_password] if config[:ssh_password]
|
@@ -39,6 +39,10 @@ class Chef
|
|
39
39
|
attr_accessor :config_template
|
40
40
|
attr_accessor :config_path
|
41
41
|
|
42
|
+
# @api private
|
43
|
+
# @return [String] the major.minor of the net-tools version as a string
|
44
|
+
attr_accessor :ifconfig_version
|
45
|
+
|
42
46
|
def initialize(new_resource, run_context)
|
43
47
|
super(new_resource, run_context)
|
44
48
|
@config_template = nil
|
@@ -54,15 +58,20 @@ class Chef
|
|
54
58
|
@ifconfig_version = nil
|
55
59
|
|
56
60
|
@net_tools_version = shell_out("ifconfig", "--version")
|
61
|
+
@net_tools_version.stdout.each_line do |line|
|
62
|
+
if line =~ /^net-tools (\d+\.\d+)/
|
63
|
+
@ifconfig_version = line.match(/^net-tools (\d+\.\d+)/)[1]
|
64
|
+
end
|
65
|
+
end
|
57
66
|
@net_tools_version.stderr.each_line do |line|
|
58
|
-
if line =~ /^net-tools (\d
|
59
|
-
@ifconfig_version = line.match(/^net-tools (\d
|
67
|
+
if line =~ /^net-tools (\d+\.\d+)/
|
68
|
+
@ifconfig_version = line.match(/^net-tools (\d+\.\d+)/)[1]
|
60
69
|
end
|
61
70
|
end
|
62
71
|
|
63
72
|
if @ifconfig_version.nil?
|
64
73
|
raise "net-tools not found - this is required for ifconfig"
|
65
|
-
elsif @ifconfig_version.
|
74
|
+
elsif @ifconfig_version.to_i < 2
|
66
75
|
# Example output for 1.60 is as follows: (sanitized but format intact)
|
67
76
|
# eth0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
|
68
77
|
# inet addr:192.168.1.1 Bcast:192.168.0.1 Mask:255.255.248.0
|
@@ -98,7 +107,7 @@ class Chef
|
|
98
107
|
current_resource.mtu(@interface["mtu"])
|
99
108
|
current_resource.metric(@interface["metric"])
|
100
109
|
end
|
101
|
-
elsif @ifconfig_version.
|
110
|
+
elsif @ifconfig_version.to_i >= 2
|
102
111
|
# Example output for 2.10-alpha is as follows: (sanitized but format intact)
|
103
112
|
# eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
|
104
113
|
# inet 192.168.1.1 netmask 255.255.240.0 broadcast 192.168.0.1
|
@@ -112,7 +121,7 @@ class Chef
|
|
112
121
|
# Permalink for addr_regex : https://rubular.com/r/JrykUpfjRnYeQD
|
113
122
|
@status = shell_out("ifconfig")
|
114
123
|
@status.stdout.each_line do |line|
|
115
|
-
addr_regex = /^(\w+)
|
124
|
+
addr_regex = /^((\w|-)+):?(\d*):?\ .+$/
|
116
125
|
if line =~ addr_regex
|
117
126
|
if line.match(addr_regex).nil?
|
118
127
|
@int_name = "nil"
|
@@ -328,13 +328,14 @@ class Chef
|
|
328
328
|
def task_needs_update?(task)
|
329
329
|
flag = false
|
330
330
|
if new_resource.frequency == :none
|
331
|
-
flag = (task.
|
331
|
+
flag = (task.author != new_resource.user ||
|
332
332
|
task.application_name != new_resource.command ||
|
333
333
|
description_needs_update?(task) ||
|
334
334
|
task.parameters != new_resource.command_arguments.to_s ||
|
335
335
|
task.principals[:run_level] != run_level ||
|
336
336
|
task.settings[:disallow_start_if_on_batteries] != new_resource.disallow_start_if_on_batteries ||
|
337
|
-
task.settings[:stop_if_going_on_batteries] != new_resource.stop_if_going_on_batteries
|
337
|
+
task.settings[:stop_if_going_on_batteries] != new_resource.stop_if_going_on_batteries ||
|
338
|
+
task.settings[:start_when_available] != new_resource.start_when_available)
|
338
339
|
else
|
339
340
|
current_task_trigger = task.trigger(0)
|
340
341
|
new_task_trigger = trigger
|
@@ -351,7 +352,7 @@ class Chef
|
|
351
352
|
current_task_trigger[:type] != new_task_trigger[:type] ||
|
352
353
|
current_task_trigger[:random_minutes_interval].to_i != new_task_trigger[:random_minutes_interval].to_i ||
|
353
354
|
current_task_trigger[:minutes_interval].to_i != new_task_trigger[:minutes_interval].to_i ||
|
354
|
-
task.
|
355
|
+
task.author.to_s.casecmp(new_resource.user.to_s) != 0 ||
|
355
356
|
task.application_name != new_resource.command ||
|
356
357
|
description_needs_update?(task) ||
|
357
358
|
task.parameters != new_resource.command_arguments.to_s ||
|
@@ -360,7 +361,9 @@ class Chef
|
|
360
361
|
task.principals[:run_level] != run_level ||
|
361
362
|
PRIORITY[task.priority] != new_resource.priority ||
|
362
363
|
task.settings[:disallow_start_if_on_batteries] != new_resource.disallow_start_if_on_batteries ||
|
363
|
-
task.settings[:stop_if_going_on_batteries] != new_resource.stop_if_going_on_batteries
|
364
|
+
task.settings[:stop_if_going_on_batteries] != new_resource.stop_if_going_on_batteries ||
|
365
|
+
task.settings[:start_when_available] != new_resource.start_when_available
|
366
|
+
|
364
367
|
if trigger_type == TaskScheduler::MONTHLYDATE
|
365
368
|
flag = true if current_task_trigger[:run_on_last_day_of_month] != new_task_trigger[:run_on_last_day_of_month]
|
366
369
|
end
|
@@ -560,12 +563,13 @@ class Chef
|
|
560
563
|
settings[:priority] = new_resource.priority
|
561
564
|
settings[:disallow_start_if_on_batteries] = new_resource.disallow_start_if_on_batteries
|
562
565
|
settings[:stop_if_going_on_batteries] = new_resource.stop_if_going_on_batteries
|
566
|
+
settings[:start_when_available] = new_resource.start_when_available
|
563
567
|
settings
|
564
568
|
end
|
565
569
|
|
566
570
|
def principal_settings
|
567
571
|
settings = {}
|
568
|
-
settings
|
572
|
+
settings[:run_level] = run_level
|
569
573
|
settings[:logon_type] = logon_type
|
570
574
|
settings
|
571
575
|
end
|
@@ -16,11 +16,61 @@ class Chef
|
|
16
16
|
|
17
17
|
description "Use the kernel_module resource to manage kernel modules on Linux systems. This resource can load, unload, blacklist, install, and uninstall modules."
|
18
18
|
introduced "14.3"
|
19
|
+
examples <<~DOC
|
20
|
+
Install and load a kernel module, and ensure it loads on reboot.
|
21
|
+
```ruby
|
22
|
+
kernel_module 'loop'
|
23
|
+
```
|
24
|
+
Install and load a kernel with a specific set of options, and ensure it loads on reboot. Consult kernel module
|
25
|
+
documentation for specific options that are supported.
|
26
|
+
```ruby
|
27
|
+
kernel_module 'loop' do
|
28
|
+
options [
|
29
|
+
'max_loop=4',
|
30
|
+
'max_part=8'
|
31
|
+
]
|
32
|
+
end
|
33
|
+
```
|
34
|
+
Load a kernel module.
|
35
|
+
```ruby
|
36
|
+
kernel_module 'loop' do
|
37
|
+
action :load
|
38
|
+
end
|
39
|
+
```
|
40
|
+
Unload a kernel module and remove module config, so it doesn’t load on reboot.
|
41
|
+
```ruby
|
42
|
+
kernel_module 'loop' do
|
43
|
+
action :uninstall
|
44
|
+
end
|
45
|
+
```
|
46
|
+
Unload kernel module.
|
47
|
+
```ruby
|
48
|
+
kernel_module 'loop' do
|
49
|
+
action :unload
|
50
|
+
end
|
51
|
+
```
|
52
|
+
Blacklist a module from loading.
|
53
|
+
```ruby
|
54
|
+
kernel_module 'loop' do
|
55
|
+
action :blacklist
|
56
|
+
end
|
57
|
+
```
|
58
|
+
Disable a kernel module.
|
59
|
+
```ruby
|
60
|
+
kernel_module 'loop' do
|
61
|
+
action :disable
|
62
|
+
end
|
63
|
+
```
|
64
|
+
DOC
|
19
65
|
|
20
66
|
property :modname, String,
|
21
67
|
description: "An optional property to set the kernel module name if it differs from the resource block's name.",
|
22
68
|
name_property: true, identity: true
|
23
69
|
|
70
|
+
property :options, Array,
|
71
|
+
description: "An optional property to set options for the kernel module.",
|
72
|
+
introduced: "14.15"
|
73
|
+
|
24
74
|
property :load_dir, String,
|
25
75
|
description: "The directory to load modules from.",
|
26
76
|
default: "/etc/modules-load.d"
|
@@ -32,6 +82,13 @@ class Chef
|
|
32
82
|
action :install do
|
33
83
|
description "Load kernel module, and ensure it loads on reboot."
|
34
84
|
|
85
|
+
# create options file before loading the module
|
86
|
+
unless new_resource.options.nil?
|
87
|
+
file "#{new_resource.unload_dir}/options_#{new_resource.modname}.conf" do
|
88
|
+
content "options #{new_resource.modname} #{new_resource.options.join(" ")}\n"
|
89
|
+
end.run_action(:create)
|
90
|
+
end
|
91
|
+
|
35
92
|
# load the module first before installing
|
36
93
|
new_resource.run_action(:load)
|
37
94
|
|
@@ -65,6 +122,10 @@ class Chef
|
|
65
122
|
notifies :run, "execute[update initramfs]", :delayed
|
66
123
|
end
|
67
124
|
|
125
|
+
file "#{new_resource.unload_dir}/options_#{new_resource.modname}.conf" do
|
126
|
+
action :delete
|
127
|
+
end
|
128
|
+
|
68
129
|
with_run_context :root do
|
69
130
|
find_resource(:execute, "update initramfs") do
|
70
131
|
command initramfs_command
|
@@ -120,6 +120,10 @@ class Chef
|
|
120
120
|
introduced: "14.7",
|
121
121
|
description: "The task description."
|
122
122
|
|
123
|
+
property :start_when_available, [TrueClass, FalseClass],
|
124
|
+
introduced: "14.15", default: false,
|
125
|
+
description: "To start the task at any time after its scheduled time has passed."
|
126
|
+
|
123
127
|
attr_accessor :exists, :task, :command_arguments
|
124
128
|
|
125
129
|
VALID_WEEK_DAYS = %w{ mon tue wed thu fri sat sun * }.freeze
|
data/lib/chef/version.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
name "openldap"
|
2
|
-
maintainer "
|
3
|
-
maintainer_email "cookbooks@
|
2
|
+
maintainer "Chef Software, Inc."
|
3
|
+
maintainer_email "cookbooks@chef.io"
|
4
4
|
license "Apache 2.0"
|
5
5
|
description "Installs and configures all aspects of openldap using Debian style symlinks with helper definitions"
|
6
6
|
long_description "The long description for the openldap cookbook from metadata.rb"
|
@@ -1,5 +1,5 @@
|
|
1
|
-
maintainer "
|
2
|
-
maintainer_email "cookbooks@
|
1
|
+
maintainer "Chef Software, Inc."
|
2
|
+
maintainer_email "cookbooks@chef.io"
|
3
3
|
license "Apache 2.0"
|
4
4
|
description "Example cookbook for quick_start wiki document"
|
5
5
|
version "0.7"
|
@@ -12,8 +12,3 @@ version "0.7"
|
|
12
12
|
}.each do |os|
|
13
13
|
supports os
|
14
14
|
end
|
15
|
-
|
16
|
-
attribute "quick_start/deep_thought",
|
17
|
-
:display_name => "Quick Start Deep Thought",
|
18
|
-
:description => "A deep thought",
|
19
|
-
:default => "If a tree falls in the forest..."
|
@@ -108,7 +108,7 @@ describe Chef::Audit::Runner do
|
|
108
108
|
in_sub_process do
|
109
109
|
runner.run
|
110
110
|
|
111
|
-
expect(stdout.string).to match(/
|
111
|
+
expect(stdout.string).to match(%r{Failure/Error: expect\(2 - 1\)\.to eq\(0\)})
|
112
112
|
expect(stdout.string).to match(/1 example, 1 failure/)
|
113
113
|
expect(stdout.string).to match(/# control_group_name should fail/)
|
114
114
|
end
|
@@ -17,10 +17,13 @@
|
|
17
17
|
#
|
18
18
|
|
19
19
|
require "chef/dsl/reboot_pending"
|
20
|
+
require "chef/dsl/registry_helper"
|
20
21
|
require "chef/win32/registry"
|
21
22
|
require "spec_helper"
|
22
23
|
|
23
24
|
describe Chef::DSL::RebootPending, :windows_only do
|
25
|
+
include Chef::DSL::RegistryHelper
|
26
|
+
|
24
27
|
def run_ohai
|
25
28
|
node.consume_external_attrs(OHAI_SYSTEM.data, {})
|
26
29
|
end
|
@@ -36,10 +39,6 @@ describe Chef::DSL::RebootPending, :windows_only do
|
|
36
39
|
let(:reg_key) { nil }
|
37
40
|
let(:original_set) { false }
|
38
41
|
|
39
|
-
before(:all) { @any_flag = Hash.new }
|
40
|
-
|
41
|
-
after { @any_flag[reg_key] = original_set }
|
42
|
-
|
43
42
|
describe 'HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations' do
|
44
43
|
let(:reg_key) { 'HKLM\SYSTEM\CurrentControlSet\Control\Session Manager' }
|
45
44
|
let(:original_set) { registry.value_exists?(reg_key, { name: "PendingFileRenameOperations" }) }
|
@@ -47,7 +46,7 @@ describe Chef::DSL::RebootPending, :windows_only do
|
|
47
46
|
it "returns true if the registry value exists" do
|
48
47
|
skip "found existing registry key" if original_set
|
49
48
|
registry.set_value(reg_key,
|
50
|
-
|
49
|
+
{ name: "PendingFileRenameOperations", type: :multi_string, data: ['\??\C:\foo.txt|\??\C:\bar.txt'] })
|
51
50
|
|
52
51
|
expect(recipe.reboot_pending?).to be_truthy
|
53
52
|
end
|
@@ -59,25 +58,6 @@ describe Chef::DSL::RebootPending, :windows_only do
|
|
59
58
|
end
|
60
59
|
end
|
61
60
|
|
62
|
-
describe 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\RebootRequired' do
|
63
|
-
let(:reg_key) { 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\RebootRequired' }
|
64
|
-
let(:original_set) { registry.key_exists?(reg_key) }
|
65
|
-
|
66
|
-
it "returns true if the registry key exists" do
|
67
|
-
skip "found existing registry key" if original_set
|
68
|
-
pending "Permissions are limited to 'TrustedInstaller' by default"
|
69
|
-
registry.create_key(reg_key, false)
|
70
|
-
|
71
|
-
expect(recipe.reboot_pending?).to be_truthy
|
72
|
-
end
|
73
|
-
|
74
|
-
after do
|
75
|
-
unless original_set
|
76
|
-
registry.delete_key(reg_key, false)
|
77
|
-
end
|
78
|
-
end
|
79
|
-
end
|
80
|
-
|
81
61
|
describe 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired' do
|
82
62
|
let(:reg_key) { 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired' }
|
83
63
|
let(:original_set) { registry.key_exists?(reg_key) }
|
@@ -98,7 +78,9 @@ describe Chef::DSL::RebootPending, :windows_only do
|
|
98
78
|
|
99
79
|
describe "when there is nothing to indicate a reboot is pending" do
|
100
80
|
it "should return false" do
|
101
|
-
skip "reboot pending" if
|
81
|
+
skip "reboot pending" if registry_value_exists?('HKLM\SYSTEM\CurrentControlSet\Control\Session Manager', { name: "PendingFileRenameOperations" }) ||
|
82
|
+
registry_key_exists?('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired') ||
|
83
|
+
registry_key_exists?('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\RebootPending')
|
102
84
|
expect(recipe.reboot_pending?).to be_falsey
|
103
85
|
end
|
104
86
|
end
|
@@ -49,16 +49,18 @@ describe Chef::EventLoggers::WindowsEventLogger, :windows_only do
|
|
49
49
|
logger.run_start(version)
|
50
50
|
|
51
51
|
expect(event_log.read(flags, offset).any? do |e|
|
52
|
-
|
53
|
-
|
52
|
+
e.source == "Chef" && e.event_id == 10000 &&
|
53
|
+
e.string_inserts[0].include?(version)
|
54
|
+
end ).to be_truthy
|
54
55
|
end
|
55
56
|
|
56
57
|
it "writes run_started event with event_id 10001 and contains the run_id" do
|
57
58
|
logger.run_started(run_status)
|
58
59
|
|
59
60
|
expect(event_log.read(flags, offset).any? do |e|
|
60
|
-
|
61
|
-
|
61
|
+
e.source == "Chef" && e.event_id == 10001 &&
|
62
|
+
e.string_inserts[0].include?(run_id)
|
63
|
+
end ).to be_truthy
|
62
64
|
end
|
63
65
|
|
64
66
|
it "writes run_completed event with event_id 10002 and contains the run_id and elapsed time" do
|
@@ -175,20 +175,20 @@ end
|
|
175
175
|
describe Chef::FileContentManagement::Deploy::Cp do
|
176
176
|
|
177
177
|
let(:unix_invariants) do
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
178
|
+
%i{
|
179
|
+
uid
|
180
|
+
gid
|
181
|
+
mode
|
182
|
+
ino
|
183
|
+
}
|
184
184
|
end
|
185
185
|
|
186
186
|
let(:security_descriptor_invariants) do
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
187
|
+
%i{
|
188
|
+
owner
|
189
|
+
group
|
190
|
+
dacl
|
191
|
+
}
|
192
192
|
end
|
193
193
|
|
194
194
|
it_should_behave_like "a content deploy strategy"
|
@@ -198,11 +198,11 @@ end
|
|
198
198
|
describe Chef::FileContentManagement::Deploy::MvUnix, :unix_only do
|
199
199
|
|
200
200
|
let(:unix_invariants) do
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
201
|
+
%i{
|
202
|
+
uid
|
203
|
+
gid
|
204
|
+
mode
|
205
|
+
}
|
206
206
|
end
|
207
207
|
|
208
208
|
it_should_behave_like "a content deploy strategy"
|
@@ -216,11 +216,11 @@ describe Chef::FileContentManagement::Deploy::MvWindows, :windows_only do
|
|
216
216
|
context "when a file has no sacl" do
|
217
217
|
|
218
218
|
let(:security_descriptor_invariants) do
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
219
|
+
%i{
|
220
|
+
owner
|
221
|
+
group
|
222
|
+
dacl
|
223
|
+
}
|
224
224
|
end
|
225
225
|
|
226
226
|
it_should_behave_like "a content deploy strategy"
|