chef-zero 15.0.26 → 15.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/chef_zero/version.rb +1 -1
- data/spec/run_oc_pedant.rb +2 -18
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 00071a8eebf554379bd831d228ca87964ee665a935232b1055ab0ab9628117d4
|
|
4
|
+
data.tar.gz: 15c1ee1fbe857a55ee344ecd1329b786731bc7526cb0d4b56d6801595e7e3520
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0e35acb20599a35cf00e7475172c6596b898f5e2597a12421a2f01d50d84afd4431157ec6f6d41e6f9854d6a912f1bd94d6ea559d941e3a54d6d39cbab5c2108
|
|
7
|
+
data.tar.gz: cb64bb7aa2be0a339c2508c06355f2b45bcdfdb2d3fef7ffa50d5ad2ed0a85de3381c80039d14fea7a1d5fbc00891c60cc095dfd01ecb64dba4565d2c8c8fe5c
|
data/lib/chef_zero/version.rb
CHANGED
data/spec/run_oc_pedant.rb
CHANGED
|
@@ -52,13 +52,6 @@ def start_cheffs_server(chef_repo_path)
|
|
|
52
52
|
|
|
53
53
|
Dir.mkdir(chef_repo_path) unless File.exist?(chef_repo_path)
|
|
54
54
|
|
|
55
|
-
# 11.6 and below had a bug where it couldn't create the repo children automatically
|
|
56
|
-
if Chef::VERSION.to_f < 11.8
|
|
57
|
-
%w{clients cookbooks data_bags environments nodes roles users}.each do |child|
|
|
58
|
-
Dir.mkdir("#{chef_repo_path}/#{child}") unless File.exist?("#{chef_repo_path}/#{child}")
|
|
59
|
-
end
|
|
60
|
-
end
|
|
61
|
-
|
|
62
55
|
# Start the new server
|
|
63
56
|
Chef::Config.repo_mode = "hosted_everything"
|
|
64
57
|
Chef::Config.chef_repo_path = chef_repo_path
|
|
@@ -125,7 +118,8 @@ begin
|
|
|
125
118
|
Pedant.config[:config_file] = "spec/support/oc_pedant.rb"
|
|
126
119
|
|
|
127
120
|
# Because ChefFS can only ever have one user (pivotal), we can't do most of the
|
|
128
|
-
# tests that involve multiple
|
|
121
|
+
# tests that involve multiple users. All modern Chef versions (>= 12.13.19)
|
|
122
|
+
# support keys, ACL, cookbook-artifacts, and policies, so we don't skip those.
|
|
129
123
|
chef_fs_skips = if ENV["CHEF_FS"]
|
|
130
124
|
[ "--skip-association",
|
|
131
125
|
"--skip-users",
|
|
@@ -137,16 +131,6 @@ begin
|
|
|
137
131
|
[]
|
|
138
132
|
end
|
|
139
133
|
|
|
140
|
-
unless Gem::Requirement.new(">= 12.8.0").satisfied_by?(Gem::Version.new(Chef::VERSION))
|
|
141
|
-
chef_fs_skips << "--skip-keys"
|
|
142
|
-
end
|
|
143
|
-
|
|
144
|
-
unless Gem::Requirement.new(">= 12.13.19").satisfied_by?(Gem::Version.new(Chef::VERSION))
|
|
145
|
-
chef_fs_skips << "--skip-acl"
|
|
146
|
-
chef_fs_skips << "--skip-cookbook-artifacts"
|
|
147
|
-
chef_fs_skips << "--skip-policies"
|
|
148
|
-
end
|
|
149
|
-
|
|
150
134
|
# These things aren't supported by Chef Zero in any mode of operation:
|
|
151
135
|
default_skips = [
|
|
152
136
|
# "the goal is that only authorization, authentication and validation tests
|