Project

General

Profile

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

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

1
---
2
http_interactions:
3
- request:
4
    method: get
5
    uri: https://admin:changeme@katello.example.com:50191/api/status
6
    body:
7
      encoding: US-ASCII
8
      string: ''
9
    headers:
10
      Accept-Encoding:
11
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
      Accept:
13
      - "*/*"
14
      User-Agent:
15
      - Ruby
16
  response:
17
    status:
18
      code: 200
19
      message: OK
20
    headers:
21
      Date:
22
      - Mon, 12 Sep 2016 15:39:41 GMT
23
      Server:
24
      - Apache/2.4.6 (CentOS)
25
      X-Frame-Options:
26
      - SAMEORIGIN
27
      X-Xss-Protection:
28
      - 1; mode=block
29
      X-Content-Type-Options:
30
      - nosniff
31
      Foreman-Version:
32
      - 1.14.0-develop
33
      Foreman-Api-Version:
34
      - '2'
35
      Content-Type:
36
      - application/json; charset=utf-8
37
      Apipie-Checksum:
38
      - 9544abef9cf8343005f07ed8c9f1f8e7
39
      Etag:
40
      - W/"1316c9d778b9181476af8a9546423fb1-gzip"
41
      Cache-Control:
42
      - max-age=0, private, must-revalidate
43
      X-Request-Id:
44
      - f411da2d-82ff-4e7e-9a40-101c5dac12c1
45
      X-Runtime:
46
      - '0.209871'
47
      Via:
48
      - 1.1 katello.example.com:50191
49
      Vary:
50
      - Accept-Encoding
51
      Content-Length:
52
      - '81'
53
      Set-Cookie:
54
      - _session_id=823247ac70fd77eae451215027f619e8; path=/; HttpOnly
55
    body:
56
      encoding: UTF-8
57
      string: '{"result":"ok","status":200,"version":"1.14.0-develop","api_version":2}'
58
    http_version: 
59
  recorded_at: Mon, 12 Sep 2016 15:39:42 GMT
60
- request:
61
    method: get
62
    uri: https://admin:changeme@katello.example.com:50191/api/v2/plugins
63
    body:
64
      encoding: US-ASCII
65
      string: ''
66
    headers:
67
      Accept-Encoding:
68
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
69
      Accept:
70
      - "*/*"
71
      User-Agent:
72
      - Ruby
73
  response:
74
    status:
75
      code: 200
76
      message: OK
77
    headers:
78
      Date:
79
      - Mon, 12 Sep 2016 15:39:42 GMT
80
      Server:
81
      - Apache/2.4.6 (CentOS)
82
      X-Frame-Options:
83
      - SAMEORIGIN
84
      X-Xss-Protection:
85
      - 1; mode=block
86
      X-Content-Type-Options:
87
      - nosniff
88
      Foreman-Version:
89
      - 1.14.0-develop
90
      Foreman-Api-Version:
91
      - '2'
92
      Content-Type:
93
      - application/json; charset=utf-8
94
      Apipie-Checksum:
95
      - 9544abef9cf8343005f07ed8c9f1f8e7
96
      Etag:
97
      - W/"c547959b2afaff0cf0a8d731005e9365-gzip"
98
      Cache-Control:
99
      - max-age=0, private, must-revalidate
100
      X-Request-Id:
101
      - e285274a-6ea0-4665-965c-464cc30d48c4
102
      X-Runtime:
103
      - '0.181014'
104
      Via:
105
      - 1.1 katello.example.com:50191
106
      Vary:
107
      - Accept-Encoding
108
      Content-Length:
109
      - '566'
110
      Set-Cookie:
111
      - _session_id=64ba03c8d03f03adc3377578c49d6fa0; path=/; HttpOnly
112
    body:
113
      encoding: ASCII-8BIT
114
      string: !binary |-
115
        ewogICJ0b3RhbCI6IDMsCiAgInN1YnRvdGFsIjogMywKICAicGFnZSI6IDEs
116
        CiAgInBlcl9wYWdlIjogMjAsCiAgInNlYXJjaCI6IG51bGwsCiAgInNvcnQi
