Project

General

Profile

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

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

1
---
2
http_interactions:
3
- request:
4
    method: get
5
    uri: https://admin:changeme@satlap.example.com/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
      Host:
17
      - satlap.example.com
18
  response:
19
    status:
20
      code: 200
21
      message: OK
22
    headers:
23
      Date:
24
      - Mon, 19 Dec 2016 16:43:52 GMT
25
      Server:
26
      - Apache/2.4.6 (Red Hat Enterprise Linux)
27
      X-Frame-Options:
28
      - SAMEORIGIN
29
      X-Xss-Protection:
30
      - 1; mode=block
31
      X-Content-Type-Options:
32
      - nosniff
33
      Foreman-Version:
34
      - 1.11.0.61
35
      Foreman-Api-Version:
36
      - '2'
37
      Apipie-Checksum:
38
      - 9793fd9909c89b81479655ed560c4340
39
      Cache-Control:
40
      - max-age=0, private, must-revalidate
41
      X-Request-Id:
42
      - 80c0cdcc-2f3e-469d-9df8-3871de2f6fc0
43
      X-Runtime:
44
      - '0.036130'
45
      X-Powered-By:
46
      - Phusion Passenger 4.0.18
47
      Set-Cookie:
48
      - _session_id=eec3d8d6bd865b285279b19800f7ae29; path=/; secure; HttpOnly
49
      Etag:
50
      - '"6ec0375dc2b106a955e67a8139b7d9c5"'
51
      Status:
52
      - 200 OK
53
      Content-Length:
54
      - '66'
55
      Content-Type:
56
      - application/json; charset=utf-8
57
    body:
58
      encoding: UTF-8
59
      string: '{"result":"ok","status":200,"version":"1.11.0.61","api_version":2}'
60
    http_version: 
61
  recorded_at: Mon, 19 Dec 2016 16:43:36 GMT
62
- request:
63
    method: get
64
    uri: https://admin:changeme@satlap.example.com/api/v2/plugins
65
    body:
66
      encoding: US-ASCII
67
      string: ''
68
    headers:
69
      Accept-Encoding:
70
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
71
      Accept:
72
      - "*/*"
73
      User-Agent:
74
      - Ruby
75
      Host:
76
      - satlap.example.com
77
  response:
78
    status:
79
      code: 200
80
      message: OK
81
    headers:
82
      Date:
83
      - Mon, 19 Dec 2016 16:43:53 GMT
84
      Server:
85
      - Apache/2.4.6 (Red Hat Enterprise Linux)
86
      X-Frame-Options:
87
      - SAMEORIGIN
88
      X-Xss-Protection:
89
      - 1; mode=block
90
      X-Content-Type-Options:
91
      - nosniff
92
      Foreman-Version:
93
      - 1.11.0.61
94
      Foreman-Api-Version:
95
      - '2'
96
      Apipie-Checksum:
97
      - 9793fd9909c89b81479655ed560c4340
98
      Cache-Control:
99
      - max-age=0, private, must-revalidate
100
      X-Request-Id:
101
      - 09e9a674-b4a3-4da6-9b54-4658af8575e2
102
      X-Runtime:
103
      - '0.032727'
104
      X-Powered-By:
105
      - Phusion Passenger 4.0.18
106
      Set-Cookie:
107
      - _session_id=aa63fe14fbe332622a4b476613b87e9b; path=/; secure; HttpOnly
108
      Etag:
109
      - '"973c5d3fa1e5326b7762aec3d6a31dde-gzip"'
110
      Status:
111
      - 200 OK
112
      Vary:
113
      - Accept-Encoding
114
      Content-Length:
115
      - '1339'
116
      Content-Type:
117
      - application/json; charset=utf-8
118
    body:
119
      encoding: ASCII-8BIT
120
      string: !binary |-
121
        ewogICJ0b3RhbCI6IDEwLAogICJzdWJ0b3RhbCI6IDEwLAogICJwYWdlIjog
122
        MSwKICAicGVyX3BhZ2UiOiAyMCwKICAic2VhcmNoIjogbnVsbCwKICAic29y
123
        dCI6IHsKICAgICJieSI6IG51bGwsCiAgICAib3JkZXIiOiBudWxsCiAgfSwK
124
        ICAicmVzdWx0cyI6IFt7ImlkIjoiZm9yZW1hbi10YXNrcyIsIm5hbWUiOiJm
125
        b3JlbWFuLXRhc2tzIiwiYXV0aG9yIjoiSXZhbiBOZcSNYXMiLCJkZXNjcmlw
126
        dGlvbiI6IlRoZSBnb2FsIG9mIHRoaXMgcGx1Z2luIGlzIHRvIHVuaWZ5IHRo
127
        ZSB3YXkgb2Ygc2hvd2luZyB0YXNrIHN0YXR1c2VzIGFjcm9zcyB0aGUgRm9y
128
        ZW1hbiBpbnN0YW5jZS5cbkl0IGRlZmluZXMgVGFzayBtb2RlbCBmb3Iga2Vl
