summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-10-10 12:23:57 -0700
committerTim Smith <tsmith@chef.io>2018-10-10 12:23:57 -0700
commit626ac783261a925f6ea84aee014bdb49f7e5512c (patch)
tree75d4d93b95755f0f2ba38cb87fe19aa8151a9a19 /spec
parent30066e26ea712c4170d3dbca948af6b9a3cdc3b3 (diff)
downloadohai-626ac783261a925f6ea84aee014bdb49f7e5512c.tar.gz
Correctly detect SLES 15 systems as "suse" platform
This was a mistake when we introduced it. The system self identifies as SLES, but we need to make that suse to align with SLES 11/12 detection in Ohai. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/plugins/linux/platform_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/unit/plugins/linux/platform_spec.rb b/spec/unit/plugins/linux/platform_spec.rb
index bf84d9b9..d8ea722b 100644
--- a/spec/unit/plugins/linux/platform_spec.rb
+++ b/spec/unit/plugins/linux/platform_spec.rb
@@ -709,6 +709,7 @@ CISCO_RELEASE
let(:os_release_content) do
<<~OS_RELEASE
+ NAME="SLES"
VERSION="15"
VERSION_ID="15"
PRETTY_NAME="SUSE Linux Enterprise Server 15"
@@ -727,7 +728,7 @@ OS_RELEASE
it "correctly detects SLES15" do
@plugin.run
- expect(@plugin[:platform]).to eq("sles")
+ expect(@plugin[:platform]).to eq("suse")
expect(@plugin[:platform_version]).to eq("15")
expect(@plugin[:platform_family]).to eq("suse")
end