117
        OiB7CiAgICAiYnkiOiBudWxsLAogICAgIm9yZGVyIjogbnVsbAogIH0sCiAg
118
        InJlc3VsdHMiOiBbeyJpZCI6ImZvcmVtYW4tdGFza3MiLCJuYW1lIjoiZm9y
119
        ZW1hbi10YXNrcyIsImF1dGhvciI6Ikl2YW4gTmXEjWFzIiwiZGVzY3JpcHRp
120
        b24iOiJUaGUgZ29hbCBvZiB0aGlzIHBsdWdpbiBpcyB0byB1bmlmeSB0aGUg
121
        d2F5IG9mIHNob3dpbmcgdGFzayBzdGF0dXNlcyBhY3Jvc3MgdGhlIEZvcmVt
122
        YW4gaW5zdGFuY2UuXG5JdCBkZWZpbmVzIFRhc2sgbW9kZWwgZm9yIGtlZXBp
123
        bmcgdGhlIGluZm9ybWF0aW9uIGFib3V0IHRoZSB0YXNrcyBhbmQgTG9jayBm
124
        b3IgYXNzaWduaW5nIHRoZSB0YXNrc1xudG8gcmVzb3VyY2VzLiBUaGUgbG9j
125
        a2luZyBhbGxvd3MgZGVhbGluZyB3aXRoIHByZXZlbnRpbmcgbXVsdGlwbGUg
126
        Y29sbGlkaW5nIHRhc2tzIHRvIGJlIHJ1biBvbiB0aGVcbnNhbWUgcmVzb3Vy
127
        Y2UuIEl0IGFsc28gb3B0aW9uYWxseSBwcm92aWRlcyBEeW5mbG93IGluZnJh
128
        c3RydWN0dXJlIGZvciB1c2luZyBpdCBmb3IgbWFuYWdpbmcgdGhlIHRhc2tz
129
        LlxuIiwidXJsIjoiaHR0cHM6Ly9naXRodWIuY29tL3RoZWZvcmVtYW4vZm9y
130
        ZW1hbi10YXNrcyIsInZlcnNpb24iOiIwLjguMSJ9LHsiaWQiOiJmb3JlbWFu
131
        X2RvY2tlciIsIm5hbWUiOiJmb3JlbWFuX2RvY2tlciIsImF1dGhvciI6IkRh
132
        bmllbCBMb2JhdG8sIEFtb3MgQmVuYXJpIiwiZGVzY3JpcHRpb24iOiJQcm92
133
        aXNpb24gYW5kIG1hbmFnZSBEb2NrZXIgY29udGFpbmVycyBhbmQgaW1hZ2Vz
134
        IGZyb20gRm9yZW1hbi4iLCJ1cmwiOiJodHRwOi8vZ2l0aHViLmNvbS90aGVm
135
        b3JlbWFuL2ZvcmVtYW4tZG9ja2VyIiwidmVyc2lvbiI6IjMuMC4wIn0seyJp
136
        ZCI6ImthdGVsbG8iLCJuYW1lIjoia2F0ZWxsbyIsImF1dGhvciI6Ik4vQSIs
137
        ImRlc2NyaXB0aW9uIjoiQ29udGVudCBhbmQgU3Vic2NyaXB0aW9uIE1hbmFn
138
        ZW1lbnQgcGx1Z2luIGZvciBGb3JlbWFuIiwidXJsIjoiaHR0cDovL3d3dy5r
139
        YXRlbGxvLm9yZyIsInZlcnNpb24iOiIzLjIuMCJ9XQp9Cg==
140
    http_version: 
141
  recorded_at: Mon, 12 Sep 2016 15:39:42 GMT
142
- request:
143
    method: get
144
    uri: https://admin:changeme@katello.example.com:50191/katello/api/organizations?per_page=999999
145
    body:
146
      encoding: US-ASCII
147
      string: ''
148
    headers:
149
      Accept:
150
      - application/json;version=2
151
      Accept-Encoding:
152
      - gzip, deflate
153
      User-Agent:
154
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
155
      Content-Type:
156
      - application/json
157
      Host:
158
      - katello.example.com:50191
159
  response:
160
    status:
161
      code: 200
162
      message: OK
