summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivek Singh <vivek.singh@msystechnologies.com>2020-04-07 00:24:35 +0530
committerVivek Singh <vivek.singh@msystechnologies.com>2020-04-07 00:24:35 +0530
commita700fec953f275b2b0338130baa85b12beec0aea (patch)
treed154db2f588316c289b33036c5de256a040172b6
parentbe60ec97c5774ebaf7d2f4cfdc82bc51f59fb2bb (diff)
downloadchef-a700fec953f275b2b0338130baa85b12beec0aea.tar.gz
some spec typos
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
-rw-r--r--lib/chef/provider/systemd_unit.rb4
-rw-r--r--spec/data/shef-config.rb2
-rw-r--r--spec/functional/file_content_management/deploy_strategies_spec.rb6
-rw-r--r--spec/functional/resource/dnf_package_spec.rb2
-rw-r--r--spec/functional/resource/windows_env_spec.rb2
-rw-r--r--spec/functional/win32/versions_spec.rb2
-rw-r--r--spec/support/mock/platform.rb2
-rw-r--r--spec/support/shared/functional/securable_resource.rb2
-rw-r--r--spec/support/shared/unit/provider/file.rb2
-rw-r--r--spec/support/shared/unit/user_and_client_shared.rb2
-rw-r--r--spec/unit/cookbook/file_vendor_spec.rb2
-rw-r--r--spec/unit/data_collector_spec.rb2
-rw-r--r--spec/unit/event_dispatch/dispatcher_spec.rb2
-rw-r--r--spec/unit/file_content_management/deploy/mv_windows_spec.rb2
-rw-r--r--spec/unit/file_content_management/tempfile_spec.rb2
-rw-r--r--spec/unit/formatters/base_spec.rb2
-rw-r--r--spec/unit/formatters/error_inspectors/cookbook_resolve_error_inspector_spec.rb4
-rw-r--r--spec/unit/http_spec.rb4
-rw-r--r--spec/unit/key_spec.rb2
-rw-r--r--spec/unit/knife/bootstrap_spec.rb2
-rw-r--r--spec/unit/knife/environment_edit_spec.rb2
-rw-r--r--spec/unit/knife/ssl_fetch_spec.rb2
-rw-r--r--spec/unit/knife_spec.rb2
-rw-r--r--spec/unit/lwrp_spec.rb2
-rw-r--r--spec/unit/mixin/openssl_helper_spec.rb6
-rw-r--r--spec/unit/node/attribute_spec.rb2
-rw-r--r--spec/unit/node_spec.rb10
-rw-r--r--spec/unit/property_spec.rb4
-rw-r--r--spec/unit/provider/apt_preference_spec.rb2
-rw-r--r--spec/unit/provider/package/rpm_spec.rb2
-rw-r--r--spec/unit/provider/package/rubygems_spec.rb6
-rw-r--r--spec/unit/provider/package/solaris_spec.rb2
-rw-r--r--spec/unit/provider/remote_file/http_spec.rb2
-rw-r--r--spec/unit/provider/service/windows_spec.rb2
-rw-r--r--spec/unit/resource/cron_spec.rb2
-rw-r--r--spec/unit/resource/remote_file_spec.rb4
-rw-r--r--spec/unit/resource_reporter_spec.rb2
-rw-r--r--spec/unit/resource_spec.rb8
-rw-r--r--spec/unit/run_list/versioned_recipe_list_spec.rb2
-rw-r--r--spec/unit/util/diff_spec.rb2
-rw-r--r--spec/unit/util/dsc/resource_store.rb2
-rw-r--r--spec/unit/util/file_edit_spec.rb2
-rw-r--r--spec/unit/util/windows/logon_session_spec.rb2
43 files changed, 61 insertions, 61 deletions
diff --git a/lib/chef/provider/systemd_unit.rb b/lib/chef/provider/systemd_unit.rb
index 99b72e0865..f1b104de21 100644
--- a/lib/chef/provider/systemd_unit.rb
+++ b/lib/chef/provider/systemd_unit.rb
@@ -121,9 +121,9 @@ class Chef
end
action :reenable do
- converge_by("re-enabling unit: #{new_resource.unit_name}") do
+ converge_by("reenabling unit: #{new_resource.unit_name}") do
systemctl_execute!(:reenable, new_resource.unit_name)
- logger.info("#{new_resource} re-enabled")
+ logger.info("#{new_resource} reenabled")
end
end
diff --git a/spec/data/shef-config.rb b/spec/data/shef-config.rb
index efd601d6d8..0e2521c5b4 100644
--- a/spec/data/shef-config.rb
+++ b/spec/data/shef-config.rb
@@ -1,6 +1,6 @@
ohai[:disabled_plugins] << "darwin::system_profiler" << "darwin::kernel" << "darwin::ssh_host_key" << "network_listeners"
ohai[:disabled_plugins] << "virtualization" << "darwin::virtualization"
-ohai[:disabled_plugins] << "darwin::uptime" << "darwin::filesystem" << "dmi" << "lanuages" << "perl" << "python" << "java"
+ohai[:disabled_plugins] << "darwin::uptime" << "darwin::filesystem" << "dmi" << "languages" << "perl" << "python" << "java"
ohai[:disabled_plugins] << "linux::block_device" << "linux::kernel" << "linux::ssh_host_key" << "linux::virtualization"
ohai[:disabled_plugins] << "linux::cpu" << "linux::memory" << "ec2" << "rackspace" << "eucalyptus" << "ip_scopes"
ohai[:disabled_plugins] << "solaris2::cpu" << "solaris2::dmi" << "solaris2::filesystem" << "solaris2::kernel"
diff --git a/spec/functional/file_content_management/deploy_strategies_spec.rb b/spec/functional/file_content_management/deploy_strategies_spec.rb
index 07991aa8bd..e5acf223a2 100644
--- a/spec/functional/file_content_management/deploy_strategies_spec.rb
+++ b/spec/functional/file_content_management/deploy_strategies_spec.rb
@@ -113,7 +113,7 @@ shared_examples_for "a content deploy strategy" do
path
end
- def unix_invariant_properies(stat_struct)
+ def unix_invariant_properties(stat_struct)
unix_invariants.inject({}) do |property_map, property|
property_map[property] = stat_struct.send(property)
property_map
@@ -137,7 +137,7 @@ shared_examples_for "a content deploy strategy" do
content_deployer.deploy(staging_file_path, target_file_path)
updated_info = File.stat(target_file_path)
- expect(unix_invariant_properies(original_info)).to eq(unix_invariant_properies(updated_info))
+ expect(unix_invariant_properties(original_info)).to eq(unix_invariant_properties(updated_info))
end
it "maintains invariant properties on Windows", :windows_only do
@@ -164,7 +164,7 @@ shared_examples_for "a content deploy strategy" do
content_deployer.deploy(staging_file_path, target_file_path)
updated_info = File.stat(target_file_path)
- expect(unix_invariant_properies(original_info)).to eq(unix_invariant_properies(updated_info))
+ expect(unix_invariant_properties(original_info)).to eq(unix_invariant_properties(updated_info))
end
end
diff --git a/spec/functional/resource/dnf_package_spec.rb b/spec/functional/resource/dnf_package_spec.rb
index ec167238f7..1d18fcd141 100644
--- a/spec/functional/resource/dnf_package_spec.rb
+++ b/spec/functional/resource/dnf_package_spec.rb
@@ -321,7 +321,7 @@ describe Chef::Resource::DnfPackage, :requires_root, external: exclude_test do
expect(shell_out("rpm -q --queryformat '%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n' chef_rpm").stdout.chomp).to match("^chef_rpm-1.10-1.#{pkg_arch}$")
end
- it "with nothing intalled, it installs the latest version" do
+ it "with nothing installed, it installs the latest version" do
flush_cache
dnf_package.package_name("chef_rpm > 1.2")
dnf_package.run_action(:install)
diff --git a/spec/functional/resource/windows_env_spec.rb b/spec/functional/resource/windows_env_spec.rb
index e5f2032795..1bedd881f1 100644
--- a/spec/functional/resource/windows_env_spec.rb
+++ b/spec/functional/resource/windows_env_spec.rb
@@ -159,7 +159,7 @@ describe Chef::Resource::WindowsEnv, :windows_only do
expect(ENV[chef_env_test_lower_case]).to eq(env_value2)
end
- # This examlpe covers Chef Issue #1754
+ # This example covers Chef Issue #1754
it "should modify an existing variable's value to a new value if the variable name case differs from the existing variable" do
expect(ENV[chef_env_test_lower_case]).to eq(env_value1)
test_resource.key_name(chef_env_test_mixed_case)
diff --git a/spec/functional/win32/versions_spec.rb b/spec/functional/win32/versions_spec.rb
index 9ce21c49f9..25e03b255f 100644
--- a/spec/functional/win32/versions_spec.rb
+++ b/spec/functional/win32/versions_spec.rb
@@ -40,7 +40,7 @@ describe "Chef::ReservedNames::Win32::Version", :windows_only do
@current_os_version = "Windows Server 2008"
else
# The name from WMI is actually what we want in Win2k8R2+.
- # So this expectation sould continue to hold without modification
+ # So this expectation should continue to hold without modification
# as new versions of Windows are released.
@current_os_version = host["caption"]
end
diff --git a/spec/support/mock/platform.rb b/spec/support/mock/platform.rb
index b0a6258276..883d953371 100644
--- a/spec/support/mock/platform.rb
+++ b/spec/support/mock/platform.rb
@@ -2,7 +2,7 @@
# platform-specific functionality.
#
# If a block is given yields to the block with +RUBY_PLATFORM+ set to
-# 'i386-mingw32' (windows) or 'x86_64-darwin11.2.0' (unix). Usueful for
+# 'i386-mingw32' (windows) or 'x86_64-darwin11.2.0' (unix). Useful for
# testing code that mixes in platform specific modules like +Chef::Mixin::Securable+
# or +Chef::FileAccessControl+
def platform_mock(platform = :unix)
diff --git a/spec/support/shared/functional/securable_resource.rb b/spec/support/shared/functional/securable_resource.rb
index 010ef27f47..4bccce7028 100644
--- a/spec/support/shared/functional/securable_resource.rb
+++ b/spec/support/shared/functional/securable_resource.rb
@@ -474,7 +474,7 @@ shared_examples_for "a securable resource without existing target" do
end
it "respects mode in string form as an octal number" do
- # on windows, mode cannot modify owner and/or group permissons
+ # on windows, mode cannot modify owner and/or group permissions
# unless the owner and/or group as appropriate is specified
resource.mode "400"
resource.owner "Guest"
diff --git a/spec/support/shared/unit/provider/file.rb b/spec/support/shared/unit/provider/file.rb
index d78eff0c90..43b616c26b 100644
--- a/spec/support/shared/unit/provider/file.rb
+++ b/spec/support/shared/unit/provider/file.rb
@@ -197,7 +197,7 @@ shared_examples_for Chef::Provider::File do
expect(provider.current_resource.name).to eql(resource.name)
end
- it "the loaded current_resource path should be the same as the resoure path" do
+ it "the loaded current_resource path should be the same as the resource path" do
provider.load_current_resource
expect(provider.current_resource.path).to eql(resource.path)
end
diff --git a/spec/support/shared/unit/user_and_client_shared.rb b/spec/support/shared/unit/user_and_client_shared.rb
index 40042933e2..1554a3dd8e 100644
--- a/spec/support/shared/unit/user_and_client_shared.rb
+++ b/spec/support/shared/unit/user_and_client_shared.rb
@@ -63,7 +63,7 @@ shared_examples_for "user or client create" do
}
end
- it "puts the public key into the objectr returned by create" do
+ it "puts the public key into the object returned by create" do
expect(rest_v1).to receive(:post).with(url, payload).and_return(payload.merge(chef_key))
new_object = object.create
expect(new_object.public_key).to eq("some_public_key")
diff --git a/spec/unit/cookbook/file_vendor_spec.rb b/spec/unit/cookbook/file_vendor_spec.rb
index 557e1b8775..b258b89d68 100644
--- a/spec/unit/cookbook/file_vendor_spec.rb
+++ b/spec/unit/cookbook/file_vendor_spec.rb
@@ -115,7 +115,7 @@ describe Chef::Cookbook::FileVendor do
file_vendor_class.fetch_from_disk(cookbook_path)
end
- it "retrieves the file from the correct location based on path to the cookbook that conatins the correct name metadata" do
+ it "retrieves the file from the correct location based on path to the cookbook that contains the correct name metadata" do
file_vendor = file_vendor_class.create_from_manifest(manifest)
file_vendor.get_filename("metadata.rb")
end
diff --git a/spec/unit/data_collector_spec.rb b/spec/unit/data_collector_spec.rb
index bc234d56aa..dc9d43dcd0 100644
--- a/spec/unit/data_collector_spec.rb
+++ b/spec/unit/data_collector_spec.rb
@@ -827,7 +827,7 @@ describe Chef::DataCollector do
it_behaves_like "sends a converge message"
end
- context "when the resource collection contains a resource that was unproccesed due to prior errors" do
+ context "when the resource collection contains a resource that was unprocessed due to prior errors" do
let(:exception) { Exception.new("imperial to metric conversion error") }
let(:error_description) { Chef::Formatters::ErrorMapper.resource_failed(new_resource, :create, exception).for_json }
let(:total_resource_count) { 2 }
diff --git a/spec/unit/event_dispatch/dispatcher_spec.rb b/spec/unit/event_dispatch/dispatcher_spec.rb
index 1db43ad740..d848f84ff5 100644
--- a/spec/unit/event_dispatch/dispatcher_spec.rb
+++ b/spec/unit/event_dispatch/dispatcher_spec.rb
@@ -123,7 +123,7 @@ describe Chef::EventDispatch::Dispatcher do
context "events that queue events" do
class Accumulator
def self.sequence
- @secuence ||= []
+ @sequence ||= []
end
end
diff --git a/spec/unit/file_content_management/deploy/mv_windows_spec.rb b/spec/unit/file_content_management/deploy/mv_windows_spec.rb
index 51c3ff051e..9a191e638c 100644
--- a/spec/unit/file_content_management/deploy/mv_windows_spec.rb
+++ b/spec/unit/file_content_management/deploy/mv_windows_spec.rb
@@ -66,7 +66,7 @@ describe Chef::FileContentManagement::Deploy::MvWindows do
end
- context "when run without adminstrator privileges" do
+ context "when run without administrator privileges" do
before do
expect(target_file_security_object).to receive(:security_descriptor).and_raise(Chef::Exceptions::Win32APIError)
end
diff --git a/spec/unit/file_content_management/tempfile_spec.rb b/spec/unit/file_content_management/tempfile_spec.rb
index a04ace5f16..62272cb440 100644
--- a/spec/unit/file_content_management/tempfile_spec.rb
+++ b/spec/unit/file_content_management/tempfile_spec.rb
@@ -98,7 +98,7 @@ describe Chef::FileContentManagement::Tempfile do
expect(tempfile.path).to match(/chef-new_file.*\.html\.erb$/)
end
- it "should pick the destdir preferrentially" do
+ it "should pick the destdir preferentially" do
subject = tempfile_object_for_path("/foo/bar/new_file")
expect(Tempfile).to receive(:open).with([tempname, ""], "/foo/bar").and_return(tempfile)
subject.send(:tempfile_open)
diff --git a/spec/unit/formatters/base_spec.rb b/spec/unit/formatters/base_spec.rb
index 19182554f9..8baed75c7c 100644
--- a/spec/unit/formatters/base_spec.rb
+++ b/spec/unit/formatters/base_spec.rb
@@ -41,7 +41,7 @@ describe Chef::Formatters::Base do
expect(formatter.output.indent).to eql(2)
end
- it "increments it and then decrements it corectly" do
+ it "increments it and then decrements it correctly" do
formatter.indent_by(2)
formatter.indent_by(-2)
expect(formatter.output.indent).to eql(0)
diff --git a/spec/unit/formatters/error_inspectors/cookbook_resolve_error_inspector_spec.rb b/spec/unit/formatters/error_inspectors/cookbook_resolve_error_inspector_spec.rb
index 35ae5378cf..78a29acaf7 100644
--- a/spec/unit/formatters/error_inspectors/cookbook_resolve_error_inspector_spec.rb
+++ b/spec/unit/formatters/error_inspectors/cookbook_resolve_error_inspector_spec.rb
@@ -81,7 +81,7 @@ describe Chef::Formatters::ErrorInspectors::CookbookResolveErrorInspector do
before do
- @response_body = "{\"error\":[{\"non_existent_cookbooks\":[],\"cookbooks_with_no_versions\":[],\"message\":\"unable to solve dependencies in alotted time.\"}]}"
+ @response_body = "{\"error\":[{\"non_existent_cookbooks\":[],\"cookbooks_with_no_versions\":[],\"message\":\"unable to solve dependencies in allotted time.\"}]}"
@response = Net::HTTPPreconditionFailed.new("1.1", "412", "(response) unauthorized")
allow(@response).to receive(:body).and_return(@response_body)
@exception = Net::HTTPClientException.new("(exception) precondition failed", @response)
@@ -93,7 +93,7 @@ describe Chef::Formatters::ErrorInspectors::CookbookResolveErrorInspector do
it "prints a pretty message" do
@description.display(@outputter)
@outputter_output.rewind
- expect(@outputter_output.read).to include("unable to solve dependencies in alotted time.")
+ expect(@outputter_output.read).to include("unable to solve dependencies in allotted time.")
end
end
diff --git a/spec/unit/http_spec.rb b/spec/unit/http_spec.rb
index bf873b8535..bb52db60fd 100644
--- a/spec/unit/http_spec.rb
+++ b/spec/unit/http_spec.rb
@@ -43,7 +43,7 @@ describe Chef::HTTP do
end
- describe "#intialize" do
+ describe "#initialize" do
it "accepts a keepalive option and passes it to the http_client" do
http = Chef::HTTP.new(uri, keepalives: true)
expect(Chef::HTTP::BasicClient).to receive(:new).with(uri, ssl_policy: Chef::HTTP::APISSLPolicy, keepalives: true).and_call_original
@@ -165,7 +165,7 @@ describe Chef::HTTP do
end
it "raises the error without retrying or sleeping" do
- # We modify the strings to give addtional context, but the exception class should be the same
+ # We modify the strings to give additional context, but the exception class should be the same
expect { http.get("/") }.to raise_error(exception.class)
end
end
diff --git a/spec/unit/key_spec.rb b/spec/unit/key_spec.rb
index efae549490..09d6b48af5 100644
--- a/spec/unit/key_spec.rb
+++ b/spec/unit/key_spec.rb
@@ -21,7 +21,7 @@ require "spec_helper"
require "chef/key"
describe Chef::Key do
- # whether user or client irrelevent to these tests
+ # whether user or client irrelevant to these tests
let(:key) { Chef::Key.new("original_actor", "user") }
let(:public_key_string) do
<<~EOS
diff --git a/spec/unit/knife/bootstrap_spec.rb b/spec/unit/knife/bootstrap_spec.rb
index 5a3d6a1475..75c8589c32 100644
--- a/spec/unit/knife/bootstrap_spec.rb
+++ b/spec/unit/knife/bootstrap_spec.rb
@@ -2035,7 +2035,7 @@ describe Chef::Knife::Bootstrap do
knife.do_connect({})
end
- context "when sshd confgiured with requiretty" do
+ context "when sshd configured with requiretty" do
let(:pty_err_msg) { "Sudo requires a TTY. Please see the README on how to configure sudo to allow for non-interactive usage." }
let(:expected_error) { Train::UserError.new(pty_err_msg, :sudo_no_tty) }
before do
diff --git a/spec/unit/knife/environment_edit_spec.rb b/spec/unit/knife/environment_edit_spec.rb
index 1f2ff27ce8..ccac745888 100644
--- a/spec/unit/knife/environment_edit_spec.rb
+++ b/spec/unit/knife/environment_edit_spec.rb
@@ -63,7 +63,7 @@ describe Chef::Knife::EnvironmentEdit do
@knife.run
end
- it "shoud show usage and exit when no environment name is provided" do
+ it "should show usage and exit when no environment name is provided" do
@knife.name_args = []
expect(@knife).to receive(:show_usage)
expect { @knife.run }.to raise_error(SystemExit)
diff --git a/spec/unit/knife/ssl_fetch_spec.rb b/spec/unit/knife/ssl_fetch_spec.rb
index fb904074b3..4b0a3b91dd 100644
--- a/spec/unit/knife/ssl_fetch_spec.rb
+++ b/spec/unit/knife/ssl_fetch_spec.rb
@@ -56,7 +56,7 @@ describe Chef::Knife::SslFetch do
context "when a specific URI is given" do
let(:name_args) { %w{https://example.test:10443/foo} }
- it "fetchs the SSL configuration against the given host" do
+ it "fetches the SSL configuration against the given host" do
expect(ssl_fetch.host).to eq("example.test")
expect(ssl_fetch.port).to eq(10443)
end
diff --git a/spec/unit/knife_spec.rb b/spec/unit/knife_spec.rb
index 47d4a6bf66..ba6a084454 100644
--- a/spec/unit/knife_spec.rb
+++ b/spec/unit/knife_spec.rb
@@ -526,7 +526,7 @@ describe Chef::Knife do
knife.run_with_pretty_exceptions
expect(stderr.string).to match(/The request that .* sent was using API version 10000000./)
- expect(stderr.string).to match(/The server you sent the request to supports a min API verson of 0 and a max API version of 1./)
+ expect(stderr.string).to match(/The server you sent the request to supports a min API version of 0 and a max API version of 1./)
expect(stderr.string).to match(/Please either update your .* or the server to be a compatible set./)
end
diff --git a/spec/unit/lwrp_spec.rb b/spec/unit/lwrp_spec.rb
index cb7ebde029..fc52560021 100644
--- a/spec/unit/lwrp_spec.rb
+++ b/spec/unit/lwrp_spec.rb
@@ -445,7 +445,7 @@ describe "LWRP" do
end
end
- context "with a cookbook with a hypen in the name" do
+ context "with a cookbook with a hyphen in the name" do
let(:lwrp_cookbook_name) { "l-w-r-p" }
diff --git a/spec/unit/mixin/openssl_helper_spec.rb b/spec/unit/mixin/openssl_helper_spec.rb
index 5155d66a22..460cd8a37d 100644
--- a/spec/unit/mixin/openssl_helper_spec.rb
+++ b/spec/unit/mixin/openssl_helper_spec.rb
@@ -862,7 +862,7 @@ describe Chef::Mixin::OpenSSLHelper do
@certfile = Tempfile.new("certfile")
end
- context "When the cert file doesnt not exist" do
+ context "When the cert file doesn't not exist" do
it "returns true" do
expect(instance.cert_need_renewall?("/tmp/bad_filename", 3650)).to be_truthy
end
@@ -876,7 +876,7 @@ describe Chef::Mixin::OpenSSLHelper do
end
end
- context "When the cert file does exist, and does not contain a soon to expire certficitate" do
+ context "When the cert file does exist, and does not contain a soon to expire certificate" do
it "returns false" do
@certfile.write("-----BEGIN CERTIFICATE-----\nMIIDODCCAiCgAwIBAgIVAPCkjE+wlZ1PgXwgvFgXKzhSpUkvMA0GCSqGSIb3DQEB\nCwUAMA0xCzAJBgNVBAMMAkNBMB4XDTE5MTIyNTEyNTY1NVoXDTI5MTIyMjEyNTY1\nNVowDTELMAkGA1UEAwwCQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB\nAQC9bDWs5akf85UEMj8kry4DYNuAnaL4GnMs6XukQtp3dso+FgbKprgVogyepnet\nE+GlQq32u/n4y8K228kB6NoCn+c/yP+4QlKUBt0xSzQbSUuAE/5xZoKi/kH1ZsQ/\nuKXN/tIHagApEUGn5zqc8WBvWPliRAqiklwj8WtSw1WRa5eCdaVtln3wKuvPnYR5\n/V4YBHyHNhtlfXJBMtEaXm1rRzJGun+FdcrsCfcIFXp8lWobF+EVP8fRwqFTEtT6\nRXv6RT8sHy53a0KNTm8qnbacfr1MofgUuhzLjOrbIVvXpnRLeOkv8XW5rSH+zgsC\nZFK3bJ3j6UVbFQV4jXwlAWVrAgMBAAGjgY4wgYswDgYDVR0PAQH/BAQDAgGmMA8G\nA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFK4S2PNu6bpjxkJxedNaxfCrwtD4MEkG\nA1UdIwRCMECAFK4S2PNu6bpjxkJxedNaxfCrwtD4oRGkDzANMQswCQYDVQQDDAJD\nQYIVAPCkjE+wlZ1PgXwgvFgXKzhSpUkvMA0GCSqGSIb3DQEBCwUAA4IBAQBGk+u3\n9N3PLWNOwYrqK7fD4yceWnz4UsV9uN1IU5PQTgYBaGyAZvU+VJluZZeDj7QjwbUW\ngISclvW/pSWpUVW3O0sfAM97u+5UMYHz4W5Bgq8CtdOKHgdZHKhzBePhmou11zO0\nZ6uQ7bkh0/REqKO7TFKaMMnakEhFXoDrS1EiB4W69KVXyrBVzVm5LK7uvOAQAeMp\nnEk3Oz+5pmKjSCf1cEd2jzAgDbaVrIvxICPgXAlNrKukmRW/0UHqDDVBfF7PioD2\nptlQFxWIkih6s/clwhsBFBwV1yyCirYfjhzmKPPLZUmx10okudLzaKrRbkPxrzbC\nmKEZoV+Nz2CNrGm5\n-----END CERTIFICATE-----\n")
@certfile.close
@@ -884,7 +884,7 @@ describe Chef::Mixin::OpenSSLHelper do
end
end
- context "When the cert file does exist, and does contain a soon to expire certficitate" do
+ context "When the cert file does exist, and does contain a soon to expire certificate" do
it "returns true" do
@certfile.write("-----BEGIN CERTIFICATE-----\nMIIDODCCAiCgAwIBAgIVAPCkjE+wlZ1PgXwgvFgXKzhSpUkvMA0GCSqGSIb3DQEB\nCwUAMA0xCzAJBgNVBAMMAkNBMB4XDTE5MTIyNTEyNTY1NVoXDTI5MTIyMjEyNTY1\nNVowDTELMAkGA1UEAwwCQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB\nAQC9bDWs5akf85UEMj8kry4DYNuAnaL4GnMs6XukQtp3dso+FgbKprgVogyepnet\nE+GlQq32u/n4y8K228kB6NoCn+c/yP+4QlKUBt0xSzQbSUuAE/5xZoKi/kH1ZsQ/\nuKXN/tIHagApEUGn5zqc8WBvWPliRAqiklwj8WtSw1WRa5eCdaVtln3wKuvPnYR5\n/V4YBHyHNhtlfXJBMtEaXm1rRzJGun+FdcrsCfcIFXp8lWobF+EVP8fRwqFTEtT6\nRXv6RT8sHy53a0KNTm8qnbacfr1MofgUuhzLjOrbIVvXpnRLeOkv8XW5rSH+zgsC\nZFK3bJ3j6UVbFQV4jXwlAWVrAgMBAAGjgY4wgYswDgYDVR0PAQH/BAQDAgGmMA8G\nA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFK4S2PNu6bpjxkJxedNaxfCrwtD4MEkG\nA1UdIwRCMECAFK4S2PNu6bpjxkJxedNaxfCrwtD4oRGkDzANMQswCQYDVQQDDAJD\nQYIVAPCkjE+wlZ1PgXwgvFgXKzhSpUkvMA0GCSqGSIb3DQEBCwUAA4IBAQBGk+u3\n9N3PLWNOwYrqK7fD4yceWnz4UsV9uN1IU5PQTgYBaGyAZvU+VJluZZeDj7QjwbUW\ngISclvW/pSWpUVW3O0sfAM97u+5UMYHz4W5Bgq8CtdOKHgdZHKhzBePhmou11zO0\nZ6uQ7bkh0/REqKO7TFKaMMnakEhFXoDrS1EiB4W69KVXyrBVzVm5LK7uvOAQAeMp\nnEk3Oz+5pmKjSCf1cEd2jzAgDbaVrIvxICPgXAlNrKukmRW/0UHqDDVBfF7PioD2\nptlQFxWIkih6s/clwhsBFBwV1yyCirYfjhzmKPPLZUmx10okudLzaKrRbkPxrzbC\nmKEZoV+Nz2CNrGm5\n-----END CERTIFICATE-----\n")
@certfile.close
diff --git a/spec/unit/node/attribute_spec.rb b/spec/unit/node/attribute_spec.rb
index 4490aca9a9..e6429c0c24 100644
--- a/spec/unit/node/attribute_spec.rb
+++ b/spec/unit/node/attribute_spec.rb
@@ -178,7 +178,7 @@ describe Chef::Node::Attribute do
expect(@attributes).to be_a_kind_of(Chef::Node::Attribute)
end
- it "should take an Automatioc, Normal, Default and Override hash" do
+ it "should take an Automatic, Normal, Default and Override hash" do
expect { Chef::Node::Attribute.new({}, {}, {}, {}) }.not_to raise_error
end
diff --git a/spec/unit/node_spec.rb b/spec/unit/node_spec.rb
index 5b50f888f0..e21328d373 100644
--- a/spec/unit/node_spec.rb
+++ b/spec/unit/node_spec.rb
@@ -297,7 +297,7 @@ describe Chef::Node do
expect(node[:snoopy][:is_a_puppy]).to eq(true)
end
- it "should let you use tag as a convience method for the tags attribute" do
+ it "should let you use tag as a convince method for the tags attribute" do
node.normal["tags"] = %w{one two}
node.tag("three", "four")
expect(node["tags"]).to eq(%w{one two three four})
@@ -436,7 +436,7 @@ describe Chef::Node do
node.override["mysql"]["server"]["port"] = 3456
end
- it "deletes all the values and returns the value with the highest precidence" do
+ it "deletes all the values and returns the value with the highest precedence" do
expect( node.rm("mysql", "server", "port") ).to eql(3456)
expect( node["mysql"]["server"]["port"] ).to be_nil
expect( node["mysql"]["server"] ).to eql({})
@@ -527,7 +527,7 @@ describe Chef::Node do
expect( node.rm_default("mysql", "server", "port") ).to eql(3456)
end
- it "returns nil for the combined attribues" do
+ it "returns nil for the combined attributes" do
expect( node.rm_default("mysql", "server", "port") ).to eql(3456)
expect( node["mysql"]["server"]["port"] ).to eql(nil)
end
@@ -633,7 +633,7 @@ describe Chef::Node do
expect( node["mysql"]["server"] ).to eql({ "data_dir" => "/my_raid_volume/lib/mysql" })
end
- it "replaces a value at the cookbook sub-level of the atributes only" do
+ it "replaces a value at the cookbook sub-level of the attributes only" do
node.default["mysql"]["server"]["port"] = 2345
node.default["mysql"]["server"]["service_name"] = "fancypants-sql"
node.role_default["mysql"]["server"]["port"] = 1234
@@ -1764,7 +1764,7 @@ describe Chef::Node do
a = node.default["foo"]
# assign that somewhere else in the tree
node.default["fizz"] = a
- # now upate the source
+ # now update the source
a["duptest"] = true
# the tree should have been updated
expect(node.default["fizz"]["duptest"]).to be true
diff --git a/spec/unit/property_spec.rb b/spec/unit/property_spec.rb
index 177314d8bc..1e6ec8878a 100644
--- a/spec/unit/property_spec.rb
+++ b/spec/unit/property_spec.rb
@@ -819,7 +819,7 @@ describe "Chef::Resource.property" do
expect(resource.x).to eq 2
expect(Namer.current_index).to eq 2
end
- it "setting the same lazy value on two different instances runs it on each instancee" do
+ it "setting the same lazy value on two different instances runs it on each instances" do
resource2 = resource_class.new("blah2")
l = lazy { Namer.next_index }
resource.x l
@@ -1319,7 +1319,7 @@ describe "Chef::Resource.property" do
expect { thing_two_resource.copy_properties_from(thing_three_resource) }.to raise_error(NoMethodError)
end
- it "does not blow up if blows up if the target resource does not implement a set propery" do
+ it "does not blow up if blows up if the target resource does not implement a set properly" do
thing_three_resource.foo "foo"
thing_three_resource.bar "bar"
thing_two_resource.copy_properties_from(thing_three_resource)
diff --git a/spec/unit/provider/apt_preference_spec.rb b/spec/unit/provider/apt_preference_spec.rb
index 91b2f58acb..1cb68f9cda 100644
--- a/spec/unit/provider/apt_preference_spec.rb
+++ b/spec/unit/provider/apt_preference_spec.rb
@@ -82,7 +82,7 @@ describe "Chef::Provider::AptPreference" do
FileUtils.touch("#{pref_dir}/libmysqlclient16_1wildcard.pref")
end
- it "deletes the name santized .pref file" do
+ it "deletes the name sanitized .pref file" do
provider.run_action(:remove)
expect(new_resource).to be_updated_by_last_action
expect(File).not_to exist("#{pref_dir}/libmysqlclient16_1wildcard.pref")
diff --git a/spec/unit/provider/package/rpm_spec.rb b/spec/unit/provider/package/rpm_spec.rb
index 1c4f9d31ee..4694348438 100644
--- a/spec/unit/provider/package/rpm_spec.rb
+++ b/spec/unit/provider/package/rpm_spec.rb
@@ -50,7 +50,7 @@ describe Chef::Provider::Package::Rpm do
describe "when the package source is not valid" do
- context "when source is not defiend" do
+ context "when source is not defined" do
let(:new_resource) { Chef::Resource::RpmPackage.new("ImageMagick-c++") }
it "should raise an exception when attempting any action" do
diff --git a/spec/unit/provider/package/rubygems_spec.rb b/spec/unit/provider/package/rubygems_spec.rb
index 54b721ed40..0a55ffd784 100644
--- a/spec/unit/provider/package/rubygems_spec.rb
+++ b/spec/unit/provider/package/rubygems_spec.rb
@@ -808,7 +808,7 @@ describe Chef::Provider::Package::Rubygems do
end
end
- context "when clear_sources is set true and an explict source is specified" do
+ context "when clear_sources is set true and an explicit source is specified" do
let(:gem_binary) { "/foo/bar" }
let(:source) { "http://mirror.ops.rhcloud.com/mirror/ruby" }
@@ -821,7 +821,7 @@ describe Chef::Provider::Package::Rubygems do
end
end
- context "when clear_sources is set false and an explict source is specified" do
+ context "when clear_sources is set false and an explicit source is specified" do
let(:gem_binary) { "/foo/bar" }
let(:source) { "http://mirror.ops.rhcloud.com/mirror/ruby" }
@@ -867,7 +867,7 @@ describe Chef::Provider::Package::Rubygems do
end
describe "at version specified with comparison operator" do
- context "if current version satisifies requested version" do
+ context "if current version satisfies requested version" do
let(:target_version) { ">=2.3.0" }
let(:current_version) { "2.3.3" }
diff --git a/spec/unit/provider/package/solaris_spec.rb b/spec/unit/provider/package/solaris_spec.rb
index 5fc2d89a81..8effa82a78 100644
--- a/spec/unit/provider/package/solaris_spec.rb
+++ b/spec/unit/provider/package/solaris_spec.rb
@@ -55,7 +55,7 @@ describe Chef::Provider::Package::Solaris do
expect(@provider.current_resource.name).to eq("SUNWbash")
end
- it "should set the current reource package name to the new resource package name" do
+ it "should set the current resource package name to the new resource package name" do
allow(@provider).to receive(:shell_out_compacted).and_return(@status)
@provider.load_current_resource
expect(@provider.current_resource.package_name).to eq("SUNWbash")
diff --git a/spec/unit/provider/remote_file/http_spec.rb b/spec/unit/provider/remote_file/http_spec.rb
index 8ece1a854b..032cf474ef 100644
--- a/spec/unit/provider/remote_file/http_spec.rb
+++ b/spec/unit/provider/remote_file/http_spec.rb
@@ -305,7 +305,7 @@ describe Chef::Provider::RemoteFile::HTTP do
it "should disable gzip compression in the client" do
# Before block in the parent context has set an expectation on
- # Chef::HTTP::Simple.new() being called with expected arguments. Here we fufil
+ # Chef::HTTP::Simple.new() being called with expected arguments. Here we fulfill
# that expectation, so that we can explicitly set it for this test.
# This is intended to provide insurance that refactoring of the parent
# context does not negate the value of this particular example.
diff --git a/spec/unit/provider/service/windows_spec.rb b/spec/unit/provider/service/windows_spec.rb
index 4209624057..2815c266b8 100644
--- a/spec/unit/provider/service/windows_spec.rb
+++ b/spec/unit/provider/service/windows_spec.rb
@@ -431,7 +431,7 @@ describe Chef::Provider::Service::Windows, "load_current_resource" do
expect(provider.resource_updated?).to be false
end
- it "does not convigure service" do
+ it "does not configure service" do
expect(Win32::Service).to_not receive(:configure)
provider.action_configure
end
diff --git a/spec/unit/resource/cron_spec.rb b/spec/unit/resource/cron_spec.rb
index e70e8aa76a..4322d6c24b 100644
--- a/spec/unit/resource/cron_spec.rb
+++ b/spec/unit/resource/cron_spec.rb
@@ -139,7 +139,7 @@ describe Chef::Resource::Cron do
end
end
- describe "when it has a time (minute, hour, day, month, weeekend) and user" do
+ describe "when it has a time (minute, hour, day, month, weekend) and user" do
before do
resource.command("tackle")
resource.minute("1")
diff --git a/spec/unit/resource/remote_file_spec.rb b/spec/unit/resource/remote_file_spec.rb
index 27b889ea9e..62dca20ddf 100644
--- a/spec/unit/resource/remote_file_spec.rb
+++ b/spec/unit/resource/remote_file_spec.rb
@@ -78,7 +78,7 @@ describe Chef::Resource::RemoteFile do
expect(resource.source).to eql(["file:///C:/foo bar"])
end
- it "accepts a delayed evalutator (string) for the remote file source" do
+ it "accepts a delayed evaluator (string) for the remote file source" do
resource.source Chef::DelayedEvaluator.new { "http://opscode.com/" }
expect(resource.source).to eql([ "http://opscode.com/" ])
end
@@ -165,7 +165,7 @@ describe Chef::Resource::RemoteFile do
expect(resource.use_last_modified).to be_truthy
end
- it "disables etags indivdually" do
+ it "disables etags individually" do
resource.use_etags(false)
expect(resource.use_etags).to be_falsey
expect(resource.use_last_modified).to be_truthy
diff --git a/spec/unit/resource_reporter_spec.rb b/spec/unit/resource_reporter_spec.rb
index 22bba578eb..1c6b063198 100644
--- a/spec/unit/resource_reporter_spec.rb
+++ b/spec/unit/resource_reporter_spec.rb
@@ -794,7 +794,7 @@ describe Chef::ResourceReporter do
end
- it "should raise if an unkwown error happens" do
+ it "should raise if an unknown error happens" do
allow(rest_client).to receive(:raw_request).and_raise(Exception.new)
expect do
diff --git a/spec/unit/resource_spec.rb b/spec/unit/resource_spec.rb
index d6b67e6f2e..d41cc0e8a3 100644
--- a/spec/unit/resource_spec.rb
+++ b/spec/unit/resource_spec.rb
@@ -366,7 +366,7 @@ describe Chef::Resource do
end
context "when property is sensitive" do
- it "supresses that properties value" do
+ it "suppresses that properties value" do
resource_class = Class.new(Chef::Resource) { property :foo, String, sensitive: true }
resource = resource_class.new("sensitive_property_tests")
resource.foo = "some value"
@@ -375,7 +375,7 @@ describe Chef::Resource do
end
context "when property is required" do
- it "does not propagate vailidation errors" do
+ it "does not propagate validation errors" do
resource_class = Class.new(Chef::Resource) { property :foo, String, required: true }
resource = resource_class.new("required_property_tests")
expect { resource.to_text }.to_not raise_error Chef::Exceptions::ValidationFailed
@@ -1027,7 +1027,7 @@ describe Chef::Resource do
describe "with a syntax error in the resource spec" do
- it "raises an exception immmediately" do
+ it "raises an exception immediately" do
expect do
resource.notifies(:run, "typo[missing-closing-bracket")
end.to raise_error(Chef::Exceptions::InvalidResourceSpecification)
@@ -1069,7 +1069,7 @@ describe Chef::Resource do
error_inspector = Chef::Formatters::ErrorInspectors::ResourceFailureInspector.new(resource, action, err)
description = Chef::Formatters::ErrorDescription.new("test")
error_inspector.add_explanation(description)
- Chef::Log.info("descrtiption: #{description.inspect},error_inspector: #{error_inspector}")
+ Chef::Log.info("description: #{description.inspect},error_inspector: #{error_inspector}")
description.sections[1]["Compiled Resource:"]
end
diff --git a/spec/unit/run_list/versioned_recipe_list_spec.rb b/spec/unit/run_list/versioned_recipe_list_spec.rb
index e116ffc130..03eef8da3c 100644
--- a/spec/unit/run_list/versioned_recipe_list_spec.rb
+++ b/spec/unit/run_list/versioned_recipe_list_spec.rb
@@ -69,7 +69,7 @@ describe Chef::RunList::VersionedRecipeList do
expect(list.with_versions).to include({ name: "rails", version: "1.0.0" })
end
- it "should allow you to spcify no version, even when a version already exists" do
+ it "should allow you to specify no version, even when a version already exists" do
list.add_recipe "rails", "1.0.0"
list.add_recipe "rails"
expect(list.with_versions).to include({ name: "rails", version: "1.0.0" })
diff --git a/spec/unit/util/diff_spec.rb b/spec/unit/util/diff_spec.rb
index 70376bcdb1..113910ed30 100644
--- a/spec/unit/util/diff_spec.rb
+++ b/spec/unit/util/diff_spec.rb
@@ -402,7 +402,7 @@ shared_examples_for "a diff util" do
end
end
- it "should identify null-teriminated multi-line string files as binary" do
+ it "should identify null-terminated multi-line string files as binary" do
Tempfile.open("chef-util-diff-spec") do |file|
file.write("This is a binary file.\nNo Really\nit is\0")
file.close
diff --git a/spec/unit/util/dsc/resource_store.rb b/spec/unit/util/dsc/resource_store.rb
index a864a2c1da..a91b10d3c0 100644
--- a/spec/unit/util/dsc/resource_store.rb
+++ b/spec/unit/util/dsc/resource_store.rb
@@ -55,7 +55,7 @@ describe Chef::Util::DSC::ResourceStore do
expect(resource_store.find("foo")).to eql([resource_a])
end
- it "returns multiple resoures if they are found" do
+ it "returns multiple resources if they are found" do
expect(resource_store).to receive(:query_resource).and_return([resource_a, resource_b])
expect(resource_store.find("foo")).to include(resource_a, resource_b)
end
diff --git a/spec/unit/util/file_edit_spec.rb b/spec/unit/util/file_edit_spec.rb
index 5c5b04d8a5..14e675d41c 100644
--- a/spec/unit/util/file_edit_spec.rb
+++ b/spec/unit/util/file_edit_spec.rb
@@ -105,7 +105,7 @@ describe Chef::Util::FileEdit do
target_file.close!
end
- describe "initialiize" do
+ describe "initialize" do
it "should create a new Chef::Util::FileEdit object" do
expect(fedit).to be_instance_of(Chef::Util::FileEdit)
end
diff --git a/spec/unit/util/windows/logon_session_spec.rb b/spec/unit/util/windows/logon_session_spec.rb
index 8a94802bf6..8d8d613b77 100644
--- a/spec/unit/util/windows/logon_session_spec.rb
+++ b/spec/unit/util/windows/logon_session_spec.rb
@@ -31,7 +31,7 @@ describe ::Chef::Util::Windows::LogonSession do
let(:authentication) { :remote }
shared_examples_for "it received syntactically invalid credentials" do
- it "does not raisees an exception when it is initialized" do
+ it "does not raises an exception when it is initialized" do
expect { session }.to raise_error(ArgumentError)
end
end