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
@@ -115,11 +115,11 @@ describe "Accumulators" do
|
|
115
115
|
it "should complete with success" do
|
116
116
|
file "config/client.rb", <<-EOM
|
117
117
|
local_mode true
|
118
|
-
cookbook_path "#{path_to(
|
118
|
+
cookbook_path "#{path_to("cookbooks")}"
|
119
119
|
log_level :warn
|
120
120
|
EOM
|
121
121
|
|
122
|
-
result = shell_out("#{chef_client} -c \"#{path_to(
|
122
|
+
result = shell_out("#{chef_client} -c \"#{path_to("config/client.rb")}\" --no-color -F doc -o 'x::default'", cwd: chef_dir)
|
123
123
|
result.error!
|
124
124
|
# runs only a single template resource (in the outer run context, as a delayed resource)
|
125
125
|
expect(result.stdout.scan(/template\S+ action create/).size).to eql(1)
|
@@ -217,11 +217,11 @@ describe "Accumulators" do
|
|
217
217
|
it "should complete with success" do
|
218
218
|
file "config/client.rb", <<-EOM
|
219
219
|
local_mode true
|
220
|
-
cookbook_path "#{path_to(
|
220
|
+
cookbook_path "#{path_to("cookbooks")}"
|
221
221
|
log_level :warn
|
222
222
|
EOM
|
223
223
|
|
224
|
-
result = shell_out("#{chef_client} -c \"#{path_to(
|
224
|
+
result = shell_out("#{chef_client} -c \"#{path_to("config/client.rb")}\" --no-color -F doc -o 'x::default'", cwd: chef_dir)
|
225
225
|
result.error!
|
226
226
|
# runs only a single template resource (in the outer run context, as a delayed resource)
|
227
227
|
expect(result.stdout.scan(/template\S+ action create/).size).to eql(1)
|
@@ -53,7 +53,7 @@ describe "LWRPs with inline resources" do
|
|
53
53
|
action :fiddle do
|
54
54
|
file PATH do
|
55
55
|
content new_resource.content
|
56
|
-
action
|
56
|
+
action %i{create delete}
|
57
57
|
end
|
58
58
|
end
|
59
59
|
end
|
@@ -147,12 +147,12 @@ describe "LWRPs with inline resources" do
|
|
147
147
|
it "should complete with success" do
|
148
148
|
file "config/client.rb", <<~EOM
|
149
149
|
local_mode true
|
150
|
-
cookbook_path "#{path_to(
|
150
|
+
cookbook_path "#{path_to("cookbooks")}"
|
151
151
|
log_level :warn
|
152
|
-
EOM
|
152
|
+
EOM
|
153
153
|
|
154
|
-
result = shell_out("#{chef_client} -c \"#{path_to(
|
155
|
-
actual = result.stdout.lines.map
|
154
|
+
result = shell_out("#{chef_client} -c \"#{path_to("config/client.rb")}\" --no-color -F doc -o 'x::default'", cwd: chef_dir)
|
155
|
+
actual = result.stdout.lines.map(&:chomp).join("\n")
|
156
156
|
expected = <<EOM
|
157
157
|
* x_my_machine[me] action create
|
158
158
|
* x_do_nothing[a] action create (up to date)
|
@@ -163,7 +163,7 @@ EOM
|
|
163
163
|
* x_do_nothing[b] action create (up to date)
|
164
164
|
(up to date)
|
165
165
|
EOM
|
166
|
-
expected = expected.lines.map
|
166
|
+
expected = expected.lines.map(&:chomp).join("\n")
|
167
167
|
expect(actual).to include(expected)
|
168
168
|
result.error!
|
169
169
|
end
|
@@ -24,15 +24,15 @@ describe "LWRPs" do
|
|
24
24
|
|
25
25
|
file "resources/foo.rb", <<~EOM
|
26
26
|
default_action :create
|
27
|
-
EOM
|
27
|
+
EOM
|
28
28
|
file "providers/foo.rb", <<~EOM
|
29
29
|
action :create do
|
30
30
|
end
|
31
|
-
EOM
|
31
|
+
EOM
|
32
32
|
|
33
33
|
file "recipes/default.rb", <<~EOM
|
34
34
|
l_w_r_p_foo "me"
|
35
|
-
EOM
|
35
|
+
EOM
|
36
36
|
|
37
37
|
end # directory 'cookbooks/x'
|
38
38
|
end
|
@@ -40,11 +40,11 @@ EOM
|
|
40
40
|
it "should complete with success" do
|
41
41
|
file "config/client.rb", <<~EOM
|
42
42
|
local_mode true
|
43
|
-
cookbook_path "#{path_to(
|
43
|
+
cookbook_path "#{path_to("cookbooks")}"
|
44
44
|
log_level :warn
|
45
|
-
EOM
|
45
|
+
EOM
|
46
46
|
|
47
|
-
result = shell_out("#{chef_client} -c \"#{path_to(
|
47
|
+
result = shell_out("#{chef_client} -c \"#{path_to("config/client.rb")}\" --no-color -F doc -o 'l-w-r-p::default'", cwd: chef_dir)
|
48
48
|
expect(result.stdout).to match(/\* l_w_r_p_foo\[me\] action create \(up to date\)/)
|
49
49
|
expect(result.stdout).not_to match(/WARN: You are overriding l_w_r_p_foo/)
|
50
50
|
result.error!
|
@@ -28,11 +28,11 @@ describe "notifications" do
|
|
28
28
|
it "should complete with success" do
|
29
29
|
file "config/client.rb", <<~EOM
|
30
30
|
local_mode true
|
31
|
-
cookbook_path "#{path_to(
|
31
|
+
cookbook_path "#{path_to("cookbooks")}"
|
32
32
|
log_level :warn
|
33
|
-
EOM
|
33
|
+
EOM
|
34
34
|
|
35
|
-
result = shell_out("#{chef_client} -c \"#{path_to(
|
35
|
+
result = shell_out("#{chef_client} -c \"#{path_to("config/client.rb")}\" --no-color -F doc -o 'x::default'", cwd: chef_dir)
|
36
36
|
# our delayed notification should run at the end of the parent run_context after the baz resource
|
37
37
|
expect(result.stdout).to match(/\* apt_update\[\] action nothing \(skipped due to action :nothing\)\s+\* log\[foo\] action write\s+\* log\[bar\] action write\s+\* apt_update\[\] action nothing \(skipped due to action :nothing\)/)
|
38
38
|
result.error!
|
@@ -53,7 +53,7 @@ EOM
|
|
53
53
|
notifies :write, 'log[foo]', :delayed
|
54
54
|
end
|
55
55
|
end
|
56
|
-
EOM
|
56
|
+
EOM
|
57
57
|
|
58
58
|
file "recipes/default.rb", <<~EOM
|
59
59
|
log "foo" do
|
@@ -61,7 +61,7 @@ EOM
|
|
61
61
|
end
|
62
62
|
notifying_test "whatever"
|
63
63
|
log "baz"
|
64
|
-
EOM
|
64
|
+
EOM
|
65
65
|
|
66
66
|
end
|
67
67
|
end
|
@@ -69,11 +69,11 @@ EOM
|
|
69
69
|
it "should complete with success" do
|
70
70
|
file "config/client.rb", <<~EOM
|
71
71
|
local_mode true
|
72
|
-
cookbook_path "#{path_to(
|
72
|
+
cookbook_path "#{path_to("cookbooks")}"
|
73
73
|
log_level :warn
|
74
|
-
EOM
|
74
|
+
EOM
|
75
75
|
|
76
|
-
result = shell_out("#{chef_client} -c \"#{path_to(
|
76
|
+
result = shell_out("#{chef_client} -c \"#{path_to("config/client.rb")}\" --no-color -F doc -o 'x::default'", cwd: chef_dir)
|
77
77
|
# our delayed notification should run at the end of the parent run_context after the baz resource
|
78
78
|
expect(result.stdout).to match(/\* log\[bar\] action write\s+\* log\[baz\] action write\s+\* log\[foo\] action write/)
|
79
79
|
result.error!
|
@@ -94,7 +94,7 @@ EOM
|
|
94
94
|
notifies :write, 'log[foo]', :delayed
|
95
95
|
end
|
96
96
|
end
|
97
|
-
EOM
|
97
|
+
EOM
|
98
98
|
|
99
99
|
file "recipes/default.rb", <<~EOM
|
100
100
|
log "foo" do
|
@@ -104,7 +104,7 @@ EOM
|
|
104
104
|
log "baz" do
|
105
105
|
notifies :write, 'log[foo]', :delayed
|
106
106
|
end
|
107
|
-
EOM
|
107
|
+
EOM
|
108
108
|
|
109
109
|
end
|
110
110
|
end
|
@@ -112,11 +112,11 @@ EOM
|
|
112
112
|
it "should complete with success" do
|
113
113
|
file "config/client.rb", <<~EOM
|
114
114
|
local_mode true
|
115
|
-
cookbook_path "#{path_to(
|
115
|
+
cookbook_path "#{path_to("cookbooks")}"
|
116
116
|
log_level :warn
|
117
|
-
EOM
|
117
|
+
EOM
|
118
118
|
|
119
|
-
result = shell_out("#{chef_client} -c \"#{path_to(
|
119
|
+
result = shell_out("#{chef_client} -c \"#{path_to("config/client.rb")}\" --no-color -F doc -o 'x::default'", cwd: chef_dir)
|
120
120
|
# our delayed notification should run at the end of the parent run_context after the baz resource
|
121
121
|
expect(result.stdout).to match(/\* log\[bar\] action write\s+\* log\[baz\] action write\s+\* log\[foo\] action write/)
|
122
122
|
# and only run once
|
@@ -139,7 +139,7 @@ EOM
|
|
139
139
|
notifies :write, 'log[foo]', :delayed
|
140
140
|
end
|
141
141
|
end
|
142
|
-
EOM
|
142
|
+
EOM
|
143
143
|
|
144
144
|
file "recipes/default.rb", <<~EOM
|
145
145
|
log "foo" do
|
@@ -151,7 +151,7 @@ EOM
|
|
151
151
|
end
|
152
152
|
notifying_test "whatever"
|
153
153
|
log "baz"
|
154
|
-
EOM
|
154
|
+
EOM
|
155
155
|
|
156
156
|
end
|
157
157
|
end
|
@@ -159,11 +159,11 @@ EOM
|
|
159
159
|
it "should complete with success" do
|
160
160
|
file "config/client.rb", <<~EOM
|
161
161
|
local_mode true
|
162
|
-
cookbook_path "#{path_to(
|
162
|
+
cookbook_path "#{path_to("cookbooks")}"
|
163
163
|
log_level :warn
|
164
|
-
EOM
|
164
|
+
EOM
|
165
165
|
|
166
|
-
result = shell_out("#{chef_client} -c \"#{path_to(
|
166
|
+
result = shell_out("#{chef_client} -c \"#{path_to("config/client.rb")}\" --no-color -F doc -o 'x::default'", cwd: chef_dir)
|
167
167
|
# the delayed notification from the sub-resource is de-duplicated by the notification already in the parent run_context
|
168
168
|
expect(result.stdout).to match(/\* log\[quux\] action write\s+\* notifying_test\[whatever\] action run\s+\* log\[bar\] action write\s+\* log\[baz\] action write\s+\* log\[foo\] action write\s+\* log\[baz\] action write/)
|
169
169
|
# and only run once
|
@@ -185,7 +185,7 @@ EOM
|
|
185
185
|
log "baz" do
|
186
186
|
notifies :write, 'log[foo]', :delayed
|
187
187
|
end
|
188
|
-
EOM
|
188
|
+
EOM
|
189
189
|
|
190
190
|
end
|
191
191
|
end
|
@@ -193,11 +193,11 @@ EOM
|
|
193
193
|
it "should complete with success" do
|
194
194
|
file "config/client.rb", <<~EOM
|
195
195
|
local_mode true
|
196
|
-
cookbook_path "#{path_to(
|
196
|
+
cookbook_path "#{path_to("cookbooks")}"
|
197
197
|
log_level :warn
|
198
|
-
EOM
|
198
|
+
EOM
|
199
199
|
|
200
|
-
result = shell_out("#{chef_client} -c \"#{path_to(
|
200
|
+
result = shell_out("#{chef_client} -c \"#{path_to("config/client.rb")}\" --no-color -F doc -o 'x::default'", cwd: chef_dir)
|
201
201
|
# the delayed notification from the sub-resource is de-duplicated by the notification already in the parent run_context
|
202
202
|
expect(result.stdout).to match(/\* log\[bar\] action write\s+\* log\[baz\] action write\s+\* log\[foo\] action write/)
|
203
203
|
# and only run once
|
@@ -220,7 +220,7 @@ EOM
|
|
220
220
|
notifies :write, 'log[foo]', :immediately
|
221
221
|
end
|
222
222
|
end
|
223
|
-
EOM
|
223
|
+
EOM
|
224
224
|
|
225
225
|
file "recipes/default.rb", <<~EOM
|
226
226
|
log "foo" do
|
@@ -228,7 +228,7 @@ EOM
|
|
228
228
|
end
|
229
229
|
notifying_test "whatever"
|
230
230
|
log "baz"
|
231
|
-
EOM
|
231
|
+
EOM
|
232
232
|
|
233
233
|
end
|
234
234
|
end
|
@@ -236,11 +236,11 @@ EOM
|
|
236
236
|
it "should complete with success" do
|
237
237
|
file "config/client.rb", <<~EOM
|
238
238
|
local_mode true
|
239
|
-
cookbook_path "#{path_to(
|
239
|
+
cookbook_path "#{path_to("cookbooks")}"
|
240
240
|
log_level :warn
|
241
|
-
EOM
|
241
|
+
EOM
|
242
242
|
|
243
|
-
result = shell_out("#{chef_client} -c \"#{path_to(
|
243
|
+
result = shell_out("#{chef_client} -c \"#{path_to("config/client.rb")}\" --no-color -F doc -o 'x::default'", cwd: chef_dir)
|
244
244
|
expect(result.stdout).to match(/\* log\[bar\] action write\s+\* log\[foo\] action write\s+\* log\[baz\] action write/)
|
245
245
|
result.error!
|
246
246
|
end
|
@@ -260,7 +260,7 @@ EOM
|
|
260
260
|
notifies :write, resources(log: "foo"), :immediately
|
261
261
|
end
|
262
262
|
end
|
263
|
-
EOM
|
263
|
+
EOM
|
264
264
|
|
265
265
|
file "recipes/default.rb", <<~EOM
|
266
266
|
log "foo" do
|
@@ -268,7 +268,7 @@ EOM
|
|
268
268
|
end
|
269
269
|
notifying_test "whatever"
|
270
270
|
log "baz"
|
271
|
-
EOM
|
271
|
+
EOM
|
272
272
|
|
273
273
|
end
|
274
274
|
end
|
@@ -276,11 +276,11 @@ EOM
|
|
276
276
|
it "should complete with success" do
|
277
277
|
file "config/client.rb", <<~EOM
|
278
278
|
local_mode true
|
279
|
-
cookbook_path "#{path_to(
|
279
|
+
cookbook_path "#{path_to("cookbooks")}"
|
280
280
|
log_level :warn
|
281
|
-
EOM
|
281
|
+
EOM
|
282
282
|
|
283
|
-
result = shell_out("#{chef_client} -c \"#{path_to(
|
283
|
+
result = shell_out("#{chef_client} -c \"#{path_to("config/client.rb")}\" --no-color -F doc -o 'x::default'", cwd: chef_dir)
|
284
284
|
expect(result.stdout).to match(/\* log\[bar\] action write\s+\* log\[foo\] action write\s+\* log\[baz\] action write/)
|
285
285
|
result.error!
|
286
286
|
end
|
@@ -300,12 +300,12 @@ EOM
|
|
300
300
|
notifies :write, "log[foo]"
|
301
301
|
end
|
302
302
|
end
|
303
|
-
EOM
|
303
|
+
EOM
|
304
304
|
|
305
305
|
file "recipes/default.rb", <<~EOM
|
306
306
|
notifying_test "whatever"
|
307
307
|
log "baz"
|
308
|
-
EOM
|
308
|
+
EOM
|
309
309
|
|
310
310
|
end
|
311
311
|
end
|
@@ -313,11 +313,11 @@ EOM
|
|
313
313
|
it "should complete with success" do
|
314
314
|
file "config/client.rb", <<~EOM
|
315
315
|
local_mode true
|
316
|
-
cookbook_path "#{path_to(
|
316
|
+
cookbook_path "#{path_to("cookbooks")}"
|
317
317
|
log_level :warn
|
318
|
-
EOM
|
318
|
+
EOM
|
319
319
|
|
320
|
-
result = shell_out("#{chef_client} -c \"#{path_to(
|
320
|
+
result = shell_out("#{chef_client} -c \"#{path_to("config/client.rb")}\" --no-color -F doc -o 'x::default'", cwd: chef_dir)
|
321
321
|
expect(result.stdout).to match(/Chef::Exceptions::ResourceNotFound/)
|
322
322
|
expect(result.exitstatus).not_to eql(0)
|
323
323
|
end
|
@@ -337,7 +337,7 @@ EOM
|
|
337
337
|
level :info
|
338
338
|
end
|
339
339
|
end
|
340
|
-
EOM
|
340
|
+
EOM
|
341
341
|
|
342
342
|
file "recipes/default.rb", <<~EOM
|
343
343
|
log "bar" do
|
@@ -345,7 +345,7 @@ EOM
|
|
345
345
|
end
|
346
346
|
|
347
347
|
cloning_test "whatever"
|
348
|
-
EOM
|
348
|
+
EOM
|
349
349
|
|
350
350
|
end
|
351
351
|
end
|
@@ -353,11 +353,11 @@ EOM
|
|
353
353
|
it "should complete with success" do
|
354
354
|
file "config/client.rb", <<~EOM
|
355
355
|
local_mode true
|
356
|
-
cookbook_path "#{path_to(
|
356
|
+
cookbook_path "#{path_to("cookbooks")}"
|
357
357
|
log_level :warn
|
358
|
-
EOM
|
358
|
+
EOM
|
359
359
|
|
360
|
-
result = shell_out("#{chef_client} -c \"#{path_to(
|
360
|
+
result = shell_out("#{chef_client} -c \"#{path_to("config/client.rb")}\" --no-color -F doc -o 'x::default'", cwd: chef_dir)
|
361
361
|
expect(result.stdout).not_to match(/CHEF-3694/)
|
362
362
|
result.error!
|
363
363
|
end
|
@@ -381,11 +381,11 @@ EOM
|
|
381
381
|
it "notifying the resource should work" do
|
382
382
|
file "config/client.rb", <<~EOM
|
383
383
|
local_mode true
|
384
|
-
cookbook_path "#{path_to(
|
384
|
+
cookbook_path "#{path_to("cookbooks")}"
|
385
385
|
log_level :warn
|
386
|
-
EOM
|
386
|
+
EOM
|
387
387
|
|
388
|
-
result = shell_out("#{chef_client} -c \"#{path_to(
|
388
|
+
result = shell_out("#{chef_client} -c \"#{path_to("config/client.rb")}\" --no-color -F doc -o 'x::default'", cwd: chef_dir)
|
389
389
|
expect(result.stdout).to match /\* log\[a, b\] action write/
|
390
390
|
result.error!
|
391
391
|
end
|
@@ -45,7 +45,7 @@ describe "notifying_block" do
|
|
45
45
|
end
|
46
46
|
file "config/client.rb", <<-EOM
|
47
47
|
local_mode true
|
48
|
-
cookbook_path "#{path_to(
|
48
|
+
cookbook_path "#{path_to("cookbooks")}"
|
49
49
|
log_level :warn
|
50
50
|
EOM
|
51
51
|
end
|
@@ -55,7 +55,7 @@ describe "notifying_block" do
|
|
55
55
|
# 2. delayed notifications are de-dup'd in the subcontext
|
56
56
|
# 3. delayed notifications (to resources inside the subcontext) are run at the end of the subcontext
|
57
57
|
it "should run alpha, beta, gamma, and delta in that order" do
|
58
|
-
result = shell_out("#{chef_client} -c \"#{path_to(
|
58
|
+
result = shell_out("#{chef_client} -c \"#{path_to("config/client.rb")}\" --no-color -F doc -o 'x::default'", cwd: chef_dir)
|
59
59
|
expect(result.stdout).to match(/\* log\[alpha\] action write\s+\* log\[beta\] action write\s+\* log\[gamma\] action write\s+Converging 1 resources\s+\* log\[delta\] action write/)
|
60
60
|
result.error!
|
61
61
|
end
|
@@ -94,7 +94,7 @@ describe "notifying_block" do
|
|
94
94
|
end
|
95
95
|
file "config/client.rb", <<-EOM
|
96
96
|
local_mode true
|
97
|
-
cookbook_path "#{path_to(
|
97
|
+
cookbook_path "#{path_to("cookbooks")}"
|
98
98
|
log_level :warn
|
99
99
|
EOM
|
100
100
|
end
|
@@ -103,7 +103,7 @@ describe "notifying_block" do
|
|
103
103
|
# 1. notifying block will correctly update wrapping new_resource updated_by_last_action status
|
104
104
|
# 2. delayed notifications from a subcontext inside a resource will notify resources in their outer run_context
|
105
105
|
it "should run foo, quux, bar, and baz in that order" do
|
106
|
-
result = shell_out("#{chef_client} -c \"#{path_to(
|
106
|
+
result = shell_out("#{chef_client} -c \"#{path_to("config/client.rb")}\" --no-color -F doc -o 'x::default'", cwd: chef_dir)
|
107
107
|
expect(result.stdout).to match(/\* log\[foo\] action write\s+\* log\[quux\] action write\s+\* log\[bar\] action write\s+\* log\[baz\] action write/)
|
108
108
|
result.error!
|
109
109
|
end
|
@@ -16,8 +16,7 @@ describe "Recipe DSL methods" do
|
|
16
16
|
context "And class Chef::Provider::ProviderThingy with no provides" do
|
17
17
|
before :context do
|
18
18
|
class Chef::Provider::ProviderThingy < Chef::Provider
|
19
|
-
def load_current_resource
|
20
|
-
end
|
19
|
+
def load_current_resource; end
|
21
20
|
|
22
21
|
def action_create
|
23
22
|
Chef::Log.warn("hello from #{self.class.name}")
|
@@ -28,8 +28,7 @@ describe "Recipe DSL methods" do
|
|
28
28
|
Provider
|
29
29
|
end
|
30
30
|
class Provider < Chef::Provider
|
31
|
-
def load_current_resource
|
32
|
-
end
|
31
|
+
def load_current_resource; end
|
33
32
|
|
34
33
|
def action_create
|
35
34
|
BaseThingy.created_name = new_resource.name
|
@@ -1154,7 +1153,8 @@ describe "Recipe DSL methods" do
|
|
1154
1153
|
def to_s
|
1155
1154
|
"MyResource"
|
1156
1155
|
end
|
1157
|
-
end
|
1156
|
+
end
|
1157
|
+
end
|
1158
1158
|
let(:my_resource) { :"my_resource#{Namer.current_index}" }
|
1159
1159
|
let(:blarghle_blarghle_little_star) { :"blarghle_blarghle_little_star#{Namer.current_index}" }
|
1160
1160
|
|
@@ -1340,10 +1340,10 @@ describe "Recipe DSL methods" do
|
|
1340
1340
|
resource_class.new("blah", run_context)
|
1341
1341
|
end
|
1342
1342
|
it "The actions are part of actions along with :nothing" do
|
1343
|
-
expect(resource_class.actions).to eq
|
1343
|
+
expect(resource_class.actions).to eq %i{nothing create}
|
1344
1344
|
end
|
1345
1345
|
it "The actions are part of allowed_actions along with :nothing" do
|
1346
|
-
expect(resource.allowed_actions).to eq
|
1346
|
+
expect(resource.allowed_actions).to eq %i{nothing create}
|
1347
1347
|
end
|
1348
1348
|
|
1349
1349
|
context "and a subclass that declares more actions" do
|
@@ -1358,14 +1358,14 @@ describe "Recipe DSL methods" do
|
|
1358
1358
|
end
|
1359
1359
|
|
1360
1360
|
it "The parent class actions are not part of actions" do
|
1361
|
-
expect(subresource_class.actions).to eq
|
1361
|
+
expect(subresource_class.actions).to eq %i{nothing delete}
|
1362
1362
|
end
|
1363
1363
|
it "The parent class actions are not part of allowed_actions" do
|
1364
|
-
expect(subresource.allowed_actions).to eq
|
1364
|
+
expect(subresource.allowed_actions).to eq %i{nothing delete}
|
1365
1365
|
end
|
1366
1366
|
it "The parent class actions do not change" do
|
1367
|
-
expect(resource_class.actions).to eq
|
1368
|
-
expect(resource.allowed_actions).to eq
|
1367
|
+
expect(resource_class.actions).to eq %i{nothing create}
|
1368
|
+
expect(resource.allowed_actions).to eq %i{nothing create}
|
1369
1369
|
end
|
1370
1370
|
end
|
1371
1371
|
end
|