129
        cGluZyB0aGUgaW5mb3JtYXRpb24gYWJvdXQgdGhlIHRhc2tzIGFuZCBMb2Nr
130
        IGZvciBhc3NpZ25pbmcgdGhlIHRhc2tzXG50byByZXNvdXJjZXMuIFRoZSBs
131
        b2NraW5nIGFsbG93cyBkZWFsaW5nIHdpdGggcHJldmVudGluZyBtdWx0aXBs
132
        ZSBjb2xsaWRpbmcgdGFza3MgdG8gYmUgcnVuIG9uIHRoZVxuc2FtZSByZXNv
133
        dXJjZS4gSXQgYWxzbyBvcHRpb25hbGx5IHByb3ZpZGVzIER5bmZsb3cgaW5m
134
        cmFzdHJ1Y3R1cmUgZm9yIHVzaW5nIGl0IGZvciBtYW5hZ2luZyB0aGUgdGFz
135
        a3MuXG4iLCJ1cmwiOiJodHRwczovL2dpdGh1Yi5jb20vdGhlZm9yZW1hbi9m
136
        b3JlbWFuLXRhc2tzIiwidmVyc2lvbiI6IjAuNy4xNC4xMSJ9LHsiaWQiOiJm
137
        b3JlbWFuX2Jvb3RkaXNrIiwibmFtZSI6ImZvcmVtYW5fYm9vdGRpc2siLCJh
138
        dXRob3IiOiJEb21pbmljIENsZWFsIiwiZGVzY3JpcHRpb24iOiJQbHVnaW4g
139
        Zm9yIEZvcmVtYW4gdGhhdCBjcmVhdGVzIGlQWEUtYmFzZWQgYm9vdCBkaXNr
140
        cyB0byBwcm92aXNpb24gaG9zdHMgd2l0aG91dCB0aGUgbmVlZCBmb3IgUFhF
141
        IGluZnJhc3RydWN0dXJlLiIsInVybCI6Imh0dHA6Ly9naXRodWIuY29tL3Ro
142
        ZWZvcmVtYW4vZm9yZW1hbl9ib290ZGlzayIsInZlcnNpb24iOiI2LjEuMC4z
143
        In0seyJpZCI6ImZvcmVtYW5fZGlzY292ZXJ5IiwibmFtZSI6ImZvcmVtYW5f
144
        ZGlzY292ZXJ5IiwiYXV0aG9yIjoiQW1vcyBCZW5hcmksQnJ5YW4gS2Vhcm5l
145
        eSxDaGFpcm1hblR1YmVBbXAsRGFuaWVsIExvYmF0byBHYXJjw61hLERvbWlu
146
        aWMgQ2xlYWwsRXJpYyBELiBIZWxtcyxGcmFuayBXYWxsLEdyZWcgU3V0Y2xp
147
        ZmZlLEltcmkgWnZpayxKb3NlcGggTWl0Y2hlbGwgTWFnZW4sTHVrYXMgWmFw
148
        bGV0YWwsTHVrw6HFoSBaYXBsZXRhbCxNYXJlayBIdWxhbixNYXJ0aW4gQmHE
149
        jW92c2vDvSxNYXR0IEphcnZpcyxNaWNoYWVsIE1vbGwsTmljayxPaGFkIExl
150
        dnksT3JpIFJhYmluLFBldHIgQ2hhbHVwYSxQaGlyaW5jZSBQaGlsaXAsU2N1
151
        YmFmbG95ZCxTaGxvbWkgWmFkb2ssU3RlcGhlbiBCZW5qYW1pbixZYW5uIEPD
152
        qXphcmQiLCJkZXNjcmlwdGlvbiI6Ik1hYVMgRGlzY292ZXJ5IFBsdWdpbiBl
153
        bmdpbmUgZm9yIEZvcmVtYW4iLCJ1cmwiOiJodHRwOi8vZ2l0aHViLmNvbS90
154
        aGVmb3JlbWFuL2ZvcmVtYW5fZGlzY292ZXJ5IiwidmVyc2lvbiI6IjUuMC4w
155
        LjkifSx7ImlkIjoiZm9yZW1hbl9kb2NrZXIiLCJuYW1lIjoiZm9yZW1hbl9k
156
        b2NrZXIiLCJhdXRob3IiOiJEYW5pZWwgTG9iYXRvLCBBbW9zIEJlbmFyaSIs
157
        ImRlc2NyaXB0aW9uIjoiUHJvdmlzaW9uIGFuZCBtYW5hZ2UgRG9ja2VyIGNv
158
        bnRhaW5lcnMgYW5kIGltYWdlcyBmcm9tIEZvcmVtYW4uIiwidXJsIjoiaHR0
159
        cDovL2dpdGh1Yi5jb20vdGhlZm9yZW1hbi9mb3JlbWFuLWRvY2tlciIsInZl
160
        cnNpb24iOiIyLjAuMS4xMSJ9LHsiaWQiOiJmb3JlbWFuX2hvb2tzIiwibmFt
