chef-dk 2.0.26 → 2.0.28
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/Gemfile.lock +17 -18
- data/acceptance/Gemfile.lock +110 -30
- data/lib/chef-dk/authenticated_http.rb +2 -19
- data/lib/chef-dk/command/diff.rb +4 -4
- data/lib/chef-dk/policyfile/chef_server_cookbook_source.rb +2 -2
- data/lib/chef-dk/policyfile/lister.rb +2 -2
- data/lib/chef-dk/policyfile_services/clean_policies.rb +3 -3
- data/lib/chef-dk/policyfile_services/clean_policy_cookbooks.rb +5 -5
- data/lib/chef-dk/policyfile_services/push.rb +2 -2
- data/lib/chef-dk/policyfile_services/push_archive.rb +4 -4
- data/lib/chef-dk/policyfile_services/rm_policy.rb +5 -5
- data/lib/chef-dk/policyfile_services/rm_policy_group.rb +5 -5
- data/lib/chef-dk/policyfile_services/show_policy.rb +3 -3
- data/lib/chef-dk/policyfile_services/undelete.rb +2 -2
- data/lib/chef-dk/version.rb +1 -1
- data/spec/unit/command/diff_spec.rb +1 -1
- data/spec/unit/policyfile/chef_server_cookbook_source_spec.rb +1 -1
- data/spec/unit/policyfile/comparison_base_spec.rb +1 -1
- data/spec/unit/policyfile/lister_spec.rb +2 -2
- data/spec/unit/policyfile/uploader_spec.rb +2 -2
- data/spec/unit/policyfile_evaluation_spec.rb +2 -6
- data/spec/unit/policyfile_services/clean_policies_spec.rb +2 -2
- data/spec/unit/policyfile_services/clean_policy_cookbooks_spec.rb +2 -2
- data/spec/unit/policyfile_services/push_archive_spec.rb +2 -2
- data/spec/unit/policyfile_services/push_spec.rb +2 -2
- data/spec/unit/policyfile_services/rm_policy_group_spec.rb +2 -2
- data/spec/unit/policyfile_services/rm_policy_spec.rb +2 -2
- data/spec/unit/policyfile_services/show_policy_spec.rb +2 -2
- data/spec/unit/policyfile_services/undelete_spec.rb +2 -2
- data/tasks/version.rb +1 -7
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d7c538127b41469986112eb247d10d88cb61ad50
|
|
4
|
+
data.tar.gz: 762a7278a191796c23999ef213e4ee759f4c7abd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0e60359a3e42359a7f0921566aec2eb27b03a601ca01649f1afd6d77eddfc44cea1baaa2d3fd61ce573551c2904d255c74f6a71e9b11df1a0242415c7b962231
|
|
7
|
+
data.tar.gz: 6abcb025604915f25f1d27c0ce8531d83dc0b3d0abeb9f8c8bda02840e0be03f4fa54c4fadf6ba74d5d02386ba36b9b45284dce8f0a66f8b146f1cd8ec130fe3
|
data/Gemfile.lock
CHANGED
|
@@ -14,7 +14,7 @@ GIT
|
|
|
14
14
|
PATH
|
|
15
15
|
remote: .
|
|
16
16
|
specs:
|
|
17
|
-
chef-dk (2.0.
|
|
17
|
+
chef-dk (2.0.28)
|
|
18
18
|
addressable (>= 2.3.5, < 2.6)
|
|
19
19
|
chef (~> 13.0)
|
|
20
20
|
chef-provisioning (~> 2.0)
|
|
@@ -47,17 +47,17 @@ GEM
|
|
|
47
47
|
addressable (>= 2.3.1)
|
|
48
48
|
extlib (>= 0.9.15)
|
|
49
49
|
multi_json (>= 1.0.0)
|
|
50
|
-
aws-sdk (2.10.
|
|
51
|
-
aws-sdk-resources (= 2.10.
|
|
52
|
-
aws-sdk-core (2.10.
|
|
50
|
+
aws-sdk (2.10.10)
|
|
51
|
+
aws-sdk-resources (= 2.10.10)
|
|
52
|
+
aws-sdk-core (2.10.10)
|
|
53
53
|
aws-sigv4 (~> 1.0)
|
|
54
54
|
jmespath (~> 1.0)
|
|
55
|
-
aws-sdk-resources (2.10.
|
|
56
|
-
aws-sdk-core (= 2.10.
|
|
55
|
+
aws-sdk-resources (2.10.10)
|
|
56
|
+
aws-sdk-core (= 2.10.10)
|
|
57
57
|
aws-sdk-v1 (1.67.0)
|
|
58
58
|
json (~> 1.4)
|
|
59
59
|
nokogiri (~> 1)
|
|
60
|
-
aws-sigv4 (1.0.
|
|
60
|
+
aws-sigv4 (1.0.1)
|
|
61
61
|
berkshelf (6.2.0)
|
|
62
62
|
addressable (~> 2.3, >= 2.3.4)
|
|
63
63
|
berkshelf-api-client (>= 4.0.0)
|
|
@@ -199,8 +199,8 @@ GEM
|
|
|
199
199
|
google-api-client (~> 0.8.0)
|
|
200
200
|
retryable
|
|
201
201
|
winrm-elevated
|
|
202
|
-
chef-sugar (3.
|
|
203
|
-
chef-vault (3.
|
|
202
|
+
chef-sugar (3.5.0)
|
|
203
|
+
chef-vault (3.2.0)
|
|
204
204
|
chef-zero (13.0.0)
|
|
205
205
|
ffi-yajl (~> 2.2)
|
|
206
206
|
hashie (>= 2.0, < 4.0)
|
|
@@ -397,7 +397,7 @@ GEM
|
|
|
397
397
|
fog-voxel (0.1.0)
|
|
398
398
|
fog-core
|
|
399
399
|
fog-xml
|
|
400
|
-
fog-vsphere (1.11.
|
|
400
|
+
fog-vsphere (1.11.2)
|
|
401
401
|
fog-core
|
|
402
402
|
rbvmomi (~> 1.9)
|
|
403
403
|
fog-xenserver (0.3.0)
|
|
@@ -406,14 +406,14 @@ GEM
|
|
|
406
406
|
fog-xml (0.1.3)
|
|
407
407
|
fog-core
|
|
408
408
|
nokogiri (>= 1.5.11, < 2.0.0)
|
|
409
|
-
foodcritic (11.
|
|
409
|
+
foodcritic (11.3.0)
|
|
410
410
|
cucumber-core (>= 1.3)
|
|
411
411
|
erubis
|
|
412
|
+
ffi-yajl (~> 2.0)
|
|
412
413
|
nokogiri (>= 1.5, < 2.0)
|
|
413
414
|
rake
|
|
414
415
|
rufus-lru (~> 1.0)
|
|
415
416
|
treetop (~> 1.4)
|
|
416
|
-
yajl-ruby (~> 1.1)
|
|
417
417
|
formatador (0.2.5)
|
|
418
418
|
fuzzyurl (0.9.0)
|
|
419
419
|
gherkin (4.1.3)
|
|
@@ -450,17 +450,17 @@ GEM
|
|
|
450
450
|
thor (>= 0.18.1)
|
|
451
451
|
gyoku (1.3.1)
|
|
452
452
|
builder (>= 2.1.2)
|
|
453
|
-
hashie (3.5.
|
|
453
|
+
hashie (3.5.6)
|
|
454
454
|
highline (1.7.8)
|
|
455
455
|
hitimes (1.2.5)
|
|
456
456
|
hitimes (1.2.5-x86-mingw32)
|
|
457
457
|
htmlentities (4.3.4)
|
|
458
458
|
httpclient (2.8.3)
|
|
459
|
-
i18n (0.8.
|
|
459
|
+
i18n (0.8.6)
|
|
460
460
|
inflecto (0.0.2)
|
|
461
461
|
inifile (3.0.0)
|
|
462
462
|
iniparse (1.4.4)
|
|
463
|
-
inspec (1.
|
|
463
|
+
inspec (1.31.1)
|
|
464
464
|
addressable (~> 2.4)
|
|
465
465
|
faraday (>= 0.9.0)
|
|
466
466
|
hashie (~> 3.4)
|
|
@@ -495,7 +495,7 @@ GEM
|
|
|
495
495
|
multi_json
|
|
496
496
|
retryable (~> 2.0)
|
|
497
497
|
test-kitchen (~> 1.4, >= 1.4.1)
|
|
498
|
-
kitchen-hyperv (0.
|
|
498
|
+
kitchen-hyperv (0.5.0)
|
|
499
499
|
test-kitchen (~> 1.4)
|
|
500
500
|
kitchen-inspec (0.19.0)
|
|
501
501
|
hashie (~> 3.4)
|
|
@@ -714,7 +714,7 @@ GEM
|
|
|
714
714
|
solve (3.1.0)
|
|
715
715
|
molinillo (>= 0.5)
|
|
716
716
|
semverse (>= 1.1, < 3.0)
|
|
717
|
-
specinfra (2.68.
|
|
717
|
+
specinfra (2.68.2)
|
|
718
718
|
net-scp
|
|
719
719
|
net-ssh (>= 2.7, < 5.0)
|
|
720
720
|
net-telnet
|
|
@@ -805,7 +805,6 @@ GEM
|
|
|
805
805
|
winrm (~> 2.0)
|
|
806
806
|
wmi-lite (1.0.0)
|
|
807
807
|
xml-simple (1.1.5)
|
|
808
|
-
yajl-ruby (1.3.0)
|
|
809
808
|
yard (0.9.9)
|
|
810
809
|
|
|
811
810
|
PLATFORMS
|
data/acceptance/Gemfile.lock
CHANGED
|
@@ -11,35 +11,34 @@ GEM
|
|
|
11
11
|
specs:
|
|
12
12
|
addressable (2.5.1)
|
|
13
13
|
public_suffix (~> 2.0, >= 2.0.2)
|
|
14
|
-
artifactory (2.8.
|
|
15
|
-
aws-sdk (2.
|
|
16
|
-
aws-sdk-resources (= 2.
|
|
17
|
-
aws-sdk-core (2.
|
|
14
|
+
artifactory (2.8.2)
|
|
15
|
+
aws-sdk (2.10.10)
|
|
16
|
+
aws-sdk-resources (= 2.10.10)
|
|
17
|
+
aws-sdk-core (2.10.10)
|
|
18
18
|
aws-sigv4 (~> 1.0)
|
|
19
19
|
jmespath (~> 1.0)
|
|
20
|
-
aws-sdk-resources (2.
|
|
21
|
-
aws-sdk-core (= 2.
|
|
22
|
-
aws-sigv4 (1.0.
|
|
23
|
-
berkshelf (6.0
|
|
20
|
+
aws-sdk-resources (2.10.10)
|
|
21
|
+
aws-sdk-core (= 2.10.10)
|
|
22
|
+
aws-sigv4 (1.0.1)
|
|
23
|
+
berkshelf (6.2.0)
|
|
24
24
|
addressable (~> 2.3, >= 2.3.4)
|
|
25
|
-
berkshelf-api-client (>=
|
|
25
|
+
berkshelf-api-client (>= 4.0.0)
|
|
26
26
|
buff-config (~> 2.0)
|
|
27
27
|
buff-extensions (~> 2.0)
|
|
28
|
-
buff-shell_out (~> 1.0)
|
|
29
28
|
cleanroom (~> 1.0)
|
|
29
|
+
concurrent-ruby (~> 1.0)
|
|
30
30
|
faraday (~> 0.9)
|
|
31
31
|
httpclient (~> 2.7)
|
|
32
32
|
minitar (~> 0.5, >= 0.5.4)
|
|
33
33
|
mixlib-archive (~> 0.4)
|
|
34
|
+
mixlib-shellout (~> 2.0)
|
|
34
35
|
octokit (~> 4.0)
|
|
35
36
|
retryable (~> 2.0)
|
|
36
37
|
ridley (~> 5.0)
|
|
37
38
|
solve (> 2.0, < 4.0)
|
|
38
39
|
thor (~> 0.19, < 0.19.2)
|
|
39
|
-
berkshelf-api-client (
|
|
40
|
-
|
|
41
|
-
httpclient (~> 2.7)
|
|
42
|
-
ridley (>= 4.5, < 6.0)
|
|
40
|
+
berkshelf-api-client (4.0.1)
|
|
41
|
+
chef (>= 12.0)
|
|
43
42
|
blankslate (2.1.2.4)
|
|
44
43
|
buff-config (2.0.0)
|
|
45
44
|
buff-extensions (~> 2.0)
|
|
@@ -55,34 +54,73 @@ GEM
|
|
|
55
54
|
celluloid-io (0.16.2)
|
|
56
55
|
celluloid (>= 0.16.0)
|
|
57
56
|
nio4r (>= 1.1.0)
|
|
58
|
-
chef
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
chef (12.12.15)
|
|
58
|
+
bundler (>= 1.10)
|
|
59
|
+
chef-config (= 12.12.15)
|
|
60
|
+
chef-zero (~> 4.5)
|
|
61
|
+
diff-lcs (~> 1.2, >= 1.2.4)
|
|
62
|
+
erubis (~> 2.7)
|
|
63
|
+
ffi-yajl (~> 2.2)
|
|
64
|
+
highline (~> 1.6, >= 1.6.9)
|
|
65
|
+
iniparse (~> 1.4)
|
|
66
|
+
mixlib-authentication (~> 1.4)
|
|
67
|
+
mixlib-cli (~> 1.4)
|
|
68
|
+
mixlib-log (~> 1.3)
|
|
69
|
+
mixlib-shellout (~> 2.0)
|
|
70
|
+
net-sftp (~> 2.1, >= 2.1.2)
|
|
71
|
+
net-ssh (>= 2.9, < 4.0)
|
|
72
|
+
net-ssh-multi (~> 1.1)
|
|
73
|
+
ohai (>= 8.6.0.alpha.1, < 9)
|
|
74
|
+
plist (~> 3.2)
|
|
75
|
+
proxifier (~> 1.0)
|
|
76
|
+
rspec-core (~> 3.4)
|
|
77
|
+
rspec-expectations (~> 3.4)
|
|
78
|
+
rspec-mocks (~> 3.4)
|
|
79
|
+
rspec_junit_formatter (~> 0.2.0)
|
|
80
|
+
serverspec (~> 2.7)
|
|
81
|
+
specinfra (~> 2.10)
|
|
82
|
+
syslog-logger (~> 1.6)
|
|
83
|
+
uuidtools (~> 2.1.5)
|
|
84
|
+
chef-config (12.12.15)
|
|
85
|
+
fuzzyurl (~> 0.8.0)
|
|
61
86
|
mixlib-config (~> 2.0)
|
|
62
87
|
mixlib-shellout (~> 2.0)
|
|
88
|
+
chef-zero (4.9.0)
|
|
89
|
+
ffi-yajl (~> 2.2)
|
|
90
|
+
hashie (>= 2.0, < 4.0)
|
|
91
|
+
mixlib-log (~> 1.3)
|
|
92
|
+
rack (< 2)
|
|
93
|
+
uuidtools (~> 2.1)
|
|
63
94
|
cleanroom (1.0.0)
|
|
64
95
|
coderay (1.1.1)
|
|
96
|
+
concurrent-ruby (1.0.5)
|
|
65
97
|
diff-lcs (1.3)
|
|
66
|
-
docker-api (1.33.
|
|
98
|
+
docker-api (1.33.6)
|
|
67
99
|
excon (>= 0.38.0)
|
|
68
100
|
json
|
|
69
101
|
erubis (2.7.0)
|
|
70
|
-
excon (0.
|
|
71
|
-
faraday (0.
|
|
102
|
+
excon (0.57.1)
|
|
103
|
+
faraday (0.12.1)
|
|
72
104
|
multipart-post (>= 1.2, < 3)
|
|
73
105
|
ffi (1.9.18)
|
|
74
|
-
|
|
106
|
+
ffi-yajl (2.3.1)
|
|
107
|
+
libyajl2 (~> 1.2)
|
|
108
|
+
fuzzyurl (0.8.0)
|
|
75
109
|
gssapi (1.2.0)
|
|
76
110
|
ffi (>= 1.0.1)
|
|
77
111
|
gyoku (1.3.1)
|
|
78
112
|
builder (>= 2.1.2)
|
|
79
|
-
hashie (3.5.
|
|
113
|
+
hashie (3.5.6)
|
|
114
|
+
highline (1.7.8)
|
|
80
115
|
hitimes (1.2.5)
|
|
116
|
+
htmlentities (4.3.4)
|
|
81
117
|
httpclient (2.8.3)
|
|
82
|
-
|
|
118
|
+
iniparse (1.4.4)
|
|
119
|
+
inspec (1.31.1)
|
|
83
120
|
addressable (~> 2.4)
|
|
84
121
|
faraday (>= 0.9.0)
|
|
85
122
|
hashie (~> 3.4)
|
|
123
|
+
htmlentities
|
|
86
124
|
json (>= 1.8, < 3.0)
|
|
87
125
|
method_source (~> 0.8)
|
|
88
126
|
mixlib-log
|
|
@@ -97,7 +135,8 @@ GEM
|
|
|
97
135
|
sslshake (~> 1.2)
|
|
98
136
|
thor (~> 0.19)
|
|
99
137
|
toml (~> 0.1)
|
|
100
|
-
train (>= 0.
|
|
138
|
+
train (>= 0.24.0, < 1.0)
|
|
139
|
+
ipaddress (0.8.3)
|
|
101
140
|
jmespath (1.3.1)
|
|
102
141
|
json (2.1.0)
|
|
103
142
|
kitchen-ec2 (1.3.2)
|
|
@@ -112,6 +151,7 @@ GEM
|
|
|
112
151
|
test-kitchen (~> 1.6)
|
|
113
152
|
kitchen-vagrant (1.1.0)
|
|
114
153
|
test-kitchen (~> 1.4)
|
|
154
|
+
libyajl2 (1.2.0)
|
|
115
155
|
little-plugger (1.1.4)
|
|
116
156
|
logging (2.2.2)
|
|
117
157
|
little-plugger (~> 1.1)
|
|
@@ -122,6 +162,7 @@ GEM
|
|
|
122
162
|
mixlib-log
|
|
123
163
|
mixlib-authentication (1.4.1)
|
|
124
164
|
mixlib-log
|
|
165
|
+
mixlib-cli (1.7.0)
|
|
125
166
|
mixlib-config (2.2.4)
|
|
126
167
|
mixlib-install (1.2.3)
|
|
127
168
|
artifactory
|
|
@@ -135,24 +176,45 @@ GEM
|
|
|
135
176
|
multipart-post (2.0.0)
|
|
136
177
|
net-scp (1.2.1)
|
|
137
178
|
net-ssh (>= 2.6.5)
|
|
138
|
-
net-
|
|
179
|
+
net-sftp (2.1.2)
|
|
180
|
+
net-ssh (>= 2.6.5)
|
|
181
|
+
net-ssh (3.2.0)
|
|
139
182
|
net-ssh-gateway (1.3.0)
|
|
140
183
|
net-ssh (>= 2.6.5)
|
|
141
|
-
|
|
184
|
+
net-ssh-multi (1.2.1)
|
|
185
|
+
net-ssh (>= 2.6.5)
|
|
186
|
+
net-ssh-gateway (>= 1.2.0)
|
|
187
|
+
net-telnet (0.1.1)
|
|
188
|
+
nio4r (2.1.0)
|
|
142
189
|
nori (2.6.0)
|
|
143
190
|
octokit (4.7.0)
|
|
144
191
|
sawyer (~> 0.8.0, >= 0.5.3)
|
|
192
|
+
ohai (8.24.1)
|
|
193
|
+
chef-config (>= 12.5.0.alpha.1, < 14)
|
|
194
|
+
ffi (~> 1.9)
|
|
195
|
+
ffi-yajl (~> 2.2)
|
|
196
|
+
ipaddress
|
|
197
|
+
mixlib-cli
|
|
198
|
+
mixlib-config (~> 2.0)
|
|
199
|
+
mixlib-log (>= 1.7.1, < 2.0)
|
|
200
|
+
mixlib-shellout (~> 2.0)
|
|
201
|
+
plist (~> 3.1)
|
|
202
|
+
systemu (~> 2.6.4)
|
|
203
|
+
wmi-lite (~> 1.0)
|
|
145
204
|
parallel (1.11.2)
|
|
146
205
|
parslet (1.5.0)
|
|
147
206
|
blankslate (~> 2.0)
|
|
207
|
+
plist (3.3.0)
|
|
208
|
+
proxifier (1.0.3)
|
|
148
209
|
pry (0.10.4)
|
|
149
210
|
coderay (~> 1.1.0)
|
|
150
211
|
method_source (~> 0.8.1)
|
|
151
212
|
slop (~> 3.4)
|
|
152
213
|
public_suffix (2.0.5)
|
|
214
|
+
rack (1.6.8)
|
|
153
215
|
rainbow (2.1.0)
|
|
154
216
|
retryable (2.0.4)
|
|
155
|
-
ridley (5.1.
|
|
217
|
+
ridley (5.1.1)
|
|
156
218
|
addressable
|
|
157
219
|
buff-config (~> 2.0)
|
|
158
220
|
buff-extensions (~> 2.0)
|
|
@@ -162,7 +224,7 @@ GEM
|
|
|
162
224
|
celluloid-io (~> 0.16.1)
|
|
163
225
|
chef-config (>= 12.5.0)
|
|
164
226
|
erubis
|
|
165
|
-
faraday (~> 0.9
|
|
227
|
+
faraday (~> 0.9)
|
|
166
228
|
hashie (>= 2.0.2, < 4.0.0)
|
|
167
229
|
httpclient (~> 2.7)
|
|
168
230
|
json (>= 1.7.7)
|
|
@@ -186,6 +248,9 @@ GEM
|
|
|
186
248
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
187
249
|
rspec-support (~> 3.4.0)
|
|
188
250
|
rspec-support (3.4.1)
|
|
251
|
+
rspec_junit_formatter (0.2.3)
|
|
252
|
+
builder (< 4)
|
|
253
|
+
rspec-core (>= 2, < 4, != 2.12.0)
|
|
189
254
|
rubyntlm (0.6.2)
|
|
190
255
|
rubyzip (1.2.1)
|
|
191
256
|
safe_yaml (1.0.4)
|
|
@@ -193,11 +258,24 @@ GEM
|
|
|
193
258
|
addressable (>= 2.3.5, < 2.6)
|
|
194
259
|
faraday (~> 0.8, < 1.0)
|
|
195
260
|
semverse (2.0.0)
|
|
261
|
+
serverspec (2.39.1)
|
|
262
|
+
multi_json
|
|
263
|
+
rspec (~> 3.0)
|
|
264
|
+
rspec-its
|
|
265
|
+
specinfra (~> 2.68)
|
|
266
|
+
sfl (2.3)
|
|
196
267
|
slop (3.6.0)
|
|
197
268
|
solve (3.1.0)
|
|
198
269
|
molinillo (>= 0.5)
|
|
199
270
|
semverse (>= 1.1, < 3.0)
|
|
271
|
+
specinfra (2.68.2)
|
|
272
|
+
net-scp
|
|
273
|
+
net-ssh (>= 2.7, < 5.0)
|
|
274
|
+
net-telnet
|
|
275
|
+
sfl
|
|
200
276
|
sslshake (1.2.0)
|
|
277
|
+
syslog-logger (1.6.8)
|
|
278
|
+
systemu (2.6.5)
|
|
201
279
|
test-kitchen (1.16.0)
|
|
202
280
|
mixlib-install (>= 1.2, < 3.0)
|
|
203
281
|
mixlib-shellout (>= 1.2, < 3.0)
|
|
@@ -211,7 +289,7 @@ GEM
|
|
|
211
289
|
hitimes
|
|
212
290
|
toml (0.1.2)
|
|
213
291
|
parslet (~> 1.5.0)
|
|
214
|
-
train (0.
|
|
292
|
+
train (0.25.0)
|
|
215
293
|
docker-api (~> 1.26)
|
|
216
294
|
json (>= 1.8, < 3.0)
|
|
217
295
|
mixlib-shellout (~> 2.0)
|
|
@@ -219,6 +297,7 @@ GEM
|
|
|
219
297
|
net-ssh (>= 2.9, < 5.0)
|
|
220
298
|
winrm (~> 2.0)
|
|
221
299
|
winrm-fs (~> 1.0)
|
|
300
|
+
uuidtools (2.1.5)
|
|
222
301
|
varia_model (0.6.0)
|
|
223
302
|
buff-extensions (~> 2.0)
|
|
224
303
|
hashie (>= 2.0.2, < 4.0.0)
|
|
@@ -241,6 +320,7 @@ GEM
|
|
|
241
320
|
logging (>= 1.6.1, < 3.0)
|
|
242
321
|
rubyzip (~> 1.1)
|
|
243
322
|
winrm (~> 2.0)
|
|
323
|
+
wmi-lite (1.0.0)
|
|
244
324
|
|
|
245
325
|
PLATFORMS
|
|
246
326
|
ruby
|
|
@@ -260,4 +340,4 @@ DEPENDENCIES
|
|
|
260
340
|
winrm-fs
|
|
261
341
|
|
|
262
342
|
BUNDLED WITH
|
|
263
|
-
1.15.
|
|
343
|
+
1.15.1
|
|
@@ -15,25 +15,8 @@
|
|
|
15
15
|
# limitations under the License.
|
|
16
16
|
#
|
|
17
17
|
|
|
18
|
-
require "chef/
|
|
19
|
-
require "chef/http/authenticator"
|
|
20
|
-
require "chef/http/json_input"
|
|
21
|
-
require "chef/http/json_output"
|
|
22
|
-
require "chef/http/decompressor"
|
|
23
|
-
require "chef/http/validate_content_length"
|
|
18
|
+
require "chef/server_api"
|
|
24
19
|
|
|
25
20
|
module ChefDK
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
use JSONInput
|
|
29
|
-
use JSONOutput
|
|
30
|
-
use Decompressor
|
|
31
|
-
use Authenticator
|
|
32
|
-
|
|
33
|
-
# ValidateContentLength should come after Decompressor
|
|
34
|
-
# because the order of middlewares is reversed when handling
|
|
35
|
-
# responses.
|
|
36
|
-
use ValidateContentLength
|
|
37
|
-
|
|
38
|
-
end
|
|
21
|
+
AuthenticatedHTTP = Chef::ServerAPI
|
|
39
22
|
end
|
data/lib/chef-dk/command/diff.rb
CHANGED
|
@@ -22,7 +22,7 @@ require "chef-dk/policyfile/differ"
|
|
|
22
22
|
require "chef-dk/policyfile/comparison_base"
|
|
23
23
|
require "chef-dk/policyfile/storage_config"
|
|
24
24
|
require "chef-dk/configurable"
|
|
25
|
-
require "chef
|
|
25
|
+
require "chef/server_api"
|
|
26
26
|
|
|
27
27
|
module ChefDK
|
|
28
28
|
module Command
|
|
@@ -161,9 +161,9 @@ BANNER
|
|
|
161
161
|
end
|
|
162
162
|
|
|
163
163
|
def http_client
|
|
164
|
-
@http_client ||=
|
|
165
|
-
|
|
166
|
-
|
|
164
|
+
@http_client ||= Chef::ServerAPI.new(chef_config.chef_server_url,
|
|
165
|
+
signing_key_filename: chef_config.client_key,
|
|
166
|
+
client_name: chef_config.node_name)
|
|
167
167
|
end
|
|
168
168
|
|
|
169
169
|
def old_lock
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
require "ffi_yajl"
|
|
19
19
|
require "chef-dk/exceptions"
|
|
20
20
|
require "chef-dk/policyfile/source_uri"
|
|
21
|
-
require "chef
|
|
21
|
+
require "chef/server_api"
|
|
22
22
|
|
|
23
23
|
module ChefDK
|
|
24
24
|
module Policyfile
|
|
@@ -82,7 +82,7 @@ module ChefDK
|
|
|
82
82
|
private
|
|
83
83
|
|
|
84
84
|
def http_connection_for(base_url)
|
|
85
|
-
@http_connections[base_url] ||=
|
|
85
|
+
@http_connections[base_url] ||= Chef::ServerAPI.new(base_url,
|
|
86
86
|
signing_key_filename: chef_config.client_key,
|
|
87
87
|
client_name: chef_config.node_name)
|
|
88
88
|
end
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
require "set"
|
|
19
19
|
|
|
20
|
-
require "chef
|
|
20
|
+
require "chef/server_api"
|
|
21
21
|
require "chef-dk/service_exceptions"
|
|
22
22
|
|
|
23
23
|
module ChefDK
|
|
@@ -183,7 +183,7 @@ module ChefDK
|
|
|
183
183
|
end
|
|
184
184
|
|
|
185
185
|
def http_client
|
|
186
|
-
@http_client ||=
|
|
186
|
+
@http_client ||= Chef::ServerAPI.new(config.chef_server_url,
|
|
187
187
|
signing_key_filename: config.client_key,
|
|
188
188
|
client_name: config.node_name)
|
|
189
189
|
end
|
|
@@ -75,9 +75,9 @@ module ChefDK
|
|
|
75
75
|
end
|
|
76
76
|
|
|
77
77
|
def http_client
|
|
78
|
-
@http_client ||=
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
@http_client ||= Chef::ServerAPI.new(chef_config.chef_server_url,
|
|
79
|
+
signing_key_filename: chef_config.client_key,
|
|
80
|
+
client_name: chef_config.node_name)
|
|
81
81
|
end
|
|
82
82
|
|
|
83
83
|
private
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
require "set"
|
|
19
19
|
|
|
20
|
-
require "chef
|
|
20
|
+
require "chef/server_api"
|
|
21
21
|
require "chef-dk/service_exceptions"
|
|
22
22
|
|
|
23
23
|
module ChefDK
|
|
@@ -111,12 +111,12 @@ module ChefDK
|
|
|
111
111
|
end
|
|
112
112
|
|
|
113
113
|
# @api private
|
|
114
|
-
# An instance of
|
|
114
|
+
# An instance of Chef::ServerAPI configured with the user's
|
|
115
115
|
# server URL and credentials.
|
|
116
116
|
def http_client
|
|
117
|
-
@http_client ||=
|
|
118
|
-
|
|
119
|
-
|
|
117
|
+
@http_client ||= Chef::ServerAPI.new(chef_config.chef_server_url,
|
|
118
|
+
signing_key_filename: chef_config.client_key,
|
|
119
|
+
client_name: chef_config.node_name)
|
|
120
120
|
end
|
|
121
121
|
end
|
|
122
122
|
end
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
require "ffi_yajl"
|
|
19
19
|
|
|
20
20
|
require "chef-dk/service_exceptions"
|
|
21
|
-
require "chef
|
|
21
|
+
require "chef/server_api"
|
|
22
22
|
require "chef-dk/policyfile_compiler"
|
|
23
23
|
require "chef-dk/policyfile/uploader"
|
|
24
24
|
require "chef-dk/policyfile/storage_config"
|
|
@@ -51,7 +51,7 @@ module ChefDK
|
|
|
51
51
|
end
|
|
52
52
|
|
|
53
53
|
def http_client
|
|
54
|
-
@http_client ||=
|
|
54
|
+
@http_client ||= Chef::ServerAPI.new(config.chef_server_url,
|
|
55
55
|
signing_key_filename: config.client_key,
|
|
56
56
|
client_name: config.node_name)
|
|
57
57
|
end
|
|
@@ -20,7 +20,7 @@ require "archive/tar/minitar"
|
|
|
20
20
|
|
|
21
21
|
require "chef-dk/service_exceptions"
|
|
22
22
|
require "chef-dk/policyfile_lock"
|
|
23
|
-
require "chef
|
|
23
|
+
require "chef/server_api"
|
|
24
24
|
require "chef-dk/policyfile/uploader"
|
|
25
25
|
|
|
26
26
|
module ChefDK
|
|
@@ -75,9 +75,9 @@ module ChefDK
|
|
|
75
75
|
|
|
76
76
|
# @api private
|
|
77
77
|
def http_client
|
|
78
|
-
@http_client ||=
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
@http_client ||= Chef::ServerAPI.new(config.chef_server_url,
|
|
79
|
+
signing_key_filename: config.client_key,
|
|
80
|
+
client_name: config.node_name)
|
|
81
81
|
end
|
|
82
82
|
|
|
83
83
|
private
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
#
|
|
17
17
|
|
|
18
18
|
require "chef-dk/service_exceptions"
|
|
19
|
-
require "chef
|
|
19
|
+
require "chef/server_api"
|
|
20
20
|
require "chef-dk/policyfile/undo_stack"
|
|
21
21
|
require "chef-dk/policyfile/undo_record"
|
|
22
22
|
|
|
@@ -72,12 +72,12 @@ module ChefDK
|
|
|
72
72
|
end
|
|
73
73
|
|
|
74
74
|
# @api private
|
|
75
|
-
# An instance of
|
|
75
|
+
# An instance of Chef::ServerAPI configured with the user's
|
|
76
76
|
# server URL and credentials.
|
|
77
77
|
def http_client
|
|
78
|
-
@http_client ||=
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
@http_client ||= Chef::ServerAPI.new(chef_config.chef_server_url,
|
|
79
|
+
signing_key_filename: chef_config.client_key,
|
|
80
|
+
client_name: chef_config.node_name)
|
|
81
81
|
end
|
|
82
82
|
|
|
83
83
|
private
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
#
|
|
17
17
|
|
|
18
18
|
require "chef-dk/service_exceptions"
|
|
19
|
-
require "chef
|
|
19
|
+
require "chef/server_api"
|
|
20
20
|
require "chef-dk/policyfile/undo_stack"
|
|
21
21
|
require "chef-dk/policyfile/undo_record"
|
|
22
22
|
|
|
@@ -73,12 +73,12 @@ module ChefDK
|
|
|
73
73
|
end
|
|
74
74
|
|
|
75
75
|
# @api private
|
|
76
|
-
# An instance of
|
|
76
|
+
# An instance of Chef::ServerAPI configured with the user's
|
|
77
77
|
# server URL and credentials.
|
|
78
78
|
def http_client
|
|
79
|
-
@http_client ||=
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
@http_client ||= Chef::ServerAPI.new(chef_config.chef_server_url,
|
|
80
|
+
signing_key_filename: chef_config.client_key,
|
|
81
|
+
client_name: chef_config.node_name)
|
|
82
82
|
end
|
|
83
83
|
end
|
|
84
84
|
end
|
|
@@ -218,9 +218,9 @@ module ChefDK
|
|
|
218
218
|
end
|
|
219
219
|
|
|
220
220
|
def http_client
|
|
221
|
-
@http_client ||=
|
|
222
|
-
|
|
223
|
-
|
|
221
|
+
@http_client ||= Chef::ServerAPI.new(chef_config.chef_server_url,
|
|
222
|
+
signing_key_filename: chef_config.client_key,
|
|
223
|
+
client_name: chef_config.node_name)
|
|
224
224
|
end
|
|
225
225
|
|
|
226
226
|
private
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
# limitations under the License.
|
|
16
16
|
#
|
|
17
17
|
|
|
18
|
-
require "chef
|
|
18
|
+
require "chef/server_api"
|
|
19
19
|
require "chef-dk/service_exceptions"
|
|
20
20
|
require "chef-dk/policyfile/undo_stack"
|
|
21
21
|
|
|
@@ -71,7 +71,7 @@ module ChefDK
|
|
|
71
71
|
end
|
|
72
72
|
|
|
73
73
|
def http_client
|
|
74
|
-
@http_client ||=
|
|
74
|
+
@http_client ||= Chef::ServerAPI.new(chef_config.chef_server_url,
|
|
75
75
|
signing_key_filename: chef_config.client_key,
|
|
76
76
|
client_name: chef_config.node_name)
|
|
77
77
|
end
|
data/lib/chef-dk/version.rb
CHANGED
|
@@ -45,7 +45,7 @@ describe ChefDK::Command::Diff do
|
|
|
45
45
|
|
|
46
46
|
let(:ui) { TestHelpers::TestUI.new }
|
|
47
47
|
|
|
48
|
-
let(:http_client) { instance_double("
|
|
48
|
+
let(:http_client) { instance_double("Chef::ServerAPI") }
|
|
49
49
|
|
|
50
50
|
let(:differ) { instance_double("ChefDK::Policyfile::Differ", run_report: nil) }
|
|
51
51
|
|
|
@@ -23,7 +23,7 @@ describe ChefDK::Policyfile::ChefServerCookbookSource do
|
|
|
23
23
|
|
|
24
24
|
let(:cookbook_source) { "https://chef.example.com/organizations/example" }
|
|
25
25
|
|
|
26
|
-
let(:http_connection) { double("
|
|
26
|
+
let(:http_connection) { double("Chef::ServerAPI") }
|
|
27
27
|
|
|
28
28
|
let(:universe_response_encoded) { JSON.parse(IO.read(File.join(fixtures_path, "cookbooks_api/chef_server_universe.json"))) }
|
|
29
29
|
|
|
@@ -222,7 +222,7 @@ E
|
|
|
222
222
|
|
|
223
223
|
let(:group) { "acceptance" }
|
|
224
224
|
let(:policy_name) { "chatserver" }
|
|
225
|
-
let(:http_client) { instance_double("
|
|
225
|
+
let(:http_client) { instance_double("Chef::ServerAPI", url: "https://chef.example/organizations/monkeynews") }
|
|
226
226
|
|
|
227
227
|
subject(:comparison_base) { described_class.new(group, policy_name, http_client) }
|
|
228
228
|
|
|
@@ -31,14 +31,14 @@ describe ChefDK::Policyfile::Lister do
|
|
|
31
31
|
node_name: "deuce")
|
|
32
32
|
end
|
|
33
33
|
|
|
34
|
-
let(:http_client) { instance_double(
|
|
34
|
+
let(:http_client) { instance_double(Chef::ServerAPI) }
|
|
35
35
|
|
|
36
36
|
subject(:info_fetcher) do
|
|
37
37
|
described_class.new(config: config)
|
|
38
38
|
end
|
|
39
39
|
|
|
40
40
|
it "configures an HTTP client" do
|
|
41
|
-
expect(
|
|
41
|
+
expect(Chef::ServerAPI).to receive(:new).with("https://localhost:10443",
|
|
42
42
|
signing_key_filename: "/path/to/client/key.pem",
|
|
43
43
|
client_name: "deuce")
|
|
44
44
|
info_fetcher.http_client
|
|
@@ -20,7 +20,7 @@ require "chef-dk/policyfile/uploader"
|
|
|
20
20
|
|
|
21
21
|
# We load this here to ensure we get the "verifying doubles" behavior from
|
|
22
22
|
# RSpec. It's not used by Policyfile::Uploader, but it's a collaborator.
|
|
23
|
-
require "chef
|
|
23
|
+
require "chef/server_api"
|
|
24
24
|
|
|
25
25
|
describe ChefDK::Policyfile::Uploader do
|
|
26
26
|
|
|
@@ -50,7 +50,7 @@ describe ChefDK::Policyfile::Uploader do
|
|
|
50
50
|
|
|
51
51
|
let(:policy_group) { "unit-test" }
|
|
52
52
|
|
|
53
|
-
let(:http_client) { instance_double("
|
|
53
|
+
let(:http_client) { instance_double("Chef::ServerAPI") }
|
|
54
54
|
|
|
55
55
|
let(:policy_document_native_api) { false }
|
|
56
56
|
|
|
@@ -357,10 +357,8 @@ E
|
|
|
357
357
|
end
|
|
358
358
|
|
|
359
359
|
it "has a default source" do
|
|
360
|
-
skip "Chef server isn't yet supported in cookbook-omnifetch (pending /universe endpoint in Chef Server)"
|
|
361
|
-
|
|
362
360
|
expect(policyfile.errors).to eq([])
|
|
363
|
-
expected = ChefDK::Policyfile::ChefServerCookbookSource.new("https://mychef.example.com")
|
|
361
|
+
expected = [ ChefDK::Policyfile::ChefServerCookbookSource.new("https://mychef.example.com") ]
|
|
364
362
|
expect(policyfile.default_source).to eq(expected)
|
|
365
363
|
end
|
|
366
364
|
|
|
@@ -536,9 +534,7 @@ MESSAGE
|
|
|
536
534
|
EOH
|
|
537
535
|
end
|
|
538
536
|
|
|
539
|
-
|
|
540
|
-
# We have to skip at the example definition level or else we fail in the before block
|
|
541
|
-
skip "sets the source of the cookbook to the git URL" do
|
|
537
|
+
it "sets the source of the cookbook to the git URL" do
|
|
542
538
|
expected_cb_spec = ChefDK::Policyfile::CookbookLocationSpecification.new("foo", ">= 0.0.0", { chef_server: "https://mychefserver.example.com" }, storage_config)
|
|
543
539
|
expect(policyfile.cookbook_location_specs).to eq("foo" => expected_cb_spec)
|
|
544
540
|
end
|
|
@@ -37,7 +37,7 @@ describe ChefDK::PolicyfileServices::CleanPolicies do
|
|
|
37
37
|
|
|
38
38
|
describe "when there is an error listing data from the server" do
|
|
39
39
|
|
|
40
|
-
let(:http_client) { instance_double(
|
|
40
|
+
let(:http_client) { instance_double(Chef::ServerAPI) }
|
|
41
41
|
|
|
42
42
|
let(:response) do
|
|
43
43
|
Net::HTTPResponse.send(:response_class, "500").new("1.0", "500", "Internal Server Error").tap do |r|
|
|
@@ -66,7 +66,7 @@ describe ChefDK::PolicyfileServices::CleanPolicies do
|
|
|
66
66
|
|
|
67
67
|
context "when existing policies are listed successfully" do
|
|
68
68
|
|
|
69
|
-
let(:http_client) { instance_double(
|
|
69
|
+
let(:http_client) { instance_double(Chef::ServerAPI) }
|
|
70
70
|
|
|
71
71
|
before do
|
|
72
72
|
policy_lister.set!(policies_by_name, policies_by_group)
|
|
@@ -72,7 +72,7 @@ describe ChefDK::PolicyfileServices::CleanPolicyCookbooks do
|
|
|
72
72
|
}
|
|
73
73
|
end
|
|
74
74
|
|
|
75
|
-
let(:http_client) { instance_double(
|
|
75
|
+
let(:http_client) { instance_double(Chef::ServerAPI) }
|
|
76
76
|
|
|
77
77
|
let(:ui) { TestHelpers::TestUI.new }
|
|
78
78
|
|
|
@@ -88,7 +88,7 @@ describe ChefDK::PolicyfileServices::CleanPolicyCookbooks do
|
|
|
88
88
|
end
|
|
89
89
|
|
|
90
90
|
it "configures an HTTP client with the user's credentials" do
|
|
91
|
-
expect(
|
|
91
|
+
expect(Chef::ServerAPI).to receive(:new).with("https://localhost:10443",
|
|
92
92
|
signing_key_filename: "/path/to/client/key.pem",
|
|
93
93
|
client_name: "deuce")
|
|
94
94
|
clean_policy_cookbooks_service.http_client
|
|
@@ -120,7 +120,7 @@ E
|
|
|
120
120
|
end
|
|
121
121
|
|
|
122
122
|
it "configures an HTTP client" do
|
|
123
|
-
expect(
|
|
123
|
+
expect(Chef::ServerAPI).to receive(:new).with("https://localhost:10443",
|
|
124
124
|
signing_key_filename: "/path/to/client/key.pem",
|
|
125
125
|
client_name: "deuce")
|
|
126
126
|
push_archive_service.http_client
|
|
@@ -336,7 +336,7 @@ MESSAGE
|
|
|
336
336
|
]
|
|
337
337
|
end
|
|
338
338
|
|
|
339
|
-
let(:http_client) { instance_double(
|
|
339
|
+
let(:http_client) { instance_double(Chef::ServerAPI) }
|
|
340
340
|
|
|
341
341
|
let(:uploader) { instance_double(ChefDK::Policyfile::Uploader) }
|
|
342
342
|
|
|
@@ -59,7 +59,7 @@ describe ChefDK::PolicyfileServices::Push do
|
|
|
59
59
|
let(:push_service) { described_class.new(policyfile: policyfile_rb_name, policy_group: policy_group, ui: ui, config: config, root_dir: working_dir) }
|
|
60
60
|
|
|
61
61
|
it "configures an HTTP client" do
|
|
62
|
-
expect(
|
|
62
|
+
expect(Chef::ServerAPI).to receive(:new).with("https://localhost:10443",
|
|
63
63
|
signing_key_filename: "/path/to/client/key.pem",
|
|
64
64
|
client_name: "deuce")
|
|
65
65
|
push_service.http_client
|
|
@@ -180,7 +180,7 @@ describe ChefDK::PolicyfileServices::Push do
|
|
|
180
180
|
E
|
|
181
181
|
end
|
|
182
182
|
|
|
183
|
-
let(:http_client) { instance_double(
|
|
183
|
+
let(:http_client) { instance_double(Chef::ServerAPI) }
|
|
184
184
|
|
|
185
185
|
let(:updated_lockfile_io) { StringIO.new }
|
|
186
186
|
|
|
@@ -22,7 +22,7 @@ describe ChefDK::PolicyfileServices::RmPolicyGroup do
|
|
|
22
22
|
|
|
23
23
|
let(:policy_group) { "preprod" }
|
|
24
24
|
|
|
25
|
-
let(:http_client) { instance_double(
|
|
25
|
+
let(:http_client) { instance_double(Chef::ServerAPI) }
|
|
26
26
|
|
|
27
27
|
let(:ui) { TestHelpers::TestUI.new }
|
|
28
28
|
|
|
@@ -78,7 +78,7 @@ describe ChefDK::PolicyfileServices::RmPolicyGroup do
|
|
|
78
78
|
end
|
|
79
79
|
|
|
80
80
|
it "configures an HTTP client" do
|
|
81
|
-
expect(
|
|
81
|
+
expect(Chef::ServerAPI).to receive(:new).with("https://localhost:10443",
|
|
82
82
|
signing_key_filename: "/path/to/client/key.pem",
|
|
83
83
|
client_name: "deuce")
|
|
84
84
|
rm_policy_group_service.http_client
|
|
@@ -22,7 +22,7 @@ describe ChefDK::PolicyfileServices::RmPolicy do
|
|
|
22
22
|
|
|
23
23
|
let(:policy_name) { "appserver" }
|
|
24
24
|
|
|
25
|
-
let(:http_client) { instance_double(
|
|
25
|
+
let(:http_client) { instance_double(Chef::ServerAPI) }
|
|
26
26
|
|
|
27
27
|
let(:policy_revisions_data) do
|
|
28
28
|
{
|
|
@@ -54,7 +54,7 @@ describe ChefDK::PolicyfileServices::RmPolicy do
|
|
|
54
54
|
end
|
|
55
55
|
|
|
56
56
|
it "configures an HTTP client" do
|
|
57
|
-
expect(
|
|
57
|
+
expect(Chef::ServerAPI).to receive(:new).with("https://localhost:10443",
|
|
58
58
|
signing_key_filename: "/path/to/client/key.pem",
|
|
59
59
|
client_name: "deuce")
|
|
60
60
|
rm_policy_service.http_client
|
|
@@ -56,7 +56,7 @@ describe ChefDK::PolicyfileServices::ShowPolicy do
|
|
|
56
56
|
|
|
57
57
|
describe "when an error occurs fetching data from the server" do
|
|
58
58
|
|
|
59
|
-
let(:http_client) { instance_double(
|
|
59
|
+
let(:http_client) { instance_double(Chef::ServerAPI) }
|
|
60
60
|
|
|
61
61
|
let(:response) do
|
|
62
62
|
Net::HTTPResponse.send(:response_class, "500").new("1.0", "500", "Internal Server Error").tap do |r|
|
|
@@ -804,7 +804,7 @@ OUTPUT
|
|
|
804
804
|
|
|
805
805
|
let(:policy_group) { "dev" }
|
|
806
806
|
|
|
807
|
-
let(:http_client) { instance_double("
|
|
807
|
+
let(:http_client) { instance_double("Chef::ServerAPI", url: "https://chef.example/organizations/monkeynews") }
|
|
808
808
|
|
|
809
809
|
before do
|
|
810
810
|
allow(show_policy_service).to receive(:http_client).and_return(http_client)
|
|
@@ -169,7 +169,7 @@ OUTPUT
|
|
|
169
169
|
end
|
|
170
170
|
end
|
|
171
171
|
|
|
172
|
-
let(:http_client) { instance_double(
|
|
172
|
+
let(:http_client) { instance_double(Chef::ServerAPI) }
|
|
173
173
|
|
|
174
174
|
before do
|
|
175
175
|
allow(undelete_service).to receive(:http_client).and_return(http_client)
|
|
@@ -276,7 +276,7 @@ OUTPUT
|
|
|
276
276
|
end
|
|
277
277
|
end
|
|
278
278
|
|
|
279
|
-
let(:http_client) { instance_double(
|
|
279
|
+
let(:http_client) { instance_double(Chef::ServerAPI) }
|
|
280
280
|
|
|
281
281
|
before do
|
|
282
282
|
allow(undelete_service).to receive(:http_client).and_return(http_client)
|
data/tasks/version.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright:: Copyright (c) 2016 Chef Software Inc.
|
|
2
|
+
# Copyright:: Copyright (c) 2016-2017, Chef Software Inc.
|
|
3
3
|
# License:: Apache License, Version 2.0
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -98,9 +98,6 @@ namespace :version do
|
|
|
98
98
|
puts "Updating version in #{version_rb_path} from #{version} to #{new_version.chomp}"
|
|
99
99
|
IO.write(version_rb_path, new_version_file)
|
|
100
100
|
IO.write(release_notes_path, "# ChefDK #{$2}.#{$3.to_i + 1} Release Notes")
|
|
101
|
-
Rake::Task["changelog::archive"].invoke
|
|
102
|
-
Rake::Task["version:update_gemfile_lock"].invoke
|
|
103
|
-
Rake::Task["bundle:install"].invoke
|
|
104
101
|
end
|
|
105
102
|
|
|
106
103
|
# Can be deleted when we migrate fully to expeditor
|
|
@@ -115,9 +112,6 @@ namespace :version do
|
|
|
115
112
|
puts "Updating version in #{version_rb_path} from #{version} to #{new_version.chomp}"
|
|
116
113
|
IO.write(version_rb_path, new_version_file)
|
|
117
114
|
IO.write(release_notes_path, "# ChefDK #{$2.to_i + 1}.0 Release Notes")
|
|
118
|
-
Rake::Task["changelog::archive"].invoke
|
|
119
|
-
Rake::Task["version:update_gemfile_lock"].invoke
|
|
120
|
-
Rake::Task["bundle:install"].invoke
|
|
121
115
|
end
|
|
122
116
|
|
|
123
117
|
# Called from .expeditor/update_version.sh
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: chef-dk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.28
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel DeLeo
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2017-07-
|
|
13
|
+
date: 2017-07-14 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: mixlib-cli
|