diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2020-11-11 15:23:20 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2020-11-11 15:23:20 -0800 |
commit | fc2f678ad1a0fe95f4d2cd1b275357e91bdaed2e (patch) | |
tree | 41b104ee15eb89cae766e47f9ff0d93c4143ffe8 /spec/unit/provider | |
parent | f583db2d28bb78622d55e6c4b1a26a64b55b1e41 (diff) | |
download | chef-fc2f678ad1a0fe95f4d2cd1b275357e91bdaed2e.tar.gz |
update zypper_package
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/unit/provider')
-rw-r--r-- | spec/unit/provider/package/zypper_spec.rb | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/spec/unit/provider/package/zypper_spec.rb b/spec/unit/provider/package/zypper_spec.rb index fe1cd25ee3..a1f6629f55 100644 --- a/spec/unit/provider/package/zypper_spec.rb +++ b/spec/unit/provider/package/zypper_spec.rb @@ -96,31 +96,6 @@ describe Chef::Provider::Package::Zypper do provider.load_current_resource end - it "should set the candidate version if zypper info has one (zypper version < 1.13.0)" do - status = double(stdout: "Version: 1.0\nInstalled: No\nStatus: out-of-date (version 0.9 installed)", exitstatus: 0) - - allow(provider).to receive(:shell_out_compacted!).and_return(status) - provider.load_current_resource - expect(provider.candidate_version).to eql(["1.0"]) - end - - it "should set the candidate version if zypper info has one (zypper version >= 1.13.0)" do - status = double(stdout: "Version : 1.0 \nInstalled : No \nStatus : out-of-date (version 0.9 installed)", exitstatus: 0) - - allow(provider).to receive(:shell_out_compacted!).and_return(status) - provider.load_current_resource - expect(provider.candidate_version).to eql(["1.0"]) - end - - it "should have differing current and candidate versions if zypper detects an upgrade" do - status = double(stdout: "Version : 1.0 \nInstalled : Yes \nStatus : out-of-date (version 0.9 installed)", exitstatus: 0) - - allow(provider).to receive(:shell_out_compacted!).and_return(status) - provider.load_current_resource - expect(provider.get_current_versions).to eq(["0.9"]) - expect(provider.get_candidate_versions).to eq(["1.0"]) - end - it "should return the current resouce" do expect(provider.load_current_resource).to eql(current_resource) end |