spec/unit/plugins/linux/platform_spec.rb in ohai-14.5.4 vs spec/unit/plugins/linux/platform_spec.rb in ohai-14.6.2
- old
+ new
@@ -707,10 +707,11 @@
let(:have_suse_release) { false }
let(:have_os_release) { true }
let(:os_release_content) do
<<~OS_RELEASE
+ NAME="SLES"
VERSION="15"
VERSION_ID="15"
PRETTY_NAME="SUSE Linux Enterprise Server 15"
ID="sles"
ID_LIKE="suse"
@@ -725,10 +726,10 @@
expect(File).to receive(:read).with("/etc/os-release").and_return(os_release_content)
end
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
end