Project

General

Profile

Download (51.5 KB) Statistics
| Branch: | Tag: | Revision:

hammer-cli-csv / test / fixtures / vcr_cassettes / setup / setup_lifecycle_environments / setup.yml @ f5d21adb

1
---
2
http_interactions:
3
- request:
4
    method: get
5
    uri: https://admin:changeme@katello.example.com:50191/katello/api/organizations?per_page=999999&search=name=%22Example%20Corporation%22
6
    body:
7
      encoding: US-ASCII
8
      string: ''
9
    headers:
10
      Accept:
11
      - application/json;version=2
12
      Accept-Encoding:
13
      - gzip, deflate
14
      User-Agent:
15
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
16
      Content-Type:
17
      - application/json
18
      Host:
19
      - katello.example.com:50191
20
  response:
21
    status:
22
      code: 200
23
      message: OK
24
    headers:
25
      Date:
26
      - Mon, 12 Sep 2016 15:39:45 GMT
27
      Server:
28
      - Apache/2.4.6 (CentOS)
29
      X-Frame-Options:
30
      - SAMEORIGIN
31
      X-Xss-Protection:
32
      - 1; mode=block
33
      X-Content-Type-Options:
34
      - nosniff
35
      Foreman-Version:
36
      - 1.14.0-develop
37
      Foreman-Api-Version:
38
      - '2'
39
      Content-Type:
40
      - application/json; charset=utf-8
41
      Apipie-Checksum:
42
      - 9544abef9cf8343005f07ed8c9f1f8e7
43
      Etag:
44
      - W/"438403e627981e853bc15d2e5d08c696-gzip"
45
      Cache-Control:
46
      - max-age=0, private, must-revalidate
47
      X-Request-Id:
48
      - cb381b9c-a5ce-4e7f-8a95-60e68c709d95
49
      X-Runtime:
50
      - '0.223449'
51
      Via:
52
      - 1.1 katello.example.com:50191
53
      Vary:
54
      - Accept-Encoding
55
      Content-Length:
56
      - '409'
57
      Set-Cookie:
58
      - _session_id=56296a09ca52e4bfff2b0fc5a42f501e; path=/; HttpOnly
59
    body:
60
      encoding: ASCII-8BIT
61
      string: |
62
        {
63
          "total": 3,
64
          "subtotal": 1,
65
          "page": 1,
66
          "per_page": 999999,
67
          "search": "name=\"Example Corporation\"",
68
          "sort": {
69
            "by": null,
70
            "order": null
71
          },
72
          "results": [{"label":"examplecorp","created_at":"2016-09-02 15:00:24 UTC","updated_at":"2016-09-02 15:00:24 UTC","id":3,"name":"Example Corporation","title":"Example Corporation","description":"The number one example company in the world!"}]
73
        }
74
    http_version: 
75
  recorded_at: Mon, 12 Sep 2016 15:39:46 GMT
76
- request:
77
    method: get
78
    uri: https://admin:changeme@katello.example.com:50191/katello/api/organizations/3/environments?per_page=999999
79
    body:
80
      encoding: US-ASCII
81
      string: ''
82
    headers:
83
      Accept:
84
      - application/json;version=2
85
      Accept-Encoding:
86
      - gzip, deflate
87
      User-Agent:
88
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
89
      Content-Type:
90
      - application/json
91
      Host:
92
      - katello.example.com:50191
93
  response:
94
    status:
95
      code: 200
96
      message: OK
97
    headers:
98
      Date:
99
      - Mon, 12 Sep 2016 15:39:45 GMT
100
      Server:
101
      - Apache/2.4.6 (CentOS)
102
      X-Frame-Options:
103
      - SAMEORIGIN
104
      X-Xss-Protection:
105
      - 1; mode=block
106
      X-Content-Type-Options:
107
      - nosniff
108
      Foreman-Version:
109
      - 1.14.0-develop
110
      Foreman-Api-Version:
111
      - '2'
112
      Content-Type:
113
      - application/json; charset=utf-8
114
      Apipie-Checksum:
115
      - 9544abef9cf8343005f07ed8c9f1f8e7
116
      Etag:
117
      - W/"0470c3e061ea7c4416c3c7ffd8263e80-gzip"
118
      Cache-Control:
119
      - max-age=0, private, must-revalidate
120
      X-Request-Id:
121
      - bd703f33-37ec-4ba1-a162-3e22928e45a4
122
      X-Runtime:
123
      - '1.884815'
124
      Via:
125
      - 1.1 katello.example.com:50191
126
      Vary:
127
      - Accept-Encoding
128
      Content-Length:
129
      - '3238'
130
      Set-Cookie:
131
      - _session_id=179f745211e7e8f056a784ec68433617; path=/; HttpOnly
132
    body:
133
      encoding: ASCII-8BIT
134
      string: |
