chef 14.14.29-universal-mingw32 → 14.15.6-universal-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -30,21 +30,21 @@ describe "chef-client" do
|
|
30
30
|
def setup_client_rb
|
31
31
|
file "config/client.rb", <<~EOM
|
32
32
|
local_mode true
|
33
|
-
cookbook_path "#{path_to(
|
34
|
-
EOM
|
33
|
+
cookbook_path "#{path_to("cookbooks")}"
|
34
|
+
EOM
|
35
35
|
end
|
36
36
|
|
37
37
|
def setup_client_rb_with_audit_mode
|
38
38
|
file "config/client.rb", <<~EOM
|
39
39
|
local_mode true
|
40
|
-
cookbook_path "#{path_to(
|
40
|
+
cookbook_path "#{path_to("cookbooks")}"
|
41
41
|
audit_mode :audit_only
|
42
42
|
silence_deprecation_warnings %w{chef-27}
|
43
|
-
EOM
|
43
|
+
EOM
|
44
44
|
end
|
45
45
|
|
46
46
|
def run_chef_client_and_expect_exit_code(exit_code)
|
47
|
-
shell_out!("#{chef_client} -c \"#{path_to(
|
47
|
+
shell_out!("#{chef_client} -c \"#{path_to("config/client.rb")}\" -o 'x::default'",
|
48
48
|
cwd: chef_dir,
|
49
49
|
returns: [exit_code])
|
50
50
|
end
|
@@ -73,7 +73,7 @@ EOM
|
|
73
73
|
expect(4 - 4).to eq(1)
|
74
74
|
end
|
75
75
|
end
|
76
|
-
RECIPE
|
76
|
+
RECIPE
|
77
77
|
end
|
78
78
|
|
79
79
|
it "exits with AUDIT_MODE_FAILURE, 42" do
|
@@ -115,7 +115,7 @@ RECIPE
|
|
115
115
|
before do
|
116
116
|
file "cookbooks/x/recipes/default.rb", <<~EOM
|
117
117
|
raise Chef::Exceptions::Reboot.new
|
118
|
-
EOM
|
118
|
+
EOM
|
119
119
|
end
|
120
120
|
|
121
121
|
it "exits with REBOOT_SCHEDULED, 35" do
|
@@ -128,7 +128,7 @@ EOM
|
|
128
128
|
before do
|
129
129
|
file "cookbooks/x/recipes/default.rb", <<~EOM
|
130
130
|
raise Chef::Exceptions::RebootFailed.new
|
131
|
-
EOM
|
131
|
+
EOM
|
132
132
|
end
|
133
133
|
|
134
134
|
it "exits with REBOOT_FAILED, 41" do
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# Author:: Daniel DeLeo (<dan@chef.io>)
|
3
|
-
# Copyright:: Copyright 2013-
|
3
|
+
# Copyright:: Copyright 2013-2019, 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");
|
@@ -53,7 +53,7 @@ describe "chef-client" do
|
|
53
53
|
syHLXYFNy0OxMtH/bBAXBGNHd9gf5uOnqh0pYcbe/uRAxumC7Rl0cL509eURiA2T
|
54
54
|
+vFmf54y9YdnLXaqv+FhJT6B6V7WX7IpU9BMqJY1cJYXHuHG2KA=
|
55
55
|
-----END RSA PRIVATE KEY-----
|
56
|
-
END_VALIDATION_PEM
|
56
|
+
END_VALIDATION_PEM
|
57
57
|
end
|
58
58
|
|
59
59
|
let(:cache_path) do
|
@@ -63,10 +63,10 @@ END_VALIDATION_PEM
|
|
63
63
|
let(:basic_config_file) do
|
64
64
|
<<~END_CLIENT_RB
|
65
65
|
chef_server_url "http://[::1]:8900"
|
66
|
-
validation_key '#{path_to(
|
66
|
+
validation_key '#{path_to("config/validator.pem")}'
|
67
67
|
cache_path '#{cache_path}'
|
68
68
|
client_key '#{cache_path}/client.pem'
|
69
|
-
END_CLIENT_RB
|
69
|
+
END_CLIENT_RB
|
70
70
|
end
|
71
71
|
|
72
72
|
let(:client_rb_content) do
|
@@ -75,7 +75,7 @@ END_CLIENT_RB
|
|
75
75
|
|
76
76
|
let(:chef_dir) { File.join(File.dirname(__FILE__), "..", "..", "..", "bin") }
|
77
77
|
|
78
|
-
let(:chef_client_cmd) { %Q{
|
78
|
+
let(:chef_client_cmd) { %Q{bundle exec chef-client --minimal-ohai -c "#{path_to("config/client.rb")}" -lwarn} }
|
79
79
|
|
80
80
|
after do
|
81
81
|
FileUtils.rm_rf(cache_path)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# Author:: John Keiser (<jkeiser@chef.io>)
|
3
|
-
# Copyright:: Copyright 2013-
|
3
|
+
# Copyright:: Copyright 2013-2019, 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");
|
@@ -107,7 +107,7 @@ describe "ChefFSDataStore tests", :workstation do
|
|
107
107
|
/policy_groups/x.json
|
108
108
|
/roles/
|
109
109
|
/roles/x.json
|
110
|
-
EOM
|
110
|
+
EOM
|
111
111
|
end
|
112
112
|
end
|
113
113
|
|
@@ -185,47 +185,47 @@ EOM
|
|
185
185
|
end
|
186
186
|
|
187
187
|
it "knife raw -z -i empty.json -m PUT /clients/x" do
|
188
|
-
knife("raw -z -i #{path_to(
|
188
|
+
knife("raw -z -i #{path_to("empty.json")} -m PUT /clients/x").should_succeed( /"x"/ )
|
189
189
|
knife("list --local /clients").should_succeed "/clients/x.json\n"
|
190
190
|
end
|
191
191
|
|
192
192
|
it "knife cookbook upload works" do
|
193
|
-
knife("cookbook upload -z --cookbook-path #{path_to(
|
193
|
+
knife("cookbook upload -z --cookbook-path #{path_to("cookbooks_to_upload")} x").should_succeed stderr: <<~EOM
|
194
194
|
Uploading x [1.0.0]
|
195
195
|
Uploaded 1 cookbook.
|
196
|
-
EOM
|
196
|
+
EOM
|
197
197
|
knife("list --local -Rfp /cookbooks").should_succeed "/cookbooks/x/\n/cookbooks/x/metadata.rb\n"
|
198
198
|
end
|
199
199
|
|
200
200
|
it "knife raw -z -i empty.json -m PUT /data/x/y" do
|
201
|
-
knife("raw -z -i #{path_to(
|
201
|
+
knife("raw -z -i #{path_to("empty.json")} -m PUT /data/x/y").should_succeed( /"y"/ )
|
202
202
|
knife("list --local -Rfp /data_bags").should_succeed "/data_bags/x/\n/data_bags/x/y.json\n"
|
203
203
|
end
|
204
204
|
|
205
205
|
it "knife raw -z -i empty.json -m PUT /environments/x" do
|
206
|
-
knife("raw -z -i #{path_to(
|
206
|
+
knife("raw -z -i #{path_to("empty.json")} -m PUT /environments/x").should_succeed( /"x"/ )
|
207
207
|
knife("list --local /environments").should_succeed "/environments/x.json\n"
|
208
208
|
end
|
209
209
|
|
210
210
|
it "knife raw -z -i dummynode.json -m PUT /nodes/x" do
|
211
|
-
knife("raw -z -i #{path_to(
|
211
|
+
knife("raw -z -i #{path_to("dummynode.json")} -m PUT /nodes/x").should_succeed( /"x"/ )
|
212
212
|
knife("list --local /nodes").should_succeed "/nodes/x.json\n"
|
213
213
|
knife("show -z /nodes/x.json --verbose").should_succeed(/"bar"/)
|
214
214
|
end
|
215
215
|
|
216
216
|
it "knife raw -z -i empty.json -m PUT /roles/x" do
|
217
|
-
knife("raw -z -i #{path_to(
|
217
|
+
knife("raw -z -i #{path_to("empty.json")} -m PUT /roles/x").should_succeed( /"x"/ )
|
218
218
|
knife("list --local /roles").should_succeed "/roles/x.json\n"
|
219
219
|
end
|
220
220
|
|
221
|
-
it "After knife raw -z -i rolestuff.json -m PUT /roles/x, the output is pretty"
|
222
|
-
knife("raw -z -i #{path_to(
|
221
|
+
it "After knife raw -z -i rolestuff.json -m PUT /roles/x, the output is pretty" do
|
222
|
+
knife("raw -z -i #{path_to("rolestuff.json")} -m PUT /roles/x").should_succeed( /"x"/ )
|
223
223
|
expect(IO.read(path_to("roles/x.json"))).to eq <<~EOM.strip
|
224
224
|
{
|
225
225
|
"name": "x",
|
226
226
|
"description": "hi there"
|
227
227
|
}
|
228
|
-
EOM
|
228
|
+
EOM
|
229
229
|
end
|
230
230
|
end
|
231
231
|
end
|
@@ -242,53 +242,53 @@ EOM
|
|
242
242
|
end
|
243
243
|
|
244
244
|
it "knife raw -z -i empty.json -m POST /clients" do
|
245
|
-
knife("raw -z -i #{path_to(
|
245
|
+
knife("raw -z -i #{path_to("empty.json")} -m POST /clients").should_succeed( /uri/ )
|
246
246
|
knife("list --local /clients").should_succeed "/clients/z.json\n"
|
247
247
|
end
|
248
248
|
|
249
249
|
it "knife cookbook upload works" do
|
250
|
-
knife("cookbook upload -z --cookbook-path #{path_to(
|
250
|
+
knife("cookbook upload -z --cookbook-path #{path_to("cookbooks_to_upload")} z").should_succeed stderr: <<~EOM
|
251
251
|
Uploading z [1.0.0]
|
252
252
|
Uploaded 1 cookbook.
|
253
|
-
EOM
|
253
|
+
EOM
|
254
254
|
knife("list --local -Rfp /cookbooks").should_succeed "/cookbooks/z/\n/cookbooks/z/metadata.rb\n"
|
255
255
|
end
|
256
256
|
|
257
257
|
it "knife raw -z -i empty.json -m POST /data" do
|
258
|
-
knife("raw -z -i #{path_to(
|
258
|
+
knife("raw -z -i #{path_to("empty.json")} -m POST /data").should_succeed( /uri/ )
|
259
259
|
knife("list --local -Rfp /data_bags").should_succeed "/data_bags/z/\n"
|
260
260
|
end
|
261
261
|
|
262
262
|
it "knife raw -z -i empty.json -m POST /data/x" do
|
263
|
-
knife("raw -z -i #{path_to(
|
264
|
-
knife("raw -z -i #{path_to(
|
263
|
+
knife("raw -z -i #{path_to("empty_x.json")} -m POST /data").should_succeed( /uri/ )
|
264
|
+
knife("raw -z -i #{path_to("empty_id.json")} -m POST /data/x").should_succeed( /"z"/ )
|
265
265
|
knife("list --local -Rfp /data_bags").should_succeed "/data_bags/x/\n/data_bags/x/z.json\n"
|
266
266
|
end
|
267
267
|
|
268
268
|
it "knife raw -z -i empty.json -m POST /environments" do
|
269
|
-
knife("raw -z -i #{path_to(
|
269
|
+
knife("raw -z -i #{path_to("empty.json")} -m POST /environments").should_succeed( /uri/ )
|
270
270
|
knife("list --local /environments").should_succeed "/environments/z.json\n"
|
271
271
|
end
|
272
272
|
|
273
273
|
it "knife raw -z -i dummynode.json -m POST /nodes" do
|
274
|
-
knife("raw -z -i #{path_to(
|
274
|
+
knife("raw -z -i #{path_to("dummynode.json")} -m POST /nodes").should_succeed( /uri/ )
|
275
275
|
knife("list --local /nodes").should_succeed "/nodes/z.json\n"
|
276
276
|
knife("show -z /nodes/z.json").should_succeed(/"bar"/)
|
277
277
|
end
|
278
278
|
|
279
279
|
it "knife raw -z -i empty.json -m POST /roles" do
|
280
|
-
knife("raw -z -i #{path_to(
|
280
|
+
knife("raw -z -i #{path_to("empty.json")} -m POST /roles").should_succeed( /uri/ )
|
281
281
|
knife("list --local /roles").should_succeed "/roles/z.json\n"
|
282
282
|
end
|
283
283
|
|
284
|
-
it "After knife raw -z -i rolestuff.json -m POST /roles, the output is pretty"
|
285
|
-
knife("raw -z -i #{path_to(
|
284
|
+
it "After knife raw -z -i rolestuff.json -m POST /roles, the output is pretty" do
|
285
|
+
knife("raw -z -i #{path_to("rolestuff.json")} -m POST /roles").should_succeed( /uri/ )
|
286
286
|
expect(IO.read(path_to("roles/x.json"))).to eq <<~EOM.strip
|
287
287
|
{
|
288
288
|
"name": "x",
|
289
289
|
"description": "hi there"
|
290
290
|
}
|
291
|
-
EOM
|
291
|
+
EOM
|
292
292
|
end
|
293
293
|
end
|
294
294
|
|
@@ -321,7 +321,7 @@ EOM
|
|
321
321
|
/policies/
|
322
322
|
/policy_groups/
|
323
323
|
/roles/
|
324
|
-
EOM
|
324
|
+
EOM
|
325
325
|
end
|
326
326
|
|
327
327
|
context "DELETE /TYPE/NAME" do
|
@@ -388,23 +388,23 @@ EOM
|
|
388
388
|
end
|
389
389
|
|
390
390
|
it "knife raw -z -i empty.json -m PUT /clients/x fails with 404" do
|
391
|
-
knife("raw -z -i #{path_to(
|
391
|
+
knife("raw -z -i #{path_to("empty.json")} -m PUT /clients/x").should_fail( /404/ )
|
392
392
|
end
|
393
393
|
|
394
394
|
it "knife raw -z -i empty.json -m PUT /data/x/y fails with 404" do
|
395
|
-
knife("raw -z -i #{path_to(
|
395
|
+
knife("raw -z -i #{path_to("empty.json")} -m PUT /data/x/y").should_fail( /404/ )
|
396
396
|
end
|
397
397
|
|
398
398
|
it "knife raw -z -i empty.json -m PUT /environments/x fails with 404" do
|
399
|
-
knife("raw -z -i #{path_to(
|
399
|
+
knife("raw -z -i #{path_to("empty.json")} -m PUT /environments/x").should_fail( /404/ )
|
400
400
|
end
|
401
401
|
|
402
402
|
it "knife raw -z -i empty.json -m PUT /nodes/x fails with 404" do
|
403
|
-
knife("raw -z -i #{path_to(
|
403
|
+
knife("raw -z -i #{path_to("empty.json")} -m PUT /nodes/x").should_fail( /404/ )
|
404
404
|
end
|
405
405
|
|
406
406
|
it "knife raw -z -i empty.json -m PUT /roles/x fails with 404" do
|
407
|
-
knife("raw -z -i #{path_to(
|
407
|
+
knife("raw -z -i #{path_to("empty.json")} -m PUT /roles/x").should_fail( /404/ )
|
408
408
|
end
|
409
409
|
|
410
410
|
end
|
@@ -459,7 +459,7 @@ EOM
|
|
459
459
|
/roles/x.json
|
460
460
|
/users/
|
461
461
|
/users/x.json
|
462
|
-
EOM
|
462
|
+
EOM
|
463
463
|
end
|
464
464
|
end
|
465
465
|
|
@@ -485,18 +485,18 @@ EOM
|
|
485
485
|
end
|
486
486
|
|
487
487
|
it "knife raw -z -i empty.json -m PUT /users/x" do
|
488
|
-
knife("raw -z -i #{path_to(
|
488
|
+
knife("raw -z -i #{path_to("empty.json")} -m PUT /users/x").should_succeed( /"x"/ )
|
489
489
|
knife("list --local /users").should_succeed "/users/x.json\n"
|
490
490
|
end
|
491
491
|
|
492
|
-
it "After knife raw -z -i rolestuff.json -m PUT /roles/x, the output is pretty"
|
493
|
-
knife("raw -z -i #{path_to(
|
492
|
+
it "After knife raw -z -i rolestuff.json -m PUT /roles/x, the output is pretty" do
|
493
|
+
knife("raw -z -i #{path_to("rolestuff.json")} -m PUT /roles/x").should_succeed( /"x"/ )
|
494
494
|
expect(IO.read(path_to("roles/x.json"))).to eq <<~EOM.strip
|
495
495
|
{
|
496
496
|
"name": "x",
|
497
497
|
"description": "hi there"
|
498
498
|
}
|
499
|
-
EOM
|
499
|
+
EOM
|
500
500
|
end
|
501
501
|
end
|
502
502
|
end
|
@@ -513,7 +513,7 @@ EOM
|
|
513
513
|
end
|
514
514
|
|
515
515
|
it "knife raw -z -i empty.json -m POST /users" do
|
516
|
-
knife("raw -z -i #{path_to(
|
516
|
+
knife("raw -z -i #{path_to("empty.json")} -m POST /users").should_succeed( /uri/ )
|
517
517
|
knife("list --local /users").should_succeed "/users/z.json\n"
|
518
518
|
end
|
519
519
|
end
|
@@ -527,7 +527,7 @@ EOM
|
|
527
527
|
/nodes/
|
528
528
|
/roles/
|
529
529
|
/users/
|
530
|
-
EOM
|
530
|
+
EOM
|
531
531
|
end
|
532
532
|
|
533
533
|
context "DELETE /TYPE/NAME" do
|
@@ -548,7 +548,7 @@ EOM
|
|
548
548
|
end
|
549
549
|
|
550
550
|
it "knife raw -z -i empty.json -m PUT /users/x fails with 404" do
|
551
|
-
knife("raw -z -i #{path_to(
|
551
|
+
knife("raw -z -i #{path_to("empty.json")} -m PUT /users/x").should_fail( /404/ )
|
552
552
|
end
|
553
553
|
end
|
554
554
|
end
|
@@ -59,7 +59,7 @@ describe "chef_repo_path tests", :workstation do
|
|
59
59
|
|
60
60
|
it "knife list --local -Rfp --chef-repo-path chef_repo2 / grabs chef_repo2 stuff" do
|
61
61
|
Chef::Config.delete(:chef_repo_path)
|
62
|
-
knife("list --local -Rfp --chef-repo-path #{path_to(
|
62
|
+
knife("list --local -Rfp --chef-repo-path #{path_to("chef_repo2")} /").should_succeed <<~EOM
|
63
63
|
/clients/
|
64
64
|
/clients/client3.json
|
65
65
|
/cookbooks/
|
@@ -76,13 +76,13 @@ describe "chef_repo_path tests", :workstation do
|
|
76
76
|
/roles/role3.json
|
77
77
|
/users/
|
78
78
|
/users/user3.json
|
79
|
-
EOM
|
79
|
+
EOM
|
80
80
|
end
|
81
81
|
|
82
82
|
# "Skipping for BK... As Windows 2019 has 8dot3name disabled by default"
|
83
83
|
it "knife list --local -Rfp --chef-repo-path chef_r~1 / grabs chef_repo2 stuff", :windows_only, :skip_buildkite do
|
84
84
|
Chef::Config.delete(:chef_repo_path)
|
85
|
-
knife("list --local -Rfp --chef-repo-path #{path_to(
|
85
|
+
knife("list --local -Rfp --chef-repo-path #{path_to("chef_r~1")} /").should_succeed <<~EOM
|
86
86
|
/clients/
|
87
87
|
/clients/client3.json
|
88
88
|
/cookbooks/
|
@@ -99,13 +99,13 @@ EOM
|
|
99
99
|
/roles/role3.json
|
100
100
|
/users/
|
101
101
|
/users/user3.json
|
102
|
-
EOM
|
102
|
+
EOM
|
103
103
|
end
|
104
104
|
|
105
105
|
# "Skipping for BK... As Windows 2019 has 8dot3name disabled by default"
|
106
106
|
it "knife list --local -Rfp --chef-repo-path chef_r~1 / grabs chef_repo2 stuff", :windows_only, :skip_buildkite do
|
107
107
|
Chef::Config.delete(:chef_repo_path)
|
108
|
-
knife("list -z -Rfp --chef-repo-path #{path_to(
|
108
|
+
knife("list -z -Rfp --chef-repo-path #{path_to("chef_r~1")} /").should_succeed <<~EOM
|
109
109
|
/acls/
|
110
110
|
/acls/clients/
|
111
111
|
/acls/clients/client3.json
|
@@ -147,7 +147,7 @@ EOM
|
|
147
147
|
/policy_groups/
|
148
148
|
/roles/
|
149
149
|
/roles/role3.json
|
150
|
-
EOM
|
150
|
+
EOM
|
151
151
|
end
|
152
152
|
|
153
153
|
context "when all _paths are set to alternates" do
|
@@ -159,7 +159,7 @@ EOM
|
|
159
159
|
end
|
160
160
|
|
161
161
|
it "knife list --local -Rfp --chef-repo-path chef_repo2 / grabs chef_repo2 stuff" do
|
162
|
-
knife("list --local -Rfp --chef-repo-path #{path_to(
|
162
|
+
knife("list --local -Rfp --chef-repo-path #{path_to("chef_repo2")} /").should_succeed <<~EOM
|
163
163
|
/clients/
|
164
164
|
/clients/client3.json
|
165
165
|
/cookbooks/
|
@@ -176,7 +176,7 @@ EOM
|
|
176
176
|
/roles/role3.json
|
177
177
|
/users/
|
178
178
|
/users/user3.json
|
179
|
-
EOM
|
179
|
+
EOM
|
180
180
|
end
|
181
181
|
|
182
182
|
context "when cwd is at the top level" do
|
@@ -213,7 +213,7 @@ EOM
|
|
213
213
|
roles/role2.json
|
214
214
|
users/
|
215
215
|
users/user2.json
|
216
|
-
EOM
|
216
|
+
EOM
|
217
217
|
end
|
218
218
|
end
|
219
219
|
|
@@ -223,7 +223,7 @@ EOM
|
|
223
223
|
knife("list --local -Rfp").should_succeed <<~EOM
|
224
224
|
bag2/
|
225
225
|
bag2/item2.json
|
226
|
-
EOM
|
226
|
+
EOM
|
227
227
|
end
|
228
228
|
it "knife list --local -Rfp ../roles lists roles" do
|
229
229
|
knife("list --local -Rfp ../roles").should_succeed "/roles/role2.json\n"
|
@@ -258,7 +258,7 @@ EOM
|
|
258
258
|
roles/role2.json
|
259
259
|
users/
|
260
260
|
users/user2.json
|
261
|
-
EOM
|
261
|
+
EOM
|
262
262
|
end
|
263
263
|
end
|
264
264
|
|
@@ -282,7 +282,7 @@ EOM
|
|
282
282
|
knife("list --local -Rfp").should_succeed <<~EOM
|
283
283
|
bag2/
|
284
284
|
bag2/item2.json
|
285
|
-
EOM
|
285
|
+
EOM
|
286
286
|
end
|
287
287
|
end
|
288
288
|
end
|
@@ -329,7 +329,7 @@ EOM
|
|
329
329
|
roles/role3.json
|
330
330
|
users/
|
331
331
|
users/user3.json
|
332
|
-
EOM
|
332
|
+
EOM
|
333
333
|
end
|
334
334
|
end
|
335
335
|
|
@@ -339,7 +339,7 @@ EOM
|
|
339
339
|
knife("list --local -Rfp").should_succeed <<~EOM
|
340
340
|
bag3/
|
341
341
|
bag3/item3.json
|
342
|
-
EOM
|
342
|
+
EOM
|
343
343
|
end
|
344
344
|
end
|
345
345
|
end
|
@@ -366,7 +366,7 @@ EOM
|
|
366
366
|
{
|
367
367
|
|
368
368
|
}
|
369
|
-
EOM
|
369
|
+
EOM
|
370
370
|
end
|
371
371
|
end
|
372
372
|
|
@@ -383,7 +383,7 @@ EOM
|
|
383
383
|
/cookbooks/cookbook1/metadata.rb
|
384
384
|
/cookbooks/cookbook2/
|
385
385
|
/cookbooks/cookbook2/metadata.rb
|
386
|
-
EOM
|
386
|
+
EOM
|
387
387
|
end
|
388
388
|
end
|
389
389
|
|
@@ -400,7 +400,7 @@ EOM
|
|
400
400
|
/cookbooks/cookbook1/metadata.rb
|
401
401
|
/cookbooks/cookbook2/
|
402
402
|
/cookbooks/cookbook2/metadata.rb
|
403
|
-
EOM
|
403
|
+
EOM
|
404
404
|
end
|
405
405
|
end
|
406
406
|
|
@@ -417,7 +417,7 @@ EOM
|
|
417
417
|
/cookbooks/cookbook1/metadata.rb
|
418
418
|
/cookbooks/cookbook2/
|
419
419
|
/cookbooks/cookbook2/metadata.rb
|
420
|
-
EOM
|
420
|
+
EOM
|
421
421
|
end
|
422
422
|
end
|
423
423
|
|
@@ -434,7 +434,7 @@ EOM
|
|
434
434
|
/data_bags/bag2/item2.json
|
435
435
|
/data_bags/blah/
|
436
436
|
/data_bags/blah/item.json
|
437
|
-
EOM
|
437
|
+
EOM
|
438
438
|
end
|
439
439
|
end
|
440
440
|
|
@@ -451,7 +451,7 @@ EOM
|
|
451
451
|
/data_bags/bag2/item2.json
|
452
452
|
/data_bags/blah/
|
453
453
|
/data_bags/blah/item1.json
|
454
|
-
EOM
|
454
|
+
EOM
|
455
455
|
end
|
456
456
|
end
|
457
457
|
|
@@ -466,7 +466,7 @@ EOM
|
|
466
466
|
{
|
467
467
|
|
468
468
|
}
|
469
|
-
EOM
|
469
|
+
EOM
|
470
470
|
end
|
471
471
|
end
|
472
472
|
|
@@ -481,7 +481,7 @@ EOM
|
|
481
481
|
{
|
482
482
|
|
483
483
|
}
|
484
|
-
EOM
|
484
|
+
EOM
|
485
485
|
end
|
486
486
|
end
|
487
487
|
|
@@ -496,7 +496,7 @@ EOM
|
|
496
496
|
{
|
497
497
|
|
498
498
|
}
|
499
|
-
EOM
|
499
|
+
EOM
|
500
500
|
end
|
501
501
|
end
|
502
502
|
|
@@ -511,7 +511,7 @@ EOM
|
|
511
511
|
{
|
512
512
|
|
513
513
|
}
|
514
|
-
EOM
|
514
|
+
EOM
|
515
515
|
end
|
516
516
|
end
|
517
517
|
|
@@ -530,7 +530,7 @@ EOM
|
|
530
530
|
bag/item.json
|
531
531
|
bag2/
|
532
532
|
bag2/item2.json
|
533
|
-
EOM
|
533
|
+
EOM
|
534
534
|
end
|
535
535
|
end
|
536
536
|
|
@@ -563,7 +563,7 @@ EOM
|
|
563
563
|
users/
|
564
564
|
users/user1.json
|
565
565
|
users/user2.json
|
566
|
-
EOM
|
566
|
+
EOM
|
567
567
|
end
|
568
568
|
end
|
569
569
|
|
@@ -575,7 +575,7 @@ EOM
|
|
575
575
|
bag/item.json
|
576
576
|
bag2/
|
577
577
|
bag2/item2.json
|
578
|
-
EOM
|
578
|
+
EOM
|
579
579
|
end
|
580
580
|
end
|
581
581
|
end
|
@@ -620,7 +620,7 @@ EOM
|
|
620
620
|
users/
|
621
621
|
users/user1.json
|
622
622
|
users/user3.json
|
623
|
-
EOM
|
623
|
+
EOM
|
624
624
|
end
|
625
625
|
end
|
626
626
|
|
@@ -632,7 +632,7 @@ EOM
|
|
632
632
|
bag/item.json
|
633
633
|
bag3/
|
634
634
|
bag3/item3.json
|
635
|
-
EOM
|
635
|
+
EOM
|
636
636
|
end
|
637
637
|
end
|
638
638
|
|
@@ -665,7 +665,7 @@ EOM
|
|
665
665
|
users/
|
666
666
|
users/user1.json
|
667
667
|
users/user3.json
|
668
|
-
EOM
|
668
|
+
EOM
|
669
669
|
end
|
670
670
|
end
|
671
671
|
|
@@ -677,7 +677,7 @@ EOM
|
|
677
677
|
bag/item.json
|
678
678
|
bag3/
|
679
679
|
bag3/item3.json
|
680
|
-
EOM
|
680
|
+
EOM
|
681
681
|
end
|
682
682
|
end
|
683
683
|
end
|
@@ -725,7 +725,7 @@ EOM
|
|
725
725
|
roles/role3.json
|
726
726
|
users/
|
727
727
|
users/user3.json
|
728
|
-
EOM
|
728
|
+
EOM
|
729
729
|
end
|
730
730
|
end
|
731
731
|
|
@@ -735,7 +735,7 @@ EOM
|
|
735
735
|
knife("list --local -Rfp").should_succeed <<~EOM
|
736
736
|
bag3/
|
737
737
|
bag3/item3.json
|
738
|
-
EOM
|
738
|
+
EOM
|
739
739
|
end
|
740
740
|
end
|
741
741
|
end
|
@@ -781,7 +781,7 @@ EOM
|
|
781
781
|
users/
|
782
782
|
users/user1.json
|
783
783
|
users/user3.json
|
784
|
-
EOM
|
784
|
+
EOM
|
785
785
|
end
|
786
786
|
end
|
787
787
|
|
@@ -793,7 +793,7 @@ EOM
|
|
793
793
|
bag/item.json
|
794
794
|
bag3/
|
795
795
|
bag3/item3.json
|
796
|
-
EOM
|
796
|
+
EOM
|
797
797
|
end
|
798
798
|
end
|
799
799
|
|
@@ -826,7 +826,7 @@ EOM
|
|
826
826
|
users/
|
827
827
|
users/user1.json
|
828
828
|
users/user3.json
|
829
|
-
EOM
|
829
|
+
EOM
|
830
830
|
end
|
831
831
|
end
|
832
832
|
|
@@ -838,7 +838,7 @@ EOM
|
|
838
838
|
bag/item.json
|
839
839
|
bag3/
|
840
840
|
bag3/item3.json
|
841
|
-
EOM
|
841
|
+
EOM
|
842
842
|
end
|
843
843
|
end
|
844
844
|
end
|
@@ -865,7 +865,7 @@ EOM
|
|
865
865
|
knife("list --local -Rfp").should_succeed <<~EOM
|
866
866
|
bag/
|
867
867
|
bag/item.json
|
868
|
-
EOM
|
868
|
+
EOM
|
869
869
|
end
|
870
870
|
end
|
871
871
|
|
@@ -889,7 +889,7 @@ EOM
|
|
889
889
|
roles/role3.json
|
890
890
|
users/
|
891
891
|
users/user3.json
|
892
|
-
EOM
|
892
|
+
EOM
|
893
893
|
end
|
894
894
|
end
|
895
895
|
|
@@ -917,14 +917,14 @@ EOM
|
|
917
917
|
/data_bags/
|
918
918
|
/data_bags/bag/
|
919
919
|
/data_bags/bag/item.json
|
920
|
-
EOM
|
920
|
+
EOM
|
921
921
|
end
|
922
922
|
|
923
923
|
it "knife list --local -Rfp /data_bags lists data bags" do
|
924
924
|
knife("list --local -Rfp /data_bags").should_succeed <<~EOM
|
925
925
|
/data_bags/bag/
|
926
926
|
/data_bags/bag/item.json
|
927
|
-
EOM
|
927
|
+
EOM
|
928
928
|
end
|
929
929
|
|
930
930
|
context "when cwd is inside the data_bags directory" do
|
@@ -933,7 +933,7 @@ EOM
|
|
933
933
|
knife("list --local -Rfp").should_succeed <<~EOM
|
934
934
|
bag/
|
935
935
|
bag/item.json
|
936
|
-
EOM
|
936
|
+
EOM
|
937
937
|
end
|
938
938
|
end
|
939
939
|
end
|