163
    headers:
164
      Date:
165
      - Mon, 12 Sep 2016 15:39:42 GMT
166
      Server:
167
      - Apache/2.4.6 (CentOS)
168
      X-Frame-Options:
169
      - SAMEORIGIN
170
      X-Xss-Protection:
171
      - 1; mode=block
172
      X-Content-Type-Options:
173
      - nosniff
174
      Foreman-Version:
175
      - 1.14.0-develop
176
      Foreman-Api-Version:
177
      - '2'
178
      Content-Type:
179
      - application/json; charset=utf-8
180
      Apipie-Checksum:
181
      - 9544abef9cf8343005f07ed8c9f1f8e7
182
      Etag:
183
      - W/"6f6e523169508346de19ea518f842d6f-gzip"
184
      Cache-Control:
185
      - max-age=0, private, must-revalidate
186
      X-Request-Id:
187
      - 78121692-d37b-40a2-8f57-5c4bb9a9bf13
188
      X-Runtime:
189
      - '1.255230'
190
      Via:
191
      - 1.1 katello.example.com:50191
192
      Vary:
193
      - Accept-Encoding
194
      Content-Length:
195
      - '792'
196
      Set-Cookie:
197
      - _session_id=904045ae21de1f46fd1b39559e487a7a; path=/; HttpOnly
198
    body:
199
      encoding: ASCII-8BIT
200
      string: |
201
        {
202
          "total": 3,
203
          "subtotal": 3,
204
          "page": 1,
205
          "per_page": 999999,
206
          "search": null,
207
          "sort": {
208
            "by": null,
209
            "order": null
210
          },
211
          "results": [{"label":"Default_Organization","created_at":"2016-09-02 14:00:59 UTC","updated_at":"2016-09-02 14:00:59 UTC","id":1,"name":"Default Organization","title":"Default Organization","description":null},{"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!"},{"label":"testcorp","created_at":"2016-09-07 01:39:03 UTC","updated_at":"2016-09-07 01:39:03 UTC","id":9,"name":"Test Corporation","title":"Test Corporation","description":"Testing today for a better tomorrow"}]
212
        }
213
    http_version: 
214
  recorded_at: Mon, 12 Sep 2016 15:39:44 GMT
215
- request:
216
    method: get
217
    uri: https://admin:changeme@katello.example.com:50191/katello/api/organizations?per_page=999999&search=name=%22Default%20Organization%22
218
    body:
219
      encoding: US-ASCII
220
      string: ''
221
    headers:
222
      Accept:
223
      - application/json;version=2
224
      Accept-Encoding:
225
      - gzip, deflate
226
      User-Agent:
227
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
228
      Content-Type:
229
      - application/json
230
      Host:
231
      - katello.example.com:50191
232
  response:
233
    status:
234
      code: 200
235
      message: OK
236
    headers:
237
      Date:
238
      - Mon, 12 Sep 2016 15:39:43 GMT
239
      Server:
240
      - Apache/2.4.6 (CentOS)
241
      X-Frame-Options:
242
      - SAMEORIGIN
243
      X-Xss-Protection:
244
      - 1; mode=block
245
      X-Content-Type-Options:
246
      - nosniff
247
      Foreman-Version:
248
      - 1.14.0-develop
249
      Foreman-Api-Version:
250
      - '2'
251
      Content-Type:
252
      - application/json; charset=utf-8
253
      Apipie-Checksum:
254
      - 9544abef9cf8343005f07ed8c9f1f8e7
255
      Etag:
256
      - W/"d68c22d174002088d8001767ed0237b3-gzip"
257
      Cache-Control:
258
      - max-age=0, private, must-revalidate
259
      X-Request-Id:
260
      - f493c50b-c32e-4485-9cb4-c19ab7315507
261
      X-Runtime:
262
      - '0.358378'
263
      Via:
264
      - 1.1 katello.example.com:50191
265
      Vary:
266
      - Accept-Encoding
267
      Content-Length:
268
      - '379'
269
      Set-Cookie:
270
      - _session_id=33583744cc7f930e21508d79101d7602; path=/; HttpOnly
271
    body:
272
      encoding: ASCII-8BIT