135
        {"total":5,"subtotal":5,"page":1,"per_page":"999999","error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"library":false,"id":4,"name":"Test","label":"Test","description":"Test, manual promotions from Development","organization":{"name":"Example Corporation","label":"examplecorp","id":3},"created_at":"2016-09-02 18:20:05 UTC","updated_at":"2016-09-02 18:20:05 UTC","prior":{"name":"Development","id":3},"successor":{"name":"Production","id":5},"counts":{"content_hosts":0,"content_views":1},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":5,"name":"Production","label":"Production","description":"Production, manual promotions from Test","organization":{"name":"Example Corporation","label":"examplecorp","id":3},"created_at":"2016-09-02 18:20:08 UTC","updated_at":"2016-09-02 18:20:08 UTC","prior":{"name":"Test","id":4},"successor":{"name":"Archive","id":6},"counts":{"content_hosts":0,"content_views":1},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":true,"id":2,"name":"Library","label":"Library","description":null,"organization":{"name":"Example Corporation","label":"examplecorp","id":3},"created_at":"2016-09-02 15:00:26 UTC","updated_at":"2016-09-02 15:00:26 UTC","prior":null,"successor":null,"counts":{"content_hosts":9,"content_views":1,"packages":595,"puppet_modules":0,"errata":{"security":5,"bugfix":18,"enhancement":5,"total":28},"yum_repositories":1,"docker_repositories":0,"ostree_repositories":1,"products":2},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":3,"name":"Development","label":"Development","description":"Development, automated promotes from Library","organization":{"name":"Example Corporation","label":"examplecorp","id":3},"created_at":"2016-09-02 18:20:03 UTC","updated_at":"2016-09-02 18:20:03 UTC","prior":{"name":"Library","id":2},"successor":{"name":"Test","id":4},"counts":{"content_hosts":0,"content_views":1},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":6,"name":"Archive","label":"Archive","description":"Archive, no longer in Production","organization":{"name":"Example Corporation","label":"examplecorp","id":3},"created_at":"2016-09-02 18:20:11 UTC","updated_at":"2016-09-02 18:20:11 UTC","prior":{"name":"Production","id":5},"successor":null,"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":true,"promote_or_remove_content_views_to_environments":true}}]}
136
    http_version: 
137
  recorded_at: Mon, 12 Sep 2016 15:39:48 GMT
138
- request:
139
    method: get
140
    uri: https://admin:changeme@katello.example.com:50191/katello/api/organizations/9/environments?per_page=999999
141
    body:
142
      encoding: US-ASCII
143
      string: ''
144
    headers:
145
      Accept:
146
      - application/json;version=2
147
      Accept-Encoding:
148
      - gzip, deflate
149
      User-Agent:
150
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
151
      Content-Type:
152
      - application/json
153
      Host:
154
      - katello.example.com:50191
155
  response:
156
    status:
157
      code: 200
158
      message: OK
159
    headers:
160
      Date:
161
      - Mon, 12 Sep 2016 15:39:47 GMT
162
      Server:
163
      - Apache/2.4.6 (CentOS)
164
      X-Frame-Options:
165
      - SAMEORIGIN
166
      X-Xss-Protection:
167
      - 1; mode=block
168
      X-Content-Type-Options:
169
      - nosniff
170
      Foreman-Version:
171
      - 1.14.0-develop
172
      Foreman-Api-Version:
173
      - '2'
174
      Content-Type:
175
      - application/json; charset=utf-8
176
      Apipie-Checksum:
177
      - 9544abef9cf8343005f07ed8c9f1f8e7
178
      Etag:
179
      - W/"71a417dc2f3dfb1e7102347ec69b1aea-gzip"
180
      Cache-Control:
181
      - max-age=0, private, must-revalidate
182
      X-Request-Id:
183
      - a94dfabb-fcb5-45db-aa40-039213bdc461
184
      X-Runtime:
185
      - '1.929619'
186
      Via:
187
      - 1.1 katello.example.com:50191
188
      Vary:
189
      - Accept-Encoding
190
      Content-Length:
191
      - '3209'
192
      Set-Cookie:
193
      - _session_id=c7e37f3f2905b4b0d63b5a0f2d19c723; path=/; HttpOnly
194
    body:
195
      encoding: ASCII-8BIT
196
      string: |
197
        {"total":5,"subtotal":5,"page":1,"per_page":"999999","error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"library":false,"id":9,"name":"Test","label":"Test","description":"Test, manual promotions from Development","organization":{"name":"Test Corporation","label":"testcorp","id":9},"created_at":"2016-09-08 17:34:52 UTC","updated_at":"2016-09-08 17:34:52 UTC","prior":{"name":"Development","id":8},"successor":{"name":"Production","id":10},"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":10,"name":"Production","label":"Production","description":"Production, manual promotions from Test","organization":{"name":"Test Corporation","label":"testcorp","id":9},"created_at":"2016-09-08 17:34:56 UTC","updated_at":"2016-09-08 17:34:56 UTC","prior":{"name":"Test","id":9},"successor":{"name":"Archive","id":11},"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":true,"id":7,"name":"Library","label":"Library","description":null,"organization":{"name":"Test Corporation","label":"testcorp","id":9},"created_at":"2016-09-07 01:39:05 UTC","updated_at":"2016-09-07 01:39:05 UTC","prior":null,"successor":null,"counts":{"content_hosts":0,"content_views":1,"packages":0,"puppet_modules":0,"errata":{"security":0,"bugfix":0,"enhancement":0,"total":0},"yum_repositories":2,"docker_repositories":0,"ostree_repositories":0,"products":1},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":8,"name":"Development","label":"Development","description":"Development, automated promotes from Library","organization":{"name":"Test Corporation","label":"testcorp","id":9},"created_at":"2016-09-08 17:34:50 UTC","updated_at":"2016-09-08 17:34:50 UTC","prior":{"name":"Library","id":7},"successor":{"name":"Test","id":9},"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":11,"name":"Archive","label":"Archive","description":"Archive, no longer in Production","organization":{"name":"Test Corporation","label":"testcorp","id":9},"created_at":"2016-09-08 17:34:58 UTC","updated_at":"2016-09-08 17:34:58 UTC","prior":{"name":"Production","id":10},"successor":null,"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":true,"promote_or_remove_content_views_to_environments":true}}]}
198
    http_version: 
199
  recorded_at: Mon, 12 Sep 2016 15:39:50 GMT
200
- request:
201
    method: put
202
    uri: https://admin:changeme@katello.example.com:50191/katello/api/environments/8
203
    body:
204
      encoding: UTF-8
205
      string: '{"description":"Development, automated promotes from Library"}'
206
    headers:
207
      Accept:
208
      - application/json;version=2
209
      Accept-Encoding:
210
      - gzip, deflate
211
      User-Agent:
212
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
213
      Content-Type:
214
      - application/json
215
      Content-Length:
216
      - '62'
217
      Host:
218
      - katello.example.com:50191
219
  response:
220
    status:
221
      code: 200
222
      message: OK
223
    headers:
224
      Date:
225
      - Mon, 12 Sep 2016 15:39:49 GMT
226
      Server:
227
      - Apache/2.4.6 (CentOS)
228
      X-Frame-Options:
229
      - SAMEORIGIN
230
      X-Xss-Protection:
231
      - 1; mode=block
232
      X-Content-Type-Options:
233
      - nosniff
234
      Foreman-Version:
235
      - 1.14.0-develop
236
      Foreman-Api-Version:
237
      - '2'
238
      Content-Type:
239
      - application/json; charset=utf-8
240
      Apipie-Checksum:
241
      - 9544abef9cf8343005f07ed8c9f1f8e7
242
      Etag:
243
      - W/"fee31523550c7fe7bd8a6a3c5f49e232-gzip"
244
      Cache-Control:
245
      - max-age=0, private, must-revalidate
246
      X-Request-Id:
247
      - b2cb02ec-61dc-43e9-9f57-4b9fa3930cf3
248
      X-Runtime:
249
      - '0.450480'
250
      Via:
251
      - 1.1 katello.example.com:50191
252
      Vary:
253
      - Accept-Encoding
254
      Content-Length:
255
      - '611'
256
      Set-Cookie:
257
      - _session_id=b7b6670b9085da22e41ca0ae37e034c8; path=/; HttpOnly
258
      - request_method=PUT; path=/
259
    body:
260
      encoding: ASCII-8BIT
261
      string: |2
