diff options
author | Ashwin <avarma@msystechnologies.com> | 2021-08-06 14:11:28 +0530 |
---|---|---|
committer | Ashwin <avarma@msystechnologies.com> | 2021-08-06 14:11:28 +0530 |
commit | 980788a0e3cdc79e7d63ae15b81412984f096801 (patch) | |
tree | 37465c180e8b77bc36d2c84d365960d4932f3c3f | |
parent | 819258399fef288bee3aa3ff3ff2b7159b780441 (diff) | |
download | chef-980788a0e3cdc79e7d63ae15b81412984f096801.tar.gz |
Revert "Adding a spec for #resolve_available_version method to return nil if the package does not exists"
This reverts commit 819258399fef288bee3aa3ff3ff2b7159b780441.
-rw-r--r-- | spec/functional/resource/zypper_package_spec.rb | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/spec/functional/resource/zypper_package_spec.rb b/spec/functional/resource/zypper_package_spec.rb index 4aedca5f58..ce6a3bf33c 100644 --- a/spec/functional/resource/zypper_package_spec.rb +++ b/spec/functional/resource/zypper_package_spec.rb @@ -171,26 +171,6 @@ describe Chef::Resource::ZypperPackage, :requires_root, :suse_only do expect(shell_out("rpm -q --queryformat '%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n' chef_rpm").stdout.chomp).to match("^package chef_rpm is not installed$") end - it "does not remove the package twice" do - preinstall("chef_rpm-1.10-1.#{pkg_arch}.rpm") - zypper_package.run_action(:remove) - expect(zypper_package.updated_by_last_action?).to be true - expect(shell_out("rpm -q --queryformat '%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n' chef_rpm").stdout.chomp).to match("^package chef_rpm is not installed$") - zypper_package.run_action(:remove) - expect(zypper_package.updated_by_last_action?).to be false - expect(shell_out("rpm -q --queryformat '%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n' chef_rpm").stdout.chomp).to match("^package chef_rpm is not installed$") - end - - it "does not remove the package if doesn't exists" do - # preinstall("chef_rpm-1.10-1.#{pkg_arch}.rpm") - zypper_package.run_action(:remove) - expect(zypper_package.updated_by_last_action?).to be true - expect(shell_out("rpm -q --queryformat '%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n' chef_rpm").stdout.chomp).to match("^package chef_rpm is not installed$") - zypper_package.run_action(:remove) - expect(zypper_package.updated_by_last_action?).to be false - expect(shell_out("rpm -q --queryformat '%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n' chef_rpm").stdout.chomp).to match("^package chef_rpm is not installed$") - end - it "removes the package if the prior version package is installed" do preinstall("chef_rpm-1.2-1.#{pkg_arch}.rpm") zypper_package.run_action(:remove) |