ogre 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +1 -0
  3. data/.gitignore +20 -0
  4. data/.rubocop.yml +16 -0
  5. data/.travis.yml +3 -0
  6. data/Gemfile +4 -0
  7. data/README.md +102 -0
  8. data/Rakefile +18 -0
  9. data/bin/ogre +4 -0
  10. data/lib/ogre.rb +44 -0
  11. data/lib/ogre/associate.rb +57 -0
  12. data/lib/ogre/base.rb +21 -0
  13. data/lib/ogre/config.rb +18 -0
  14. data/lib/ogre/messages.rb +84 -0
  15. data/lib/ogre/org-create.rb +96 -0
  16. data/lib/ogre/org-delete.rb +29 -0
  17. data/lib/ogre/runner.rb +40 -0
  18. data/lib/ogre/set-private-key.rb +57 -0
  19. data/lib/ogre/skeletons/code_generator/files/default/chefignore +95 -0
  20. data/lib/ogre/skeletons/code_generator/files/default/cookbook_readmes/README-policy.md +9 -0
  21. data/lib/ogre/skeletons/code_generator/files/default/cookbook_readmes/README.md +54 -0
  22. data/lib/ogre/skeletons/code_generator/files/default/gitignore +16 -0
  23. data/lib/ogre/skeletons/code_generator/files/default/repo/README.md +66 -0
  24. data/lib/ogre/skeletons/code_generator/files/default/repo/cookbooks/example/attributes/default.rb +7 -0
  25. data/lib/ogre/skeletons/code_generator/files/default/repo/cookbooks/example/metadata.rb +3 -0
  26. data/lib/ogre/skeletons/code_generator/files/default/repo/cookbooks/example/recipes/default.rb +8 -0
  27. data/lib/ogre/skeletons/code_generator/files/default/repo/data_bags/README.md +58 -0
  28. data/lib/ogre/skeletons/code_generator/files/default/repo/data_bags/example/example_item.json +4 -0
  29. data/lib/ogre/skeletons/code_generator/files/default/repo/environments/README.md +9 -0
  30. data/lib/ogre/skeletons/code_generator/files/default/repo/environments/_default.json +9 -0
  31. data/lib/ogre/skeletons/code_generator/files/default/repo/environments/dev.json +21 -0
  32. data/lib/ogre/skeletons/code_generator/files/default/repo/environments/example.json +13 -0
  33. data/lib/ogre/skeletons/code_generator/files/default/repo/environments/int.json +21 -0
  34. data/lib/ogre/skeletons/code_generator/files/default/repo/environments/prod.json +21 -0
  35. data/lib/ogre/skeletons/code_generator/files/default/repo/environments/qa.json +21 -0
  36. data/lib/ogre/skeletons/code_generator/files/default/repo/environments/stage.json +21 -0
  37. data/lib/ogre/skeletons/code_generator/files/default/repo/roles/README.md +9 -0
  38. data/lib/ogre/skeletons/code_generator/files/default/repo/roles/active-base.json +12 -0
  39. data/lib/ogre/skeletons/code_generator/files/default/repo/roles/example.json +13 -0
  40. data/lib/ogre/skeletons/code_generator/files/default/repo/roles/loc_caeast.json +13 -0
  41. data/lib/ogre/skeletons/code_generator/files/default/repo/roles/loc_canada.json +13 -0
  42. data/lib/ogre/skeletons/code_generator/files/default/repo/roles/loc_cawest.json +13 -0
  43. data/lib/ogre/skeletons/code_generator/files/default/repo/roles/loc_useast.json +13 -0
  44. data/lib/ogre/skeletons/code_generator/files/default/repo/roles/loc_uswest.json +13 -0
  45. data/lib/ogre/skeletons/code_generator/metadata.rb +8 -0
  46. data/lib/ogre/skeletons/code_generator/recipes/repo.rb +52 -0
  47. data/lib/ogre/skeletons/code_generator/templates/default/LICENSE.all_rights.erb +3 -0
  48. data/lib/ogre/skeletons/code_generator/templates/default/LICENSE.apache2.erb +201 -0
  49. data/lib/ogre/skeletons/code_generator/templates/default/LICENSE.gplv2.erb +339 -0
  50. data/lib/ogre/skeletons/code_generator/templates/default/LICENSE.gplv3.erb +674 -0
  51. data/lib/ogre/skeletons/code_generator/templates/default/LICENSE.mit.erb +21 -0
  52. data/lib/ogre/skeletons/code_generator/templates/default/README.md.erb +4 -0
  53. data/lib/ogre/skeletons/code_generator/templates/default/cookbook_file.erb +0 -0
  54. data/lib/ogre/skeletons/code_generator/templates/default/knife.rb.erb +44 -0
  55. data/lib/ogre/skeletons/code_generator/templates/default/metadata.rb.erb +8 -0
  56. data/lib/ogre/skeletons/code_generator/templates/default/repo/gitignore.erb +11 -0
  57. data/lib/ogre/user-create.rb +40 -0
  58. data/lib/ogre/user-delete.rb +39 -0
  59. data/lib/ogre/version.rb +5 -0
  60. data/ogre.gemspec +45 -0
  61. data/spec/fixtures/client_key/dummy.pem +27 -0
  62. data/spec/fixtures/vcr_cassettes/associate-no-org.yml +65 -0
  63. data/spec/fixtures/vcr_cassettes/associate-no-user.yml +65 -0
  64. data/spec/fixtures/vcr_cassettes/associate-user-exists.yml +135 -0
  65. data/spec/fixtures/vcr_cassettes/associate.yml +406 -0
  66. data/spec/fixtures/vcr_cassettes/org-create-exists.yml +69 -0
  67. data/spec/fixtures/vcr_cassettes/org-create.yml +71 -0
  68. data/spec/fixtures/vcr_cassettes/org-delete-no-org.yml +61 -0
  69. data/spec/fixtures/vcr_cassettes/org-delete.yml +68 -0
  70. data/spec/fixtures/vcr_cassettes/set-private-key.yml +239 -0
  71. data/spec/fixtures/vcr_cassettes/user-create-bad-email.yml +66 -0
  72. data/spec/fixtures/vcr_cassettes/user-create-exists.yml +70 -0
  73. data/spec/fixtures/vcr_cassettes/user-create-short-password.yml +66 -0
  74. data/spec/fixtures/vcr_cassettes/user-create.yml +72 -0
  75. data/spec/fixtures/vcr_cassettes/user-delete-not-found.yml +61 -0
  76. data/spec/fixtures/vcr_cassettes/user-delete.yml +136 -0
  77. data/spec/ogre/associate_spec.rb +67 -0
  78. data/spec/ogre/org-create_spec.rb +52 -0
  79. data/spec/ogre/org-delete_spec.rb +34 -0
  80. data/spec/ogre/set-private-key_spec.rb +16 -0
  81. data/spec/ogre/user-create_spec.rb +58 -0
  82. data/spec/ogre/user-delete_spec.rb +34 -0
  83. data/spec/spec_helper.rb +16 -0
  84. metadata +349 -0
