diff options
author | Scott Hain <shain@chef.io> | 2017-11-15 13:55:58 -0800 |
---|---|---|
committer | Scott Hain <shain@chef.io> | 2017-12-11 14:31:04 -0800 |
commit | 969219310e505bd7335a8c3931dc997dcbd14565 (patch) | |
tree | afbc21169ec6872b071309098a9886817d496801 | |
parent | 7938b1d6fc634ab7daafe017853aca299ebe936b (diff) | |
download | chef-969219310e505bd7335a8c3931dc997dcbd14565.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" |