262
          {"library":false,"id":8,"name":"Development","label":"Development","description":"Development, automated promotes from Library","organization":{"name":"Test Corporation","label":"testcorp","id":9},"created_at":"2016-09-08 17:34:50 UTC","updated_at":"2016-09-08 17:34:50 UTC","prior":{"name":"Library","id":7},"successor":{"name":"Test","id":9},"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}}
263
    http_version: 
264
  recorded_at: Mon, 12 Sep 2016 15:39:50 GMT
265
- request:
266
    method: put
267
    uri: https://admin:changeme@katello.example.com:50191/katello/api/environments/9
268
    body:
269
      encoding: UTF-8
270
      string: '{"description":"Test, manual promotions from Development"}'
271
    headers:
272
      Accept:
273
      - application/json;version=2
274
      Accept-Encoding:
275
      - gzip, deflate
276
      User-Agent:
277
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
278
      Content-Type:
279
      - application/json
280
      Content-Length:
281
      - '58'
282
      Host:
283
      - katello.example.com:50191
284
  response:
285
    status:
286
      code: 200
287
      message: OK
288
    headers:
289
      Date:
290
      - Mon, 12 Sep 2016 15:39:50 GMT
291
      Server:
292
      - Apache/2.4.6 (CentOS)
293
      X-Frame-Options:
294
      - SAMEORIGIN
295
      X-Xss-Protection:
296
      - 1; mode=block
297
      X-Content-Type-Options:
298
      - nosniff
299
      Foreman-Version:
300
      - 1.14.0-develop
301
      Foreman-Api-Version:
302
      - '2'
303
      Content-Type:
304
      - application/json; charset=utf-8
305
      Apipie-Checksum:
306
      - 9544abef9cf8343005f07ed8c9f1f8e7
307
      Etag:
308
      - W/"70f62787daba44dba5dce4419576f12c-gzip"
309
      Cache-Control:
310
      - max-age=0, private, must-revalidate
311
      X-Request-Id:
312
      - 2dc47b8b-5ca8-4e1d-b5a4-25363e730fe2
313
      X-Runtime:
314
      - '1.409081'
315
      Via:
316
      - 1.1 katello.example.com:50191
317
      Vary:
318
      - Accept-Encoding
319
      Content-Length:
320
      - '604'
321
      Set-Cookie:
322
      - _session_id=e0ea3fa460b80c7cb5068e4a4249ce84; path=/; HttpOnly
323
      - request_method=PUT; path=/
324
    body:
325
      encoding: ASCII-8BIT
326
      string: |2
327
          {"library":false,"id":9,"name":"Test","label":"Test","description":"Test, manual promotions from Development","organization":{"name":"Test Corporation","label":"testcorp","id":9},"created_at":"2016-09-08 17:34:52 UTC","updated_at":"2016-09-08 17:34:52 UTC","prior":{"name":"Development","id":8},"successor":{"name":"Production","id":10},"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}}
328
    http_version: 
329
  recorded_at: Mon, 12 Sep 2016 15:39:52 GMT
330
- request:
331
    method: put
332
    uri: https://admin:changeme@katello.example.com:50191/katello/api/environments/10
333
    body:
334
      encoding: UTF-8
335
      string: '{"description":"Production, manual promotions from Test"}'
336
    headers:
337
      Accept:
338
      - application/json;version=2
339
      Accept-Encoding:
340
      - gzip, deflate
341
      User-Agent:
342
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
343
      Content-Type:
344
      - application/json
345
      Content-Length:
346
      - '57'
347
      Host:
348
      - katello.example.com:50191
349
  response:
350
    status:
351
      code: 200
352
      message: OK
353
    headers:
354
      Date:
355
      - Mon, 12 Sep 2016 15:39:51 GMT
356
      Server:
357
      - Apache/2.4.6 (CentOS)
358
      X-Frame-Options:
359
      - SAMEORIGIN
360
      X-Xss-Protection:
361
      - 1; mode=block
362
      X-Content-Type-Options:
363
      - nosniff
364
      Foreman-Version:
365
      - 1.14.0-develop
366
      Foreman-Api-Version:
367
      - '2'
368
      Content-Type:
369
      - application/json; charset=utf-8
370
      Apipie-Checksum:
371
      - 9544abef9cf8343005f07ed8c9f1f8e7
372
      Etag:
373
      - W/"973776d0a4e1867f88a0d11870488396-gzip"
374
      Cache-Control:
375
      - max-age=0, private, must-revalidate
376
      X-Request-Id:
377
      - c8a3c490-c18e-4895-8615-2bbb11db2e1a
378
      X-Runtime:
379
      - '0.390505'
380
      Via:
381
      - 1.1 katello.example.com:50191
382
      Vary:
383
      - Accept-Encoding
384
      Content-Length:
385
      - '606'
386
      Set-Cookie:
387
      - _session_id=c5709b95972a38bfe9ef73072b452898; path=/; HttpOnly
388
      - request_method=PUT; path=/
389
    body:
390
      encoding: ASCII-8BIT
391
      string: |2
392
          {"library":false,"id":10,"name":"Production","label":"Production","description":"Production, manual promotions from Test","organization":{"name":"Test Corporation","label":"testcorp","id":9},"created_at":"2016-09-08 17:34:56 UTC","updated_at":"2016-09-08 17:34:56 UTC","prior":{"name":"Test","id":9},"successor":{"name":"Archive","id":11},"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}}
393
    http_version: 
394
  recorded_at: Mon, 12 Sep 2016 15:39:52 GMT
395
- request:
396
    method: put
397
    uri: https://admin:changeme@katello.example.com:50191/katello/api/environments/11
398
    body:
399
      encoding: UTF-8
400
      string: '{"description":"Archive, no longer in Production"}'
401
    headers:
402
      Accept:
403
      - application/json;version=2
404
      Accept-Encoding:
405
      - gzip, deflate
406
      User-Agent:
407
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
408
      Content-Type:
409
      - application/json
410
      Content-Length:
411
      - '50'
412
      Host:
413
      - katello.example.com:50191
414
  response:
415
    status:
416
      code: 200
417
      message: OK
418
    headers:
419
      Date:
420
      - Mon, 12 Sep 2016 15:39:52 GMT
421
      Server:
422
      - Apache/2.4.6 (CentOS)
423
      X-Frame-Options:
424
      - SAMEORIGIN
425
      X-Xss-Protection:
426
      - 1; mode=block
427
      X-Content-Type-Options:
428
      - nosniff
429
      Foreman-Version:
430
      - 1.14.0-develop
431
      Foreman-Api-Version:
432
      - '2'
433
      Content-Type:
434
      - application/json; charset=utf-8
435
      Apipie-Checksum:
436
      - 9544abef9cf8343005f07ed8c9f1f8e7
437
      Etag:
438
      - W/"668972088a90a54823491ee88644a19b-gzip"
439
      Cache-Control:
440
      - max-age=0, private, must-revalidate
441
      X-Request-Id:
442
      - 1b8acbb8-0fc9-4616-bfff-52287662d9ca
443
      X-Runtime:
444
      - '1.410957'
445
      Via:
446
      - 1.1 katello.example.com:50191
447
      Vary:
448
      - Accept-Encoding
449
      Content-Length:
450
      - '577'
451
      Set-Cookie:
452
      - _session_id=7073965c1ee5226bc4a95c1a10c4ce50; path=/; HttpOnly
453
      - request_method=PUT; path=/
454
    body:
455
      encoding: ASCII-8BIT
456
      string: |2
457
          {"library":false,"id":11,"name":"Archive","label":"Archive","description":"Archive, no longer in Production","organization":{"name":"Test Corporation","label":"testcorp","id":9},"created_at":"2016-09-08 17:34:58 UTC","updated_at":"2016-09-08 17:34:58 UTC","prior":{"name":"Production","id":10},"successor":null,"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":true,"promote_or_remove_content_views_to_environments":true}}
458
    http_version: 
459
  recorded_at: Mon, 12 Sep 2016 15:39:54 GMT
460
- request:
461
    method: get
462
    uri: https://admin:changeme@katello.example.com:50218/api/status
463
    body:
464
      encoding: US-ASCII
465
      string: ''
466
    headers:
467
      Accept-Encoding:
468
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
469
      Accept:
470
      - "*/*"
471
      User-Agent:
472
      - Ruby
473
  response:
474
    status:
475
      code: 200
476
      message: 'OK '
477
    headers:
478
      Date:
479
      - Fri, 30 Sep 2016 15:40:01 GMT
480
      Server:
481
      - WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
482
      Foreman-Version:
483
      - 1.14.0-develop
484
      Foreman-Api-Version:
485
      - '2'
486
      Content-Type:
487
      - application/json; charset=utf-8
488
      Apipie-Checksum:
489
      - 68d37bf606b9a03df6e1e749d6054009
490
      Etag:
491
      - W/"1316c9d778b9181476af8a9546423fb1-gzip"
492
      Cache-Control:
493
      - max-age=0, private, must-revalidate
494
      X-Request-Id:
495
      - b7e3fa2e-ea60-4d4d-9e31-78fa63b0e09a
496
      X-Runtime:
497
      - '0.077533'
498
      Content-Security-Policy:
499
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
500
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
501
        ''self''; style-src ''unsafe-inline'' ''self'''
502
      Strict-Transport-Security:
503
      - max-age=631152000; includeSubdomains
504
      X-Content-Type-Options:
505
      - nosniff
506
      X-Download-Options:
507
      - noopen
508
      X-Frame-Options:
509
      - sameorigin
510
      X-Permitted-Cross-Domain-Policies:
511
      - none
512
      X-Xss-Protection:
513
      - 1; mode=block
514
      Via:
515
      - 1.1 testing.example.com:50218
516
      Vary:
517
      - Accept-Encoding
518
      Content-Length:
519
      - '81'
520
      Set-Cookie:
521
      - _session_id=cd53e2b248f23d5524d4eca1ea365e80; path=/; HttpOnly
522
    body:
523
      encoding: UTF-8
524
      string: '{"result":"ok","status":200,"version":"1.14.0-develop","api_version":2}'
525
    http_version: 
526
  recorded_at: Fri, 30 Sep 2016 15:40:02 GMT
527
- request:
528
    method: get
529
    uri: https://admin:changeme@katello.example.com:50218/api/v2/plugins
530
    body:
531
      encoding: US-ASCII
532
      string: ''
533
    headers:
534
      Accept-Encoding:
535
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
536
      Accept:
537
      - "*/*"
538
      User-Agent:
539
      - Ruby
540
  response:
541
    status:
542
      code: 200
543
      message: 'OK '
544
    headers:
545
      Date:
546
      - Fri, 30 Sep 2016 15:40:01 GMT
547
      Server:
548
      - WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
549
      Foreman-Version:
550
      - 1.14.0-develop
551
      Foreman-Api-Version:
552
      - '2'
553
      Content-Type:
554
      - application/json; charset=utf-8
555
      Apipie-Checksum:
556
      - 68d37bf606b9a03df6e1e749d6054009
557
      Etag:
558
      - W/"8f0162a4d2fd78df40b7f264aee93d64-gzip"
559
      Cache-Control:
560
      - max-age=0, private, must-revalidate
561
      X-Request-Id:
562
      - 6fe9b8e9-734c-4b75-a21b-1405201a5e36
563
      X-Runtime:
564
      - '0.066910'
565
      Content-Security-Policy:
566
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
567
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
568
        ''self''; style-src ''unsafe-inline'' ''self'''
569
      Strict-Transport-Security:
570
      - max-age=631152000; includeSubdomains
571
      X-Content-Type-Options:
572
      - nosniff
573
      X-Download-Options:
574
      - noopen
575
      X-Frame-Options:
576
      - sameorigin
577
      X-Permitted-Cross-Domain-Policies:
578
      - none
579
      X-Xss-Protection:
580
      - 1; mode=block
581
      Via:
582
      - 1.1 testing.example.com:50218
583
      Vary:
584
      - Accept-Encoding
585
      Content-Length:
586
      - '565'
587
      Set-Cookie:
588
      - _session_id=499842f3e9d5af9201a461c725e2fb8b; path=/; HttpOnly
589
    body:
590
      encoding: ASCII-8BIT
591
      string: !binary |-
592
        ewogICJ0b3RhbCI6IDMsCiAgInN1YnRvdGFsIjogMywKICAicGFnZSI6IDEs
593
        CiAgInBlcl9wYWdlIjogMjAsCiAgInNlYXJjaCI6IG51bGwsCiAgInNvcnQi
594
        OiB7CiAgICAiYnkiOiBudWxsLAogICAgIm9yZGVyIjogbnVsbAogIH0sCiAg
595
        InJlc3VsdHMiOiBbeyJpZCI6ImZvcmVtYW4tdGFza3MiLCJuYW1lIjoiZm9y
596
        ZW1hbi10YXNrcyIsImF1dGhvciI6Ikl2YW4gTmXEjWFzIiwiZGVzY3JpcHRp
597
        b24iOiJUaGUgZ29hbCBvZiB0aGlzIHBsdWdpbiBpcyB0byB1bmlmeSB0aGUg
598
        d2F5IG9mIHNob3dpbmcgdGFzayBzdGF0dXNlcyBhY3Jvc3MgdGhlIEZvcmVt
599
        YW4gaW5zdGFuY2UuXG5JdCBkZWZpbmVzIFRhc2sgbW9kZWwgZm9yIGtlZXBp
600
        bmcgdGhlIGluZm9ybWF0aW9uIGFib3V0IHRoZSB0YXNrcyBhbmQgTG9jayBm
601
        b3IgYXNzaWduaW5nIHRoZSB0YXNrc1xudG8gcmVzb3VyY2VzLiBUaGUgbG9j
602
        a2luZyBhbGxvd3MgZGVhbGluZyB3aXRoIHByZXZlbnRpbmcgbXVsdGlwbGUg
603
        Y29sbGlkaW5nIHRhc2tzIHRvIGJlIHJ1biBvbiB0aGVcbnNhbWUgcmVzb3Vy
604
        Y2UuIEl0IGFsc28gb3B0aW9uYWxseSBwcm92aWRlcyBEeW5mbG93IGluZnJh
605
        c3RydWN0dXJlIGZvciB1c2luZyBpdCBmb3IgbWFuYWdpbmcgdGhlIHRhc2tz
606
        LlxuIiwidXJsIjoiaHR0cHM6Ly9naXRodWIuY29tL3RoZWZvcmVtYW4vZm9y
607
        ZW1hbi10YXNrcyIsInZlcnNpb24iOiIwLjguMiJ9LHsiaWQiOiJmb3JlbWFu
608
        X2RvY2tlciIsIm5hbWUiOiJmb3JlbWFuX2RvY2tlciIsImF1dGhvciI6IkRh
609
        bmllbCBMb2JhdG8sIEFtb3MgQmVuYXJpIiwiZGVzY3JpcHRpb24iOiJQcm92
610
        aXNpb24gYW5kIG1hbmFnZSBEb2NrZXIgY29udGFpbmVycyBhbmQgaW1hZ2Vz
611
        IGZyb20gRm9yZW1hbi4iLCJ1cmwiOiJodHRwOi8vZ2l0aHViLmNvbS90aGVm
612
        b3JlbWFuL2ZvcmVtYW4tZG9ja2VyIiwidmVyc2lvbiI6IjMuMC4wIn0seyJp
613
        ZCI6ImthdGVsbG8iLCJuYW1lIjoia2F0ZWxsbyIsImF1dGhvciI6Ik4vQSIs
614
        ImRlc2NyaXB0aW9uIjoiQ29udGVudCBhbmQgU3Vic2NyaXB0aW9uIE1hbmFn
615
        ZW1lbnQgcGx1Z2luIGZvciBGb3JlbWFuIiwidXJsIjoiaHR0cDovL3d3dy5r
616
        YXRlbGxvLm9yZyIsInZlcnNpb24iOiIzLjMuMCJ9XQp9Cg==
617
    http_version: 
618
  recorded_at: Fri, 30 Sep 2016 15:40:02 GMT
619
- request:
620
    method: get
621
    uri: https://admin:changeme@katello.example.com:50218/katello/api/organizations?per_page=999999
622
    body:
623
      encoding: US-ASCII
624
      string: ''
625
    headers:
626
      Accept:
627
      - application/json;version=2
628
      Accept-Encoding:
629
      - gzip, deflate
630
      User-Agent:
631
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
632
      Content-Type:
633
      - application/json
634
      Accept-Language:
635
      - en
636
      Host:
637
      - katello.example.com:50218
638
  response:
639
    status:
640
      code: 200
641
      message: 'OK '
642
    headers:
643
      Date:
644
      - Fri, 30 Sep 2016 15:40:01 GMT
645
      Server:
646
      - WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
647
      Foreman-Version:
648
      - 1.14.0-develop
649
      Foreman-Api-Version:
650
      - '2'
651
      Content-Type:
652
      - application/json; charset=utf-8
653
      Apipie-Checksum:
654
      - 68d37bf606b9a03df6e1e749d6054009
655
      Etag:
656
      - W/"758d82fead8e0302548ed1a70bdf6bca-gzip"
657
      Cache-Control:
658
      - max-age=0, private, must-revalidate
659
      X-Request-Id:
660
      - bbb73429-e6d3-43cd-930b-9792ae8da2d9
661
      X-Runtime:
662
      - '0.097848'
663
      Content-Security-Policy:
664
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
665
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
666
        ''self''; style-src ''unsafe-inline'' ''self'''
667
      Strict-Transport-Security:
668
      - max-age=631152000; includeSubdomains
669
      X-Content-Type-Options:
670
      - nosniff
671
      X-Download-Options:
672
      - noopen
673
      X-Frame-Options:
674
      - sameorigin
675
      X-Permitted-Cross-Domain-Policies:
676
      - none
677
      X-Xss-Protection:
678
      - 1; mode=block
679
      Via:
680
      - 1.1 testing.example.com:50218
681
      Vary:
682
      - Accept-Encoding
683
      Content-Length:
684
      - '563'
685
      Set-Cookie:
686
      - _session_id=6b97a2745f991c1af2fb4e42c863e982; path=/; HttpOnly
687
    body:
688
      encoding: ASCII-8BIT
689
      string: |
690
        {
691
          "total": 2,
692
          "subtotal": 2,
693
          "page": 1,
694
          "per_page": 999999,
695
          "search": null,
696
          "sort": {
697
            "by": null,
698
            "order": null
699
          },
700
          "results": [{"label":"Default_Organization","created_at":"2016-09-30 14:47:05 UTC","updated_at":"2016-09-30 14:47:05 UTC","id":1,"name":"Default Organization","title":"Default Organization","description":null},{"label":"testcorp","created_at":"2016-09-30 15:10:48 UTC","updated_at":"2016-09-30 15:10:48 UTC","id":8,"name":"Test Corporation","title":"Test Corporation","description":"Testing today for a better tomorrow"}]
701
        }
702
    http_version: 
703
  recorded_at: Fri, 30 Sep 2016 15:40:02 GMT
704
- request:
705
    method: get
706
    uri: https://admin:changeme@katello.example.com:50218/katello/api/organizations?per_page=999999&search=name=%22Default%20Organization%22
707
    body:
708
      encoding: US-ASCII
709
      string: ''
710
    headers:
711
      Accept:
712
      - application/json;version=2
713
      Accept-Encoding:
714
      - gzip, deflate
715
      User-Agent:
716
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
717
      Content-Type:
718
      - application/json
719
      Accept-Language:
720
      - en
721
      Host:
722
      - katello.example.com:50218
723
  response:
724
    status:
725
      code: 200
726
      message: 'OK '
727
    headers:
728
      Date:
729
      - Fri, 30 Sep 2016 15:40:01 GMT
730
      Server:
731
      - WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
732
      Foreman-Version:
733
      - 1.14.0-develop
734
      Foreman-Api-Version:
735
      - '2'
736
      Content-Type:
737
      - application/json; charset=utf-8
738
      Apipie-Checksum:
739
      - 68d37bf606b9a03df6e1e749d6054009
740
      Etag:
741
      - W/"b386571cce5dd990fe4d2d223d0bb139-gzip"
742
      Cache-Control:
743
      - max-age=0, private, must-revalidate
744
      X-Request-Id:
745
      - 613ef529-c747-4fb4-bd2c-b3298099f145
746
      X-Runtime:
747
      - '0.076197'
748
      Content-Security-Policy:
749
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
750
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
751
        ''self''; style-src ''unsafe-inline'' ''self'''
752
      Strict-Transport-Security:
753
      - max-age=631152000; includeSubdomains
754
      X-Content-Type-Options:
755
      - nosniff
756
      X-Download-Options:
757
      - noopen
758
      X-Frame-Options:
759
      - sameorigin
760
      X-Permitted-Cross-Domain-Policies:
761
      - none
762
      X-Xss-Protection:
763
      - 1; mode=block
764
      Via:
765
      - 1.1 testing.example.com:50218
766
      Vary:
767
      - Accept-Encoding
768
      Content-Length:
769
      - '379'
770
      Set-Cookie:
771
      - _session_id=525c5c3629dfb06965ed10c2bb5f948b; path=/; HttpOnly
772
    body:
773
      encoding: ASCII-8BIT
774
      string: |
775
        {
776
          "total": 2,
777
          "subtotal": 1,
778
          "page": 1,
779
          "per_page": 999999,
780
          "search": "name=\"Default Organization\"",
781
          "sort": {
782
            "by": null,
783
            "order": null
784
          },
785
          "results": [{"label":"Default_Organization","created_at":"2016-09-30 14:47:05 UTC","updated_at":"2016-09-30 14:47:05 UTC","id":1,"name":"Default Organization","title":"Default Organization","description":null}]
786
        }
787
    http_version: 
788
  recorded_at: Fri, 30 Sep 2016 15:40:02 GMT
789
- request:
790
    method: get
791
    uri: https://admin:changeme@katello.example.com:50218/katello/api/organizations/1/environments?per_page=999999
792
    body:
793
      encoding: US-ASCII
794
      string: ''
795
    headers:
796
      Accept:
797
      - application/json;version=2
798
      Accept-Encoding:
799
      - gzip, deflate
800
      User-Agent:
801
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
802
      Content-Type:
803
      - application/json
804
      Accept-Language:
805
      - en
806
      Host:
807
      - katello.example.com:50218
808
  response:
809
    status:
810
      code: 200
811
      message: 'OK '
812
    headers:
813
      Date:
814
      - Fri, 30 Sep 2016 15:40:01 GMT
815
      Server:
816
      - WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
817
      Foreman-Version:
818
      - 1.14.0-develop
819
      Foreman-Api-Version:
820
      - '2'
821
      Content-Type:
822
      - application/json; charset=utf-8
823
      Apipie-Checksum:
824
      - 68d37bf606b9a03df6e1e749d6054009
825
      Etag:
826
      - W/"17704444d0bf8d9d13e12e5b1fb5f2bf-gzip"
827
      Cache-Control:
828
      - max-age=0, private, must-revalidate
829
      X-Request-Id:
830
      - daaf22ac-7df1-4848-a5ab-f7fe3044ec6e
831
      X-Runtime:
832
      - '0.116359'
833
      Content-Security-Policy:
834
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
835
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
836
        ''self''; style-src ''unsafe-inline'' ''self'''
837
      Strict-Transport-Security:
838
      - max-age=631152000; includeSubdomains
839
      X-Content-Type-Options:
840
      - nosniff
841
      X-Download-Options:
842
      - noopen
843
      X-Frame-Options:
844
      - sameorigin
845
      X-Permitted-Cross-Domain-Policies:
846
      - none
847
      X-Xss-Protection:
848
      - 1; mode=block
849
      Via:
850
      - 1.1 testing.example.com:50218
851
      Vary:
852
      - Accept-Encoding
853
      Content-Length:
854
      - '835'
855
      Set-Cookie:
856
      - _session_id=ccd0313be6fa498a1900cc2d493efd52; path=/; HttpOnly
857
    body:
858
      encoding: ASCII-8BIT
859
      string: |
860
        {"total":1,"subtotal":1,"page":1,"per_page":"999999","error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"library":true,"id":1,"name":"Library","label":"Library","description":null,"organization":{"name":"Default Organization","label":"Default_Organization","id":1},"created_at":"2016-09-30 14:47:10 UTC","updated_at":"2016-09-30 14:47:10 UTC","prior":null,"successor":null,"counts":{"content_hosts":0,"content_views":0,"packages":0,"puppet_modules":0,"errata":{"security":0,"bugfix":0,"enhancement":0,"total":0},"yum_repositories":0,"docker_repositories":0,"ostree_repositories":0,"products":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}}]}
861
    http_version: 
862
  recorded_at: Fri, 30 Sep 2016 15:40:02 GMT
863
- request:
864
    method: get
865
    uri: https://admin:changeme@katello.example.com:50218/katello/api/organizations?per_page=999999&search=name=%22Test%20Corporation%22
866
    body:
867
      encoding: US-ASCII
868
      string: ''
869
    headers:
870
      Accept:
871
      - application/json;version=2
872
      Accept-Encoding:
873
      - gzip, deflate
874
      User-Agent:
875
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
876
      Content-Type:
877
      - application/json
878
      Accept-Language:
879
      - en
880
      Host:
881
      - katello.example.com:50218
882
  response:
883
    status:
884
      code: 200
885
      message: 'OK '
886
    headers:
887
      Date:
888
      - Fri, 30 Sep 2016 15:40:02 GMT
889
      Server:
890
      - WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
891
      Foreman-Version:
892
      - 1.14.0-develop
893
      Foreman-Api-Version:
894
      - '2'
895
      Content-Type:
896
      - application/json; charset=utf-8
897
      Apipie-Checksum:
898
      - 68d37bf606b9a03df6e1e749d6054009
899
      Etag:
900
      - W/"d409184974d814dc55ce7ccb1cac5fd0-gzip"
901
      Cache-Control:
902
      - max-age=0, private, must-revalidate
903
      X-Request-Id:
904
      - 17a6f097-181f-4247-9e9f-f46e0878c3ad
905
      X-Runtime:
906
      - '1.122352'
907
      Content-Security-Policy:
908
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
909
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
910
        ''self''; style-src ''unsafe-inline'' ''self'''
911
      Strict-Transport-Security:
912
      - max-age=631152000; includeSubdomains
913
      X-Content-Type-Options:
914
      - nosniff
915
      X-Download-Options:
916
      - noopen
917
      X-Frame-Options:
918
      - sameorigin
919
      X-Permitted-Cross-Domain-Policies:
920
      - none
921
      X-Xss-Protection:
922
      - 1; mode=block
923
      Via:
924
      - 1.1 testing.example.com:50218
925
      Vary:
926
      - Accept-Encoding
927
      Content-Length:
928
      - '388'
929
      Set-Cookie:
930
      - _session_id=e8c751c2a1af15e004e3eb8fa1ed4ddc; path=/; HttpOnly
931
    body:
932
      encoding: ASCII-8BIT
933
      string: |
934
        {
935
          "total": 2,
936
          "subtotal": 1,
937
          "page": 1,
938
          "per_page": 999999,
939
          "search": "name=\"Test Corporation\"",
940
          "sort": {
941
            "by": null,
942
            "order": null
943
          },
944
          "results": [{"label":"testcorp","created_at":"2016-09-30 15:10:48 UTC","updated_at":"2016-09-30 15:10:48 UTC","id":8,"name":"Test Corporation","title":"Test Corporation","description":"Testing today for a better tomorrow"}]
945
        }
946
    http_version: 
947
  recorded_at: Fri, 30 Sep 2016 15:40:03 GMT
948
- request:
949
    method: get
950
    uri: https://admin:changeme@katello.example.com:50218/katello/api/organizations/8/environments?per_page=999999
951
    body:
952
      encoding: US-ASCII
953
      string: ''
954
    headers:
955
      Accept:
956
      - application/json;version=2
957
      Accept-Encoding:
958
      - gzip, deflate
959
      User-Agent:
960
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
961
      Content-Type:
962
      - application/json
963
      Accept-Language:
964
      - en
965
      Host:
966
      - katello.example.com:50218
967
  response:
968
    status:
969
      code: 200
970
      message: 'OK '
971
    headers:
972
      Date:
973
      - Fri, 30 Sep 2016 15:40:02 GMT
974
      Server:
975
      - WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
976
      Foreman-Version:
977
      - 1.14.0-develop
978
      Foreman-Api-Version:
979
      - '2'
980
      Content-Type:
981
      - application/json; charset=utf-8
982
      Apipie-Checksum:
983
      - 68d37bf606b9a03df6e1e749d6054009
984
      Etag:
985
      - W/"8d73e6331ad9d4cee8bb530f0467579e-gzip"
986
      Cache-Control:
987
      - max-age=0, private, must-revalidate
988
      X-Request-Id:
989
      - ac4feda4-8bec-4802-aacf-91df1ceb4dd8
990
      X-Runtime:
991
      - '0.231396'
992
      Content-Security-Policy:
993
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
994
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
995
        ''self''; style-src ''unsafe-inline'' ''self'''
996
      Strict-Transport-Security:
997
      - max-age=631152000; includeSubdomains
998
      X-Content-Type-Options:
999
      - nosniff
1000
      X-Download-Options:
1001
      - noopen
1002
      X-Frame-Options:
1003
      - sameorigin
1004
      X-Permitted-Cross-Domain-Policies:
1005
      - none
1006
      X-Xss-Protection:
1007
      - 1; mode=block
1008
      Via:
1009
      - 1.1 testing.example.com:50218
1010
      Vary:
1011
      - Accept-Encoding
1012
      Content-Length:
1013
      - '3204'
1014
      Set-Cookie:
1015
      - _session_id=e7c180600b1439b876aa82e526d0efce; path=/; HttpOnly
1016
    body:
1017
      encoding: ASCII-8BIT
1018
      string: |
1019
        {"total":5,"subtotal":5,"page":1,"per_page":"999999","error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"library":false,"id":4,"name":"Test","label":"Test","description":"Test, manual promotions from Development","organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-09-30 15:12:23 UTC","updated_at":"2016-09-30 15:12:23 UTC","prior":{"name":"Development","id":3},"successor":{"name":"Production","id":5},"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":5,"name":"Production","label":"Production","description":"Production, manual promotions from Test","organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-09-30 15:12:24 UTC","updated_at":"2016-09-30 15:12:24 UTC","prior":{"name":"Test","id":4},"successor":{"name":"Archive","id":6},"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":true,"id":2,"name":"Library","label":"Library","description":null,"organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-09-30 15:10:48 UTC","updated_at":"2016-09-30 15:10:48 UTC","prior":null,"successor":null,"counts":{"content_hosts":0,"content_views":1,"packages":0,"puppet_modules":0,"errata":{"security":0,"bugfix":0,"enhancement":0,"total":0},"yum_repositories":0,"docker_repositories":0,"ostree_repositories":0,"products":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":3,"name":"Development","label":"Development","description":"Development, automated promotes from Library","organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-09-30 15:12:23 UTC","updated_at":"2016-09-30 15:12:23 UTC","prior":{"name":"Library","id":2},"successor":{"name":"Test","id":4},"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":6,"name":"Archive","label":"Archive","description":"Archive, no longer in Production","organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-09-30 15:12:25 UTC","updated_at":"2016-09-30 15:12:25 UTC","prior":{"name":"Production","id":5},"successor":null,"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":true,"promote_or_remove_content_views_to_environments":true}}]}
1020
    http_version: 
1021
  recorded_at: Fri, 30 Sep 2016 15:40:03 GMT
1022
- request:
1023
    method: put
1024
    uri: https://admin:changeme@katello.example.com:50218/katello/api/environments/3
1025
    body:
1026
      encoding: UTF-8
1027
      string: '{"description":"Development, automated promotes from Library"}'
1028
    headers:
1029
      Accept:
1030
      - application/json;version=2
1031
      Accept-Encoding:
1032
      - gzip, deflate
1033
      User-Agent:
1034
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
1035
      Content-Type:
1036
      - application/json
1037
      Accept-Language:
1038
      - en
1039
      Content-Length:
1040
      - '62'
1041
      Host:
1042
      - katello.example.com:50218
1043
  response:
1044
    status:
1045
      code: 200
1046
      message: 'OK '
1047
    headers:
1048
      Date:
1049
      - Fri, 30 Sep 2016 15:40:03 GMT
1050
      Server:
1051
      - WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
1052
      Foreman-Version:
1053
      - 1.14.0-develop
1054
      Foreman-Api-Version:
1055
      - '2'
1056
      Content-Type:
1057
      - application/json; charset=utf-8
1058
      Apipie-Checksum:
1059
      - 68d37bf606b9a03df6e1e749d6054009
1060
      Etag:
1061
      - W/"05cf74abe8fca9ec2464c2bc12587d34-gzip"
1062
      Cache-Control:
1063
      - max-age=0, private, must-revalidate
1064
      X-Request-Id:
1065
      - 3fd571eb-fb8c-4e90-b28a-cc2ffbba2ffc
1066
      X-Runtime:
1067
      - '0.125180'
1068
      Content-Security-Policy:
1069
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
1070
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
1071
        ''self''; style-src ''unsafe-inline'' ''self'''
1072
      Strict-Transport-Security:
1073
      - max-age=631152000; includeSubdomains
1074
      X-Content-Type-Options:
1075
      - nosniff
1076
      X-Download-Options:
1077
      - noopen
1078
      X-Frame-Options:
1079
      - sameorigin
1080
      X-Permitted-Cross-Domain-Policies:
1081
      - none
1082
      X-Xss-Protection:
1083
      - 1; mode=block
1084
      Via:
1085
      - 1.1 testing.example.com:50218
1086
      Vary:
1087
      - Accept-Encoding
1088
      Content-Length:
1089
      - '611'
1090
      Set-Cookie:
1091
      - _session_id=b6e82945ae694ceff2c812dbdfd35d3a; path=/; HttpOnly
1092
      - request_method=PUT; path=/
1093
    body:
1094
      encoding: ASCII-8BIT
1095
      string: |2
1096
          {"library":false,"id":3,"name":"Development","label":"Development","description":"Development, automated promotes from Library","organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-09-30 15:12:23 UTC","updated_at":"2016-09-30 15:12:23 UTC","prior":{"name":"Library","id":2},"successor":{"name":"Test","id":4},"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}}
1097
    http_version: 
1098
  recorded_at: Fri, 30 Sep 2016 15:40:04 GMT
1099
- request:
1100
    method: put
1101
    uri: https://admin:changeme@katello.example.com:50218/katello/api/environments/4
1102
    body:
1103
      encoding: UTF-8
1104
      string: '{"description":"Test, manual promotions from Development"}'
1105
    headers:
1106
      Accept:
1107
      - application/json;version=2
1108
      Accept-Encoding:
1109
      - gzip, deflate
1110
      User-Agent:
1111
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
1112
      Content-Type:
1113
      - application/json
1114
      Accept-Language:
1115
      - en
1116
      Content-Length:
1117
      - '58'
1118
      Host:
1119
      - katello.example.com:50218
1120
  response:
1121
    status:
1122
      code: 200
1123
      message: 'OK '
1124
    headers:
1125
      Date:
1126
      - Fri, 30 Sep 2016 15:40:03 GMT
1127
      Server:
1128
      - WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
1129
      Foreman-Version:
1130
      - 1.14.0-develop
1131
      Foreman-Api-Version:
1132
      - '2'
1133
      Content-Type:
1134
      - application/json; charset=utf-8
1135
      Apipie-Checksum:
1136
      - 68d37bf606b9a03df6e1e749d6054009
1137
      Etag:
1138
      - W/"7622bbaab1b2300c1765b7d9ec81a3a5-gzip"
1139
      Cache-Control:
1140
      - max-age=0, private, must-revalidate
1141
      X-Request-Id:
1142
      - 54692a73-ee6b-4426-b146-1fbe0cb1a1ed
1143
      X-Runtime:
1144
      - '0.135760'
1145
      Content-Security-Policy:
1146
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
1147
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
1148
        ''self''; style-src ''unsafe-inline'' ''self'''
1149
      Strict-Transport-Security:
1150
      - max-age=631152000; includeSubdomains
1151
      X-Content-Type-Options:
1152
      - nosniff
1153
      X-Download-Options:
1154
      - noopen
1155
      X-Frame-Options:
1156
      - sameorigin
1157
      X-Permitted-Cross-Domain-Policies:
1158
      - none
1159
      X-Xss-Protection:
1160
      - 1; mode=block
1161
      Via:
1162
      - 1.1 testing.example.com:50218
1163
      Vary:
1164
      - Accept-Encoding
1165
      Content-Length:
1166
      - '603'
1167
      Set-Cookie:
1168
      - _session_id=5b5cb341d49abbdfad753d8e5d7c47c5; path=/; HttpOnly
1169
      - request_method=PUT; path=/
1170
    body:
1171
      encoding: ASCII-8BIT
1172
      string: |2
1173
          {"library":false,"id":4,"name":"Test","label":"Test","description":"Test, manual promotions from Development","organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-09-30 15:12:23 UTC","updated_at":"2016-09-30 15:12:23 UTC","prior":{"name":"Development","id":3},"successor":{"name":"Production","id":5},"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}}
1174
    http_version: 
1175
  recorded_at: Fri, 30 Sep 2016 15:40:04 GMT
1176
- request:
1177
    method: put
1178
    uri: https://admin:changeme@katello.example.com:50218/katello/api/environments/5
1179
    body:
1180
      encoding: UTF-8
1181
      string: '{"description":"Production, manual promotions from Test"}'
1182
    headers:
1183
      Accept:
1184
      - application/json;version=2
1185
      Accept-Encoding:
1186
      - gzip, deflate
1187
      User-Agent:
1188
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
1189
      Content-Type:
1190
      - application/json
1191
      Accept-Language:
1192
      - en
1193
      Content-Length:
1194
      - '57'
1195
      Host:
1196
      - katello.example.com:50218
1197
  response:
1198
    status:
1199
      code: 200
1200
      message: 'OK '
1201
    headers:
1202
      Date:
1203
      - Fri, 30 Sep 2016 15:40:03 GMT
1204
      Server:
1205
      - WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
1206
      Foreman-Version:
1207
      - 1.14.0-develop
1208
      Foreman-Api-Version:
1209
      - '2'
1210
      Content-Type:
1211
      - application/json; charset=utf-8
1212
      Apipie-Checksum:
1213
      - 68d37bf606b9a03df6e1e749d6054009
1214
      Etag:
1215
      - W/"8feb72703e81937399339e8b84630b86-gzip"
1216
      Cache-Control:
1217
      - max-age=0, private, must-revalidate
1218
      X-Request-Id:
1219
      - d781dcbe-8bf3-496b-b803-4ec2682f842c
1220
      X-Runtime:
1221
      - '0.125443'
1222
      Content-Security-Policy:
1223
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
1224
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
1225
        ''self''; style-src ''unsafe-inline'' ''self'''
1226
      Strict-Transport-Security:
1227
      - max-age=631152000; includeSubdomains
1228
      X-Content-Type-Options:
1229
      - nosniff
1230
      X-Download-Options:
1231
      - noopen
1232
      X-Frame-Options:
1233
      - sameorigin
1234
      X-Permitted-Cross-Domain-Policies:
1235
      - none
1236
      X-Xss-Protection:
1237
      - 1; mode=block
1238
      Via:
1239
      - 1.1 testing.example.com:50218
1240
      Vary:
1241
      - Accept-Encoding
1242
      Content-Length:
1243
      - '604'
1244
      Set-Cookie:
1245
      - _session_id=a7673b98f8333b38afd69b48c28ed5fe; path=/; HttpOnly
1246
      - request_method=PUT; path=/
1247
    body:
1248
      encoding: ASCII-8BIT
1249
      string: |2
1250
          {"library":false,"id":5,"name":"Production","label":"Production","description":"Production, manual promotions from Test","organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-09-30 15:12:24 UTC","updated_at":"2016-09-30 15:12:24 UTC","prior":{"name":"Test","id":4},"successor":{"name":"Archive","id":6},"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}}
1251
    http_version: 
1252
  recorded_at: Fri, 30 Sep 2016 15:40:04 GMT
1253
- request:
1254
    method: put
1255
    uri: https://admin:changeme@katello.example.com:50218/katello/api/environments/6
1256
    body:
1257
      encoding: UTF-8
1258
      string: '{"description":"Archive, no longer in Production"}'
1259
    headers:
1260
      Accept:
1261
      - application/json;version=2
1262
      Accept-Encoding:
1263
      - gzip, deflate
1264
      User-Agent:
1265
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
1266
      Content-Type:
1267
      - application/json
1268
      Accept-Language:
1269
      - en
1270
      Content-Length:
1271
      - '50'
1272
      Host:
1273
      - katello.example.com:50218
1274
  response:
1275
    status:
1276
      code: 200
1277
      message: 'OK '
1278
    headers:
1279
      Date:
1280
      - Fri, 30 Sep 2016 15:40:03 GMT
1281
      Server:
1282
      - WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
1283
      Foreman-Version:
1284
      - 1.14.0-develop
1285
      Foreman-Api-Version:
1286
      - '2'
1287
      Content-Type:
1288
      - application/json; charset=utf-8
1289
      Apipie-Checksum:
1290
      - 68d37bf606b9a03df6e1e749d6054009
1291
      Etag:
1292
      - W/"7ece629b002d83b095812b8d19c35549-gzip"
1293
      Cache-Control:
1294
      - max-age=0, private, must-revalidate
1295
      X-Request-Id:
1296
      - 12f9051b-594f-4daa-8ff8-047b411287b7
1297
      X-Runtime:
1298
      - '0.114626'
1299
      Content-Security-Policy:
1300
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
1301
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
1302
        ''self''; style-src ''unsafe-inline'' ''self'''
1303
      Strict-Transport-Security:
1304
      - max-age=631152000; includeSubdomains
1305
      X-Content-Type-Options:
1306
      - nosniff
1307
      X-Download-Options:
1308
      - noopen
1309
      X-Frame-Options:
1310
      - sameorigin
1311
      X-Permitted-Cross-Domain-Policies:
1312
      - none
1313
      X-Xss-Protection:
1314
      - 1; mode=block
1315
      Via:
1316
      - 1.1 testing.example.com:50218
1317
      Vary:
1318
      - Accept-Encoding
1319
      Content-Length:
1320
      - '575'
1321
      Set-Cookie:
1322
      - _session_id=c56ea175b734be72ebb4258fbc15fd2e; path=/; HttpOnly
1323
      - request_method=PUT; path=/
1324
    body:
1325
      encoding: ASCII-8BIT
1326
      string: |2
1327
          {"library":false,"id":6,"name":"Archive","label":"Archive","description":"Archive, no longer in Production","organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-09-30 15:12:25 UTC","updated_at":"2016-09-30 15:12:25 UTC","prior":{"name":"Production","id":5},"successor":null,"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":true,"promote_or_remove_content_views_to_environments":true}}
1328
    http_version: 
1329
  recorded_at: Fri, 30 Sep 2016 15:40:04 GMT
1330
recorded_with: VCR 3.0.3