summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2021-04-07 16:48:19 -0700
committerTim Smith <tsmith84@gmail.com>2021-04-07 16:48:19 -0700
commit578ea82edde44160bbbcc48f537cb367702cc37f (patch)
tree7ea968efea30277c0938450e02814f9d2933e036
parent73da461db30f772932ed284c8351ef425e60151a (diff)
downloadchef-578ea82edde44160bbbcc48f537cb367702cc37f.tar.gz
Fix failing Fauxhai related specs
Don't specify exact versions. Let fauxhai do what it does Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--chef-utils/spec/unit/dsl/platform_family_spec.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/chef-utils/spec/unit/dsl/platform_family_spec.rb b/chef-utils/spec/unit/dsl/platform_family_spec.rb
index fdf4584afd..714a9f0a45 100644
--- a/chef-utils/spec/unit/dsl/platform_family_spec.rb
+++ b/chef-utils/spec/unit/dsl/platform_family_spec.rb
@@ -90,13 +90,13 @@ RSpec.describe ChefUtils::DSL::PlatformFamily do
end
context "on centos6" do
- let(:options) { { platform: "centos", version: "6.10" } }
+ let(:options) { { platform: "centos", version: "6" } }
pf_reports_true_for(:rhel?, :rpm_based?, :fedora_derived?, :redhat_based?, :el?, :rhel6?)
end
context "on centos7" do
- let(:options) { { platform: "centos", version: "7.7.1908" } }
+ let(:options) { { platform: "centos", version: "7" } }
pf_reports_true_for(:rhel?, :rpm_based?, :fedora_derived?, :redhat_based?, :el?, :rhel7?)
end
@@ -108,7 +108,7 @@ RSpec.describe ChefUtils::DSL::PlatformFamily do
end
context "on clearos7" do
- let(:options) { { platform: "clearos", version: "7.4" } }
+ let(:options) { { platform: "clearos", version: "7" } }
pf_reports_true_for(:rhel?, :rpm_based?, :fedora_derived?, :redhat_based?, :el?, :rhel7?)
end
@@ -156,25 +156,25 @@ RSpec.describe ChefUtils::DSL::PlatformFamily do
end
context "on oracle6" do
- let(:options) { { platform: "oracle", version: "6.10" } }
+ let(:options) { { platform: "oracle", version: "6" } }
pf_reports_true_for(:rhel?, :rpm_based?, :fedora_derived?, :redhat_based?, :el?, :rhel6?)
end
context "on oracle7" do
- let(:options) { { platform: "oracle", version: "7.6" } }
+ let(:options) { { platform: "oracle", version: "7" } }
pf_reports_true_for(:rhel?, :rpm_based?, :fedora_derived?, :redhat_based?, :el?, :rhel7?)
end
context "on redhat6" do
- let(:options) { { platform: "redhat", version: "6.10" } }
+ let(:options) { { platform: "redhat", version: "6" } }
pf_reports_true_for(:rhel?, :rpm_based?, :fedora_derived?, :redhat_based?, :el?, :rhel6?)
end
context "on redhat7" do
- let(:options) { { platform: "redhat", version: "7.6" } }
+ let(:options) { { platform: "redhat", version: "7" } }
pf_reports_true_for(:rhel?, :rpm_based?, :fedora_derived?, :redhat_based?, :el?, :rhel7?)
end