summaryrefslogtreecommitdiff
path: root/spec/unit/plugins/linux/platform_spec.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-12-03 13:17:38 -0800
committerGitHub <noreply@github.com>2018-12-03 13:17:38 -0800
commitd50e5f8c9889b9228d7d56d42abadb6ebeb0434b (patch)
tree286228c7f298b153ec6f72827ed9c142f927593f /spec/unit/plugins/linux/platform_spec.rb
parentac1b1ddbe302efc690486ee946f09657d201b93e (diff)
parent6932f9d1c84d9e46fb073d0ee429e6eecf8d2c54 (diff)
downloadohai-d50e5f8c9889b9228d7d56d42abadb6ebeb0434b.tar.gz
Merge pull request #1314 from chef/sled
Add support for SUSE Linux Enterprise Desktop
Diffstat (limited to 'spec/unit/plugins/linux/platform_spec.rb')
-rw-r--r--spec/unit/plugins/linux/platform_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/unit/plugins/linux/platform_spec.rb b/spec/unit/plugins/linux/platform_spec.rb
index 6260a610..43c66b63 100644
--- a/spec/unit/plugins/linux/platform_spec.rb
+++ b/spec/unit/plugins/linux/platform_spec.rb
@@ -81,30 +81,42 @@ describe Ohai::System, "Linux plugin platform" do
end
describe "#platform_id_remap" do
+ # https://github.com/chef/os_release/blob/master/redhat_7
it "returns redhat for rhel os-release id" do
expect(plugin.platform_id_remap("rhel")).to eq("redhat")
end
+ # https://github.com/chef/os_release/blob/master/amazon_2018
it "returns amazon for amzn os-release id" do
expect(plugin.platform_id_remap("amzn")).to eq("amazon")
end
+ # https://github.com/chef/os_release/blob/master/oracle_7
it "returns oracle for ol os-release id" do
expect(plugin.platform_id_remap("ol")).to eq("oracle")
end
+ # https://github.com/chef/os_release/blob/master/sled_15
+ it "returns suse for sled os-release id" do
+ expect(plugin.platform_id_remap("sled")).to eq("suse")
+ end
+
+ # https://github.com/chef/os_release/blob/master/sles_15_0
it "returns suse for sles os-release id" do
expect(plugin.platform_id_remap("sles")).to eq("suse")
end
+ # https://github.com/chef/os_release/blob/master/opensuseleap_15_0
it "returns opensuseleap for opensuse-leap os-release id" do
expect(plugin.platform_id_remap("opensuse-leap")).to eq("opensuseleap")
end
+ # https://github.com/chef/os_release/blob/master/xenserver_7_6
it "returns xenserver for xenenterprise os-release id" do
expect(plugin.platform_id_remap("xenenterprise")).to eq("xenserver")
end
+ # https://github.com/chef/os_release/blob/master/cumulus_3_7
it "returns cumulus for cumulus-linux os-release id" do
expect(plugin.platform_id_remap("cumulus-linux")).to eq("cumulus")
end