273
      string: |
274
        {
275
          "total": 3,
276
          "subtotal": 1,
277
          "page": 1,
278
          "per_page": 999999,
279
          "search": "name=\"Default Organization\"",
280
          "sort": {
281
            "by": null,
282
            "order": null
283
          },
284
          "results": [{"label":"Default_Organization","created_at":"2016-09-02 14:00:59 UTC","updated_at":"2016-09-02 14:00:59 UTC","id":1,"name":"Default Organization","title":"Default Organization","description":null}]
285
        }
286
    http_version: 
287
  recorded_at: Mon, 12 Sep 2016 15:39:44 GMT
288
- request:
289
    method: get
290
    uri: https://admin:changeme@katello.example.com:50191/katello/api/organizations/1/environments?per_page=999999
291
    body:
292
      encoding: US-ASCII
293
      string: ''
294
    headers:
295
      Accept:
296
      - application/json;version=2
297
      Accept-Encoding:
298
      - gzip, deflate
299
      User-Agent:
300
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
301
      Content-Type:
302
      - application/json
303
      Host:
304
      - katello.example.com:50191
305
  response:
306
    status:
307
      code: 200
308
      message: OK
309
    headers:
310
      Date:
311
      - Mon, 12 Sep 2016 15:39:44 GMT
312
      Server:
313
      - Apache/2.4.6 (CentOS)
314
      X-Frame-Options:
315
      - SAMEORIGIN
316
      X-Xss-Protection:
317
      - 1; mode=block
318
      X-Content-Type-Options:
319
      - nosniff
320
      Foreman-Version:
321
      - 1.14.0-develop
322
      Foreman-Api-Version:
323
      - '2'
324
      Content-Type:
325
      - application/json; charset=utf-8
326
      Apipie-Checksum:
327
      - 9544abef9cf8343005f07ed8c9f1f8e7
328
      Etag:
329
      - W/"07e6b5f9f849df75a180e3005dec62cd-gzip"
330
      Cache-Control:
331
      - max-age=0, private, must-revalidate
332
      X-Request-Id:
333
      - ce0538a5-1a10-405c-8a75-67d6ecf62e86
334
      X-Runtime:
335
      - '1.396106'
336
      Via:
337
      - 1.1 katello.example.com:50191
338
      Vary:
339
      - Accept-Encoding
340
      Content-Length:
341
      - '835'
342
      Set-Cookie:
343
      - _session_id=d2d62b89a27e73f51b62b220b4b3e24a; path=/; HttpOnly
344
    body:
345
      encoding: ASCII-8BIT
346
      string: |
347
        {"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-02 14:01:04 UTC","updated_at":"2016-09-02 14:01:04 UTC","prior":null,"successor":null,"counts":{"content_hosts":1,"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}}]}
348
    http_version: 
349
  recorded_at: Mon, 12 Sep 2016 15:39:45 GMT
350
- request:
351
    method: get
352
    uri: https://admin:changeme@katello.example.com:50191/katello/api/organizations?per_page=999999&search=name=%22Example%20Corporation%22
353
    body:
354
      encoding: US-ASCII
355
      string: ''
356
    headers:
357
      Accept:
358
      - application/json;version=2
359
      Accept-Encoding:
360
      - gzip, deflate
361
      User-Agent:
362
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
363
      Content-Type:
364
      - application/json
365
      Host:
366
      - katello.example.com:50191
367
  response:
368
    status:
369
      code: 200
370
      message: OK
371
    headers:
372
      Date:
373
      - Mon, 12 Sep 2016 15:39:45 GMT
374
      Server:
375
      - Apache/2.4.6 (CentOS)
376
      X-Frame-Options:
377
      - SAMEORIGIN
378
      X-Xss-Protection:
379
      - 1; mode=block
380
      X-Content-Type-Options:
381
      - nosniff
382
      Foreman-Version:
383
      - 1.14.0-develop
384
      Foreman-Api-Version:
385
      - '2'
386
      Content-Type:
387
      - application/json; charset=utf-8
388
      Apipie-Checksum:
389
      - 9544abef9cf8343005f07ed8c9f1f8e7
390
      Etag:
391
      - W/"438403e627981e853bc15d2e5d08c696-gzip"
392
      Cache-Control:
393
      - max-age=0, private, must-revalidate
394
      X-Request-Id:
395
      - cb381b9c-a5ce-4e7f-8a95-60e68c709d95
396
      X-Runtime:
397
      - '0.223449'
398
      Via:
399
      - 1.1 katello.example.com:50191
400
      Vary:
401
      - Accept-Encoding
402
      Content-Length:
403
      - '409'
404
      Set-Cookie:
405
      - _session_id=56296a09ca52e4bfff2b0fc5a42f501e; path=/; HttpOnly
406
    body:
407
      encoding: ASCII-8BIT
408
      string: |
409
        {
410
          "total": 3,
411
          "subtotal": 1,
412
          "page": 1,
413
          "per_page": 999999,
414
          "search": "name=\"Example Corporation\"",
415
          "sort": {
416
            "by": null,
417
            "order": null
418
          },
419
          "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!"}]
420
        }
