summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2021-04-07 20:04:07 -0700
committerGitHub <noreply@github.com>2021-04-07 20:04:07 -0700
commit02341fabe2adfcf6f67791cb953a8e2db43f159f (patch)
tree3e24ed1ee5dcb51e20d2d7d1ebfab88a5cc1b784
parent4e9f9a5c72d89716d741bb2094be607481ca4ea7 (diff)
parentb9af247383ab3dd9c661c28c068314f317a2f230 (diff)
downloadchef-02341fabe2adfcf6f67791cb953a8e2db43f159f.tar.gz
Merge pull request #11332 from chef/fix_fauxhai_16
Fix failing Fauxhai related specs
-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