161
        ZSI6ImZvcmVtYW5faG9va3MiLCJhdXRob3IiOiJEb21pbmljIENsZWFsIiwi
162
        ZGVzY3JpcHRpb24iOiJQbHVnaW4gZW5naW5lIGZvciBGb3JlbWFuIHRoYXQg
163
        ZW5hYmxlcyBydW5uaW5nIGN1c3RvbSBob29rIHNjcmlwdHMgb24gRm9yZW1h
164
        biBldmVudHMiLCJ1cmwiOiJodHRwOi8vZ2l0aHViLmNvbS90aGVmb3JlbWFu
165
        L2ZvcmVtYW5faG9va3MiLCJ2ZXJzaW9uIjoiMC4zLjExIn0seyJpZCI6ImZv
166
        cmVtYW5fb3BlbnNjYXAiLCJuYW1lIjoiZm9yZW1hbl9vcGVuc2NhcCIsImF1
167
        dGhvciI6IsWgaW1vbiBMdWthxaHDrWssU2hsb21pIFphZG9rLE1hcmVrIEh1
168
        bGFuLE9uZHJlaiBQcmF6YWsiLCJkZXNjcmlwdGlvbiI6IkZvcmVtYW4gcGx1
169
        Zy1pbiBmb3IgbWFuYWdpbmcgc2VjdXJpdHkgY29tcGxpYW5jZSByZXBvcnRz
170
        IiwidXJsIjoiaHR0cHM6Ly9naXRodWIuY29tL09wZW5TQ0FQL2ZvcmVtYW5f
171
        b3BlbnNjYXAiLCJ2ZXJzaW9uIjoiMC41LjMuMTgifSx7ImlkIjoiZm9yZW1h
172
        bl9yZW1vdGVfZXhlY3V0aW9uIiwibmFtZSI6ImZvcmVtYW5fcmVtb3RlX2V4
173
        ZWN1dGlvbiIsImF1dGhvciI6IkZvcmVtYW4gUmVtb3RlIEV4ZWN1dGlvbiB0
174
        ZWFtIiwiZGVzY3JpcHRpb24iOiJBIHBsdWdpbiBicmluZ2luZyByZW1vdGUg
175
        ZXhlY3V0aW9uIHRvIHRoZSBGb3JlbWFuLCBjb21wbGV0aW5nIHRoZSBjb25m
176
        aWcgbWFuYWdlbWVudCBmdW5jdGlvbmFsaXR5IHdpdGggcmVtb3RlIG1hbmFn
177
        ZW1lbnQgZnVuY3Rpb25hbGl0eS4iLCJ1cmwiOiJodHRwczovL2dpdGh1Yi5j
178
        b20vdGhlZm9yZW1hbi9mb3JlbWFuX3JlbW90ZV9leGVjdXRpb24iLCJ2ZXJz
179
        aW9uIjoiMC4zLjAuMTIifSx7ImlkIjoiZm9yZW1hbl90aGVtZV9zYXRlbGxp
180
        dGUiLCJuYW1lIjoiZm9yZW1hbl90aGVtZV9zYXRlbGxpdGUiLCJhdXRob3Ii
181
        OiJBbG9uIEdvbGRib2ltLCBTaGltb24gU3RlaW4iLCJkZXNjcmlwdGlvbiI6
182
        IlRoaXMgaXMgYSBwbHVnaW4gdGhhdCBlbmFibGVzIGJ1aWxkaW5nIGEgdGhl
183
        bWUgZm9yIEZvcmVtYW4uIiwidXJsIjoiaHR0cHM6Ly9naXRodWIuY29tL2Fs
184
        b25nb2xkYm9pbS9mb3JlbWFuX3RoZW1lX3NhdGVsbGl0ZSIsInZlcnNpb24i
185
        OiIwLjEuMzYifSx7ImlkIjoia2F0ZWxsbyIsIm5hbWUiOiJrYXRlbGxvIiwi
186
        YXV0aG9yIjoiTi9BIiwiZGVzY3JpcHRpb24iOiJDb250ZW50IGFuZCBTdWJz
187
        Y3JpcHRpb24gTWFuYWdlbWVudCBwbHVnaW4gZm9yIEZvcmVtYW4iLCJ1cmwi
188
        OiJodHRwOi8vd3d3LmthdGVsbG8ub3JnIiwidmVyc2lvbiI6IjMuMC4wLjkw
189
        In0seyJpZCI6InJlZGhhdF9hY2Nlc3MiLCJuYW1lIjoicmVkaGF0X2FjY2Vz
190
        cyIsImF1dGhvciI6IkxpbmRhbmkgUGhpcmkiLCJkZXNjcmlwdGlvbiI6IlRo
191
        aXMgcGx1Z2luIGFkZHMgUmVkIEhhdCBBY2Nlc3Mga25vd2xlZGdlIGJhc2Ug
192
        c2VhcmNoLCBjYXNlIG1hbmFnZW1lbnQgYW5kIGRpYWdub3N0aWNzIHRvIEZv
193
        cmVtYW4iLCJ1cmwiOiJodHRwOi8vd3d3LmxwaGlyaS5yZWRoYXQuY29tIiwi