421
    http_version: 
422
  recorded_at: Mon, 12 Sep 2016 15:39:46 GMT
423
- request:
424
    method: get
425
    uri: https://admin:changeme@katello.example.com:50191/katello/api/organizations/3/environments?per_page=999999
426
    body:
427
      encoding: US-ASCII
428
      string: ''
429
    headers:
430
      Accept:
431
      - application/json;version=2
432
      Accept-Encoding:
433
      - gzip, deflate
434
      User-Agent:
435
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
436
      Content-Type:
437
      - application/json
438
      Host:
439
      - katello.example.com:50191
440
  response:
441
    status:
442
      code: 200
443
      message: OK
444
    headers:
445
      Date:
446
      - Mon, 12 Sep 2016 15:39:45 GMT
447
      Server:
448
      - Apache/2.4.6 (CentOS)
449
      X-Frame-Options:
450
      - SAMEORIGIN
451
      X-Xss-Protection:
452
      - 1; mode=block
453
      X-Content-Type-Options:
454
      - nosniff
455
      Foreman-Version:
456
      - 1.14.0-develop
457
      Foreman-Api-Version:
458
      - '2'
459
      Content-Type:
460
      - application/json; charset=utf-8
461
      Apipie-Checksum:
462
      - 9544abef9cf8343005f07ed8c9f1f8e7
463
      Etag:
464
      - W/"0470c3e061ea7c4416c3c7ffd8263e80-gzip"
465
      Cache-Control:
466
      - max-age=0, private, must-revalidate
467
      X-Request-Id:
468
      - bd703f33-37ec-4ba1-a162-3e22928e45a4
469
      X-Runtime:
470
      - '1.884815'
471
      Via:
472
      - 1.1 katello.example.com:50191
473
      Vary:
474
      - Accept-Encoding
475
      Content-Length:
476
      - '3238'
477
      Set-Cookie:
478
      - _session_id=179f745211e7e8f056a784ec68433617; path=/; HttpOnly
479
    body:
480
      encoding: ASCII-8BIT
481
      string: |
