summaryrefslogtreecommitdiff
path: root/spec/functional
diff options
context:
space:
mode:
authordheerajd-msys <dheeraj.dubey@msystechnologies.com>2018-09-04 15:25:29 +0530
committerdheerajd-msys <dheeraj.dubey@msystechnologies.com>2018-09-25 11:36:10 +0530
commit15544c17fe9ccea0408ddf4d652b1678ebcdd592 (patch)
tree244f2c9abd03af1569bd3498618f66eb56738972 /spec/functional
parentbf03eadf0ed4533932d026a1aaa2cced7b77d743 (diff)
downloadchef-15544c17fe9ccea0408ddf4d652b1678ebcdd592.tar.gz
add suse rspec testing
Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
Diffstat (limited to 'spec/functional')
-rw-r--r--spec/functional/resource/zypper_package_spec.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/functional/resource/zypper_package_spec.rb b/spec/functional/resource/zypper_package_spec.rb
index 16fc4d205c..c95c3575ca 100644
--- a/spec/functional/resource/zypper_package_spec.rb
+++ b/spec/functional/resource/zypper_package_spec.rb
@@ -20,9 +20,7 @@ require "spec_helper"
require "functional/resource/base"
require "chef/mixin/shell_out"
-# run this test only for following platforms.
-exclude_test = !(%w{suse}.include?(ohai[:platform_family]) && !File.exist?("/usr/bin/zypper"))
-describe Chef::Resource::ZypperPackage, :requires_root, external: exclude_test do
+describe Chef::Resource::ZypperPackage, :requires_root, :suse_only do
include Chef::Mixin::ShellOut
# NOTE: every single test here needs to explicitly call preinstall.
@@ -97,7 +95,7 @@ describe Chef::Resource::ZypperPackage, :requires_root, external: exclude_test d
end
end
- context "with versions or globs in the name" do
+ context "with versions" do
it "works with a version" do
zypper_package.package_name("chef_rpm")
zypper_package.version("1.10")