chef 18.8.11 → 18.8.46
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 +0 -19
- data/chef.gemspec +4 -5
- data/lib/chef/chef_fs/file_system/chef_server/cookbook_dir.rb +4 -0
- data/lib/chef/chef_fs/file_system/repository/chef_repository_file_system_cookbook_dir.rb +1 -5
- data/lib/chef/chef_fs/file_system/repository/chef_repository_file_system_cookbook_entry.rb +12 -0
- data/lib/chef/chef_fs/file_system.rb +18 -0
- data/lib/chef/pwsh.rb +2 -5
- data/lib/chef/resource/apt_repository.rb +14 -5
- data/lib/chef/resource/chocolatey_installer.rb +19 -4
- data/lib/chef/resource/ohai.rb +1 -0
- data/lib/chef/resource_reporter.rb +1 -1
- data/lib/chef/shell.rb +8 -3
- data/lib/chef/version.rb +1 -1
- metadata +14 -1121
- data/spec/data/apt/chef-integration-test-1.0/debian/changelog +0 -5
- data/spec/data/apt/chef-integration-test-1.0/debian/compat +0 -1
- data/spec/data/apt/chef-integration-test-1.0/debian/control +0 -13
- data/spec/data/apt/chef-integration-test-1.0/debian/copyright +0 -34
- data/spec/data/apt/chef-integration-test-1.0/debian/files +0 -1
- data/spec/data/apt/chef-integration-test-1.0/debian/rules +0 -13
- data/spec/data/apt/chef-integration-test-1.0/debian/source/format +0 -1
- data/spec/data/apt/chef-integration-test-1.1/debian/changelog +0 -11
- data/spec/data/apt/chef-integration-test-1.1/debian/compat +0 -1
- data/spec/data/apt/chef-integration-test-1.1/debian/control +0 -13
- data/spec/data/apt/chef-integration-test-1.1/debian/copyright +0 -34
- data/spec/data/apt/chef-integration-test-1.1/debian/files +0 -1
- data/spec/data/apt/chef-integration-test-1.1/debian/rules +0 -13
- data/spec/data/apt/chef-integration-test-1.1/debian/source/format +0 -1
- data/spec/data/apt/chef-integration-test2-1.0/debian/changelog +0 -5
- data/spec/data/apt/chef-integration-test2-1.0/debian/chef-integration-test2/DEBIAN/conffiles +0 -1
- data/spec/data/apt/chef-integration-test2-1.0/debian/chef-integration-test2/DEBIAN/control +0 -10
- data/spec/data/apt/chef-integration-test2-1.0/debian/chef-integration-test2/DEBIAN/md5sums +0 -1
- data/spec/data/apt/chef-integration-test2-1.0/debian/chef-integration-test2.debhelper.log +0 -45
- data/spec/data/apt/chef-integration-test2-1.0/debian/chef-integration-test2.substvars +0 -1
- data/spec/data/apt/chef-integration-test2-1.0/debian/compat +0 -1
- data/spec/data/apt/chef-integration-test2-1.0/debian/conffiles +0 -1
- data/spec/data/apt/chef-integration-test2-1.0/debian/control +0 -13
- data/spec/data/apt/chef-integration-test2-1.0/debian/copyright +0 -34
- data/spec/data/apt/chef-integration-test2-1.0/debian/files +0 -1
- data/spec/data/apt/chef-integration-test2-1.0/debian/rules +0 -13
- data/spec/data/apt/chef-integration-test2-1.0/debian/source/format +0 -1
- data/spec/data/apt/chef-integration-test2_1.0-1.debian.tar.gz +0 -0
- data/spec/data/apt/chef-integration-test2_1.0-1.dsc +0 -18
- data/spec/data/apt/chef-integration-test2_1.0-1_amd64.build +0 -91
- data/spec/data/apt/chef-integration-test2_1.0-1_amd64.changes +0 -31
- data/spec/data/apt/chef-integration-test2_1.0-1_amd64.deb +0 -0
- data/spec/data/apt/chef-integration-test2_1.0.orig.tar.gz +0 -0
- data/spec/data/apt/chef-integration-test_1.0-1_amd64.changes +0 -22
- data/spec/data/apt/chef-integration-test_1.0-1_amd64.deb +0 -0
- data/spec/data/apt/chef-integration-test_1.0.orig.tar.gz +0 -0
- data/spec/data/apt/chef-integration-test_1.1-1_amd64.changes +0 -22
- data/spec/data/apt/chef-integration-test_1.1-1_amd64.deb +0 -0
- data/spec/data/apt/chef-integration-test_1.1.orig.tar.gz +0 -0
- data/spec/data/apt/var/www/apt/conf/distributions +0 -7
- data/spec/data/apt/var/www/apt/conf/incoming +0 -4
- data/spec/data/apt/var/www/apt/conf/pulls +0 -3
- data/spec/data/apt/var/www/apt/db/checksums.db +0 -0
- data/spec/data/apt/var/www/apt/db/contents.cache.db +0 -0
- data/spec/data/apt/var/www/apt/db/packages.db +0 -0
- data/spec/data/apt/var/www/apt/db/references.db +0 -0
- data/spec/data/apt/var/www/apt/db/release.caches.db +0 -0
- data/spec/data/apt/var/www/apt/db/version +0 -4
- data/spec/data/apt/var/www/apt/dists/sid/Release +0 -19
- data/spec/data/apt/var/www/apt/dists/sid/main/binary-amd64/Packages +0 -16
- data/spec/data/apt/var/www/apt/dists/sid/main/binary-amd64/Packages.gz +0 -0
- data/spec/data/apt/var/www/apt/dists/sid/main/binary-amd64/Release +0 -5
- data/spec/data/apt/var/www/apt/dists/sid/main/binary-i386/Packages +0 -0
- data/spec/data/apt/var/www/apt/pool/main/c/chef-integration-test/chef-integration-test_1.0-1_amd64.deb +0 -0
- data/spec/data/apt/var/www/apt/pool/main/c/chef-integration-test/chef-integration-test_1.1-1_amd64.deb +0 -0
- data/spec/data/archive_file/test_archive.tar.gz +0 -0
- data/spec/data/bad-config.rb +0 -1
- data/spec/data/bootstrap/encrypted_data_bag_secret +0 -1
- data/spec/data/bootstrap/no_proxy.erb +0 -2
- data/spec/data/bootstrap/secret.erb +0 -9
- data/spec/data/bootstrap/test-hints.erb +0 -12
- data/spec/data/bootstrap/test.erb +0 -1
- data/spec/data/cb_version_cookbooks/cookbook2/files/test.txt +0 -0
- data/spec/data/cb_version_cookbooks/cookbook2/templates/test.erb +0 -0
- data/spec/data/cb_version_cookbooks/tatft/README.rdoc +0 -3
- data/spec/data/cb_version_cookbooks/tatft/attributes/default.rb +0 -1
- data/spec/data/cb_version_cookbooks/tatft/definitions/runit_service.rb +0 -1
- data/spec/data/cb_version_cookbooks/tatft/files/default/giant_blob.tgz +0 -1
- data/spec/data/cb_version_cookbooks/tatft/libraries/ownage.rb +0 -1
- data/spec/data/cb_version_cookbooks/tatft/providers/lwp.rb +0 -1
- data/spec/data/cb_version_cookbooks/tatft/recipes/default.rb +0 -1
- data/spec/data/cb_version_cookbooks/tatft/resources/lwr.rb +0 -1
- data/spec/data/cb_version_cookbooks/tatft/templates/default/configuration.erb +0 -0
- data/spec/data/checksum/random.txt +0 -1
- data/spec/data/checksum_cache/chef-file--tmp-chef-rendered-template20100929-10863-600hhz-0 +0 -1
- data/spec/data/checksum_cache/chef-file--tmp-chef-rendered-template20100929-10863-6m8zdk-0 +0 -0
- data/spec/data/checksum_cache/chef-file--tmp-chef-rendered-template20100929-10863-ahd2gq-0 +0 -1
- data/spec/data/checksum_cache/chef-file--tmp-chef-rendered-template20100929-10863-api8ux-0 +0 -1
- data/spec/data/checksum_cache/chef-file--tmp-chef-rendered-template20100929-10863-b0r1m1-0 +0 -1
- data/spec/data/checksum_cache/chef-file--tmp-chef-rendered-template20100929-10863-bfygsi-0 +0 -1
- data/spec/data/checksum_cache/chef-file--tmp-chef-rendered-template20100929-10863-el14l6-0 +0 -1
- data/spec/data/checksum_cache/chef-file--tmp-chef-rendered-template20100929-10863-ivrl3y-0 +0 -1
- data/spec/data/checksum_cache/chef-file--tmp-chef-rendered-template20100929-10863-kkbs85-0 +0 -1
- data/spec/data/checksum_cache/chef-file--tmp-chef-rendered-template20100929-10863-ory1ux-0 +0 -1
- data/spec/data/checksum_cache/chef-file--tmp-chef-rendered-template20100929-10863-pgsq76-0 +0 -1
- data/spec/data/checksum_cache/chef-file--tmp-chef-rendered-template20100929-10863-ra8uim-0 +0 -1
- data/spec/data/checksum_cache/chef-file--tmp-chef-rendered-template20100929-10863-t7k1g-0 +0 -1
- data/spec/data/checksum_cache/chef-file--tmp-chef-rendered-template20100929-10863-t8g0sv-0 +0 -1
- data/spec/data/checksum_cache/chef-file--tmp-chef-rendered-template20100929-10863-ufy6g3-0 +0 -1
- data/spec/data/checksum_cache/chef-file--tmp-chef-rendered-template20100929-10863-x2d6j9-0 +0 -1
- data/spec/data/checksum_cache/chef-file--tmp-chef-rendered-template20100929-10863-xi0l6h-0 +0 -1
- data/spec/data/client.d_00/00-foo.rb +0 -2
- data/spec/data/client.d_00/01-bar.rb +0 -1
- data/spec/data/client.d_00/02-strings.rb +0 -2
- data/spec/data/client.d_00/bar +0 -1
- data/spec/data/client.d_01/foo/bar.rb +0 -1
- data/spec/data/client.d_02/foo.rb/foo.txt +0 -1
- data/spec/data/config.rb +0 -6
- data/spec/data/cookbooks/angrybash/metadata.rb +0 -2
- data/spec/data/cookbooks/angrybash/recipes/default.rb +0 -8
- data/spec/data/cookbooks/apache2/files/default/apache2_module_conf_generate.pl +0 -2
- data/spec/data/cookbooks/apache2/metadata.json +0 -33
- data/spec/data/cookbooks/apache2/metadata.rb +0 -2
- data/spec/data/cookbooks/apache2/recipes/default.rb +0 -3
- data/spec/data/cookbooks/borken/metadata.rb +0 -2
- data/spec/data/cookbooks/borken/recipes/default.rb +0 -2
- data/spec/data/cookbooks/borken/templates/default/borken.erb +0 -2
- data/spec/data/cookbooks/chefignore +0 -8
- data/spec/data/cookbooks/ignorken/files/default/not_me.rb +0 -2
- data/spec/data/cookbooks/ignorken/metadata.rb +0 -2
- data/spec/data/cookbooks/ignorken/recipes/default.rb +0 -1
- data/spec/data/cookbooks/ignorken/recipes/ignoreme.rb +0 -2
- data/spec/data/cookbooks/ignorken/templates/ubuntu-12.10/not_me.rb +0 -2
- data/spec/data/cookbooks/irssi/files/default/irssi.response +0 -2
- data/spec/data/cookbooks/java/files/default/java.response +0 -2
- data/spec/data/cookbooks/java/metadata.json +0 -33
- data/spec/data/cookbooks/java/metadata.rb +0 -2
- data/spec/data/cookbooks/name-mismatch-versionnumber/README.md +0 -4
- data/spec/data/cookbooks/name-mismatch-versionnumber/metadata.rb +0 -8
- data/spec/data/cookbooks/name-mismatch-versionnumber/recipes/default.rb +0 -8
- data/spec/data/cookbooks/openldap/.root_dotfile +0 -0
- data/spec/data/cookbooks/openldap/attributes/default.rb +0 -16
- data/spec/data/cookbooks/openldap/attributes/smokey.rb +0 -1
- data/spec/data/cookbooks/openldap/definitions/client.rb +0 -5
- data/spec/data/cookbooks/openldap/definitions/server.rb +0 -5
- data/spec/data/cookbooks/openldap/files/default/.dotfile +0 -1
- data/spec/data/cookbooks/openldap/files/default/.ssh/id_rsa +0 -1
- data/spec/data/cookbooks/openldap/files/default/remotedir/.a_dotdir/.a_dotfile_in_a_dotdir +0 -1
- data/spec/data/cookbooks/openldap/files/default/remotedir/not_a_template.erb +0 -2
- data/spec/data/cookbooks/openldap/files/default/remotedir/remote_dir_file1.txt +0 -3
- data/spec/data/cookbooks/openldap/files/default/remotedir/remote_dir_file2.txt +0 -3
- data/spec/data/cookbooks/openldap/files/default/remotedir/remotesubdir/.a_dotfile +0 -1
- data/spec/data/cookbooks/openldap/files/default/remotedir/remotesubdir/remote_subdir_file1.txt +0 -3
- data/spec/data/cookbooks/openldap/files/default/remotedir/remotesubdir/remote_subdir_file2.txt +0 -3
- data/spec/data/cookbooks/openldap/files/default/remotedir/subdir_with_no_file_just_a_subsubdir/the_subsubdir/some_file.txt +0 -3
- data/spec/data/cookbooks/openldap/libraries/openldap/version.rb +0 -3
- data/spec/data/cookbooks/openldap/libraries/openldap.rb +0 -4
- data/spec/data/cookbooks/openldap/metadata.rb +0 -8
- data/spec/data/cookbooks/openldap/recipes/default.rb +0 -4
- data/spec/data/cookbooks/openldap/recipes/gigantor.rb +0 -3
- data/spec/data/cookbooks/openldap/recipes/one.rb +0 -15
- data/spec/data/cookbooks/openldap/recipes/return.rb +0 -2
- data/spec/data/cookbooks/openldap/spec/spec_helper.rb +0 -0
- data/spec/data/cookbooks/openldap/templates/default/all_windows_line_endings.erb +0 -4
- data/spec/data/cookbooks/openldap/templates/default/helper_test.erb +0 -1
- data/spec/data/cookbooks/openldap/templates/default/helpers.erb +0 -14
- data/spec/data/cookbooks/openldap/templates/default/helpers_via_partial_test.erb +0 -1
- data/spec/data/cookbooks/openldap/templates/default/nested_openldap_partials.erb +0 -1
- data/spec/data/cookbooks/openldap/templates/default/nested_partial.erb +0 -1
- data/spec/data/cookbooks/openldap/templates/default/no_windows_line_endings.erb +0 -4
- data/spec/data/cookbooks/openldap/templates/default/openldap_nested_variable_stuff.erb +0 -1
- data/spec/data/cookbooks/openldap/templates/default/openldap_stuff.conf.erb +0 -1
- data/spec/data/cookbooks/openldap/templates/default/openldap_variable_stuff.conf.erb +0 -1
- data/spec/data/cookbooks/openldap/templates/default/some_windows_line_endings.erb +0 -4
- data/spec/data/cookbooks/openldap/templates/default/test.erb +0 -1
- data/spec/data/cookbooks/preseed/files/default/preseed-file.seed +0 -1
- data/spec/data/cookbooks/preseed/files/default/preseed-template.seed +0 -4
- data/spec/data/cookbooks/preseed/metadata.rb +0 -2
- data/spec/data/cookbooks/preseed/templates/default/preseed-template-variables.seed +0 -1
- data/spec/data/cookbooks/preseed/templates/default/preseed-template.seed +0 -1
- data/spec/data/cookbooks/starter/chefignore +0 -8
- data/spec/data/cookbooks/starter/files/sample.txt +0 -1
- data/spec/data/cookbooks/starter/metadata.rb +0 -2
- data/spec/data/cookbooks/starter/recipes/default.rb +0 -4
- data/spec/data/cookbooks/supports-platform-constraints/metadata.rb +0 -5
- data/spec/data/cookbooks/wget/files/default/wget.response +0 -2
- data/spec/data/definitions/test.rb +0 -5
- data/spec/data/dsc_lcm.pfx +0 -0
- data/spec/data/environment-config.rb +0 -5
- data/spec/data/file-providers-method-snapshot-chef-11-4.json +0 -127
- data/spec/data/fileedit/blank +0 -0
- data/spec/data/fileedit/hosts +0 -4
- data/spec/data/gems/chef-integration-test-0.1.0.gem +0 -0
- data/spec/data/git_bundles/example-repo.gitbundle +0 -0
- data/spec/data/git_bundles/sinatra-test-app-with-callback-files.gitbundle +0 -0
- data/spec/data/git_bundles/sinatra-test-app-with-symlinks.gitbundle +0 -0
- data/spec/data/git_bundles/sinatra-test-app.gitbundle +0 -0
- data/spec/data/incomplete-metadata-chef-repo/incomplete-metadata/README.md +0 -4
- data/spec/data/incomplete-metadata-chef-repo/incomplete-metadata/metadata.rb +0 -13
- data/spec/data/incomplete-metadata-chef-repo/incomplete-metadata/recipes/default.rb +0 -8
- data/spec/data/invalid-metadata-chef-repo/invalid-metadata/README.md +0 -4
- data/spec/data/invalid-metadata-chef-repo/invalid-metadata/metadata.rb +0 -9
- data/spec/data/invalid-metadata-chef-repo/invalid-metadata/recipes/default.rb +0 -8
- data/spec/data/kitchen/chefignore +0 -6
- data/spec/data/kitchen/openldap/attributes/default.rb +0 -3
- data/spec/data/kitchen/openldap/attributes/robinson.rb +0 -3
- data/spec/data/kitchen/openldap/definitions/client.rb +0 -3
- data/spec/data/kitchen/openldap/definitions/drewbarrymore.rb +0 -3
- data/spec/data/kitchen/openldap/recipes/gigantor.rb +0 -3
- data/spec/data/kitchen/openldap/recipes/ignoreme.rb +0 -3
- data/spec/data/kitchen/openldap/recipes/woot.rb +0 -3
- data/spec/data/knife-home/.chef/plugins/knife/example_home_subcommand.rb +0 -0
- data/spec/data/knife-site-subcommands/plugins/knife/example_subcommand.rb +0 -0
- data/spec/data/knife_subcommand/test_explicit_category.rb +0 -7
- data/spec/data/knife_subcommand/test_name_mapping.rb +0 -4
- data/spec/data/knife_subcommand/test_yourself.rb +0 -21
- data/spec/data/lwrp/providers/buck_passer.rb +0 -28
- data/spec/data/lwrp/providers/buck_passer_2.rb +0 -26
- data/spec/data/lwrp/providers/embedded_resource_accesses_providers_scope.rb +0 -28
- data/spec/data/lwrp/providers/inline_compiler.rb +0 -24
- data/spec/data/lwrp/providers/monkey_name_printer.rb +0 -5
- data/spec/data/lwrp/providers/paint_drying_watcher.rb +0 -7
- data/spec/data/lwrp/providers/thumb_twiddler.rb +0 -7
- data/spec/data/lwrp/resources/bar.rb +0 -4
- data/spec/data/lwrp/resources/buck_passer.rb +0 -6
- data/spec/data/lwrp/resources/buck_passer_2.rb +0 -4
- data/spec/data/lwrp/resources/embedded_resource_accesses_providers_scope.rb +0 -4
- data/spec/data/lwrp/resources/foo.rb +0 -6
- data/spec/data/lwrp/resources/inline_compiler.rb +0 -4
- data/spec/data/lwrp/resources/monkey_name_printer.rb +0 -6
- data/spec/data/lwrp/resources/paint_drying_watcher.rb +0 -4
- data/spec/data/lwrp/resources/thumb_twiddler.rb +0 -4
- data/spec/data/lwrp/resources_with_default_attributes/nodeattr.rb +0 -3
- data/spec/data/lwrp_const_scoping/resources/conflict.rb +0 -1
- data/spec/data/lwrp_override/providers/buck_passer.rb +0 -5
- data/spec/data/lwrp_override/resources/foo.rb +0 -11
- data/spec/data/mac_users/10.9.plist.xml +0 -560
- data/spec/data/mac_users/10.9.shadow.xml +0 -21
- data/spec/data/metadata/quick_start/metadata.rb +0 -14
- data/spec/data/mixin/invalid_data.rb +0 -3
- data/spec/data/mixin/real_data.rb +0 -2
- data/spec/data/nested.json +0 -2
- data/spec/data/nodes/default.rb +0 -15
- data/spec/data/nodes/test.example.com.rb +0 -17
- data/spec/data/nodes/test.rb +0 -15
- data/spec/data/null_config.rb +0 -1
- data/spec/data/object_loader/environments/test.json +0 -7
- data/spec/data/object_loader/environments/test.rb +0 -2
- data/spec/data/object_loader/environments/test_json_class.json +0 -8
- data/spec/data/object_loader/nodes/test.json +0 -7
- data/spec/data/object_loader/nodes/test.rb +0 -2
- data/spec/data/object_loader/nodes/test_json_class.json +0 -8
- data/spec/data/object_loader/roles/test.json +0 -7
- data/spec/data/object_loader/roles/test.rb +0 -2
- data/spec/data/object_loader/roles/test_json_class.json +0 -8
- data/spec/data/old_home_dir/my-dot-emacs +0 -0
- data/spec/data/old_home_dir/my-dot-vim +0 -0
- data/spec/data/partial_one.erb +0 -1
- data/spec/data/prefer_metadata_json/metadata.json +0 -51
- data/spec/data/prefer_metadata_json/metadata.rb +0 -6
- data/spec/data/prefer_metadata_json/recipes/default.rb +0 -0
- data/spec/data/recipes/test.rb +0 -7
- data/spec/data/recipes.tgz +0 -0
- data/spec/data/remote_directory_data/remote_dir_file.txt +0 -1
- data/spec/data/remote_directory_data/remote_subdirectory/remote_subdir_file.txt +0 -1
- data/spec/data/remote_file/nyan_cat.png +0 -0
- data/spec/data/remote_file/nyan_cat.png.gz +0 -0
- data/spec/data/root_alias_cookbooks/dup_attr/attributes/default.rb +0 -1
- data/spec/data/root_alias_cookbooks/dup_attr/attributes.rb +0 -1
- data/spec/data/root_alias_cookbooks/dup_attr/metadata.rb +0 -2
- data/spec/data/root_alias_cookbooks/dup_attr/recipe.rb +0 -3
- data/spec/data/root_alias_cookbooks/dup_recipe/attributes.rb +0 -1
- data/spec/data/root_alias_cookbooks/dup_recipe/metadata.rb +0 -2
- data/spec/data/root_alias_cookbooks/dup_recipe/recipe.rb +0 -3
- data/spec/data/root_alias_cookbooks/dup_recipe/recipes/default.rb +0 -3
- data/spec/data/root_alias_cookbooks/simple/attributes.rb +0 -1
- data/spec/data/root_alias_cookbooks/simple/metadata.rb +0 -2
- data/spec/data/root_alias_cookbooks/simple/recipe.rb +0 -3
- data/spec/data/rubygems.org/latest_specs.4.8.gz +0 -0
- data/spec/data/rubygems.org/nonexistent_gem +0 -0
- data/spec/data/rubygems.org/nonexistent_gem-info +0 -1
- data/spec/data/rubygems.org/sexp_processor +0 -0
- data/spec/data/rubygems.org/sexp_processor-4.15.1.gemspec.rz +0 -0
- data/spec/data/rubygems.org/sexp_processor-info +0 -50
- data/spec/data/run_context/cookbooks/circular-dep1/attributes/default.rb +0 -2
- data/spec/data/run_context/cookbooks/circular-dep1/definitions/circular_dep1_res.rb +0 -1
- data/spec/data/run_context/cookbooks/circular-dep1/libraries/lib.rb +0 -2
- data/spec/data/run_context/cookbooks/circular-dep1/metadata.rb +0 -2
- data/spec/data/run_context/cookbooks/circular-dep1/providers/provider.rb +0 -1
- data/spec/data/run_context/cookbooks/circular-dep1/recipes/default.rb +0 -0
- data/spec/data/run_context/cookbooks/circular-dep1/resources/resource.rb +0 -2
- data/spec/data/run_context/cookbooks/circular-dep2/attributes/default.rb +0 -2
- data/spec/data/run_context/cookbooks/circular-dep2/definitions/circular_dep2_res.rb +0 -1
- data/spec/data/run_context/cookbooks/circular-dep2/libraries/lib.rb +0 -2
- data/spec/data/run_context/cookbooks/circular-dep2/metadata.rb +0 -2
- data/spec/data/run_context/cookbooks/circular-dep2/providers/provider.rb +0 -1
- data/spec/data/run_context/cookbooks/circular-dep2/recipes/default.rb +0 -0
- data/spec/data/run_context/cookbooks/circular-dep2/resources/resource.rb +0 -2
- data/spec/data/run_context/cookbooks/dependency1/attributes/aa_first.rb +0 -2
- data/spec/data/run_context/cookbooks/dependency1/attributes/default.rb +0 -2
- data/spec/data/run_context/cookbooks/dependency1/attributes/unparsed_file +0 -1
- data/spec/data/run_context/cookbooks/dependency1/attributes/zz_last.rb +0 -2
- data/spec/data/run_context/cookbooks/dependency1/definitions/dependency1_res.rb +0 -1
- data/spec/data/run_context/cookbooks/dependency1/definitions/unparsed_file +0 -1
- data/spec/data/run_context/cookbooks/dependency1/libraries/lib.rb +0 -2
- data/spec/data/run_context/cookbooks/dependency1/libraries/unparsed_file +0 -1
- data/spec/data/run_context/cookbooks/dependency1/providers/provider.rb +0 -1
- data/spec/data/run_context/cookbooks/dependency1/providers/unparsed_file +0 -1
- data/spec/data/run_context/cookbooks/dependency1/recipes/default.rb +0 -0
- data/spec/data/run_context/cookbooks/dependency1/recipes/unparsed_file +0 -1
- data/spec/data/run_context/cookbooks/dependency1/resources/resource.rb +0 -2
- data/spec/data/run_context/cookbooks/dependency1/resources/unparsed_file +0 -1
- data/spec/data/run_context/cookbooks/dependency2/attributes/default.rb +0 -2
- data/spec/data/run_context/cookbooks/dependency2/definitions/dependency2_res.rb +0 -1
- data/spec/data/run_context/cookbooks/dependency2/libraries/lib.rb +0 -2
- data/spec/data/run_context/cookbooks/dependency2/providers/provider.rb +0 -1
- data/spec/data/run_context/cookbooks/dependency2/recipes/default.rb +0 -0
- data/spec/data/run_context/cookbooks/dependency2/resources/resource.rb +0 -2
- data/spec/data/run_context/cookbooks/include/recipes/default.rb +0 -24
- data/spec/data/run_context/cookbooks/include/recipes/includee.rb +0 -3
- data/spec/data/run_context/cookbooks/no-default-attr/attributes/server.rb +0 -2
- data/spec/data/run_context/cookbooks/no-default-attr/definitions/no_default-attr_res.rb +0 -1
- data/spec/data/run_context/cookbooks/no-default-attr/providers/provider.rb +0 -1
- data/spec/data/run_context/cookbooks/no-default-attr/recipes/default.rb +0 -0
- data/spec/data/run_context/cookbooks/no-default-attr/resources/resource.rb +0 -2
- data/spec/data/run_context/cookbooks/test/attributes/default.rb +0 -0
- data/spec/data/run_context/cookbooks/test/attributes/george.rb +0 -1
- data/spec/data/run_context/cookbooks/test/definitions/new_animals.rb +0 -9
- data/spec/data/run_context/cookbooks/test/definitions/new_cat.rb +0 -5
- data/spec/data/run_context/cookbooks/test/definitions/test_res.rb +0 -1
- data/spec/data/run_context/cookbooks/test/providers/provider.rb +0 -1
- data/spec/data/run_context/cookbooks/test/recipes/default.rb +0 -5
- data/spec/data/run_context/cookbooks/test/recipes/one.rb +0 -7
- data/spec/data/run_context/cookbooks/test/recipes/two.rb +0 -7
- data/spec/data/run_context/cookbooks/test/resources/resource.rb +0 -3
- data/spec/data/run_context/cookbooks/test-with-circular-deps/attributes/default.rb +0 -2
- data/spec/data/run_context/cookbooks/test-with-circular-deps/definitions/test_with-circular-deps_res.rb +0 -1
- data/spec/data/run_context/cookbooks/test-with-circular-deps/libraries/lib.rb +0 -2
- data/spec/data/run_context/cookbooks/test-with-circular-deps/metadata.rb +0 -2
- data/spec/data/run_context/cookbooks/test-with-circular-deps/providers/provider.rb +0 -1
- data/spec/data/run_context/cookbooks/test-with-circular-deps/recipes/default.rb +0 -0
- data/spec/data/run_context/cookbooks/test-with-circular-deps/resources/resource.rb +0 -3
- data/spec/data/run_context/cookbooks/test-with-deps/attributes/default.rb +0 -2
- data/spec/data/run_context/cookbooks/test-with-deps/definitions/test_with-deps_res.rb +0 -1
- data/spec/data/run_context/cookbooks/test-with-deps/libraries/lib.rb +0 -1
- data/spec/data/run_context/cookbooks/test-with-deps/metadata.rb +0 -3
- data/spec/data/run_context/cookbooks/test-with-deps/providers/provider.rb +0 -1
- data/spec/data/run_context/cookbooks/test-with-deps/recipes/default.rb +0 -0
- data/spec/data/run_context/cookbooks/test-with-deps/recipes/server.rb +0 -0
- data/spec/data/run_context/cookbooks/test-with-deps/resources/resource.rb +0 -2
- data/spec/data/run_context/nodes/run_context.rb +0 -5
- data/spec/data/sample_msu1.xml +0 -10
- data/spec/data/sample_msu2.xml +0 -14
- data/spec/data/sample_msu3.xml +0 -16
- data/spec/data/search_queries_to_transform.txt +0 -98
- data/spec/data/shef-config.rb +0 -11
- data/spec/data/snap_package/async_result_success.json +0 -6
- data/spec/data/snap_package/change_id_result.json +0 -175
- data/spec/data/snap_package/find_result_failure.json +0 -10
- data/spec/data/snap_package/find_result_success.json +0 -70
- data/spec/data/snap_package/get_by_name_result_failure.json +0 -10
- data/spec/data/snap_package/get_by_name_result_success.json +0 -38
- data/spec/data/snap_package/get_conf_success.json +0 -10
- data/spec/data/snap_package/result_failure.json +0 -9
- data/spec/data/ssl/5e707473.0 +0 -18
- data/spec/data/ssl/binary/chef-rspec-der.cert +0 -0
- data/spec/data/ssl/binary/chef-rspec-der.key +0 -0
- data/spec/data/ssl/chef-rspec.cert +0 -27
- data/spec/data/ssl/chef-rspec.key +0 -27
- data/spec/data/ssl/key.pem +0 -15
- data/spec/data/ssl/private_key.pem +0 -27
- data/spec/data/ssl/private_key_with_whitespace.pem +0 -32
- data/spec/data/standalone_cookbook/Gemfile +0 -1
- data/spec/data/standalone_cookbook/chefignore +0 -9
- data/spec/data/standalone_cookbook/recipes/default.rb +0 -3
- data/spec/data/standalone_cookbook/vendor/bundle/ruby/2.0.0/gems/multi_json-1.9.0/lib/multi_json.rb +0 -1
- data/spec/data/templates/chef-seattle20160930-4388-1crv7ef.txt +0 -1
- data/spec/data/templates/chef-seattle20160930-4388-jjfoae.txt +0 -1
- data/spec/data/templates/chef-seattle20160930-4388-umeq2c.txt +0 -1
- data/spec/data/templates/failed.erb +0 -5
- data/spec/data/templates/seattle.txt +0 -1
- data/spec/data/trusted_certs/example.crt +0 -31
- data/spec/data/trusted_certs/example_no_cn.crt +0 -32
- data/spec/data/trusted_certs/intermediate.pem +0 -38
- data/spec/data/trusted_certs/opscode.pem +0 -36
- data/spec/data/trusted_certs/root.pem +0 -22
- data/spec/data/windows_certificates/base64_test.cer +0 -20
- data/spec/data/windows_certificates/othertest.cer +0 -20
- data/spec/data/windows_certificates/test.cer +0 -20
- data/spec/data/windows_certificates/test.p7b +0 -0
- data/spec/data/windows_certificates/test.pem +0 -20
- data/spec/data/windows_certificates/test.pfx +0 -0
- data/spec/functional/application_spec.rb +0 -58
- data/spec/functional/assets/PkgA.1.0.0.0.bff +0 -0
- data/spec/functional/assets/PkgA.2.0.0.0.bff +0 -0
- data/spec/functional/assets/chefinittest +0 -36
- data/spec/functional/assets/chocolatey_feed/test-A.1.0.0.nupkg +0 -0
- data/spec/functional/assets/chocolatey_feed/test-A.1.5.0.nupkg +0 -0
- data/spec/functional/assets/chocolatey_feed/test-A.2.0.0.nupkg +0 -0
- data/spec/functional/assets/chocolatey_feed/test-B.1.0.0.nupkg +0 -0
- data/spec/functional/assets/dummy-1-0.aix6.1.noarch.rpm +0 -0
- data/spec/functional/assets/dummy-2-0.aix6.1.noarch.rpm +0 -0
- data/spec/functional/assets/inittest +0 -37
- data/spec/functional/assets/mytest-1.0-1.noarch.rpm +0 -0
- data/spec/functional/assets/mytest-2.0-1.noarch.rpm +0 -0
- data/spec/functional/assets/testchefsubsys +0 -10
- data/spec/functional/assets/yumrepo/chef_rpm-1.10-1.aarch64.rpm +0 -0
- data/spec/functional/assets/yumrepo/chef_rpm-1.10-1.i686.rpm +0 -0
- data/spec/functional/assets/yumrepo/chef_rpm-1.10-1.ppc64.rpm +0 -0
- data/spec/functional/assets/yumrepo/chef_rpm-1.10-1.ppc64le.rpm +0 -0
- data/spec/functional/assets/yumrepo/chef_rpm-1.10-1.s390x.rpm +0 -0
- data/spec/functional/assets/yumrepo/chef_rpm-1.10-1.src.rpm +0 -0
- data/spec/functional/assets/yumrepo/chef_rpm-1.10-1.x86_64.rpm +0 -0
- data/spec/functional/assets/yumrepo/chef_rpm-1.2-1.aarch64.rpm +0 -0
- data/spec/functional/assets/yumrepo/chef_rpm-1.2-1.i686.rpm +0 -0
- data/spec/functional/assets/yumrepo/chef_rpm-1.2-1.ppc64.rpm +0 -0
- data/spec/functional/assets/yumrepo/chef_rpm-1.2-1.ppc64le.rpm +0 -0
- data/spec/functional/assets/yumrepo/chef_rpm-1.2-1.s390x.rpm +0 -0
- data/spec/functional/assets/yumrepo/chef_rpm-1.2-1.src.rpm +0 -0
- data/spec/functional/assets/yumrepo/chef_rpm-1.2-1.x86_64.rpm +0 -0
- data/spec/functional/assets/yumrepo/repodata/4632d67cb92636e7575d911c24f0e04d3505a944e97c483abe0c3e73a7c62d33-filelists.sqlite.bz2 +0 -0
- data/spec/functional/assets/yumrepo/repodata/74599b793e54d877323837d2d81a1c3c594c44e4335f9528234bb490f7b9b439-other.xml.gz +0 -0
- data/spec/functional/assets/yumrepo/repodata/a845d418f919d2115ab95a56b2c76f6825ad0d0bede49181a55c04f58995d057-primary.sqlite.bz2 +0 -0
- data/spec/functional/assets/yumrepo/repodata/af9b7cf9ef23bd7b43068d74a460f3b5d06753d638e58e4a0c9edc35bfb9cdc4-other.sqlite.bz2 +0 -0
- data/spec/functional/assets/yumrepo/repodata/bdb4f5f1492a3b9532f22c43110a81500dd744f23da0aec5c33b2a41317c737d-filelists.xml.gz +0 -0
- data/spec/functional/assets/yumrepo/repodata/c10d1d34ce99e02f12ec96ef68360543ab1bb7c3cb81a4a2bf78df7d8597e9df-primary.xml.gz +0 -0
- data/spec/functional/assets/yumrepo/repodata/filelists.xml.gz +0 -0
- data/spec/functional/assets/yumrepo/repodata/other.xml.gz +0 -0
- data/spec/functional/assets/yumrepo/repodata/primary.xml.gz +0 -0
- data/spec/functional/assets/yumrepo/repodata/repomd.xml +0 -21
- data/spec/functional/assets/yumrepo-empty/repodata/01a3b-filelists.sqlite.bz2 +0 -0
- data/spec/functional/assets/yumrepo-empty/repodata/401dc-filelists.xml.gz +0 -0
- data/spec/functional/assets/yumrepo-empty/repodata/5dc1e-primary.sqlite.bz2 +0 -0
- data/spec/functional/assets/yumrepo-empty/repodata/6bf96-other.xml.gz +0 -0
- data/spec/functional/assets/yumrepo-empty/repodata/7c365-other.sqlite.bz2 +0 -0
- data/spec/functional/assets/yumrepo-empty/repodata/dabe2-primary.xml.gz +0 -0
- data/spec/functional/assets/yumrepo-empty/repodata/repomd.xml +0 -55
- data/spec/functional/assets/zypprepo/chef_rpm-1.10-1.aarch64.rpm +0 -0
- data/spec/functional/assets/zypprepo/chef_rpm-1.10-1.i686.rpm +0 -0
- data/spec/functional/assets/zypprepo/chef_rpm-1.10-1.ppc64.rpm +0 -0
- data/spec/functional/assets/zypprepo/chef_rpm-1.10-1.ppc64le.rpm +0 -0
- data/spec/functional/assets/zypprepo/chef_rpm-1.10-1.s390x.rpm +0 -0
- data/spec/functional/assets/zypprepo/chef_rpm-1.10-1.src.rpm +0 -0
- data/spec/functional/assets/zypprepo/chef_rpm-1.10-1.x86_64.rpm +0 -0
- data/spec/functional/assets/zypprepo/chef_rpm-1.2-1.aarch64.rpm +0 -0
- data/spec/functional/assets/zypprepo/chef_rpm-1.2-1.i686.rpm +0 -0
- data/spec/functional/assets/zypprepo/chef_rpm-1.2-1.ppc64.rpm +0 -0
- data/spec/functional/assets/zypprepo/chef_rpm-1.2-1.ppc64le.rpm +0 -0
- data/spec/functional/assets/zypprepo/chef_rpm-1.2-1.s390x.rpm +0 -0
- data/spec/functional/assets/zypprepo/chef_rpm-1.2-1.src.rpm +0 -0
- data/spec/functional/assets/zypprepo/chef_rpm-1.2-1.x86_64.rpm +0 -0
- data/spec/functional/dsl/reboot_pending_spec.rb +0 -88
- data/spec/functional/dsl/registry_helper_spec.rb +0 -61
- data/spec/functional/event_loggers/windows_eventlog_spec.rb +0 -107
- data/spec/functional/file_content_management/deploy_strategies_spec.rb +0 -229
- data/spec/functional/http/simple_spec.rb +0 -146
- data/spec/functional/mixin/from_file_spec.rb +0 -93
- data/spec/functional/mixin/powershell_out_spec.rb +0 -51
- data/spec/functional/mixin/shell_out_spec.rb +0 -48
- data/spec/functional/mixin/user_context_spec.rb +0 -119
- data/spec/functional/notifications_spec.rb +0 -238
- data/spec/functional/provider/remote_file/cache_control_data_spec.rb +0 -100
- data/spec/functional/provider/whyrun_safe_ruby_block_spec.rb +0 -51
- data/spec/functional/rebooter_spec.rb +0 -117
- data/spec/functional/resource/aix_service_spec.rb +0 -145
- data/spec/functional/resource/aixinit_service_spec.rb +0 -210
- data/spec/functional/resource/apt_package_spec.rb +0 -383
- data/spec/functional/resource/archive_file_spec.rb +0 -88
- data/spec/functional/resource/bash_spec.rb +0 -55
- data/spec/functional/resource/batch_spec.rb +0 -34
- data/spec/functional/resource/bff_spec.rb +0 -120
- data/spec/functional/resource/chocolatey_package_spec.rb +0 -194
- data/spec/functional/resource/cookbook_file_spec.rb +0 -79
- data/spec/functional/resource/cron_spec.rb +0 -179
- data/spec/functional/resource/directory_spec.rb +0 -43
- data/spec/functional/resource/dnf_package_spec.rb +0 -1629
- data/spec/functional/resource/dpkg_package_spec.rb +0 -355
- data/spec/functional/resource/dsc_resource_spec.rb +0 -91
- data/spec/functional/resource/dsc_script_spec.rb +0 -476
- data/spec/functional/resource/execute_spec.rb +0 -171
- data/spec/functional/resource/file_spec.rb +0 -167
- data/spec/functional/resource/git_spec.rb +0 -330
- data/spec/functional/resource/group_spec.rb +0 -486
- data/spec/functional/resource/ifconfig_spec.rb +0 -178
- data/spec/functional/resource/insserv_spec.rb +0 -206
- data/spec/functional/resource/launchd_spec.rb +0 -232
- data/spec/functional/resource/link_spec.rb +0 -704
- data/spec/functional/resource/locale_spec.rb +0 -108
- data/spec/functional/resource/macos_userdefaults_spec.rb +0 -139
- data/spec/functional/resource/mount_spec.rb +0 -219
- data/spec/functional/resource/msu_package_spec.rb +0 -107
- data/spec/functional/resource/ohai_spec.rb +0 -54
- data/spec/functional/resource/plist_spec.rb +0 -25
- data/spec/functional/resource/powershell_package_source_spec.rb +0 -106
- data/spec/functional/resource/powershell_script_spec.rb +0 -588
- data/spec/functional/resource/reboot_spec.rb +0 -103
- data/spec/functional/resource/registry_spec.rb +0 -300
- data/spec/functional/resource/remote_directory_spec.rb +0 -220
- data/spec/functional/resource/remote_file_spec.rb +0 -418
- data/spec/functional/resource/rpm_spec.rb +0 -120
- data/spec/functional/resource/template_spec.rb +0 -245
- data/spec/functional/resource/timezone_spec.rb +0 -41
- data/spec/functional/resource/user/linux_user_spec.rb +0 -127
- data/spec/functional/resource/user/mac_user_spec.rb +0 -207
- data/spec/functional/resource/user/windows_spec.rb +0 -245
- data/spec/functional/resource/windows_certificate_spec.rb +0 -401
- data/spec/functional/resource/windows_env_spec.rb +0 -285
- data/spec/functional/resource/windows_firewall_rule_spec.rb +0 -93
- data/spec/functional/resource/windows_font_spec.rb +0 -52
- data/spec/functional/resource/windows_hostname_spec.rb +0 -91
- data/spec/functional/resource/windows_package_spec.rb +0 -193
- data/spec/functional/resource/windows_pagefile_spec.rb +0 -125
- data/spec/functional/resource/windows_path_spec.rb +0 -68
- data/spec/functional/resource/windows_security_policy_spec.rb +0 -86
- data/spec/functional/resource/windows_share_spec.rb +0 -103
- data/spec/functional/resource/windows_task_spec.rb +0 -1969
- data/spec/functional/resource/windows_user_privilege_spec.rb +0 -192
- data/spec/functional/resource/yum_package_spec.rb +0 -1739
- data/spec/functional/resource/zypper_package_spec.rb +0 -276
- data/spec/functional/root_alias_spec.rb +0 -78
- data/spec/functional/run_lock_spec.rb +0 -481
- data/spec/functional/shell_spec.rb +0 -149
- data/spec/functional/tiny_server_spec.rb +0 -79
- data/spec/functional/util/path_helper_spec.rb +0 -37
- data/spec/functional/version_spec.rb +0 -36
- data/spec/functional/win32/crypto_spec.rb +0 -54
- data/spec/functional/win32/registry_spec.rb +0 -618
- data/spec/functional/win32/security_spec.rb +0 -233
- data/spec/functional/win32/sid_spec.rb +0 -55
- data/spec/functional/win32/version_info_spec.rb +0 -50
- data/spec/functional/win32/versions_spec.rb +0 -115
- data/spec/integration/client/client_spec.rb +0 -963
- data/spec/integration/client/exit_code_spec.rb +0 -116
- data/spec/integration/client/fips_spec.rb +0 -29
- data/spec/integration/client/ipv6_spec.rb +0 -135
- data/spec/integration/client/open_ssl_spec.rb +0 -25
- data/spec/integration/compliance/compliance_spec.rb +0 -143
- data/spec/integration/ohai/ohai_spec.rb +0 -62
- data/spec/integration/recipes/accumulator_spec.rb +0 -245
- data/spec/integration/recipes/lwrp_inline_resources_spec.rb +0 -176
- data/spec/integration/recipes/lwrp_spec.rb +0 -56
- data/spec/integration/recipes/noop_resource_spec.rb +0 -24
- data/spec/integration/recipes/notifies_spec.rb +0 -438
- data/spec/integration/recipes/notifying_block_spec.rb +0 -116
- data/spec/integration/recipes/provider_choice.rb +0 -38
- data/spec/integration/recipes/recipe_dsl_spec.rb +0 -1281
- data/spec/integration/recipes/remote_directory.rb +0 -74
- data/spec/integration/recipes/resource_action_spec.rb +0 -524
- data/spec/integration/recipes/resource_converge_if_changed_spec.rb +0 -554
- data/spec/integration/recipes/resource_load_spec.rb +0 -315
- data/spec/integration/recipes/unified_mode_spec.rb +0 -947
- data/spec/integration/recipes/use_partial_spec.rb +0 -116
- data/spec/integration/solo/solo_spec.rb +0 -219
- data/spec/rcov.opts +0 -2
- data/spec/spec_helper.rb +0 -350
- data/spec/stress/win32/file_spec.rb +0 -37
- data/spec/stress/win32/memory_spec.rb +0 -22
- data/spec/stress/win32/security_spec.rb +0 -69
- data/spec/support/chef_helpers.rb +0 -79
- data/spec/support/key_helpers.rb +0 -102
- data/spec/support/lib/chef/provider/easy.rb +0 -35
- data/spec/support/lib/chef/provider/openldap_includer.rb +0 -29
- data/spec/support/lib/chef/provider/snakeoil.rb +0 -42
- data/spec/support/lib/chef/resource/cat.rb +0 -39
- data/spec/support/lib/chef/resource/one_two_three_four.rb +0 -36
- data/spec/support/lib/chef/resource/openldap_includer.rb +0 -28
- data/spec/support/lib/chef/resource/with_state.rb +0 -29
- data/spec/support/lib/chef/resource/zen_follower.rb +0 -36
- data/spec/support/lib/chef/resource/zen_master.rb +0 -39
- data/spec/support/lib/library_load_order.rb +0 -20
- data/spec/support/matchers/leak.rb +0 -96
- data/spec/support/mock/platform.rb +0 -33
- data/spec/support/platform_helpers.rb +0 -284
- data/spec/support/platforms/prof/gc.rb +0 -51
- data/spec/support/platforms/prof/win32.rb +0 -45
- data/spec/support/platforms/win32/spec_service.rb +0 -57
- data/spec/support/recipe_dsl_helper.rb +0 -83
- data/spec/support/ruby_installer.rb +0 -51
- data/spec/support/shared/context/config.rb +0 -18
- data/spec/support/shared/context/win32.rb +0 -34
- data/spec/support/shared/functional/diff_disabled.rb +0 -10
- data/spec/support/shared/functional/directory_resource.rb +0 -178
- data/spec/support/shared/functional/execute_resource.rb +0 -150
- data/spec/support/shared/functional/file_resource.rb +0 -1047
- data/spec/support/shared/functional/http.rb +0 -224
- data/spec/support/shared/functional/knife.rb +0 -37
- data/spec/support/shared/functional/securable_resource.rb +0 -654
- data/spec/support/shared/functional/securable_resource_with_reporting.rb +0 -393
- data/spec/support/shared/functional/windows_script.rb +0 -260
- data/spec/support/shared/integration/integration_helper.rb +0 -122
- data/spec/support/shared/integration/knife_support.rb +0 -192
- data/spec/support/shared/matchers/exit_with_code.rb +0 -32
- data/spec/support/shared/matchers/match_environment_variable.rb +0 -17
- data/spec/support/shared/shared_examples.rb +0 -14
- data/spec/support/shared/unit/api_error_inspector.rb +0 -190
- data/spec/support/shared/unit/api_versioning.rb +0 -77
- data/spec/support/shared/unit/application_dot_d.rb +0 -82
- data/spec/support/shared/unit/execute_resource.rb +0 -166
- data/spec/support/shared/unit/file_system_support.rb +0 -70
- data/spec/support/shared/unit/knife_shared.rb +0 -39
- data/spec/support/shared/unit/mock_shellout.rb +0 -49
- data/spec/support/shared/unit/platform_introspector.rb +0 -189
- data/spec/support/shared/unit/provider/file.rb +0 -877
- data/spec/support/shared/unit/provider/package/package_shared.rb +0 -95
- data/spec/support/shared/unit/provider/useradd_based_user_provider.rb +0 -410
- data/spec/support/shared/unit/resource/static_provider_resolution.rb +0 -63
- data/spec/support/shared/unit/script_resource.rb +0 -74
- data/spec/support/shared/unit/user_and_client_shared.rb +0 -114
- data/spec/support/shared/unit/windows_script_resource.rb +0 -65
- data/spec/tiny_server.rb +0 -193
- data/spec/unit/action_collection_spec.rb +0 -19
- data/spec/unit/api_client/registration_spec.rb +0 -278
- data/spec/unit/api_client_spec.rb +0 -341
- data/spec/unit/api_client_v1_spec.rb +0 -455
- data/spec/unit/application/agent_spec.rb +0 -0
- data/spec/unit/application/apply_spec.rb +0 -116
- data/spec/unit/application/base_spec.rb +0 -40
- data/spec/unit/application/client_spec.rb +0 -588
- data/spec/unit/application/exit_code_spec.rb +0 -145
- data/spec/unit/application/server_spec.rb +0 -0
- data/spec/unit/application/solo_spec.rb +0 -218
- data/spec/unit/application_spec.rb +0 -587
- data/spec/unit/chef_class_spec.rb +0 -240
- data/spec/unit/chef_fs/config_spec.rb +0 -235
- data/spec/unit/chef_fs/data_handler/data_bag_item_data_handler.rb +0 -82
- data/spec/unit/chef_fs/data_handler/data_handler_base_spec.rb +0 -65
- data/spec/unit/chef_fs/data_handler/group_handler_spec.rb +0 -63
- data/spec/unit/chef_fs/diff_spec.rb +0 -328
- data/spec/unit/chef_fs/file_pattern_spec.rb +0 -512
- data/spec/unit/chef_fs/file_system/cookbook_subdir_spec.rb +0 -34
- data/spec/unit/chef_fs/file_system/operation_failed_error_spec.rb +0 -45
- data/spec/unit/chef_fs/file_system/repository/base_file_spec.rb +0 -126
- data/spec/unit/chef_fs/file_system/repository/directory_spec.rb +0 -175
- data/spec/unit/chef_fs/file_system_spec.rb +0 -150
- data/spec/unit/chef_fs/path_util_spec.rb +0 -108
- data/spec/unit/chef_spec.rb +0 -25
- data/spec/unit/client_spec.rb +0 -881
- data/spec/unit/compliance/fetcher/automate_spec.rb +0 -126
- data/spec/unit/compliance/fetcher/chef_server_spec.rb +0 -93
- data/spec/unit/compliance/input_spec.rb +0 -104
- data/spec/unit/compliance/profile_spec.rb +0 -120
- data/spec/unit/compliance/reporter/automate_spec.rb +0 -451
- data/spec/unit/compliance/reporter/chef_server_automate_spec.rb +0 -197
- data/spec/unit/compliance/reporter/compliance_enforcer_spec.rb +0 -49
- data/spec/unit/compliance/runner_spec.rb +0 -354
- data/spec/unit/compliance/waiver_spec.rb +0 -104
- data/spec/unit/config_fetcher_spec.rb +0 -125
- data/spec/unit/config_spec.rb +0 -31
- data/spec/unit/cookbook/chefignore_spec.rb +0 -69
- data/spec/unit/cookbook/cookbook_version_loader_spec.rb +0 -213
- data/spec/unit/cookbook/file_vendor_spec.rb +0 -123
- data/spec/unit/cookbook/gem_installer_spec.rb +0 -114
- data/spec/unit/cookbook/manifest_v0_spec.rb +0 -133
- data/spec/unit/cookbook/manifest_v2_spec.rb +0 -70
- data/spec/unit/cookbook/metadata_spec.rb +0 -610
- data/spec/unit/cookbook/synchronizer_spec.rb +0 -560
- data/spec/unit/cookbook/syntax_check_spec.rb +0 -229
- data/spec/unit/cookbook_loader_spec.rb +0 -265
- data/spec/unit/cookbook_manifest_spec.rb +0 -228
- data/spec/unit/cookbook_spec.rb +0 -62
- data/spec/unit/cookbook_uploader_spec.rb +0 -205
- data/spec/unit/cookbook_version_file_specificity_spec.rb +0 -623
- data/spec/unit/cookbook_version_spec.rb +0 -341
- data/spec/unit/daemon_spec.rb +0 -179
- data/spec/unit/data_bag_item_spec.rb +0 -387
- data/spec/unit/data_bag_spec.rb +0 -263
- data/spec/unit/data_collector/config_validation_spec.rb +0 -208
- data/spec/unit/data_collector_spec.rb +0 -1076
- data/spec/unit/decorator/lazy_array_spec.rb +0 -58
- data/spec/unit/decorator/lazy_spec.rb +0 -39
- data/spec/unit/decorator_spec.rb +0 -142
- data/spec/unit/delayed_evaluator_spec.rb +0 -35
- data/spec/unit/deprecated_spec.rb +0 -65
- data/spec/unit/deprecation_spec.rb +0 -129
- data/spec/unit/digester_spec.rb +0 -49
- data/spec/unit/dsl/data_query_spec.rb +0 -108
- data/spec/unit/dsl/declare_resource_spec.rb +0 -374
- data/spec/unit/dsl/platform_introspection_spec.rb +0 -160
- data/spec/unit/dsl/reboot_pending_spec.rb +0 -87
- data/spec/unit/dsl/recipe_spec.rb +0 -76
- data/spec/unit/dsl/registry_helper_spec.rb +0 -52
- data/spec/unit/dsl/render_helpers_spec.rb +0 -102
- data/spec/unit/dsl/resources_spec.rb +0 -85
- data/spec/unit/dsl/secret_spec.rb +0 -175
- data/spec/unit/encrypted_data_bag_item/check_encrypted_spec.rb +0 -97
- data/spec/unit/encrypted_data_bag_item_spec.rb +0 -439
- data/spec/unit/environment_spec.rb +0 -476
- data/spec/unit/event_dispatch/dispatcher_spec.rb +0 -172
- data/spec/unit/event_dispatch/dsl_spec.rb +0 -83
- data/spec/unit/exceptions_spec.rb +0 -132
- data/spec/unit/file_access_control_spec.rb +0 -308
- data/spec/unit/file_cache_spec.rb +0 -178
- data/spec/unit/file_content_management/deploy/cp_spec.rb +0 -44
- data/spec/unit/file_content_management/deploy/mv_unix_spec.rb +0 -113
- data/spec/unit/file_content_management/deploy/mv_windows_spec.rb +0 -232
- data/spec/unit/file_content_management/tempfile_spec.rb +0 -115
- data/spec/unit/formatters/base_spec.rb +0 -100
- data/spec/unit/formatters/doc_spec.rb +0 -110
- data/spec/unit/formatters/error_description_spec.rb +0 -141
- data/spec/unit/formatters/error_inspectors/api_error_formatting_spec.rb +0 -76
- data/spec/unit/formatters/error_inspectors/compile_error_inspector_spec.rb +0 -265
- data/spec/unit/formatters/error_inspectors/cookbook_resolve_error_inspector_spec.rb +0 -126
- data/spec/unit/formatters/error_inspectors/cookbook_sync_error_inspector_spec.rb +0 -43
- data/spec/unit/formatters/error_inspectors/node_load_error_inspector_spec.rb +0 -26
- data/spec/unit/formatters/error_inspectors/registration_error_inspector_spec.rb +0 -26
- data/spec/unit/formatters/error_inspectors/resource_failure_inspector_spec.rb +0 -191
- data/spec/unit/formatters/error_inspectors/run_list_expansion_error_inspector_spec.rb +0 -91
- data/spec/unit/guard_interpreter/resource_guard_interpreter_spec.rb +0 -155
- data/spec/unit/guard_interpreter_spec.rb +0 -41
- data/spec/unit/handler/json_file_spec.rb +0 -63
- data/spec/unit/handler_spec.rb +0 -308
- data/spec/unit/http/api_versions_spec.rb +0 -100
- data/spec/unit/http/authenticator_spec.rb +0 -247
- data/spec/unit/http/basic_client_spec.rb +0 -102
- data/spec/unit/http/http_request_spec.rb +0 -97
- data/spec/unit/http/json_input_spec.rb +0 -128
- data/spec/unit/http/simple_spec.rb +0 -32
- data/spec/unit/http/socketless_chef_zero_client_spec.rb +0 -174
- data/spec/unit/http/ssl_policies_spec.rb +0 -228
- data/spec/unit/http/validate_content_length_spec.rb +0 -207
- data/spec/unit/http_spec.rb +0 -235
- data/spec/unit/json_compat_spec.rb +0 -73
- data/spec/unit/key_spec.rb +0 -631
- data/spec/unit/log/syslog_spec.rb +0 -47
- data/spec/unit/log/winevt_spec.rb +0 -62
- data/spec/unit/lwrp_spec.rb +0 -693
- data/spec/unit/mixin/api_version_request_handling_spec.rb +0 -126
- data/spec/unit/mixin/checksum_spec.rb +0 -82
- data/spec/unit/mixin/convert_to_class_name_spec.rb +0 -54
- data/spec/unit/mixin/deep_merge_spec.rb +0 -357
- data/spec/unit/mixin/default_paths_spec.rb +0 -92
- data/spec/unit/mixin/deprecation_spec.rb +0 -57
- data/spec/unit/mixin/enforce_ownership_and_permissions_spec.rb +0 -96
- data/spec/unit/mixin/homebrew_spec.rb +0 -118
- data/spec/unit/mixin/lazy_module_include.rb +0 -71
- data/spec/unit/mixin/openssl_helper_spec.rb +0 -897
- data/spec/unit/mixin/params_validate_spec.rb +0 -422
- data/spec/unit/mixin/powershell_exec_spec.rb +0 -90
- data/spec/unit/mixin/powershell_out_spec.rb +0 -106
- data/spec/unit/mixin/powershell_type_coercions_spec.rb +0 -84
- data/spec/unit/mixin/properties_spec.rb +0 -107
- data/spec/unit/mixin/proxified_socket_spec.rb +0 -97
- data/spec/unit/mixin/securable_spec.rb +0 -313
- data/spec/unit/mixin/shell_out_spec.rb +0 -308
- data/spec/unit/mixin/subclass_directive_spec.rb +0 -45
- data/spec/unit/mixin/template_spec.rb +0 -317
- data/spec/unit/mixin/unformatter_spec.rb +0 -60
- data/spec/unit/mixin/uris_spec.rb +0 -57
- data/spec/unit/mixin/user_context_spec.rb +0 -99
- data/spec/unit/mixin/versioned_api_spec.rb +0 -128
- data/spec/unit/mixin/which.rb +0 -170
- data/spec/unit/mixin/why_run_spec.rb +0 -53
- data/spec/unit/mixin/windows_architecture_helper_spec.rb +0 -85
- data/spec/unit/mixin/xml_escape_spec.rb +0 -54
- data/spec/unit/monologger_spec.rb +0 -45
- data/spec/unit/node/attribute_spec.rb +0 -1322
- data/spec/unit/node/immutable_collections_spec.rb +0 -258
- data/spec/unit/node/vivid_mash_spec.rb +0 -500
- data/spec/unit/node_map_spec.rb +0 -276
- data/spec/unit/node_spec.rb +0 -2038
- data/spec/unit/org_group_spec.rb +0 -45
- data/spec/unit/org_spec.rb +0 -196
- data/spec/unit/platform/query_helpers_spec.rb +0 -48
- data/spec/unit/policy_builder/dynamic_spec.rb +0 -256
- data/spec/unit/policy_builder/expand_node_object_spec.rb +0 -311
- data/spec/unit/policy_builder/policyfile_spec.rb +0 -960
- data/spec/unit/policy_builder_spec.rb +0 -26
- data/spec/unit/property/state_spec.rb +0 -514
- data/spec/unit/property/validation_spec.rb +0 -813
- data/spec/unit/property_spec.rb +0 -1329
- data/spec/unit/provider/apt_preference_spec.rb +0 -91
- data/spec/unit/provider/apt_repository_spec.rb +0 -370
- data/spec/unit/provider/apt_update_spec.rb +0 -119
- data/spec/unit/provider/batch_spec.rb +0 -130
- data/spec/unit/provider/cookbook_file/content_spec.rb +0 -39
- data/spec/unit/provider/cookbook_file_spec.rb +0 -59
- data/spec/unit/provider/cron/unix_spec.rb +0 -144
- data/spec/unit/provider/cron_spec.rb +0 -1252
- data/spec/unit/provider/directory_spec.rb +0 -289
- data/spec/unit/provider/dsc_resource_spec.rb +0 -313
- data/spec/unit/provider/dsc_script_spec.rb +0 -173
- data/spec/unit/provider/execute_spec.rb +0 -244
- data/spec/unit/provider/file/content_spec.rb +0 -114
- data/spec/unit/provider/file_spec.rb +0 -58
- data/spec/unit/provider/git_spec.rb +0 -822
- data/spec/unit/provider/group/dscl_spec.rb +0 -339
- data/spec/unit/provider/group/gpasswd_spec.rb +0 -119
- data/spec/unit/provider/group/groupadd_spec.rb +0 -195
- data/spec/unit/provider/group/groupmod_spec.rb +0 -136
- data/spec/unit/provider/group/pw_spec.rb +0 -141
- data/spec/unit/provider/group/solaris_spec.rb +0 -106
- data/spec/unit/provider/group/usermod_spec.rb +0 -112
- data/spec/unit/provider/group/windows_spec.rb +0 -130
- data/spec/unit/provider/group_spec.rb +0 -285
- data/spec/unit/provider/http_request_spec.rb +0 -147
- data/spec/unit/provider/ifconfig/aix_spec.rb +0 -180
- data/spec/unit/provider/ifconfig/debian_spec.rb +0 -332
- data/spec/unit/provider/ifconfig/redhat_spec.rb +0 -83
- data/spec/unit/provider/ifconfig_spec.rb +0 -247
- data/spec/unit/provider/launchd_spec.rb +0 -234
- data/spec/unit/provider/link_spec.rb +0 -425
- data/spec/unit/provider/log_spec.rb +0 -94
- data/spec/unit/provider/mdadm_spec.rb +0 -138
- data/spec/unit/provider/mount/aix_spec.rb +0 -277
- data/spec/unit/provider/mount/linux_spec.rb +0 -131
- data/spec/unit/provider/mount/mount_spec.rb +0 -590
- data/spec/unit/provider/mount/solaris_spec.rb +0 -822
- data/spec/unit/provider/mount/windows_spec.rb +0 -150
- data/spec/unit/provider/mount_spec.rb +0 -222
- data/spec/unit/provider/package/apt_spec.rb +0 -703
- data/spec/unit/provider/package/bff_spec.rb +0 -188
- data/spec/unit/provider/package/cab_spec.rb +0 -272
- data/spec/unit/provider/package/chocolatey_spec.rb +0 -574
- data/spec/unit/provider/package/deb_spec.rb +0 -135
- data/spec/unit/provider/package/dnf/python_helper_spec.rb +0 -36
- data/spec/unit/provider/package/dpkg_spec.rb +0 -314
- data/spec/unit/provider/package/freebsd/pkgng_spec.rb +0 -147
- data/spec/unit/provider/package/freebsd/port_spec.rb +0 -151
- data/spec/unit/provider/package/homebrew_spec.rb +0 -402
- data/spec/unit/provider/package/ips_spec.rb +0 -233
- data/spec/unit/provider/package/macports_spec.rb +0 -203
- data/spec/unit/provider/package/msu_spec.rb +0 -283
- data/spec/unit/provider/package/openbsd_spec.rb +0 -136
- data/spec/unit/provider/package/pacman_spec.rb +0 -109
- data/spec/unit/provider/package/paludis_spec.rb +0 -134
- data/spec/unit/provider/package/portage_spec.rb +0 -179
- data/spec/unit/provider/package/powershell_spec.rb +0 -565
- data/spec/unit/provider/package/rpm_spec.rb +0 -440
- data/spec/unit/provider/package/rubygems_spec.rb +0 -1187
- data/spec/unit/provider/package/smartos_spec.rb +0 -110
- data/spec/unit/provider/package/snap_spec.rb +0 -208
- data/spec/unit/provider/package/solaris_spec.rb +0 -168
- data/spec/unit/provider/package/windows/exe_spec.rb +0 -201
- data/spec/unit/provider/package/windows/msi_spec.rb +0 -168
- data/spec/unit/provider/package/windows/registry_uninstall_entry_spec.rb +0 -78
- data/spec/unit/provider/package/windows_spec.rb +0 -441
- data/spec/unit/provider/package/yum/python_helper_spec.rb +0 -30
- data/spec/unit/provider/package/yum/yum_cache_spec.rb +0 -109
- data/spec/unit/provider/package/zypper_spec.rb +0 -494
- data/spec/unit/provider/package_spec.rb +0 -791
- data/spec/unit/provider/powershell_script_spec.rb +0 -157
- data/spec/unit/provider/registry_key_spec.rb +0 -487
- data/spec/unit/provider/remote_directory_spec.rb +0 -236
- data/spec/unit/provider/remote_file/cache_control_data_spec.rb +0 -245
- data/spec/unit/provider/remote_file/content_spec.rb +0 -253
- data/spec/unit/provider/remote_file/fetcher_spec.rb +0 -95
- data/spec/unit/provider/remote_file/ftp_spec.rb +0 -217
- data/spec/unit/provider/remote_file/http_spec.rb +0 -334
- data/spec/unit/provider/remote_file/local_file_spec.rb +0 -105
- data/spec/unit/provider/remote_file/network_file_spec.rb +0 -50
- data/spec/unit/provider/remote_file/sftp_spec.rb +0 -150
- data/spec/unit/provider/remote_file_spec.rb +0 -61
- data/spec/unit/provider/route_spec.rb +0 -268
- data/spec/unit/provider/ruby_block_spec.rb +0 -45
- data/spec/unit/provider/script_spec.rb +0 -67
- data/spec/unit/provider/service/aix_service_spec.rb +0 -195
- data/spec/unit/provider/service/aixinit_service_spec.rb +0 -272
- data/spec/unit/provider/service/arch_service_spec.rb +0 -326
- data/spec/unit/provider/service/debian_service_spec.rb +0 -273
- data/spec/unit/provider/service/freebsd_service_spec.rb +0 -621
- data/spec/unit/provider/service/gentoo_service_spec.rb +0 -145
- data/spec/unit/provider/service/init_service_spec.rb +0 -235
- data/spec/unit/provider/service/insserv_service_spec.rb +0 -75
- data/spec/unit/provider/service/invokercd_service_spec.rb +0 -211
- data/spec/unit/provider/service/macosx_spec.rb +0 -337
- data/spec/unit/provider/service/openbsd_service_spec.rb +0 -553
- data/spec/unit/provider/service/redhat_spec.rb +0 -253
- data/spec/unit/provider/service/simple_service_spec.rb +0 -171
- data/spec/unit/provider/service/solaris_smf_service_spec.rb +0 -292
- data/spec/unit/provider/service/systemd_service_spec.rb +0 -504
- data/spec/unit/provider/service/upstart_service_spec.rb +0 -322
- data/spec/unit/provider/service/windows_spec.rb +0 -986
- data/spec/unit/provider/service_spec.rb +0 -168
- data/spec/unit/provider/subversion_spec.rb +0 -364
- data/spec/unit/provider/systemd_unit_spec.rb +0 -1039
- data/spec/unit/provider/template/content_spec.rb +0 -169
- data/spec/unit/provider/template_spec.rb +0 -86
- data/spec/unit/provider/user/aix_spec.rb +0 -96
- data/spec/unit/provider/user/linux_spec.rb +0 -178
- data/spec/unit/provider/user/mac_spec.rb +0 -38
- data/spec/unit/provider/user/pw_spec.rb +0 -235
- data/spec/unit/provider/user/solaris_spec.rb +0 -177
- data/spec/unit/provider/user/windows_spec.rb +0 -198
- data/spec/unit/provider/user_spec.rb +0 -520
- data/spec/unit/provider/whyrun_safe_ruby_block_spec.rb +0 -46
- data/spec/unit/provider/windows_env_spec.rb +0 -385
- data/spec/unit/provider/windows_path_spec.rb +0 -60
- data/spec/unit/provider/windows_task_spec.rb +0 -436
- data/spec/unit/provider/yum_repository_spec.rb +0 -35
- data/spec/unit/provider/zypper_repository_spec.rb +0 -169
- data/spec/unit/provider_spec.rb +0 -215
- data/spec/unit/pure_application_spec.rb +0 -32
- data/spec/unit/recipe_spec.rb +0 -703
- data/spec/unit/resource/alternatives_spec.rb +0 -120
- data/spec/unit/resource/apt_package_spec.rb +0 -71
- data/spec/unit/resource/apt_preference_spec.rb +0 -39
- data/spec/unit/resource/apt_repository_spec.rb +0 -79
- data/spec/unit/resource/apt_update_spec.rb +0 -44
- data/spec/unit/resource/archive_file_spec.rb +0 -466
- data/spec/unit/resource/bash_spec.rb +0 -45
- data/spec/unit/resource/batch_spec.rb +0 -46
- data/spec/unit/resource/bff_package_spec.rb +0 -51
- data/spec/unit/resource/breakpoint_spec.rb +0 -64
- data/spec/unit/resource/build_essential_spec.rb +0 -77
- data/spec/unit/resource/cab_package_spec.rb +0 -64
- data/spec/unit/resource/chef_client_config_spec.rb +0 -145
- data/spec/unit/resource/chef_client_cron_spec.rb +0 -161
- data/spec/unit/resource/chef_client_launchd_spec.rb +0 -132
- data/spec/unit/resource/chef_client_scheduled_task_spec.rb +0 -186
- data/spec/unit/resource/chef_client_systemd_timer_spec.rb +0 -108
- data/spec/unit/resource/chef_client_trusted_certificate_spec.rb +0 -68
- data/spec/unit/resource/chef_gem_spec.rb +0 -122
- data/spec/unit/resource/chef_handler_spec.rb +0 -40
- data/spec/unit/resource/chef_sleep_spec.rb +0 -30
- data/spec/unit/resource/chef_vault_secret_spec.rb +0 -40
- data/spec/unit/resource/chocolatey_config_spec.rb +0 -93
- data/spec/unit/resource/chocolatey_feature_spec.rb +0 -89
- data/spec/unit/resource/chocolatey_installer_spec.rb +0 -151
- data/spec/unit/resource/chocolatey_package_spec.rb +0 -106
- data/spec/unit/resource/chocolatey_source_spec.rb +0 -151
- data/spec/unit/resource/conditional_action_not_nothing_spec.rb +0 -45
- data/spec/unit/resource/conditional_spec.rb +0 -254
- data/spec/unit/resource/cookbook_file_spec.rb +0 -93
- data/spec/unit/resource/cron_access_spec.rb +0 -36
- data/spec/unit/resource/cron_d_spec.rb +0 -84
- data/spec/unit/resource/cron_spec.rb +0 -167
- data/spec/unit/resource/csh_spec.rb +0 -45
- data/spec/unit/resource/directory_spec.rb +0 -69
- data/spec/unit/resource/dmg_package_spec.rb +0 -39
- data/spec/unit/resource/dnf_package_spec.rb +0 -114
- data/spec/unit/resource/dpkg_package_spec.rb +0 -72
- data/spec/unit/resource/dsc_resource_spec.rb +0 -102
- data/spec/unit/resource/dsc_script_spec.rb +0 -134
- data/spec/unit/resource/execute_spec.rb +0 -282
- data/spec/unit/resource/file/verification/json_spec.rb +0 -72
- data/spec/unit/resource/file/verification/systemd_unit_spec.rb +0 -103
- data/spec/unit/resource/file/verification/yaml_spec.rb +0 -67
- data/spec/unit/resource/file/verification_spec.rb +0 -147
- data/spec/unit/resource/file_spec.rb +0 -127
- data/spec/unit/resource/freebsd_package_spec.rb +0 -77
- data/spec/unit/resource/gem_package_spec.rb +0 -67
- data/spec/unit/resource/group_spec.rb +0 -165
- data/spec/unit/resource/helpers/cron_validations_spec.rb +0 -81
- data/spec/unit/resource/homebrew_cask_spec.rb +0 -58
- data/spec/unit/resource/homebrew_package_spec.rb +0 -68
- data/spec/unit/resource/homebrew_tap_spec.rb +0 -44
- data/spec/unit/resource/homebrew_update_spec.rb +0 -30
- data/spec/unit/resource/hostname_spec.rb +0 -47
- data/spec/unit/resource/http_request_spec.rb +0 -65
- data/spec/unit/resource/ifconfig_spec.rb +0 -101
- data/spec/unit/resource/inspec_input_spec.rb +0 -300
- data/spec/unit/resource/inspec_waiver_file_entry_spec.rb +0 -80
- data/spec/unit/resource/inspec_waiver_spec.rb +0 -312
- data/spec/unit/resource/ips_package_spec.rb +0 -54
- data/spec/unit/resource/kernel_module_spec.rb +0 -45
- data/spec/unit/resource/ksh_spec.rb +0 -45
- data/spec/unit/resource/launchd_spec.rb +0 -48
- data/spec/unit/resource/link_spec.rb +0 -120
- data/spec/unit/resource/locale_spec.rb +0 -189
- data/spec/unit/resource/log_spec.rb +0 -64
- data/spec/unit/resource/macos_pkg_spec.rb +0 -38
- data/spec/unit/resource/macos_user_defaults_spec.rb +0 -76
- data/spec/unit/resource/macosx_service.rb +0 -37
- data/spec/unit/resource/macports_package_spec.rb +0 -51
- data/spec/unit/resource/mdadm_spec.rb +0 -104
- data/spec/unit/resource/mount_spec.rb +0 -201
- data/spec/unit/resource/msu_package_spec.rb +0 -67
- data/spec/unit/resource/notify_group_spec.rb +0 -34
- data/spec/unit/resource/ohai_hint_spec.rb +0 -44
- data/spec/unit/resource/ohai_spec.rb +0 -185
- data/spec/unit/resource/openbsd_package_spec.rb +0 -58
- data/spec/unit/resource/openssl_dhparam_spec.rb +0 -61
- data/spec/unit/resource/openssl_ec_private_key_spec.rb +0 -64
- data/spec/unit/resource/openssl_ec_public_key_spec.rb +0 -43
- data/spec/unit/resource/openssl_rsa_private_key_spec.rb +0 -64
- data/spec/unit/resource/openssl_rsa_public_key_spec.rb +0 -43
- data/spec/unit/resource/openssl_x509_certificate_spec.rb +0 -72
- data/spec/unit/resource/openssl_x509_crl_spec.rb +0 -61
- data/spec/unit/resource/openssl_x509_request.rb +0 -68
- data/spec/unit/resource/osx_profile_spec.rb +0 -360
- data/spec/unit/resource/package_spec.rb +0 -98
- data/spec/unit/resource/pacman_package_spec.rb +0 -46
- data/spec/unit/resource/paludis_package_spec.rb +0 -36
- data/spec/unit/resource/perl_spec.rb +0 -44
- data/spec/unit/resource/plist_spec.rb +0 -130
- data/spec/unit/resource/portage_package_spec.rb +0 -46
- data/spec/unit/resource/powershell_package_source_spec.rb +0 -220
- data/spec/unit/resource/powershell_package_spec.rb +0 -98
- data/spec/unit/resource/powershell_script_spec.rb +0 -65
- data/spec/unit/resource/python_spec.rb +0 -40
- data/spec/unit/resource/reboot_spec.rb +0 -47
- data/spec/unit/resource/registry_key_spec.rb +0 -215
- data/spec/unit/resource/remote_directory_spec.rb +0 -118
- data/spec/unit/resource/remote_file_spec.rb +0 -220
- data/spec/unit/resource/resource_notification_spec.rb +0 -169
- data/spec/unit/resource/rest_resource_spec.rb +0 -381
- data/spec/unit/resource/rhsm_errata_level_spec.rb +0 -50
- data/spec/unit/resource/rhsm_errata_spec.rb +0 -39
- data/spec/unit/resource/rhsm_register_spec.rb +0 -308
- data/spec/unit/resource/rhsm_repo_spec.rb +0 -70
- data/spec/unit/resource/rhsm_subscription_spec.rb +0 -145
- data/spec/unit/resource/route_spec.rb +0 -100
- data/spec/unit/resource/rpm_package_spec.rb +0 -62
- data/spec/unit/resource/ruby_block_spec.rb +0 -58
- data/spec/unit/resource/ruby_spec.rb +0 -39
- data/spec/unit/resource/scm/git_spec.rb +0 -110
- data/spec/unit/resource/scm/scm.rb +0 -122
- data/spec/unit/resource/scm/subversion_spec.rb +0 -90
- data/spec/unit/resource/script_spec.rb +0 -57
- data/spec/unit/resource/selinux_boolean_spec.rb +0 -92
- data/spec/unit/resource/selinux_fcontext_spec.rb +0 -65
- data/spec/unit/resource/selinux_install_spec.rb +0 -60
- data/spec/unit/resource/selinux_login_spec.rb +0 -73
- data/spec/unit/resource/selinux_module_spec.rb +0 -55
- data/spec/unit/resource/selinux_permissive_spec.rb +0 -39
- data/spec/unit/resource/selinux_port_spec.rb +0 -42
- data/spec/unit/resource/selinux_state_spec.rb +0 -46
- data/spec/unit/resource/selinux_user_spec.rb +0 -92
- data/spec/unit/resource/service_spec.rb +0 -203
- data/spec/unit/resource/smartos_package_spec.rb +0 -52
- data/spec/unit/resource/snap_package_spec.rb +0 -60
- data/spec/unit/resource/solaris_package_spec.rb +0 -52
- data/spec/unit/resource/ssh_known_hosts_entry_spec.rb +0 -50
- data/spec/unit/resource/sudo_spec.rb +0 -99
- data/spec/unit/resource/swap_file_spec.rb +0 -39
- data/spec/unit/resource/sysctl_spec.rb +0 -76
- data/spec/unit/resource/systemd_unit_spec.rb +0 -130
- data/spec/unit/resource/template_spec.rb +0 -222
- data/spec/unit/resource/timezone_spec.rb +0 -102
- data/spec/unit/resource/user/linux_user_spec.rb +0 -42
- data/spec/unit/resource/user/windows_user_spec.rb +0 -36
- data/spec/unit/resource/user_spec.rb +0 -121
- data/spec/unit/resource/user_ulimit_spec.rb +0 -66
- data/spec/unit/resource/windows_ad_join_spec.rb +0 -55
- data/spec/unit/resource/windows_audit_policy_spec.rb +0 -64
- data/spec/unit/resource/windows_auto_run_spec.rb +0 -50
- data/spec/unit/resource/windows_certificate_spec.rb +0 -95
- data/spec/unit/resource/windows_defender_exclusion_spec.rb +0 -62
- data/spec/unit/resource/windows_defender_spec.rb +0 -71
- data/spec/unit/resource/windows_dfs_folder_spec.rb +0 -39
- data/spec/unit/resource/windows_dfs_namespace_spec.rb +0 -39
- data/spec/unit/resource/windows_dfs_server_spec.rb +0 -34
- data/spec/unit/resource/windows_dns_record_spec.rb +0 -55
- data/spec/unit/resource/windows_dns_zone_spec.rb +0 -51
- data/spec/unit/resource/windows_env_spec.rb +0 -75
- data/spec/unit/resource/windows_feature_dism_spec.rb +0 -57
- data/spec/unit/resource/windows_feature_powershell_spec.rb +0 -83
- data/spec/unit/resource/windows_feature_spec.rb +0 -64
- data/spec/unit/resource/windows_firewall_profile_spec.rb +0 -77
- data/spec/unit/resource/windows_firewall_rule_spec.rb +0 -510
- data/spec/unit/resource/windows_font_spec.rb +0 -43
- data/spec/unit/resource/windows_package_spec.rb +0 -125
- data/spec/unit/resource/windows_pagefile_spec.rb +0 -44
- data/spec/unit/resource/windows_path_spec.rb +0 -40
- data/spec/unit/resource/windows_printer_port_spec.rb +0 -62
- data/spec/unit/resource/windows_printer_spec.rb +0 -52
- data/spec/unit/resource/windows_service_spec.rb +0 -122
- data/spec/unit/resource/windows_share_spec.rb +0 -48
- data/spec/unit/resource/windows_shortcut_spec.rb +0 -38
- data/spec/unit/resource/windows_task_spec.rb +0 -403
- data/spec/unit/resource/windows_uac_spec.rb +0 -50
- data/spec/unit/resource/windows_update_settings_spec.rb +0 -64
- data/spec/unit/resource/windows_user_privilege_spec.rb +0 -55
- data/spec/unit/resource/windows_workgroup_spec.rb +0 -74
- data/spec/unit/resource/yum_package_spec.rb +0 -159
- data/spec/unit/resource/yum_repository_spec.rb +0 -156
- data/spec/unit/resource/zypper_package_spec.rb +0 -51
- data/spec/unit/resource/zypper_repository_spec.rb +0 -115
- data/spec/unit/resource_builder_spec.rb +0 -1
- data/spec/unit/resource_collection/resource_list_spec.rb +0 -137
- data/spec/unit/resource_collection/resource_set_spec.rb +0 -244
- data/spec/unit/resource_collection/stepable_iterator_spec.rb +0 -144
- data/spec/unit/resource_collection_spec.rb +0 -408
- data/spec/unit/resource_definition_spec.rb +0 -117
- data/spec/unit/resource_inspector_spec.rb +0 -101
- data/spec/unit/resource_reporter_spec.rb +0 -802
- data/spec/unit/resource_resolver_spec.rb +0 -52
- data/spec/unit/resource_spec.rb +0 -1484
- data/spec/unit/role_spec.rb +0 -363
- data/spec/unit/run_context/child_run_context_spec.rb +0 -126
- data/spec/unit/run_context/cookbook_compiler_spec.rb +0 -236
- data/spec/unit/run_context_spec.rb +0 -257
- data/spec/unit/run_list/run_list_expansion_spec.rb +0 -147
- data/spec/unit/run_list/run_list_item_spec.rb +0 -117
- data/spec/unit/run_list/versioned_recipe_list_spec.rb +0 -197
- data/spec/unit/run_list_spec.rb +0 -312
- data/spec/unit/run_lock_spec.rb +0 -144
- data/spec/unit/run_status_spec.rb +0 -144
- data/spec/unit/runner_spec.rb +0 -397
- data/spec/unit/scan_access_control_spec.rb +0 -183
- data/spec/unit/search/query_spec.rb +0 -291
- data/spec/unit/secret_fetcher/akeyless_vault_spec.rb +0 -37
- data/spec/unit/secret_fetcher/aws_secrets_manager_spec.rb +0 -70
- data/spec/unit/secret_fetcher/azure_key_vault_spec.rb +0 -149
- data/spec/unit/secret_fetcher/hashi_vault_spec.rb +0 -126
- data/spec/unit/secret_fetcher_spec.rb +0 -82
- data/spec/unit/server_api_spec.rb +0 -151
- data/spec/unit/server_api_versions_spec.rb +0 -66
- data/spec/unit/shell/model_wrapper_spec.rb +0 -96
- data/spec/unit/shell/shell_ext_spec.rb +0 -196
- data/spec/unit/shell/shell_session_spec.rb +0 -218
- data/spec/unit/shell_spec.rb +0 -178
- data/spec/unit/train_transport_spec.rb +0 -85
- data/spec/unit/user_spec.rb +0 -275
- data/spec/unit/user_v1_spec.rb +0 -585
- data/spec/unit/util/backup_spec.rb +0 -141
- data/spec/unit/util/diff_spec.rb +0 -562
- data/spec/unit/util/dsc/configuration_generator_spec.rb +0 -272
- data/spec/unit/util/dsc/lcm_output_parser_spec.rb +0 -248
- data/spec/unit/util/dsc/local_configuration_manager_spec.rb +0 -192
- data/spec/unit/util/dsc/resource_store.rb +0 -78
- data/spec/unit/util/editor_spec.rb +0 -152
- data/spec/unit/util/file_edit_spec.rb +0 -224
- data/spec/unit/util/powershell/ps_credential_spec.rb +0 -51
- data/spec/unit/util/selinux_spec.rb +0 -160
- data/spec/unit/util/threaded_job_queue_spec.rb +0 -60
- data/spec/unit/util/windows/logon_session_spec.rb +0 -285
- data/spec/unit/version/platform_spec.rb +0 -60
- data/spec/unit/version_class_spec.rb +0 -171
- data/spec/unit/version_constraint/platform_spec.rb +0 -45
- data/spec/unit/version_constraint_spec.rb +0 -179
- data/spec/unit/version_string_spec.rb +0 -79
- data/spec/unit/win32/error_spec.rb +0 -77
- data/spec/unit/win32/link_spec.rb +0 -73
- data/spec/unit/win32/registry_spec.rb +0 -394
- data/spec/unit/win32/security_spec.rb +0 -136
- data/tasks/rspec.rb +0 -87
@@ -1,240 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Author:: Lamont Granquist (<lamont@chef.io>)
|
3
|
-
# Copyright:: Copyright (c) Chef Software Inc.
|
4
|
-
# License:: Apache License, Version 2.0
|
5
|
-
#
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
# See the License for the specific language governing permissions and
|
16
|
-
# limitations under the License.
|
17
|
-
#
|
18
|
-
|
19
|
-
require "spec_helper"
|
20
|
-
|
21
|
-
describe "Chef class" do
|
22
|
-
let(:platform) { "debian" }
|
23
|
-
|
24
|
-
let(:node) do
|
25
|
-
node = Chef::Node.new
|
26
|
-
node.automatic["platform"] = platform
|
27
|
-
node
|
28
|
-
end
|
29
|
-
|
30
|
-
let(:run_context) do
|
31
|
-
Chef::RunContext.new(node, nil, nil)
|
32
|
-
end
|
33
|
-
|
34
|
-
let(:resource_priority_map) do
|
35
|
-
double("Chef::Platform::ResourcePriorityMap")
|
36
|
-
end
|
37
|
-
|
38
|
-
let(:provider_priority_map) do
|
39
|
-
double("Chef::Platform::ProviderPriorityMap")
|
40
|
-
end
|
41
|
-
|
42
|
-
before do
|
43
|
-
Chef.set_run_context(run_context)
|
44
|
-
Chef.set_node(node)
|
45
|
-
Chef.set_resource_priority_map(resource_priority_map)
|
46
|
-
Chef.set_provider_priority_map(provider_priority_map)
|
47
|
-
end
|
48
|
-
|
49
|
-
context "priority maps" do
|
50
|
-
context "#get_provider_priority_array" do
|
51
|
-
it "should use the current node to get the right priority_map" do
|
52
|
-
expect(provider_priority_map).to receive(:get_priority_array).with(node, :http_request).and_return("stuff")
|
53
|
-
expect(Chef.get_provider_priority_array(:http_request)).to eql("stuff")
|
54
|
-
end
|
55
|
-
end
|
56
|
-
context "#get_resource_priority_array" do
|
57
|
-
it "should use the current node to get the right priority_map" do
|
58
|
-
expect(resource_priority_map).to receive(:get_priority_array).with(node, :http_request).and_return("stuff")
|
59
|
-
expect(Chef.get_resource_priority_array(:http_request)).to eql("stuff")
|
60
|
-
end
|
61
|
-
end
|
62
|
-
context "#set_provider_priority_array" do
|
63
|
-
it "should delegate to the provider_priority_map" do
|
64
|
-
expect(provider_priority_map).to receive(:set_priority_array).with(:http_request, %w{a b}, platform: "debian").and_return("stuff")
|
65
|
-
expect(Chef.set_provider_priority_array(:http_request, %w{a b}, platform: "debian")).to eql("stuff")
|
66
|
-
end
|
67
|
-
end
|
68
|
-
context "#set_priority_map_for_resource" do
|
69
|
-
it "should delegate to the resource_priority_map" do
|
70
|
-
expect(resource_priority_map).to receive(:set_priority_array).with(:http_request, %w{a b}, platform: "debian").and_return("stuff")
|
71
|
-
expect(Chef.set_resource_priority_array(:http_request, %w{a b}, platform: "debian")).to eql("stuff")
|
72
|
-
end
|
73
|
-
end
|
74
|
-
end
|
75
|
-
|
76
|
-
context "#run_context" do
|
77
|
-
it "should return the injected RunContext" do
|
78
|
-
expect(Chef.run_context).to eql(run_context)
|
79
|
-
end
|
80
|
-
end
|
81
|
-
|
82
|
-
context "#node" do
|
83
|
-
it "should return the injected Node" do
|
84
|
-
expect(Chef.node).to eql(node)
|
85
|
-
end
|
86
|
-
end
|
87
|
-
|
88
|
-
context "#event_handler" do
|
89
|
-
it "adds a new handler" do
|
90
|
-
x = 1
|
91
|
-
Chef.event_handler do
|
92
|
-
on :converge_start do
|
93
|
-
x = 2
|
94
|
-
end
|
95
|
-
end
|
96
|
-
expect(Chef::Config[:event_handlers]).to_not be_empty
|
97
|
-
Chef::Config[:event_handlers].first.send(:converge_start)
|
98
|
-
expect(x).to eq(2)
|
99
|
-
end
|
100
|
-
|
101
|
-
it "raise error if unknown event type is passed" do
|
102
|
-
expect do
|
103
|
-
Chef.event_handler do
|
104
|
-
on :yolo do
|
105
|
-
end
|
106
|
-
end
|
107
|
-
end.to raise_error(Chef::Exceptions::InvalidEventType)
|
108
|
-
end
|
109
|
-
end
|
110
|
-
|
111
|
-
describe "Deprecation system" do
|
112
|
-
context "with treat_deprecation_warnings_as_errors false" do
|
113
|
-
before { Chef::Config[:treat_deprecation_warnings_as_errors] = false }
|
114
|
-
|
115
|
-
it "displays a simple deprecation warning" do
|
116
|
-
expect(Chef::Log).to receive(:warn).with(%r{spec/unit/chef_class_spec\.rb.*?I'm a little teapot.*?Please see}m)
|
117
|
-
Chef.deprecated(:generic, "I'm a little teapot.")
|
118
|
-
end
|
119
|
-
|
120
|
-
it "allows silencing all warnings" do
|
121
|
-
Chef::Config[:silence_deprecation_warnings] = true
|
122
|
-
expect(Chef::Log).to_not receive(:warn)
|
123
|
-
Chef.deprecated(:generic, "I'm a little teapot.")
|
124
|
-
Chef.deprecated(:internal_api, "Short and stout.")
|
125
|
-
Chef.deprecated(:generic, "This is my handle.")
|
126
|
-
end
|
127
|
-
|
128
|
-
it "allows silencing specific types" do
|
129
|
-
Chef::Config[:silence_deprecation_warnings] = [:internal_api]
|
130
|
-
expect(Chef::Log).to receive(:warn).with(/I'm a little teapot/).once
|
131
|
-
expect(Chef::Log).to receive(:warn).with(/This is my handle/).once
|
132
|
-
Chef.deprecated(:generic, "I'm a little teapot.")
|
133
|
-
Chef.deprecated(:internal_api, "Short and stout.")
|
134
|
-
Chef.deprecated(:generic, "This is my handle.")
|
135
|
-
end
|
136
|
-
|
137
|
-
it "allows silencing specific IDs" do
|
138
|
-
Chef::Config[:silence_deprecation_warnings] = [0]
|
139
|
-
expect(Chef::Log).to receive(:warn).with(/I'm a little teapot/).once
|
140
|
-
expect(Chef::Log).to receive(:warn).with(/This is my handle/).once
|
141
|
-
Chef.deprecated(:generic, "I'm a little teapot.")
|
142
|
-
Chef.deprecated(:internal_api, "Short and stout.")
|
143
|
-
Chef.deprecated(:generic, "This is my handle.")
|
144
|
-
end
|
145
|
-
|
146
|
-
it "allows silencing specific IDs without matching the line number" do
|
147
|
-
Chef::Config[:silence_deprecation_warnings] = [__LINE__ + 4]
|
148
|
-
expect(Chef::Log).to receive(:warn).with(/I'm a little teapot/).once
|
149
|
-
expect(Chef::Log).to receive(:warn).with(/Short and stout/).once
|
150
|
-
expect(Chef::Log).to receive(:warn).with(/This is my handle/).once
|
151
|
-
Chef.deprecated(:generic, "I'm a little teapot.")
|
152
|
-
Chef.deprecated(:internal_api, "Short and stout.")
|
153
|
-
Chef.deprecated(:generic, "This is my handle.")
|
154
|
-
end
|
155
|
-
|
156
|
-
it "allows silencing specific IDs using the CHEF- syntax" do
|
157
|
-
Chef::Config[:silence_deprecation_warnings] = ["CHEF-0"]
|
158
|
-
expect(Chef::Log).to receive(:warn).with(/I'm a little teapot/).once
|
159
|
-
expect(Chef::Log).to receive(:warn).with(/This is my handle/).once
|
160
|
-
Chef.deprecated(:generic, "I'm a little teapot.")
|
161
|
-
Chef.deprecated(:internal_api, "Short and stout.")
|
162
|
-
Chef.deprecated(:generic, "This is my handle.")
|
163
|
-
end
|
164
|
-
|
165
|
-
it "allows silencing specific IDs using the chef- syntax" do
|
166
|
-
Chef::Config[:silence_deprecation_warnings] = ["chef-0"]
|
167
|
-
expect(Chef::Log).to receive(:warn).with(/I'm a little teapot/).once
|
168
|
-
expect(Chef::Log).to receive(:warn).with(/This is my handle/).once
|
169
|
-
Chef.deprecated(:generic, "I'm a little teapot.")
|
170
|
-
Chef.deprecated(:internal_api, "Short and stout.")
|
171
|
-
Chef.deprecated(:generic, "This is my handle.")
|
172
|
-
end
|
173
|
-
|
174
|
-
it "allows silencing specific lines" do
|
175
|
-
Chef::Config[:silence_deprecation_warnings] = ["chef_class_spec.rb:#{__LINE__ + 4}"]
|
176
|
-
expect(Chef::Log).to receive(:warn).with(/I'm a little teapot/).once
|
177
|
-
expect(Chef::Log).to receive(:warn).with(/This is my handle/).once
|
178
|
-
Chef.deprecated(:generic, "I'm a little teapot.")
|
179
|
-
Chef.deprecated(:generic, "Short and stout.")
|
180
|
-
Chef.deprecated(:internal_api, "This is my handle.")
|
181
|
-
end
|
182
|
-
|
183
|
-
it "allows silencing all via inline comments" do
|
184
|
-
expect(Chef::Log).to receive(:warn).with(/I'm a little teapot/).once
|
185
|
-
expect(Chef::Log).to receive(:warn).with(/This is my handle/).once
|
186
|
-
Chef.deprecated(:generic, "I'm a little teapot.")
|
187
|
-
Chef.deprecated(:generic, "Short and stout.") # chef:silence_deprecation
|
188
|
-
Chef.deprecated(:internal_api, "This is my handle.")
|
189
|
-
end
|
190
|
-
|
191
|
-
it "allows silencing specific types via inline comments" do
|
192
|
-
expect(Chef::Log).to receive(:warn).with(/I'm a little teapot/).once
|
193
|
-
expect(Chef::Log).to receive(:warn).with(/This is my handle/).once
|
194
|
-
Chef.deprecated(:generic, "I'm a little teapot.")
|
195
|
-
Chef.deprecated(:generic, "Short and stout.") # chef:silence_deprecation:generic
|
196
|
-
Chef.deprecated(:internal_api, "This is my handle.")
|
197
|
-
end
|
198
|
-
|
199
|
-
it "does not silence via inline comments when the types don't match" do
|
200
|
-
expect(Chef::Log).to receive(:warn).with(/I'm a little teapot/).once
|
201
|
-
expect(Chef::Log).to receive(:warn).with(/Short and stout/).once
|
202
|
-
expect(Chef::Log).to receive(:warn).with(/This is my handle/).once
|
203
|
-
Chef.deprecated(:generic, "I'm a little teapot.")
|
204
|
-
Chef.deprecated(:internal_api, "Short and stout.") # chef:silence_deprecation:generic
|
205
|
-
Chef.deprecated(:internal_api, "This is my handle.")
|
206
|
-
end
|
207
|
-
|
208
|
-
it "allows silencing all via inline comments with other stuff in the comment" do
|
209
|
-
expect(Chef::Log).to receive(:warn).with(/I'm a little teapot/).once
|
210
|
-
expect(Chef::Log).to receive(:warn).with(/This is my handle/).once
|
211
|
-
Chef.deprecated(:generic, "I'm a little teapot.")
|
212
|
-
Chef.deprecated(:generic, "Short and stout.") # rubocop:something chef:silence_deprecation other stuff
|
213
|
-
Chef.deprecated(:internal_api, "This is my handle.")
|
214
|
-
end
|
215
|
-
|
216
|
-
it "handles multiple silence configurations at the same time" do
|
217
|
-
Chef::Config[:silence_deprecation_warnings] = ["exit_code", "chef_class_spec.rb:#{__LINE__ + 6}"]
|
218
|
-
expect(Chef::Log).to receive(:warn).with(/I'm a little teapot/).once
|
219
|
-
expect(Chef::Log).to receive(:warn).with(/This is my spout/).once
|
220
|
-
expect(Chef::Log).to receive(:warn).with(/Hear me shout/).once
|
221
|
-
Chef.deprecated(:generic, "I'm a little teapot.")
|
222
|
-
Chef.deprecated(:generic, "Short and stout.") # chef:silence_deprecation
|
223
|
-
Chef.deprecated(:internal_api, "This is my handle.")
|
224
|
-
Chef.deprecated(:internal_api, "This is my spout.")
|
225
|
-
Chef.deprecated(:exit_code, "When I get all steamed up.")
|
226
|
-
Chef.deprecated(:generic, "Hear me shout.")
|
227
|
-
end
|
228
|
-
end
|
229
|
-
|
230
|
-
context "with treat_deprecation_warnings_as_errors true" do
|
231
|
-
# This is already turned on globally for Chef's unit tests, but just for clarity do it here too.
|
232
|
-
before { Chef::Config[:treat_deprecation_warnings_as_errors] = true }
|
233
|
-
|
234
|
-
it "displays a simple deprecation error" do
|
235
|
-
expect(Chef::Log).to receive(:error).with(%r{spec/unit/chef_class_spec\.rb.*?I'm a little teapot.*?Please see}m)
|
236
|
-
expect { Chef.deprecated(:generic, "I'm a little teapot.") }.to raise_error(/I'm a little teapot./)
|
237
|
-
end
|
238
|
-
end
|
239
|
-
end
|
240
|
-
end
|
@@ -1,235 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Author:: Jess Mink (<jmink@chef.io>)
|
3
|
-
# Copyright:: Copyright (c) Chef Software Inc.
|
4
|
-
# License:: Apache License, Version 2.0
|
5
|
-
#
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
# See the License for the specific language governing permissions and
|
16
|
-
# limitations under the License.
|
17
|
-
#
|
18
|
-
|
19
|
-
require "spec_helper"
|
20
|
-
require "chef/exceptions"
|
21
|
-
require "lib/chef/chef_fs/config"
|
22
|
-
|
23
|
-
describe Chef::ChefFS::Config do
|
24
|
-
describe "initialize" do
|
25
|
-
it "warns when hosted setups use 'everything'" do
|
26
|
-
base_config = {}
|
27
|
-
base_config[:repo_mode] = "everything"
|
28
|
-
base_config[:chef_server_url] = "http://foo.com/organizations/fake_org/"
|
29
|
-
|
30
|
-
ui = double("ui")
|
31
|
-
expect(ui).to receive(:warn)
|
32
|
-
|
33
|
-
Chef::ChefFS::Config.new(base_config, Dir.pwd, {}, ui)
|
34
|
-
end
|
35
|
-
|
36
|
-
it "doesn't warn when hosted setups use 'hosted_everything'" do
|
37
|
-
base_config = {}
|
38
|
-
base_config[:repo_mode] = "hosted_everything"
|
39
|
-
base_config[:chef_server_url] = "http://foo.com/organizations/fake_org/"
|
40
|
-
|
41
|
-
ui = double("ui")
|
42
|
-
expect(ui).to receive(:warn).exactly(0).times
|
43
|
-
|
44
|
-
Chef::ChefFS::Config.new(base_config, Dir.pwd, {}, ui)
|
45
|
-
end
|
46
|
-
|
47
|
-
it "doesn't warn when non-hosted setups use 'everything'" do
|
48
|
-
base_config = {}
|
49
|
-
base_config[:repo_mode] = "everything"
|
50
|
-
base_config[:chef_server_url] = "http://foo.com/"
|
51
|
-
|
52
|
-
ui = double("ui")
|
53
|
-
expect(ui).to receive(:warn).exactly(0).times
|
54
|
-
|
55
|
-
Chef::ChefFS::Config.new(base_config, Dir.pwd, {}, ui)
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
describe "local FS configuration" do
|
60
|
-
|
61
|
-
let(:chef_config) do
|
62
|
-
Mash.new({
|
63
|
-
client_path: "/base_path/clients",
|
64
|
-
cookbook_path: "/base_path/cookbooks",
|
65
|
-
data_bag_path: "/base_path/data_bags",
|
66
|
-
environment_path: "/base_path/environments",
|
67
|
-
node_path: "/base_path/nodes",
|
68
|
-
role_path: "/base_path/roles",
|
69
|
-
user_path: "/base_path/users",
|
70
|
-
policy_path: "/base_path/policies",
|
71
|
-
})
|
72
|
-
end
|
73
|
-
|
74
|
-
let(:chef_fs_config) { Chef::ChefFS::Config.new(chef_config, Dir.pwd) }
|
75
|
-
|
76
|
-
subject(:local_fs) { chef_fs_config.local_fs }
|
77
|
-
|
78
|
-
def platform_path(*args)
|
79
|
-
File.expand_path(*args)
|
80
|
-
end
|
81
|
-
|
82
|
-
it "sets the correct nodes path on the local FS object" do
|
83
|
-
expect(local_fs.child_paths["nodes"]).to eq([platform_path("/base_path/nodes")])
|
84
|
-
end
|
85
|
-
|
86
|
-
it "sets the correct cookbook path on the local FS object" do
|
87
|
-
expect(local_fs.child_paths["cookbooks"]).to eq([platform_path("/base_path/cookbooks")])
|
88
|
-
end
|
89
|
-
|
90
|
-
it "sets the correct data bag path on the local FS object" do
|
91
|
-
expect(local_fs.child_paths["data_bags"]).to eq([platform_path("/base_path/data_bags")])
|
92
|
-
end
|
93
|
-
|
94
|
-
it "sets the correct environment path on the local FS object" do
|
95
|
-
expect(local_fs.child_paths["environments"]).to eq([platform_path("/base_path/environments")])
|
96
|
-
end
|
97
|
-
|
98
|
-
it "sets the correct role path on the local FS object" do
|
99
|
-
expect(local_fs.child_paths["roles"]).to eq([platform_path("/base_path/roles")])
|
100
|
-
end
|
101
|
-
|
102
|
-
it "sets the correct user path on the local FS object" do
|
103
|
-
expect(local_fs.child_paths["users"]).to eq([platform_path("/base_path/users")])
|
104
|
-
end
|
105
|
-
end
|
106
|
-
|
107
|
-
describe "formats paths", :unix_only do
|
108
|
-
|
109
|
-
let(:single_repo_path) do
|
110
|
-
Mash.new({
|
111
|
-
chef_repo_path: "/base_path",
|
112
|
-
})
|
113
|
-
end
|
114
|
-
|
115
|
-
let(:double_repo_path) do
|
116
|
-
Mash.new({
|
117
|
-
chef_repo_path: %w{ /base_path /second_base_path },
|
118
|
-
})
|
119
|
-
end
|
120
|
-
|
121
|
-
describe "#server_path" do
|
122
|
-
it "returns nil if no paths match" do
|
123
|
-
cfg = Chef::ChefFS::Config.new(single_repo_path, "/my_repo/cookbooks")
|
124
|
-
expect(cfg.server_path("foo")).to be_nil
|
125
|
-
end
|
126
|
-
|
127
|
-
context "with only repo paths" do
|
128
|
-
it "returns / if in the repo path" do
|
129
|
-
cwd = "/base_path/cookbooks"
|
130
|
-
cfg = Chef::ChefFS::Config.new(single_repo_path, cwd)
|
131
|
-
expect(Chef::ChefFS::PathUtils).to receive(:realest_path).with("/base_path/cookbooks", cwd).and_return("/base_path/cookbooks")
|
132
|
-
expect(Chef::ChefFS::PathUtils).to receive(:realest_path).with("/base_path", cwd).and_return("/base_path/cookbooks")
|
133
|
-
expect(cfg.server_path("/base_path/cookbooks")).to eq("/")
|
134
|
-
end
|
135
|
-
|
136
|
-
it "checks all the repo paths" do
|
137
|
-
cwd = "/second_base_path/cookbooks"
|
138
|
-
cfg = Chef::ChefFS::Config.new(double_repo_path, cwd)
|
139
|
-
expect(Chef::ChefFS::PathUtils).to receive(:realest_path).with("/second_base_path/cookbooks", cwd).and_return("/second_base_path/cookbooks")
|
140
|
-
expect(Chef::ChefFS::PathUtils).to receive(:realest_path).with("/base_path", cwd).and_return("/base_path/cookbooks")
|
141
|
-
expect(Chef::ChefFS::PathUtils).to receive(:realest_path).with("/second_base_path", cwd).and_return("/second_base_path/cookbooks")
|
142
|
-
expect(cfg.server_path("/second_base_path/cookbooks")).to eq("/")
|
143
|
-
end
|
144
|
-
end
|
145
|
-
|
146
|
-
context "with specific object locations" do
|
147
|
-
let(:single_cookbook_path) do
|
148
|
-
Mash.new({
|
149
|
-
cookbook_path: "/base_path/cookbooks",
|
150
|
-
role_path: "/base_path/roles",
|
151
|
-
})
|
152
|
-
end
|
153
|
-
|
154
|
-
let(:cwd) { "/base_path/cookbooks" }
|
155
|
-
let(:cfg) { Chef::ChefFS::Config.new(single_cookbook_path, cwd) }
|
156
|
-
|
157
|
-
before do
|
158
|
-
expect(Chef::ChefFS::PathUtils).to receive(:realest_path).with("/base_path/cookbooks", cwd).and_return("/base_path/cookbooks")
|
159
|
-
allow(Chef::ChefFS::PathUtils).to receive(:realest_path).with("/base_path/roles", cwd).and_return("/base_path/roles")
|
160
|
-
end
|
161
|
-
|
162
|
-
it "resolves a relative path" do
|
163
|
-
expect(Chef::ChefFS::PathUtils).to receive(:realest_path).with("blah", cwd).and_return("/base_path/cookbooks/blah")
|
164
|
-
expect(cfg.server_path("blah")).to eql("/cookbooks/blah")
|
165
|
-
end
|
166
|
-
|
167
|
-
it "resolves a relative path in a parent directory" do
|
168
|
-
expect(Chef::ChefFS::PathUtils).to receive(:realest_path).with("../roles/blah", cwd).and_return("/base_path/roles/blah")
|
169
|
-
expect(Chef::ChefFS::PathUtils).to receive(:realest_path).with("/base_path/roles", cwd).and_return("/base_path/roles")
|
170
|
-
expect(cfg.server_path("../roles/blah")).to eql("/roles/blah")
|
171
|
-
end
|
172
|
-
|
173
|
-
it "ignores a relative path that's outside the repository" do
|
174
|
-
expect(Chef::ChefFS::PathUtils).to receive(:realest_path).with("../../readme.txt", cwd).and_return("/readme.txt")
|
175
|
-
expect(cfg.server_path("../../readme.txt")).to be_nil
|
176
|
-
end
|
177
|
-
|
178
|
-
it "deals with splat paths" do
|
179
|
-
expect(Chef::ChefFS::PathUtils).to receive(:realest_path).with("*/*ab*", cwd).and_return("/base_path/cookbooks/*/*ab*")
|
180
|
-
expect(cfg.server_path("*/*ab*")).to eql("/cookbooks/*/*ab*")
|
181
|
-
end
|
182
|
-
|
183
|
-
it "resolves an absolute path" do
|
184
|
-
expect(Chef::ChefFS::PathUtils).to receive(:realest_path).with("/base_path/cookbooks/blah", cwd).and_return("/base_path/cookbooks/blah")
|
185
|
-
expect(cfg.server_path("/base_path/cookbooks/blah")).to eql("/cookbooks/blah")
|
186
|
-
end
|
187
|
-
|
188
|
-
it "deals with an absolute path with splats" do
|
189
|
-
expect(Chef::ChefFS::PathUtils).to receive(:realest_path).with("/*/cookbooks/blah", cwd).and_return("/*/cookbooks/blah")
|
190
|
-
expect(cfg.server_path("/*/cookbooks/blah")).to be_nil
|
191
|
-
end
|
192
|
-
end
|
193
|
-
end
|
194
|
-
|
195
|
-
describe "#format_path" do
|
196
|
-
Entry = Struct.new(:path)
|
197
|
-
|
198
|
-
let(:config) do
|
199
|
-
Mash.new({
|
200
|
-
chef_repo_path: "/base_path",
|
201
|
-
cookbook_path: "/base_path/cookbooks",
|
202
|
-
role_path: "/base_path/roles",
|
203
|
-
})
|
204
|
-
end
|
205
|
-
|
206
|
-
let(:path) { "/roles/foo.json" }
|
207
|
-
let(:entry) { Entry.new(path) }
|
208
|
-
|
209
|
-
it "returns the entry's path if the cwd isn't in the config" do
|
210
|
-
cfg = Chef::ChefFS::Config.new(config, "/my_repo/cookbooks")
|
211
|
-
expect(cfg).to receive(:base_path).and_return(nil)
|
212
|
-
expect(cfg.format_path(entry)).to eq(path)
|
213
|
-
end
|
214
|
-
|
215
|
-
it "returns . if the cwd is the same as the entry's path" do
|
216
|
-
cfg = Chef::ChefFS::Config.new(config, "/base_path/roles/foo.json")
|
217
|
-
expect(cfg).to receive(:base_path).and_return("/roles/foo.json").at_least(:once)
|
218
|
-
expect(cfg.format_path(entry)).to eq(".")
|
219
|
-
end
|
220
|
-
|
221
|
-
it "returns a relative path if the cwd is in the repo" do
|
222
|
-
cfg = Chef::ChefFS::Config.new(config, "/base_path/roles")
|
223
|
-
expect(cfg).to receive(:base_path).and_return("/roles").at_least(:once)
|
224
|
-
expect(cfg.format_path(entry)).to eq("foo.json")
|
225
|
-
end
|
226
|
-
|
227
|
-
it "returns a relative path if the cwd is at the root of repo" do
|
228
|
-
cfg = Chef::ChefFS::Config.new(config, "/base_path")
|
229
|
-
expect(cfg).to receive(:base_path).and_return("/").at_least(:once)
|
230
|
-
expect(cfg.format_path(entry)).to eq("roles/foo.json")
|
231
|
-
end
|
232
|
-
|
233
|
-
end
|
234
|
-
end
|
235
|
-
end
|
@@ -1,82 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Author:: Sandra Tiffin (<sandi.tiffin@gmail.com>)
|
3
|
-
# Copyright:: Copyright (c) Chef Software Inc.
|
4
|
-
# License:: Apache License, Version 2.0
|
5
|
-
#
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
# See the License for the specific language governing permissions and
|
16
|
-
# limitations under the License.
|
17
|
-
#
|
18
|
-
|
19
|
-
require "spec_helper"
|
20
|
-
require "lib/chef/chef_fs/data_handler/data_bag_item_data_handler"
|
21
|
-
|
22
|
-
class TestDataBag < Mash
|
23
|
-
attr_accessor :name
|
24
|
-
|
25
|
-
def initialize(bag_name)
|
26
|
-
@name = bag_name
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
class TestDataBagItem < Mash
|
31
|
-
attr_accessor :name, :parent
|
32
|
-
|
33
|
-
def path_for_printing
|
34
|
-
"/some/path"
|
35
|
-
end
|
36
|
-
|
37
|
-
def initialize(bag_name, item_name)
|
38
|
-
@name = "#{item_name}.json"
|
39
|
-
@parent = TestDataBag.new(bag_name)
|
40
|
-
end
|
41
|
-
end
|
42
|
-
|
43
|
-
describe Chef::ChefFS::DataHandler::DataBagItemDataHandler do
|
44
|
-
let(:handler) { described_class.new }
|
45
|
-
|
46
|
-
describe "#verify_integrity" do
|
47
|
-
context "json id does not match data bag item name" do
|
48
|
-
let(:entry) { TestDataBagItem.new("luggage", "bag") }
|
49
|
-
let(:object) do
|
50
|
-
{ "raw_data" => { "id" => "duffel" } }
|
51
|
-
end
|
52
|
-
it "rejects the data bag item name" do
|
53
|
-
expect { |b| handler.verify_integrity(object, entry, &b) }.to yield_with_args
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
context "using a reserved word for the data bag name" do
|
58
|
-
%w{node role environment client}.each do |reserved_word|
|
59
|
-
let(:entry) { TestDataBagItem.new(reserved_word, "bag") }
|
60
|
-
let(:object) do
|
61
|
-
{ "raw_data" => { "id" => "bag" } }
|
62
|
-
end
|
63
|
-
it "rejects the data bag name '#{reserved_word}'" do
|
64
|
-
expect { |b| handler.verify_integrity(object, entry, &b) }.to yield_with_args
|
65
|
-
end
|
66
|
-
end
|
67
|
-
end
|
68
|
-
|
69
|
-
context "using a reserved word as part of the data bag name" do
|
70
|
-
%w{xnode rolex xenvironmentx xclientx}.each do |bag_name|
|
71
|
-
let(:entry) { TestDataBagItem.new(bag_name.to_s, "bag") }
|
72
|
-
let(:object) do
|
73
|
-
{ "raw_data" => { "id" => "bag" } }
|
74
|
-
end
|
75
|
-
it "allows the data bag name '#{bag_name}'" do
|
76
|
-
expect(handler.verify_integrity(object, entry)).to be_nil
|
77
|
-
end
|
78
|
-
end
|
79
|
-
end
|
80
|
-
|
81
|
-
end
|
82
|
-
end
|
@@ -1,65 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Author:: Jeremy Miller (<jm@chef.io>)
|
3
|
-
# Copyright:: Copyright (c) Chef Software Inc.
|
4
|
-
# License:: Apache License, Version 2.0
|
5
|
-
#
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
# See the License for the specific language governing permissions and
|
16
|
-
# limitations under the License.
|
17
|
-
#
|
18
|
-
|
19
|
-
require "spec_helper"
|
20
|
-
require "lib/chef/chef_fs/data_handler/data_handler_base"
|
21
|
-
|
22
|
-
describe Chef::ChefFS::DataHandler::DataHandlerBase do
|
23
|
-
describe "#normalize_hash" do
|
24
|
-
let(:some_item) do
|
25
|
-
{ "name" => "grizzly",
|
26
|
-
"gender" => "female",
|
27
|
-
"age" => 3,
|
28
|
-
"food" => "honey",
|
29
|
-
}
|
30
|
-
end
|
31
|
-
|
32
|
-
let(:item_defaults) do
|
33
|
-
{ "family" => "ursidae",
|
34
|
-
"hibernate" => true,
|
35
|
-
"food" => "berries",
|
36
|
-
"avg_lifespan_years" => 22,
|
37
|
-
}
|
38
|
-
end
|
39
|
-
|
40
|
-
let(:normalized) do
|
41
|
-
{ "name" => "grizzly",
|
42
|
-
"gender" => "female",
|
43
|
-
"family" => "ursidae",
|
44
|
-
"hibernate" => true,
|
45
|
-
"avg_lifespan_years" => 22,
|
46
|
-
"age" => 3,
|
47
|
-
"food" => "honey",
|
48
|
-
}
|
49
|
-
end
|
50
|
-
|
51
|
-
let(:handler) { described_class.new }
|
52
|
-
|
53
|
-
it "normalizes the Hash, filling in default values" do
|
54
|
-
expect(handler.normalize_hash(some_item, item_defaults)).to eq(normalized)
|
55
|
-
end
|
56
|
-
|
57
|
-
it "prefers already existing values over default values" do
|
58
|
-
expect(handler.normalize_hash(some_item, item_defaults)["food"]).to eq("honey")
|
59
|
-
end
|
60
|
-
|
61
|
-
it "handles being passed a nil value instead of Hash" do
|
62
|
-
expect(handler.normalize_hash(nil, item_defaults)).to eq(item_defaults)
|
63
|
-
end
|
64
|
-
end
|
65
|
-
end
|
@@ -1,63 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Author:: Ryan Cragun (<ryan@chef.io>)
|
3
|
-
# Copyright:: Copyright (c) Chef Software Inc.
|
4
|
-
# License:: Apache License, Version 2.0
|
5
|
-
#
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
# See the License for the specific language governing permissions and
|
16
|
-
# limitations under the License.
|
17
|
-
#
|
18
|
-
|
19
|
-
require "spec_helper"
|
20
|
-
require "lib/chef/chef_fs/data_handler/group_data_handler"
|
21
|
-
|
22
|
-
class TestEntry < Mash
|
23
|
-
attr_accessor :name, :org
|
24
|
-
|
25
|
-
def initialize(name, org)
|
26
|
-
@name = name
|
27
|
-
@org = org
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
describe Chef::ChefFS::DataHandler::GroupDataHandler do
|
32
|
-
describe "#normalize_for_post" do
|
33
|
-
let(:entry) do
|
34
|
-
TestEntry.new("workers.json", "hive")
|
35
|
-
end
|
36
|
-
|
37
|
-
let(:group) do
|
38
|
-
{ "name" => "worker_bees",
|
39
|
-
"clients" => %w{honey sting},
|
40
|
-
"users" => %w{fizz buzz},
|
41
|
-
"actors" => %w{honey},
|
42
|
-
}
|
43
|
-
end
|
44
|
-
|
45
|
-
let(:normalized) do
|
46
|
-
{ "actors" =>
|
47
|
-
{ "users" => %w{fizz buzz},
|
48
|
-
"clients" => %w{honey sting},
|
49
|
-
"groups" => [],
|
50
|
-
},
|
51
|
-
"groupname" => "workers",
|
52
|
-
"name" => "worker_bees",
|
53
|
-
"orgname" => "hive",
|
54
|
-
}
|
55
|
-
end
|
56
|
-
|
57
|
-
let(:handler) { described_class.new }
|
58
|
-
|
59
|
-
it "normalizes the users, clients and groups into actors" do
|
60
|
-
expect(handler.normalize_for_post(group, entry)).to eq(normalized)
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|