@@ -0,0 +1,406 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://chef.server/organizations/my-org-name/association_requests
6
+ body:
7
+ encoding: ASCII-8BIT
8
+ string: '{"user":"test"}'
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ Accept:
13
+ - application/json
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ X-Ops-Sign:
17
+ - algorithm=sha1;version=1.0;
18
+ X-Ops-Userid: pivotal
19
+ X-Ops-Timestamp:
20
+ - '2015-04-27T18:45:52Z'
21
+ X-Ops-Content-Hash:
22
+ - "{{X-Ops-Content-Hash}}"
23
+ X-Ops-Authorization-1:
24
+ - "{{X-Ops-Authorization-1}}"
25
+ X-Ops-Authorization-2:
26
+ - "{{X-Ops-Authorization-2}}"
27
+ X-Ops-Authorization-3:
28
+ - "{{X-Ops-Authorization-3}}"
29
+ X-Ops-Authorization-4:
30
+ - "{{X-Ops-Authorization-4}}"
31
+ X-Ops-Authorization-5:
32
+ - "{{X-Ops-Authorization-5}}"
33
+ X-Ops-Authorization-6:
34
+ - "{{X-Ops-Authorization-6}}"
35
+ Host:
36
+ - chef.server:443
37
+ X-Remote-Request-Id:
38
+ - e057c96b-535d-4eab-ac1c-6741ff4007c1
39
+ Content-Length:
40
+ - '15'
41
+ X-Chef-Version:
42
+ - 12.2.1
43
+ User-Agent:
44
+ - ruby
45
+ response:
46
+ status:
47
+ code: 201
48
+ message: Created
49
+ headers:
50
+ Server:
51
+ - ngx_openresty/1.4.3.6
52
+ Date:
53
+ - Mon, 27 Apr 2015 18:45:43 GMT
54
+ Content-Type:
55
+ - application/json
56
+ Content-Length:
57
+ - '243'
58
+ Connection:
59
+ - keep-alive
60
+ X-Ops-Api-Info:
61
+ - flavor=cs;version=12.0.0;oc_erchef=1.5.0
62
+ Location:
63
+ - https://chef.server/organizations/my-org-name/association_requests/3d647087e731cedf791dcda135b20929
64
+ body:
65
+ encoding: UTF-8
66
+ string: '{"uri":"https://chef.server/organizations/my-org-name/association_requests/3d647087e731cedf791dcda135b20929","organization_user":{"username":"pivotal"},"organization":{"name":"my-org-name"},"user":{"email":"test@test.com","first_name":"test"}}'
67
+ http_version:
68
+ recorded_at: Mon, 27 Apr 2015 18:45:52 GMT
69
+ - request:
70
+ method: put
71
+ uri: https://chef.server/users/test/association_requests/3d647087e731cedf791dcda135b20929
72
+ body:
73
+ encoding: ASCII-8BIT
74
+ string: '{"response":"accept"}'
75
+ headers:
76
+ Content-Type:
77
+ - application/json
78
+ Accept:
79
+ - application/json
80
+ Accept-Encoding:
81
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
82
+ X-Ops-Sign:
83
+ - algorithm=sha1;version=1.0;
84
+ X-Ops-Userid: pivotal
85
+ X-Ops-Timestamp:
86
+ - '2015-04-27T18:45:52Z'
87
+ X-Ops-Content-Hash:
88
+ - "{{X-Ops-Content-Hash}}"
89
+ X-Ops-Authorization-1:
90
+ - "{{X-Ops-Authorization-1}}"
91
+ X-Ops-Authorization-2:
92
+ - "{{X-Ops-Authorization-2}}"
93
+ X-Ops-Authorization-3:
94
+ - "{{X-Ops-Authorization-3}}"
95
+ X-Ops-Authorization-4:
96
+ - "{{X-Ops-Authorization-4}}"
97
+ X-Ops-Authorization-5:
98
+ - "{{X-Ops-Authorization-5}}"
99
+ X-Ops-Authorization-6:
100
+ - "{{X-Ops-Authorization-6}}"
101
+ Host:
102
+ - chef.server:443
103
+ X-Remote-Request-Id:
104
+ - e057c96b-535d-4eab-ac1c-6741ff4007c1
105
+ Content-Length:
106
+ - '21'
107
+ X-Chef-Version:
108
+ - 12.2.1
109
+ User-Agent:
110
+ - ruby
111
+ response:
112
+ status:
113
+ code: 200
114
+ message: OK
115
+ headers:
116
+ Server:
117
+ - ngx_openresty/1.4.3.6
118
+ Date:
119
+ - Mon, 27 Apr 2015 18:45:44 GMT
120
+ Content-Type:
121
+ - application/json
122
+ Transfer-Encoding:
123
+ - chunked
124
+ Connection:
125
+ - keep-alive
126
+ X-Ops-Api-Info:
127
+ - flavor=cs;version=12.0.0;oc_erchef=1.5.0
128
+ Content-Encoding:
129
+ - gzip
130
+ body:
131
+ encoding: ASCII-8BIT
132
+ string: !binary |-
133
+ H4sIAAAAAAAAA22OwQ7CIBBE/2XPNCmtivRnyMquhgNg6PagTf9dQo3pweNk
134
+ Xt7MCoFggpEuJ9NfDZtRe6a7sZo8oR7Pt6G3gwUFuTwSRq5wfHU1dC0pWGYu
135
+ 30J4lp3EFN4oISeYViB+FvYoXJekLKzgj2jbTVV/wNvqz+WQYkgOveTi2u0D
136
+ un0AjPHFscoAAAA=
137
+ http_version:
138
+ recorded_at: Mon, 27 Apr 2015 18:45:53 GMT
139
+ - request:
140
+ method: get
141
+ uri: https://chef.server/organizations/my-org-name/groups/users
142
+ body:
143
+ encoding: US-ASCII
144
+ string: ''
145
+ headers:
146
+ Accept:
147
+ - application/json
148
+ Accept-Encoding:
149
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
150
+ X-Ops-Sign:
151
+ - algorithm=sha1;version=1.0;
152
+ X-Ops-Userid: pivotal
153
+ X-Ops-Timestamp:
154
+ - '2015-04-27T18:45:53Z'
155
+ X-Ops-Content-Hash:
156
+ - "{{X-Ops-Content-Hash}}"
157
+ X-Ops-Authorization-1:
158
+ - "{{X-Ops-Authorization-1}}"
159
+ X-Ops-Authorization-2:
160
+ - "{{X-Ops-Authorization-2}}"
161
+ X-Ops-Authorization-3:
162
+ - "{{X-Ops-Authorization-3}}"
163
+ X-Ops-Authorization-4:
164
+ - "{{X-Ops-Authorization-4}}"
165
+ X-Ops-Authorization-5:
166
+ - "{{X-Ops-Authorization-5}}"
167
+ X-Ops-Authorization-6:
168
+ - "{{X-Ops-Authorization-6}}"
169
+ Host:
170
+ - chef.server:443
171
+ X-Remote-Request-Id:
172
+ - e057c96b-535d-4eab-ac1c-6741ff4007c1
173
+ X-Chef-Version:
174
+ - 12.2.1
175
+ User-Agent:
176
+ - ruby
177
+ response:
178
+ status:
179
+ code: 200
180
+ message: OK
181
+ headers:
182
+ Server:
183
+ - ngx_openresty/1.4.3.6
184
+ Date:
185
+ - Mon, 27 Apr 2015 18:45:44 GMT
186
+ Content-Type:
187
+ - application/json
188
+ Transfer-Encoding:
189
+ - chunked
190
+ Connection:
191
+ - keep-alive
192
+ X-Ops-Api-Info:
193
+ - flavor=cs;version=12.0.0;oc_erchef=1.5.0
194
+ Content-Encoding:
195
+ - gzip
196
+ body:
197
+ encoding: ASCII-8BIT
198
+ string: !binary |-
199
+ H4sIAAAAAAAAA6tWSkwuyS8qVrKKVirILMsvScxRitVRKi1OxRBLzslMzSsB
200
+ qQQqSC/KLy0A6zJAAkZphsapKWmGSYZJaUlpaWZGxhZmIOPyi9LzEnNTlayU
201
+ cit1gRxdME9HCSoIsQ1qKIpYLQDtA2fLoAAAAA==
202
+ http_version:
203
+ recorded_at: Mon, 27 Apr 2015 18:45:54 GMT
204
+ - request:
205
+ method: put
206
+ uri: https://chef.server/organizations/my-org-name/groups/users
207
+ body:
208
+ encoding: ASCII-8BIT
209
+ string: '{"groupname":"users","actors":{"users":["pivotal","test"],"groups":["0000000000002f13edf1b1bfbff62386"]}}'
210
+ headers:
211
+ Content-Type:
212
+ - application/json
213
+ Accept:
214
+ - application/json
215
+ Accept-Encoding:
216
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
217
+ X-Ops-Sign:
218
+ - algorithm=sha1;version=1.0;
219
+ X-Ops-Userid: pivotal
220
+ X-Ops-Timestamp:
221
+ - '2015-04-27T18:45:54Z'
222
+ X-Ops-Content-Hash:
223
+ - "{{X-Ops-Content-Hash}}"
224
+ X-Ops-Authorization-1:
225
+ - "{{X-Ops-Authorization-1}}"
226
+ X-Ops-Authorization-2:
227
+ - "{{X-Ops-Authorization-2}}"
228
+ X-Ops-Authorization-3:
229
+ - "{{X-Ops-Authorization-3}}"
230
+ X-Ops-Authorization-4:
231
+ - "{{X-Ops-Authorization-4}}"
232
+ X-Ops-Authorization-5:
233
+ - "{{X-Ops-Authorization-5}}"
234
+ X-Ops-Authorization-6:
235
+ - "{{X-Ops-Authorization-6}}"
236
+ Host:
237
+ - chef.server:443
238
+ X-Remote-Request-Id:
239
+ - e057c96b-535d-4eab-ac1c-6741ff4007c1
240
+ Content-Length:
241
+ - '105'
242
+ X-Chef-Version:
243
+ - 12.2.1
244
+ User-Agent:
245
+ - ruby
246
+ response:
247
+ status:
248
+ code: 200
249
+ message: OK
250
+ headers:
251
+ Server:
252
+ - ngx_openresty/1.4.3.6
253
+ Date:
254
+ - Mon, 27 Apr 2015 18:45:45 GMT
255
+ Content-Type:
256
+ - application/json
257
+ Transfer-Encoding:
258
+ - chunked
259
+ Connection:
260
+ - keep-alive
261
+ X-Ops-Api-Info:
262
+ - flavor=cs;version=12.0.0;oc_erchef=1.5.0
263
+ Content-Encoding:
264
+ - gzip
265
+ body:
266
+ encoding: ASCII-8BIT
267
+ string: !binary |-
268
+ H4sIAAAAAAAAA6tWSi/KLy3IS8xNVbJSKi1OLSpW0lFKTC7JBzKsqqEiVtFK
269
+ BZll+SWJOUDJktTiEqVYHYhGoKJoJQMkYJRmaJyakmaYZJiUlpSWZmZkbGGm
270
+ FFtbCwDef8L4aQAAAA==
271
+ http_version:
272
+ recorded_at: Mon, 27 Apr 2015 18:45:54 GMT
273
+ - request:
274
+ method: get
275
+ uri: https://chef.server/organizations/my-org-name/groups/admins
276
+ body:
277
+ encoding: US-ASCII
278
+ string: ''
279
+ headers:
280
+ Accept:
281
+ - application/json
282
+ Accept-Encoding:
283
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
284
+ X-Ops-Sign:
285
+ - algorithm=sha1;version=1.0;
286
+ X-Ops-Userid: pivotal
287
+ X-Ops-Timestamp:
288
+ - '2015-04-27T18:45:54Z'
289
+ X-Ops-Content-Hash:
290
+ - "{{X-Ops-Content-Hash}}"
291
+ X-Ops-Authorization-1:
292
+ - "{{X-Ops-Authorization-1}}"
293
+ X-Ops-Authorization-2:
294
+ - "{{X-Ops-Authorization-2}}"
295
+ X-Ops-Authorization-3:
296
+ - "{{X-Ops-Authorization-3}}"
297
+ X-Ops-Authorization-4:
298
+ - "{{X-Ops-Authorization-4}}"
299
+ X-Ops-Authorization-5:
300
+ - "{{X-Ops-Authorization-5}}"
301
+ X-Ops-Authorization-6:
302
+ - "{{X-Ops-Authorization-6}}"
303
+ Host:
304
+ - chef.server:443
305
+ X-Remote-Request-Id:
306
+ - e057c96b-535d-4eab-ac1c-6741ff4007c1
307
+ X-Chef-Version:
308
+ - 12.2.1
309
+ User-Agent:
310
+ - ruby
311
+ response:
312
+ status:
313
+ code: 200
314
+ message: OK
315
+ headers:
316
+ Server:
317
+ - ngx_openresty/1.4.3.6
318
+ Date:
319
+ - Mon, 27 Apr 2015 18:45:45 GMT
320
+ Content-Type:
321
+ - application/json
322
+ Transfer-Encoding:
323
+ - chunked
324
+ Connection:
325
+ - keep-alive
326
+ X-Ops-Api-Info:
327
+ - flavor=cs;version=12.0.0;oc_erchef=1.5.0
328
+ Content-Encoding:
329
+ - gzip
330
+ body:
331
+ encoding: ASCII-8BIT
332
+ string: !binary |-
333
+ H4sIAAAAAAAAA6tWSkwuyS8qVrKKVirILMsvScxRitVRKi1OxRBLzslMzSsB
334
+ qQQqSC/KLy2AsvOL0vMSc1OVrJRyK3WBHF0wT0cJKpiYkpuZVwzkg/WgCtYC
335
+ AOiSGBqAAAAA
336
+ http_version:
337
+ recorded_at: Mon, 27 Apr 2015 18:45:54 GMT
338
+ - request:
339
+ method: put
340
+ uri: https://chef.server/organizations/my-org-name/groups/admins
341
+ body:
342
+ encoding: ASCII-8BIT
343
+ string: '{"groupname":"admins","actors":{"users":["pivotal","test"],"groups":[]}}'
344
+ headers:
345
+ Content-Type:
346
+ - application/json
347
+ Accept:
348
+ - application/json
349
+ Accept-Encoding:
350
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
351
+ X-Ops-Sign:
352
+ - algorithm=sha1;version=1.0;
353
+ X-Ops-Userid: pivotal
354
+ X-Ops-Timestamp:
355
+ - '2015-04-27T18:45:54Z'
356
+ X-Ops-Content-Hash:
357
+ - "{{X-Ops-Content-Hash}}"
358
+ X-Ops-Authorization-1:
359
+ - "{{X-Ops-Authorization-1}}"
360
+ X-Ops-Authorization-2:
361
+ - "{{X-Ops-Authorization-2}}"
362
+ X-Ops-Authorization-3:
363
+ - "{{X-Ops-Authorization-3}}"
364
+ X-Ops-Authorization-4:
365
+ - "{{X-Ops-Authorization-4}}"
366
+ X-Ops-Authorization-5:
367
+ - "{{X-Ops-Authorization-5}}"
368
+ X-Ops-Authorization-6:
369
+ - "{{X-Ops-Authorization-6}}"
370
+ Host:
371
+ - chef.server:443
372
+ X-Remote-Request-Id:
373
+ - e057c96b-535d-4eab-ac1c-6741ff4007c1
374
+ Content-Length:
375
+ - '72'
376
+ X-Chef-Version:
377
+ - 12.2.1
378
+ User-Agent:
379
+ - ruby
380
+ response:
381
+ status:
382
+ code: 200
383
+ message: OK
384
+ headers:
385
+ Server:
386
+ - ngx_openresty/1.4.3.6
387
+ Date:
388
+ - Mon, 27 Apr 2015 18:45:45 GMT
389
+ Content-Type:
390
+ - application/json
391
+ Transfer-Encoding:
392
+ - chunked
393
+ Connection:
394
+ - keep-alive
395
+ X-Ops-Api-Info:
396
+ - flavor=cs;version=12.0.0;oc_erchef=1.5.0
397
+ Content-Encoding:
398
+ - gzip
399
+ body:
400
+ encoding: ASCII-8BIT
401
+ string: !binary |-
402
+ H4sIAAAAAAAAA6tWSi/KLy3IS8xNVbJSSkzJzcwrVtJRSkwuyS8qVrKqViot
403
+ TgUxopUKMsvySxJzgJIlqcUlSrE6EJ0gudjaWgAd+XRmSAAAAA==
404
+ http_version:
405
+ recorded_at: Mon, 27 Apr 2015 18:45:55 GMT
406
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,69 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://chef.server/organizations
6
+ body:
7
+ encoding: ASCII-8BIT
8
+ string: '{"name":"my-org-name","full_name":"my-org-desc"}'
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ Accept:
13
+ - application/json
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ X-Ops-Sign:
17
+ - algorithm=sha1;version=1.0;
18
+ X-Ops-Userid: pivotal
19
+ X-Ops-Timestamp:
20
+ - '2015-04-29T14:33:48Z'
21
+ X-Ops-Content-Hash:
22
+ - "{{X-Ops-Content-Hash}}"
23
+ X-Ops-Authorization-1:
24
+ - "{{X-Ops-Authorization-1}}"
25
+ X-Ops-Authorization-2:
26
+ - "{{X-Ops-Authorization-2}}"
27
+ X-Ops-Authorization-3:
28
+ - "{{X-Ops-Authorization-3}}"
29
+ X-Ops-Authorization-4:
30
+ - "{{X-Ops-Authorization-4}}"
31
+ X-Ops-Authorization-5:
32
+ - "{{X-Ops-Authorization-5}}"
33
+ X-Ops-Authorization-6:
34
+ - "{{X-Ops-Authorization-6}}"
35
+ Host:
36
+ - chef.server:443
37
+ X-Remote-Request-Id:
38
+ - 6ab3f08e-f6e1-43e9-b11c-64dac81fc54f
39
+ Content-Length:
40
+ - '48'
41
+ X-Chef-Version:
42
+ - 12.2.1
43
+ User-Agent:
44
+ - ruby
45
+ response:
46
+ status:
47
+ code: 409
48
+ message: Conflict
49
+ headers:
50
+ Server:
51
+ - ngx_openresty/1.4.3.6
52
+ Date:
53
+ - Wed, 29 Apr 2015 14:33:48 GMT
54
+ Content-Type:
55
+ - application/json
56
+ Content-Length:
57
+ - '39'
58
+ Connection:
59
+ - keep-alive
60
+ X-Ops-Api-Info:
61
+ - flavor=cs;version=12.0.0;oc_erchef=1.5.0
62
+ Location:
63
+ - http://chef.server/organizations/my-org-name
64
+ body:
65
+ encoding: UTF-8
66
+ string: '{"error":"Organization already exists"}'
67
+ http_version:
68
+ recorded_at: Wed, 29 Apr 2015 14:33:49 GMT
69
+ recorded_with: VCR 2.9.3