spec/unit/plugins/linux/platform_spec.rb in ohai-13.12.6 vs spec/unit/plugins/linux/platform_spec.rb in ohai-14.0.28

- old
+ new

@@ -456,26 +456,10 @@ expect(@plugin[:platform]).to eq("clearos") expect(@plugin[:platform_family]).to eq("rhel") expect(@plugin[:platform_version].to_f).to eq(7.3) end - it "should read the platform as amazon and version as 2 on the RC release" do - expect(File).to receive(:read).with("/etc/redhat-release").and_return("Amazon Linux release 2 (2017.12) LTS Release Candidate") - @plugin.run - expect(@plugin[:platform]).to eq("amazon") - expect(@plugin[:platform_family]).to eq("amazon") - expect(@plugin[:platform_version].to_f).to eq(2) - end - - it "should read the platform as amazon and version as 2 on the final release" do - expect(File).to receive(:read).with("/etc/redhat-release").and_return("Amazon Linux 2") - @plugin.run - expect(@plugin[:platform]).to eq("amazon") - expect(@plugin[:platform_family]).to eq("amazon") - expect(@plugin[:platform_version].to_f).to eq(2) - end - # https://github.com/chef/ohai/issues/560 # Issue is seen on EL7, so that's what we're testing. context "on versions that have /etc/os-release" do let(:have_os_release) { true } @@ -725,10 +709,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("suse") + expect(@plugin[:platform]).to eq("sles") expect(@plugin[:platform_version]).to eq("15") expect(@plugin[:platform_family]).to eq("suse") end end