194
        dmVyc2lvbiI6IjEuMC4xMyJ9XQp9Cg==
195
    http_version: 
196
  recorded_at: Mon, 19 Dec 2016 16:43:36 GMT
197
- request:
198
    method: get
199
    uri: https://admin:changeme@satlap.example.com/katello/api/organizations?per_page=999999
200
    body:
201
      encoding: US-ASCII
202
      string: ''
203
    headers:
204
      Accept:
205
      - application/json;version=2
206
      Accept-Encoding:
207
      - gzip, deflate
208
      User-Agent:
209
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
210
      Content-Type:
211
      - application/json
212
      Accept-Language:
213
      - en
214
      Host:
215
      - satlap.example.com
216
  response:
217
    status:
218
      code: 200
219
      message: OK
220
    headers:
221
      Date:
222
      - Mon, 19 Dec 2016 16:43:53 GMT
223
      Server:
224
      - Apache/2.4.6 (Red Hat Enterprise Linux)
225
      X-Frame-Options:
226
      - SAMEORIGIN
227
      X-Xss-Protection:
228
      - 1; mode=block
229
      X-Content-Type-Options:
230
      - nosniff
231
      Foreman-Version:
232
      - 1.11.0.61
233
      Foreman-Api-Version:
234
      - '2'
235
      Apipie-Checksum:
236
      - 9793fd9909c89b81479655ed560c4340
237
      Cache-Control:
238
      - max-age=0, private, must-revalidate
239
      X-Request-Id:
240
      - 7391ba7f-3589-4d2a-8499-586b7768aeea
241
      X-Runtime:
242
      - '0.035075'
243
      X-Powered-By:
244
      - Phusion Passenger 4.0.18
245
      Set-Cookie:
246
      - _session_id=49a070a4ec16d46e839c1dabe03764bb; path=/; secure; HttpOnly
247
      Etag:
248
      - '"a2edb9ed86b265d10050420802c8221d-gzip"'
249
      Status:
250
      - 200 OK
251
      Vary:
252
      - Accept-Encoding
253
      Content-Length:
254
      - '563'
255
      Content-Type:
256
      - application/json; charset=utf-8
257
    body:
258
      encoding: ASCII-8BIT
259
      string: |
260
        {
261
          "total": 2,
262
          "subtotal": 2,
263
          "page": 1,
264
          "per_page": 999999,
265
          "search": null,
266
          "sort": {
267
            "by": null,
268
            "order": null
269
          },
270
          "results": [{"label":"Default_Organization","created_at":"2016-12-07 03:03:54 UTC","updated_at":"2016-12-07 03:03:58 UTC","id":1,"name":"Default Organization","title":"Default Organization","description":null},{"label":"testcorp","created_at":"2016-12-13 10:58:26 UTC","updated_at":"2016-12-19 16:43:52 UTC","id":8,"name":"Test Corporation","title":"Test Corporation","description":"Testing today for a better tomorrow"}]
271
        }
272
    http_version: 
273
  recorded_at: Mon, 19 Dec 2016 16:43:36 GMT
274
- request:
275
    method: get
276
    uri: https://admin:changeme@satlap.example.com/katello/api/organizations?per_page=999999&search=name=%22Default%20Organization%22
277
    body:
278
      encoding: US-ASCII
279
      string: ''
280
    headers:
281
      Accept:
282
      - application/json;version=2
283
      Accept-Encoding:
284
      - gzip, deflate
285
      User-Agent:
286
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
287
      Content-Type:
288
      - application/json
289
      Accept-Language:
290
      - en
291
      Host:
292
      - satlap.example.com
293
  response:
294
    status:
295
      code: 200
296
      message: OK
297
    headers:
298
      Date:
299
      - Mon, 19 Dec 2016 16:43:53 GMT
300
      Server:
301
      - Apache/2.4.6 (Red Hat Enterprise Linux)
302
      X-Frame-Options:
303
      - SAMEORIGIN
304
      X-Xss-Protection:
305
      - 1; mode=block
306
      X-Content-Type-Options:
307
      - nosniff
308
      Foreman-Version:
309
      - 1.11.0.61
310
      Foreman-Api-Version:
311
      - '2'
312
      Apipie-Checksum:
313
      - 9793fd9909c89b81479655ed560c4340
314
      Cache-Control:
315
      - max-age=0, private, must-revalidate
316
      X-Request-Id:
317
      - 464610f6-5f80-43fe-93d9-7eff22a837ff
318
      X-Runtime:
319
      - '0.044173'
320
      X-Powered-By:
321
      - Phusion Passenger 4.0.18
322
      Set-Cookie:
323
      - _session_id=92960df2f39f2bdf150b2007ec354c20; path=/; secure; HttpOnly
324
      Etag:
325
      - '"cf1795d5d45b3509444fd7c241acabca-gzip"'
326
      Status:
327
      - 200 OK
328
      Vary:
329
      - Accept-Encoding
330
      Content-Length:
331
      - '379'
332
      Content-Type:
333
      - application/json; charset=utf-8
334
    body:
335
      encoding: ASCII-8BIT
336
      string: |
337
        {
338
          "total": 2,
339
          "subtotal": 1,
340
          "page": 1,
341
          "per_page": 999999,
342
          "search": "name=\"Default Organization\"",
343
          "sort": {
344
            "by": null,
345
            "order": null
346
          },
347
          "results": [{"label":"Default_Organization","created_at":"2016-12-07 03:03:54 UTC","updated_at":"2016-12-07 03:03:58 UTC","id":1,"name":"Default Organization","title":"Default Organization","description":null}]
348
        }
349
    http_version: 
350
  recorded_at: Mon, 19 Dec 2016 16:43:36 GMT
351
- request:
352
    method: get
353
    uri: https://admin:changeme@satlap.example.com/katello/api/organizations/1/environments?per_page=999999
354
    body:
355
      encoding: US-ASCII
356
      string: ''
357
    headers:
358
      Accept:
359
      - application/json;version=2
360
      Accept-Encoding:
361
      - gzip, deflate
362
      User-Agent:
363
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
364
      Content-Type:
365
      - application/json
366
      Accept-Language:
367
      - en
368
      Host:
369
      - satlap.example.com
370
  response:
371
    status:
372
      code: 200
373
      message: OK
374
    headers:
375
      Date:
376
      - Mon, 19 Dec 2016 16:43:53 GMT
377
      Server:
378
      - Apache/2.4.6 (Red Hat Enterprise Linux)
379
      X-Frame-Options:
380
      - SAMEORIGIN
381
      X-Xss-Protection:
382
      - 1; mode=block
383
      X-Content-Type-Options:
384
      - nosniff
385
      Foreman-Version:
386
      - 1.11.0.61
387
      Foreman-Api-Version:
388
      - '2'
389
      Apipie-Checksum:
390
      - 9793fd9909c89b81479655ed560c4340
391
      Cache-Control:
392
      - max-age=0, private, must-revalidate
393
      X-Request-Id:
394
      - 558397a6-865c-4e9f-9a4c-2af607b2be57
395
      X-Runtime:
396
      - '0.070241'
397
      X-Powered-By:
398
      - Phusion Passenger 4.0.18
399
      Set-Cookie:
400
      - _session_id=38663fa773f96bca1bc11c0a15ecc601; path=/; secure; HttpOnly
401
      Etag:
402
      - '"dea9a4734480635e355080dedccadc78-gzip"'
403
      Status:
404
      - 200 OK
405
      Vary:
406
      - Accept-Encoding
407
      Content-Length:
408
      - '798'
409
      Content-Type:
410
      - application/json; charset=utf-8
411
    body:
412
      encoding: ASCII-8BIT
413
      string: '{"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
414
        Organization","label":"Default_Organization","id":1},"created_at":"2016-12-07
415
        03:03:57 UTC","updated_at":"2016-12-07 03:03:57 UTC","prior":null,"successor":null,"counts":{"content_hosts":5,"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":{"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}}]}
416

    
417
'
418
    http_version: 
419
  recorded_at: Mon, 19 Dec 2016 16:43:37 GMT
420
- request:
421
    method: get
422
    uri: https://admin:changeme@satlap.example.com/katello/api/organizations?per_page=999999&search=name=%22Test%20Corporation%22
423
    body:
424
      encoding: US-ASCII
425
      string: ''
426
    headers:
427
      Accept:
428
      - application/json;version=2
429
      Accept-Encoding:
430
      - gzip, deflate
431
      User-Agent:
432
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
433
      Content-Type:
434
      - application/json
435
      Accept-Language:
436
      - en
437
      Host:
438
      - satlap.example.com
439
  response:
440
    status:
441
      code: 200
442
      message: OK
443
    headers:
444
      Date:
445
      - Mon, 19 Dec 2016 16:43:53 GMT
446
      Server:
447
      - Apache/2.4.6 (Red Hat Enterprise Linux)
448
      X-Frame-Options:
449
      - SAMEORIGIN
450
      X-Xss-Protection:
451
      - 1; mode=block
452
      X-Content-Type-Options:
453
      - nosniff
454
      Foreman-Version:
455
      - 1.11.0.61
456
      Foreman-Api-Version:
457
      - '2'
458
      Apipie-Checksum:
459
      - 9793fd9909c89b81479655ed560c4340
460
      Cache-Control:
461
      - max-age=0, private, must-revalidate
462
      X-Request-Id:
463
      - 411a6f00-1b80-4c2b-9408-6901c81d9ac4
464
      X-Runtime:
465
      - '0.040055'
466
      X-Powered-By:
467
      - Phusion Passenger 4.0.18
468
      Set-Cookie:
469
      - _session_id=ba4dddd2c5f8e5e0fd6af55bf6ec966f; path=/; secure; HttpOnly
470
      Etag:
471
      - '"2efbcb26df2a96409c8d5677eb07a4f9-gzip"'
472
      Status:
473
      - 200 OK
474
      Vary:
475
      - Accept-Encoding