482
        {"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}}]}
483
    http_version: 
484
  recorded_at: Mon, 12 Sep 2016 15:39:48 GMT
485
- request:
486
    method: get
487
    uri: https://admin:changeme@katello.example.com:50191/katello/api/organizations?per_page=999999&search=name=%22Test%20Corporation%22
488
    body:
489
      encoding: US-ASCII
490
      string: ''
491
    headers:
492
      Accept:
493
      - application/json;version=2
494
      Accept-Encoding:
495
      - gzip, deflate
496
      User-Agent:
497
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
498
      Content-Type:
499
      - application/json
500
      Host:
501
      - katello.example.com:50191
502
  response:
503
    status:
504
      code: 200
505
      message: OK
506
    headers:
507
      Date:
508
      - Mon, 12 Sep 2016 15:39:47 GMT
509
      Server:
510
      - Apache/2.4.6 (CentOS)
511
      X-Frame-Options:
512
      - SAMEORIGIN
513
      X-Xss-Protection:
514
      - 1; mode=block
515
      X-Content-Type-Options:
516
      - nosniff
517
      Foreman-Version:
518
      - 1.14.0-develop
519
      Foreman-Api-Version:
520
      - '2'
521
      Content-Type:
522
      - application/json; charset=utf-8
523
      Apipie-Checksum:
524
      - 9544abef9cf8343005f07ed8c9f1f8e7
525
      Etag:
526
      - W/"471e8acb2053be2e7a823cbd174ec330-gzip"
527
      Cache-Control:
528
      - max-age=0, private, must-revalidate
529
      X-Request-Id:
530
      - 7ae3011e-5659-42af-8c4d-67953ccf1def
531
      X-Runtime:
532
      - '0.241815'
533
      Via:
534
      - 1.1 katello.example.com:50191
535
      Vary:
536
      - Accept-Encoding
537
      Content-Length:
538
      - '388'
539
      Set-Cookie:
540
      - _session_id=7ce2e9dd1c07dd5862c45968f5c5fe12; path=/; HttpOnly
541
    body:
542
      encoding: ASCII-8BIT
543
      string: |
544
        {
545
          "total": 3,
546
          "subtotal": 1,
547
          "page": 1,
548
          "per_page": 999999,
549
          "search": "name=\"Test Corporation\"",
550
          "sort": {
551
            "by": null,
552
            "order": null
553
          },
554
          "results": [{"label":"testcorp","created_at":"2016-09-07 01:39:03 UTC","updated_at":"2016-09-07 01:39:03 UTC","id":9,"name":"Test Corporation","title":"Test Corporation","description":"Testing today for a better tomorrow"}]
555
        }
556
    http_version: 
557
  recorded_at: Mon, 12 Sep 2016 15:39:48 GMT
558
- request:
559
    method: get
560
    uri: https://admin:changeme@katello.example.com:50191/katello/api/organizations/9/environments?per_page=999999
561
    body:
562
      encoding: US-ASCII
563
      string: ''
564
    headers:
565
      Accept:
566
      - application/json;version=2
567
      Accept-Encoding:
568
      - gzip, deflate
569
      User-Agent:
570
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
571
      Content-Type:
572
      - application/json
573
      Host:
574
      - katello.example.com:50191
575
  response:
576
    status:
577
      code: 200
578
      message: OK
579
    headers:
580
      Date:
581
      - Mon, 12 Sep 2016 15:39:47 GMT
582
      Server:
583
      - Apache/2.4.6 (CentOS)
584
      X-Frame-Options:
585
      - SAMEORIGIN
586
      X-Xss-Protection:
587
      - 1; mode=block
588
      X-Content-Type-Options:
589
      - nosniff
590
      Foreman-Version:
591
      - 1.14.0-develop
592
      Foreman-Api-Version:
593
      - '2'
594
      Content-Type:
595
      - application/json; charset=utf-8
596
      Apipie-Checksum:
597
      - 9544abef9cf8343005f07ed8c9f1f8e7
598
      Etag:
599
      - W/"71a417dc2f3dfb1e7102347ec69b1aea-gzip"
600
      Cache-Control:
601
      - max-age=0, private, must-revalidate
602
      X-Request-Id:
603
      - a94dfabb-fcb5-45db-aa40-039213bdc461
604
      X-Runtime:
605
      - '1.929619'
606
      Via:
607
      - 1.1 katello.example.com:50191
608
      Vary:
609
      - Accept-Encoding
610
      Content-Length:
611
      - '3209'
612
      Set-Cookie:
613
      - _session_id=c7e37f3f2905b4b0d63b5a0f2d19c723; path=/; HttpOnly
614
    body:
615
      encoding: ASCII-8BIT
616
      string: |
617
        {"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}}]}
618
    http_version: 
619
  recorded_at: Mon, 12 Sep 2016 15:39:50 GMT
620
- request:
621
    method: put
622
    uri: https://admin:changeme@katello.example.com:50191/katello/api/environments/8
623
    body:
624
      encoding: UTF-8
625
      string: '{"description":"Development, automated promotes from Library"}'
626
    headers:
627
      Accept:
628
      - application/json;version=2
629
      Accept-Encoding:
630
      - gzip, deflate
631
      User-Agent:
632
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
633
      Content-Type:
634
      - application/json
635
      Content-Length:
636
      - '62'
637
      Host:
638
      - katello.example.com:50191
639
  response:
640
    status:
641
      code: 200
642
      message: OK
643
    headers:
644
      Date:
645
      - Mon, 12 Sep 2016 15:39:49 GMT
646
      Server:
647
      - Apache/2.4.6 (CentOS)
648
      X-Frame-Options:
649
      - SAMEORIGIN
650
      X-Xss-Protection:
651
      - 1; mode=block
652
      X-Content-Type-Options:
653
      - nosniff
654
      Foreman-Version:
655
      - 1.14.0-develop
656
      Foreman-Api-Version:
657
      - '2'
658
      Content-Type:
659
      - application/json; charset=utf-8
660
      Apipie-Checksum:
661
      - 9544abef9cf8343005f07ed8c9f1f8e7
662
      Etag:
663
      - W/"fee31523550c7fe7bd8a6a3c5f49e232-gzip"
664
      Cache-Control:
665
      - max-age=0, private, must-revalidate
666
      X-Request-Id:
667
      - b2cb02ec-61dc-43e9-9f57-4b9fa3930cf3
668
      X-Runtime:
669
      - '0.450480'
670
      Via:
671
      - 1.1 katello.example.com:50191
672
      Vary:
673
      - Accept-Encoding
674
      Content-Length:
675
      - '611'
676
      Set-Cookie:
677
      - _session_id=b7b6670b9085da22e41ca0ae37e034c8; path=/; HttpOnly
678
      - request_method=PUT; path=/
679
    body:
680
      encoding: ASCII-8BIT
681
      string: |2
682
          {"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}}
683
    http_version: 
684
  recorded_at: Mon, 12 Sep 2016 15:39:50 GMT
685
- request:
686
    method: put
687
    uri: https://admin:changeme@katello.example.com:50191/katello/api/environments/9
688
    body:
689
      encoding: UTF-8
690
      string: '{"description":"Test, manual promotions from Development"}'
691
    headers:
692
      Accept:
693
      - application/json;version=2
694
      Accept-Encoding:
695
      - gzip, deflate
696
      User-Agent:
697
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
698
      Content-Type:
699
      - application/json
700
      Content-Length:
701
      - '58'
702
      Host:
703
      - katello.example.com:50191
704
  response:
705
    status:
706
      code: 200
707
      message: OK
708
    headers:
709
      Date:
710
      - Mon, 12 Sep 2016 15:39:50 GMT
711
      Server:
712
      - Apache/2.4.6 (CentOS)
713
      X-Frame-Options:
714
      - SAMEORIGIN
715
      X-Xss-Protection:
716
      - 1; mode=block
717
      X-Content-Type-Options:
718
      - nosniff
719
      Foreman-Version:
720
      - 1.14.0-develop
721
      Foreman-Api-Version:
722
      - '2'
723
      Content-Type:
724
      - application/json; charset=utf-8
725
      Apipie-Checksum:
726
      - 9544abef9cf8343005f07ed8c9f1f8e7
727
      Etag:
728
      - W/"70f62787daba44dba5dce4419576f12c-gzip"
729
      Cache-Control:
730
      - max-age=0, private, must-revalidate
731
      X-Request-Id:
732
      - 2dc47b8b-5ca8-4e1d-b5a4-25363e730fe2
733
      X-Runtime:
734
      - '1.409081'
735
      Via:
736
      - 1.1 katello.example.com:50191
737
      Vary:
738
      - Accept-Encoding
739
      Content-Length:
740
      - '604'
741
      Set-Cookie:
742
      - _session_id=e0ea3fa460b80c7cb5068e4a4249ce84; path=/; HttpOnly
743
      - request_method=PUT; path=/
744
    body:
745
      encoding: ASCII-8BIT
746
      string: |2
747
          {"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}}
748
    http_version: 
749
  recorded_at: Mon, 12 Sep 2016 15:39:52 GMT
750
- request:
751
    method: put
752
    uri: https://admin:changeme@katello.example.com:50191/katello/api/environments/10
753
    body:
754
      encoding: UTF-8
755
      string: '{"description":"Production, manual promotions from Test"}'
756
    headers:
757
      Accept:
758
      - application/json;version=2
759
      Accept-Encoding:
760
      - gzip, deflate
761
      User-Agent:
762
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
763
      Content-Type:
764
      - application/json
765
      Content-Length:
766
      - '57'
767
      Host:
768
      - katello.example.com:50191
769
  response:
770
    status:
771
      code: 200
772
      message: OK
773
    headers:
774
      Date:
775
      - Mon, 12 Sep 2016 15:39:51 GMT
776
      Server:
777
      - Apache/2.4.6 (CentOS)
778
      X-Frame-Options:
779
      - SAMEORIGIN
780
      X-Xss-Protection:
781
      - 1; mode=block
782
      X-Content-Type-Options:
783
      - nosniff
784
      Foreman-Version:
785
      - 1.14.0-develop
786
      Foreman-Api-Version:
787
      - '2'
788
      Content-Type:
789
      - application/json; charset=utf-8
790
      Apipie-Checksum:
791
      - 9544abef9cf8343005f07ed8c9f1f8e7
792
      Etag:
793
      - W/"973776d0a4e1867f88a0d11870488396-gzip"
794
      Cache-Control:
795
      - max-age=0, private, must-revalidate
796
      X-Request-Id:
797
      - c8a3c490-c18e-4895-8615-2bbb11db2e1a
798
      X-Runtime:
799
      - '0.390505'
800
      Via:
801
      - 1.1 katello.example.com:50191
802
      Vary:
803
      - Accept-Encoding
804
      Content-Length:
805
      - '606'
806
      Set-Cookie:
807
      - _session_id=c5709b95972a38bfe9ef73072b452898; path=/; HttpOnly
808
      - request_method=PUT; path=/
809
    body:
810
      encoding: ASCII-8BIT
811
      string: |2
812
          {"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}}
813
    http_version: 
814
  recorded_at: Mon, 12 Sep 2016 15:39:52 GMT
815
- request:
816
    method: put
817
    uri: https://admin:changeme@katello.example.com:50191/katello/api/environments/11
818
    body:
819
      encoding: UTF-8
820
      string: '{"description":"Archive, no longer in Production"}'
821
    headers:
822
      Accept:
823
      - application/json;version=2
824
      Accept-Encoding:
825
      - gzip, deflate
826
      User-Agent:
827
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
828
      Content-Type:
829
      - application/json
830
      Content-Length:
831
      - '50'
832
      Host:
833
      - katello.example.com:50191
834
  response:
835
    status:
836
      code: 200
837
      message: OK
838
    headers:
839
      Date:
840
      - Mon, 12 Sep 2016 15:39:52 GMT
841
      Server:
842
      - Apache/2.4.6 (CentOS)
843
      X-Frame-Options:
844
      - SAMEORIGIN
845
      X-Xss-Protection:
846
      - 1; mode=block
847
      X-Content-Type-Options:
848
      - nosniff
849
      Foreman-Version:
850
      - 1.14.0-develop
851
      Foreman-Api-Version:
852
      - '2'
853
      Content-Type:
854
      - application/json; charset=utf-8
855
      Apipie-Checksum:
856
      - 9544abef9cf8343005f07ed8c9f1f8e7
857
      Etag:
858
      - W/"668972088a90a54823491ee88644a19b-gzip"
859
      Cache-Control:
860
      - max-age=0, private, must-revalidate
861
      X-Request-Id:
862
      - 1b8acbb8-0fc9-4616-bfff-52287662d9ca
863
      X-Runtime:
864
      - '1.410957'
865
      Via:
866
      - 1.1 katello.example.com:50191
867
      Vary:
868
      - Accept-Encoding
869
      Content-Length:
870
      - '577'
871
      Set-Cookie:
872
      - _session_id=7073965c1ee5226bc4a95c1a10c4ce50; path=/; HttpOnly
873
      - request_method=PUT; path=/
874
    body:
875
      encoding: ASCII-8BIT
876
      string: |2
877
          {"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}}
878
    http_version: 
879
  recorded_at: Mon, 12 Sep 2016 15:39:54 GMT
880
recorded_with: VCR 3.0.3