summaryrefslogtreecommitdiff
path: root/spec/functional/resource/cron_spec.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-10-28 19:15:22 -0700
committerTim Smith <tsmith84@gmail.com>2020-10-28 19:15:22 -0700
commit362d7f12a4f01e7edf68d5501fece6511bd49a67 (patch)
treee0580e45e21498c257f45b373c366b1f4f6dba33 /spec/functional/resource/cron_spec.rb
parent6d24e6a0c44180df372484c5906810e70e41e818 (diff)
downloadchef-362d7f12a4f01e7edf68d5501fece6511bd49a67.tar.gz
Remove opensolaris as well
https://en.wikipedia.org/wiki/OpenSolaris Latest release 2009.06 / June 1, 2009; 11 years ago "OpenSolaris is a discontinued open source computer operating system based on Solaris and created by Sun Microsystems." Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec/functional/resource/cron_spec.rb')
-rw-r--r--spec/functional/resource/cron_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/functional/resource/cron_spec.rb b/spec/functional/resource/cron_spec.rb
index 009234f527..fa53eb08a1 100644
--- a/spec/functional/resource/cron_spec.rb
+++ b/spec/functional/resource/cron_spec.rb
@@ -26,7 +26,7 @@ describe Chef::Resource::Cron, :requires_root, :unix_only do
# Platform specific validation routines.
def cron_should_exists(cron_name, command)
case ohai[:platform]
- when "aix", "opensolaris", "solaris2", "omnios"
+ when "aix", "solaris2", "omnios"
expect(shell_out("crontab -l #{new_resource.user} | grep \"#{cron_name}\"").exitstatus).to eq(0)
expect(shell_out("crontab -l #{new_resource.user} | grep \"#{cron_name}\"").stdout.lines.to_a.size).to eq(1)
expect(shell_out("crontab -l #{new_resource.user} | grep \"#{command}\"").exitstatus).to eq(0)
@@ -41,7 +41,7 @@ describe Chef::Resource::Cron, :requires_root, :unix_only do
def cron_should_not_exists(cron_name)
case ohai[:platform]
- when "aix", "opensolaris", "solaris2", "omnios"
+ when "aix", "solaris2", "omnios"
expect(shell_out("crontab -l #{new_resource.user} | grep \"#{cron_name}\"").exitstatus).to eq(1)
expect(shell_out("crontab -l #{new_resource.user} | grep \"#{new_resource.command}\"").stdout.lines.to_a.size).to eq(0)
else
@@ -113,7 +113,7 @@ describe Chef::Resource::Cron, :requires_root, :unix_only do
end
end
- exclude_solaris = %w{solaris opensolaris solaris2 omnios}.include?(ohai[:platform])
+ exclude_solaris = %w{solaris solaris2 omnios}.include?(ohai[:platform])
describe "create action with various attributes", external: exclude_solaris do
def create_and_validate_with_property(resource, attribute, value)
if ohai[:platform] == "aix"