476
      Content-Length:
477
      - '388'
478
      Content-Type:
479
      - application/json; charset=utf-8
480
    body:
481
      encoding: ASCII-8BIT
482
      string: |
483
        {
484
          "total": 2,
485
          "subtotal": 1,
486
          "page": 1,
487
          "per_page": 999999,
488
          "search": "name=\"Test Corporation\"",
489
          "sort": {
490
            "by": null,
491
            "order": null
492
          },
493
          "results": [{"label":"testcorp","created_at":"2016-12-13 10:58:26 UTC","updated_at":"2016-12-19 16:43:52 UTC","id":8,"name":"Test Corporation","title":"Test Corporation","description":"Testing today for a better tomorrow"}]
494
        }
495
    http_version: 
496
  recorded_at: Mon, 19 Dec 2016 16:43:37 GMT
497
- request:
498
    method: get
499
    uri: https://admin:changeme@satlap.example.com/katello/api/organizations/8/environments?per_page=999999
500
    body:
501
      encoding: US-ASCII
502
      string: ''
503
    headers:
504
      Accept:
505
      - application/json;version=2
506
      Accept-Encoding:
507
      - gzip, deflate
508
      User-Agent:
509
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
510
      Content-Type:
511
      - application/json
512
      Accept-Language:
513
      - en
514
      Host:
515
      - satlap.example.com
516
  response:
517
    status:
518
      code: 200
519
      message: OK
520
    headers:
521
      Date:
522
      - Mon, 19 Dec 2016 16:43:53 GMT
523
      Server:
524
      - Apache/2.4.6 (Red Hat Enterprise Linux)
525
      X-Frame-Options:
526
      - SAMEORIGIN
527
      X-Xss-Protection:
528
      - 1; mode=block
529
      X-Content-Type-Options:
530
      - nosniff
531
      Foreman-Version:
532
      - 1.11.0.61
533
      Foreman-Api-Version:
534
      - '2'
535
      Apipie-Checksum:
536
      - 9793fd9909c89b81479655ed560c4340
537
      Cache-Control:
538
      - max-age=0, private, must-revalidate
539
      X-Request-Id:
540
      - 015d1e44-8030-469e-af10-9f542f61d5c5
541
      X-Runtime:
542
      - '0.122878'
543
      X-Powered-By:
544
      - Phusion Passenger 4.0.18
545
      Set-Cookie:
546
      - _session_id=4d4d090af1d8f87d31778808cbf4b36a; path=/; secure; HttpOnly
547
      Etag:
548
      - '"e887f85e97779657bd7cf336d1f5761c-gzip"'
549
      Status:
550
      - 200 OK
551
      Vary:
552
      - Accept-Encoding
553
      Content-Length:
554
      - '3019'
555
      Content-Type:
556
      - application/json; charset=utf-8
557
    body:
558
      encoding: ASCII-8BIT
559
      string: '{"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,
560
        manual promotions from Development","organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-12-13
561
        10:59:04 UTC","updated_at":"2016-12-13 10:59:04 UTC","prior":{"name":"Development","id":3},"successor":{"name":"Production","id":5},"counts":{"content_hosts":0,"content_views":0},"permissions":{"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,
562
        manual promotions from Test","organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-12-13
563
        10:59:04 UTC","updated_at":"2016-12-13 10:59:04 UTC","prior":{"name":"Test","id":4},"successor":{"name":"Archive","id":6},"counts":{"content_hosts":0,"content_views":0},"permissions":{"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
564
        Corporation","label":"testcorp","id":8},"created_at":"2016-12-13 10:58:26
565
        UTC","updated_at":"2016-12-13 10:58:26 UTC","prior":null,"successor":null,"counts":{"content_hosts":2,"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":{"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,
566
        automated promotes from Library","organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-12-13
567
        10:59:04 UTC","updated_at":"2016-12-13 10:59:04 UTC","prior":{"name":"Library","id":2},"successor":{"name":"Test","id":4},"counts":{"content_hosts":0,"content_views":0},"permissions":{"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,
568
        no longer in Production","organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-12-13
569
        10:59:05 UTC","updated_at":"2016-12-13 10:59:05 UTC","prior":{"name":"Production","id":5},"successor":null,"counts":{"content_hosts":0,"content_views":0},"permissions":{"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":true,"promote_or_remove_content_views_to_environments":true}}]}
570

    
571
'
572
    http_version: 
573
  recorded_at: Mon, 19 Dec 2016 16:43:37 GMT
574
- request:
575
    method: put
576
    uri: https://admin:changeme@satlap.example.com/katello/api/environments/3
577
    body:
578
      encoding: UTF-8
579
      string: '{"description":"Development, automated promotes from Library"}'
580
    headers:
581
      Accept:
582
      - application/json;version=2
583
      Accept-Encoding:
584
      - gzip, deflate
585
      User-Agent:
586
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
587
      Content-Type:
588
      - application/json
589
      Accept-Language:
590
      - en
591
      Content-Length:
592
      - '62'
593
      Host:
