summaryrefslogtreecommitdiff
path: root/spec/run_oc_pedant.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/run_oc_pedant.rb')
-rw-r--r--spec/run_oc_pedant.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/spec/run_oc_pedant.rb b/spec/run_oc_pedant.rb
index 0347fbc..e87fc66 100644
--- a/spec/run_oc_pedant.rb
+++ b/spec/run_oc_pedant.rb
@@ -135,16 +135,17 @@ begin
else
[]
end
- # The latest released Chef doesn't do ACLs, Cookbook Artifacts or Policies yet
- chef_fs_skips << "--skip-acl"
- chef_fs_skips << "--skip-cookbook-artifacts"
- chef_fs_skips << "--skip-policies"
- # Multi-keys don't work prior to 12.8
unless Gem::Requirement.new(">= 12.8.0").satisfied_by?(Gem::Version.new(Chef::VERSION))
chef_fs_skips << "--skip-keys"
end
+ unless Gem::Requirement.new(">= 12.13.19").satisfied_by?(Gem::Version.new(Chef::VERSION))
+ chef_fs_skips << "--skip-acl"
+ chef_fs_skips << "--skip-cookbook-artifacts"
+ chef_fs_skips << "--skip-policies"
+ end
+
# These things aren't supported by Chef Zero in any mode of operation:
default_skips = [
# "the goal is that only authorization, authentication and validation tests