diff options
author | Tim Smith <tsmith@chef.io> | 2021-01-12 14:13:03 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-12 14:13:03 -0800 |
commit | 71f2f96260252ee0854b8e62b61784ebdeb77e70 (patch) | |
tree | b3a7be3706dc8c435caa2e91626bed9a3eeeea77 | |
parent | 21d2bc2c049ec4f894627865c4a8a3b2e63b5206 (diff) | |
parent | 5c6a06b1360ff3905b50dcfa3e20de2af3ea709a (diff) | |
download | chef-71f2f96260252ee0854b8e62b61784ebdeb77e70.tar.gz |
Merge pull request #10868 from coldiron/aixinit_service_spec.rb-typo
Signed-off-by: Tim Smith <tsmith@chef.io>
-rwxr-xr-x | spec/functional/resource/aixinit_service_spec.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/functional/resource/aixinit_service_spec.rb b/spec/functional/resource/aixinit_service_spec.rb index c568d40a8d..1d54fbc816 100755 --- a/spec/functional/resource/aixinit_service_spec.rb +++ b/spec/functional/resource/aixinit_service_spec.rb @@ -34,7 +34,7 @@ describe Chef::Resource::Service, :requires_root, :aix_only do expect(File.exist?("#{Dir.tmpdir}/#{file_name}")).to be_falsey end - def valide_symlinks(expected_output, run_level = nil, status = nil, priority = nil) + def valid_symlinks(expected_output, run_level = nil, status = nil, priority = nil) directory = [] if priority.is_a? Hash priority.each do |level, o| @@ -129,7 +129,7 @@ describe Chef::Resource::Service, :requires_root, :aix_only do context "when the service doesn't set a priority" do it "creates symlink with status S" do new_resource.run_action(:enable) - valide_symlinks(["/etc/rc.d/rc2.d/Schefinittest"], 2, "S") + valid_symlinks(["/etc/rc.d/rc2.d/Schefinittest"], 2, "S") end end @@ -140,7 +140,7 @@ describe Chef::Resource::Service, :requires_root, :aix_only do it "creates a symlink with status S and a priority" do new_resource.run_action(:enable) - valide_symlinks(["/etc/rc.d/rc2.d/S75chefinittest"], 2, "S", 75) + valid_symlinks(["/etc/rc.d/rc2.d/S75chefinittest"], 2, "S", 75) end end @@ -152,7 +152,7 @@ describe Chef::Resource::Service, :requires_root, :aix_only do it "create symlink with status start (S) or stop (K) and a priority " do new_resource.run_action(:enable) - valide_symlinks(["/etc/rc.d/rc2.d/S20chefinittest", "/etc/rc.d/rc3.d/K10chefinittest"], 2, "S", new_resource.priority) + valid_symlinks(["/etc/rc.d/rc2.d/S20chefinittest", "/etc/rc.d/rc3.d/K10chefinittest"], 2, "S", new_resource.priority) end end end @@ -170,7 +170,7 @@ describe Chef::Resource::Service, :requires_root, :aix_only do it "creates symlink with status K" do new_resource.run_action(:disable) - valide_symlinks(["/etc/rc.d/rc2.d/Kchefinittest"], 2, "K") + valid_symlinks(["/etc/rc.d/rc2.d/Kchefinittest"], 2, "K") end end @@ -186,7 +186,7 @@ describe Chef::Resource::Service, :requires_root, :aix_only do it "creates a symlink with status K and a priority" do new_resource.run_action(:disable) - valide_symlinks(["/etc/rc.d/rc2.d/K25chefinittest"], 2, "K", 25) + valid_symlinks(["/etc/rc.d/rc2.d/K25chefinittest"], 2, "K", 25) end end @@ -203,7 +203,7 @@ describe Chef::Resource::Service, :requires_root, :aix_only do it "create symlink with status stop (K) and a priority " do new_resource.run_action(:disable) - valide_symlinks(["/etc/rc.d/rc2.d/K80chefinittest"], 2, "K", 80) + valid_symlinks(["/etc/rc.d/rc2.d/K80chefinittest"], 2, "K", 80) end end end |