594
      - satlap.example.com
595
  response:
596
    status:
597
      code: 200
598
      message: OK
599
    headers:
600
      Date:
601
      - Mon, 19 Dec 2016 16:43:53 GMT
602
      Server:
603
      - Apache/2.4.6 (Red Hat Enterprise Linux)
604
      X-Frame-Options:
605
      - SAMEORIGIN
606
      X-Xss-Protection:
607
      - 1; mode=block
608
      X-Content-Type-Options:
609
      - nosniff
610
      Foreman-Version:
611
      - 1.11.0.61
612
      Foreman-Api-Version:
613
      - '2'
614
      Apipie-Checksum:
615
      - 9793fd9909c89b81479655ed560c4340
616
      Cache-Control:
617
      - max-age=0, private, must-revalidate
618
      X-Request-Id:
619
      - bfc5cc77-ed56-4431-882a-634e987999b0
620
      X-Runtime:
621
      - '0.079122'
622
      X-Powered-By:
623
      - Phusion Passenger 4.0.18
624
      Set-Cookie:
625
      - _session_id=88b1a53121e22fdcd4e425eaec3cba9c; path=/; secure; HttpOnly
626
      - request_method=PUT; path=/
627
      Etag:
628
      - '"d1a1078fbc4e19de0bbdbdaef3661e1a-gzip"'
629
      Status:
630
      - 200 OK
631
      Vary:
632
      - Accept-Encoding
633
      Content-Length:
634
      - '574'
635
      Content-Type:
636
      - application/json; charset=utf-8
637
    body:
638
      encoding: ASCII-8BIT
639
      string: '  {"library":false,"id":3,"name":"Development","label":"Development","description":"Development,
640
        automated promotes from Library","organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-12-13
641
        10:59:04 UTC","updated_at":"2016-12-13 10:59:04 UTC","prior":{"name":"Library","id":2},"successor":{"name":"Test","id":4},"counts":{"content_hosts":0,"content_views":0},"permissions":{"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}}
642

    
643
'
644
    http_version: 
645
  recorded_at: Mon, 19 Dec 2016 16:43:37 GMT
646
- request:
647
    method: put
648
    uri: https://admin:changeme@satlap.example.com/katello/api/environments/4
649
    body:
650
      encoding: UTF-8
651
      string: '{"description":"Test, manual promotions from Development"}'
652
    headers:
653
      Accept:
654
      - application/json;version=2
655
      Accept-Encoding:
656
      - gzip, deflate
657
      User-Agent:
658
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
659
      Content-Type:
660
      - application/json
661
      Accept-Language:
662
      - en
663
      Content-Length:
664
      - '58'
665
      Host:
666
      - satlap.example.com
667
  response:
668
    status:
669
      code: 200
670
      message: OK
671
    headers:
672
      Date:
673
      - Mon, 19 Dec 2016 16:43:53 GMT
674
      Server:
675
      - Apache/2.4.6 (Red Hat Enterprise Linux)
676
      X-Frame-Options:
677
      - SAMEORIGIN
678
      X-Xss-Protection:
679
      - 1; mode=block
680
      X-Content-Type-Options:
681
      - nosniff
682
      Foreman-Version:
683
      - 1.11.0.61
684
      Foreman-Api-Version:
685
      - '2'
686
      Apipie-Checksum:
687
      - 9793fd9909c89b81479655ed560c4340
688
      Cache-Control:
689
      - max-age=0, private, must-revalidate
690
      X-Request-Id:
691
      - 467029bb-25ac-4492-b2a4-be04954ef6c7
692
      X-Runtime:
693
      - '0.075993'
694
      X-Powered-By:
695
      - Phusion Passenger 4.0.18
696
      Set-Cookie:
697
      - _session_id=58a3dc40c90be94a4aa6b6097cf3ec6a; path=/; secure; HttpOnly
698
      - request_method=PUT; path=/
699
      Etag:
700
      - '"095ce7eb223d0860918635d47fe54db6-gzip"'
701
      Status:
702
      - 200 OK
703
      Vary:
704
      - Accept-Encoding
705
      Content-Length:
706
      - '566'
707
      Content-Type:
708
      - application/json; charset=utf-8
709
    body:
710
      encoding: ASCII-8BIT
711
      string: '  {"library":false,"id":4,"name":"Test","label":"Test","description":"Test,
712
        manual promotions from Development","organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-12-13
713
        10:59:04 UTC","updated_at":"2016-12-13 10:59:04 UTC","prior":{"name":"Development","id":3},"successor":{"name":"Production","id":5},"counts":{"content_hosts":0,"content_views":0},"permissions":{"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}}
714

    
715
'
716
    http_version: 
717
  recorded_at: Mon, 19 Dec 2016 16:43:37 GMT
718
- request:
719
    method: put
720
    uri: https://admin:changeme@satlap.example.com/katello/api/environments/5
721
    body:
722
      encoding: UTF-8
723
      string: '{"description":"Production, manual promotions from Test"}'
724
    headers:
725
      Accept:
726
      - application/json;version=2
