diff options
author | Scott Hain <shain@chef.io> | 2017-11-15 13:55:58 -0800 |
---|---|---|
committer | Scott Hain <shain@chef.io> | 2017-11-15 13:55:58 -0800 |
commit | d5b796189998cc778a4afb16bc54a0987cf36b5c (patch) | |
tree | 50372080d83c963ae5bb0cd01d0b71847279af19 | |
parent | 493947028e8560e86a014aced4273f509a678c31 (diff) | |
download | chef-d5b796189998cc778a4afb16bc54a0987cf36b5c.tar.gz |
Change platform on mount and ifconfig from centos to redhat, since that is a valid value
Signed-off-by: Scott Hain <shain@chef.io>
-rw-r--r-- | spec/functional/resource/ifconfig_spec.rb | 2 | ||||
-rw-r--r-- | spec/functional/resource/mount_spec.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/functional/resource/ifconfig_spec.rb b/spec/functional/resource/ifconfig_spec.rb index 0298dbcf45..79e0eb5f64 100644 --- a/spec/functional/resource/ifconfig_spec.rb +++ b/spec/functional/resource/ifconfig_spec.rb @@ -20,7 +20,7 @@ require "functional/resource/base" require "chef/mixin/shell_out" # run this test only for following platforms. -include_flag = !(%w{ubuntu centos aix}.include?(ohai[:platform])) +include_flag = !(%w{ubuntu redhat aix}.include?(ohai[:platform])) describe Chef::Resource::Ifconfig, :requires_root, :skip_travis, :external => include_flag do # This test does not work in travis because there is no eth0 diff --git a/spec/functional/resource/mount_spec.rb b/spec/functional/resource/mount_spec.rb index c756b0d3d4..c82181db60 100644 --- a/spec/functional/resource/mount_spec.rb +++ b/spec/functional/resource/mount_spec.rb @@ -22,7 +22,7 @@ require "chef/mixin/shell_out" require "tmpdir" # run this test only for following platforms. -include_flag = !(%w{ubuntu centos aix solaris2}.include?(ohai[:platform])) +include_flag = !(%w{ubuntu redhat aix solaris2}.include?(ohai[:platform])) describe Chef::Resource::Mount, :requires_root, :skip_travis, :external => include_flag do # Disabled in travis because it refuses to let us mount a ramdisk. /dev/ramX does not @@ -42,7 +42,7 @@ describe Chef::Resource::Mount, :requires_root, :skip_travis, :external => inclu # https://www-304.ibm.com/support/knowledgecenter/ssw_aix_71/com.ibm.aix.performance/namefs_file_sys.htm device = "/" fstype = "namefs" - when "ubuntu", "centos" + when "ubuntu", "redhat" device = "/dev/ram1" shell_out("ls -1 /dev/ram*").stdout.each_line do |d| if shell_out("mount | grep #{d}").exitstatus == "1" |