727
      Accept-Encoding:
728
      - gzip, deflate
729
      User-Agent:
730
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
731
      Content-Type:
732
      - application/json
733
      Accept-Language:
734
      - en
735
      Content-Length:
736
      - '57'
737
      Host:
738
      - satlap.example.com
739
  response:
740
    status:
741
      code: 200
742
      message: OK
743
    headers:
744
      Date:
745
      - Mon, 19 Dec 2016 16:43:53 GMT
746
      Server:
747
      - Apache/2.4.6 (Red Hat Enterprise Linux)
748
      X-Frame-Options:
749
      - SAMEORIGIN
750
      X-Xss-Protection:
751
      - 1; mode=block
752
      X-Content-Type-Options:
753
      - nosniff
754
      Foreman-Version:
755
      - 1.11.0.61
756
      Foreman-Api-Version:
757
      - '2'
758
      Apipie-Checksum:
759
      - 9793fd9909c89b81479655ed560c4340
760
      Cache-Control:
761
      - max-age=0, private, must-revalidate
762
      X-Request-Id:
763
      - 3d6b34ed-07ec-47ac-866e-a747ee9db82f
764
      X-Runtime:
765
      - '0.057818'
766
      X-Powered-By:
767
      - Phusion Passenger 4.0.18
768
      Set-Cookie:
769
      - _session_id=408486eac872a6898300f9cf53c580b9; path=/; secure; HttpOnly
770
      - request_method=PUT; path=/
771
      Etag:
772
      - '"d9e82a863d78d6025d4d5021820435c0-gzip"'
773
      Status:
774
      - 200 OK
775
      Vary:
776
      - Accept-Encoding
777
      Content-Length:
778
      - '567'
779
      Content-Type:
780
      - application/json; charset=utf-8
781
    body:
782
      encoding: ASCII-8BIT
783
      string: '  {"library":false,"id":5,"name":"Production","label":"Production","description":"Production,
784
        manual promotions from Test","organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-12-13
785
        10:59:04 UTC","updated_at":"2016-12-13 10:59:04 UTC","prior":{"name":"Test","id":4},"successor":{"name":"Archive","id":6},"counts":{"content_hosts":0,"content_views":0},"permissions":{"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}}
786

    
787
'
788
    http_version: 
789
  recorded_at: Mon, 19 Dec 2016 16:43:37 GMT
790
- request:
791
    method: put
792
    uri: https://admin:changeme@satlap.example.com/katello/api/environments/6
793
    body:
794
      encoding: UTF-8
795
      string: '{"description":"Archive, no longer in Production"}'
796
    headers:
797
      Accept:
798
      - application/json;version=2
799
      Accept-Encoding:
800
      - gzip, deflate
801
      User-Agent:
802
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
803
      Content-Type:
804
      - application/json
805
      Accept-Language:
806
      - en
807
      Content-Length:
808
      - '50'
809
      Host:
810
      - satlap.example.com
811
  response:
812
    status:
813
      code: 200
814
      message: OK
815
    headers:
816
      Date:
817
      - Mon, 19 Dec 2016 16:43:53 GMT
818
      Server:
819
      - Apache/2.4.6 (Red Hat Enterprise Linux)
820
      X-Frame-Options:
821
      - SAMEORIGIN
822
      X-Xss-Protection:
823
      - 1; mode=block
824
      X-Content-Type-Options:
825
      - nosniff
826
      Foreman-Version:
827
      - 1.11.0.61
828
      Foreman-Api-Version:
829
      - '2'
830
      Apipie-Checksum:
831
      - 9793fd9909c89b81479655ed560c4340
832
      Cache-Control:
833
      - max-age=0, private, must-revalidate
834
      X-Request-Id:
835
      - 08292adb-5729-4497-b9c5-48280ab260fa
836
      X-Runtime:
837
      - '0.060624'
838
      X-Powered-By:
839
      - Phusion Passenger 4.0.18
840
      Set-Cookie:
841
      - _session_id=5a612c13854d2a046d530447c607fff8; path=/; secure; HttpOnly
842
      - request_method=PUT; path=/
843
      Etag:
844
      - '"90a71dc83ec9d8ba5266f84ed30a5993-gzip"'
845
      Status:
846
      - 200 OK
847
      Vary:
848
      - Accept-Encoding
849
      Content-Length:
850
      - '538'
851
      Content-Type:
852
      - application/json; charset=utf-8
853
    body:
854
      encoding: ASCII-8BIT
855
      string: '  {"library":false,"id":6,"name":"Archive","label":"Archive","description":"Archive,
856
        no longer in Production","organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-12-13
857
        10:59:05 UTC","updated_at":"2016-12-13 10:59:05 UTC","prior":{"name":"Production","id":5},"successor":null,"counts":{"content_hosts":0,"content_views":0},"permissions":{"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":true,"promote_or_remove_content_views_to_environments":true}}
858

    
859
'
860
    http_version: 
861
  recorded_at: Mon, 19 Dec 2016 16:43:37 GMT
862
recorded_with: VCR 3.0.3