Project

General

Profile

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

hammer-cli-csv / test / fixtures / vcr_cassettes / setup / setup_content_views / setup.yml @ 1327c177

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
      - Tue, 13 Dec 2016 14:48:38 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.54
35
      Foreman-Api-Version:
36
      - '2'
37
      Apipie-Checksum:
38
      - e1df2e8d43e22495b02a53b48e3b5298
39
      Cache-Control:
40
      - max-age=0, private, must-revalidate
41
      X-Request-Id:
42
      - a0c3be99-4022-439f-88bd-75bde4582bcc
43
      X-Runtime:
44
      - '0.033901'
45
      X-Powered-By:
46
      - Phusion Passenger 4.0.18
47
      Set-Cookie:
48
      - _session_id=c5bcb36b998c5419c717302dcaa51150; path=/; secure; HttpOnly
49
      Etag:
50
      - '"8e3341d0a4cc328651f7391aed11fef8"'
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.54","api_version":2}'
60
    http_version: 
61
  recorded_at: Tue, 13 Dec 2016 14:48:35 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
      - Tue, 13 Dec 2016 14:48:38 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.54
94
      Foreman-Api-Version:
95
      - '2'
96
      Apipie-Checksum:
97
      - e1df2e8d43e22495b02a53b48e3b5298
98
      Cache-Control:
99
      - max-age=0, private, must-revalidate
100
      X-Request-Id:
101
      - 5a729c21-ccba-4e0a-8f04-a985a1e83e12
102
      X-Runtime:
103
      - '0.025817'
104
      X-Powered-By:
105
      - Phusion Passenger 4.0.18
106
      Set-Cookie:
107
      - _session_id=253d9617ccc8abc12acbd005120a0d5e; path=/; secure; HttpOnly
108
      Etag:
109
      - '"077fb42a553a8a1a1bbf6262a2cc79ec-gzip"'
110
      Status:
111
      - 200 OK
112
      Vary:
113
      - Accept-Encoding
114
      Content-Length:
115
      - '1338'
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
        b3JlbWFuLXRhc2tzIiwidmVyc2lvbiI6IjAuNy4xNC45In0seyJpZCI6ImZv
137
        cmVtYW5fYm9vdGRpc2siLCJuYW1lIjoiZm9yZW1hbl9ib290ZGlzayIsImF1
138
        dGhvciI6IkRvbWluaWMgQ2xlYWwiLCJkZXNjcmlwdGlvbiI6IlBsdWdpbiBm
139
        b3IgRm9yZW1hbiB0aGF0IGNyZWF0ZXMgaVBYRS1iYXNlZCBib290IGRpc2tz
140
        IHRvIHByb3Zpc2lvbiBob3N0cyB3aXRob3V0IHRoZSBuZWVkIGZvciBQWEUg
141
        aW5mcmFzdHJ1Y3R1cmUuIiwidXJsIjoiaHR0cDovL2dpdGh1Yi5jb20vdGhl
142
        Zm9yZW1hbi9mb3JlbWFuX2Jvb3RkaXNrIiwidmVyc2lvbiI6IjYuMS4wLjMi
143
        fSx7ImlkIjoiZm9yZW1hbl9kaXNjb3ZlcnkiLCJuYW1lIjoiZm9yZW1hbl9k
144
        aXNjb3ZlcnkiLCJhdXRob3IiOiJBbW9zIEJlbmFyaSxCcnlhbiBLZWFybmV5
145
        LENoYWlybWFuVHViZUFtcCxEYW5pZWwgTG9iYXRvIEdhcmPDrWEsRG9taW5p
146
        YyBDbGVhbCxFcmljIEQuIEhlbG1zLEZyYW5rIFdhbGwsR3JlZyBTdXRjbGlm
147
        ZmUsSW1yaSBadmlrLEpvc2VwaCBNaXRjaGVsbCBNYWdlbixMdWthcyBaYXBs
148
        ZXRhbCxMdWvDocWhIFphcGxldGFsLE1hcmVrIEh1bGFuLE1hcnRpbiBCYcSN
149
        b3Zza8O9LE1hdHQgSmFydmlzLE1pY2hhZWwgTW9sbCxOaWNrLE9oYWQgTGV2
150
        eSxPcmkgUmFiaW4sUGV0ciBDaGFsdXBhLFBoaXJpbmNlIFBoaWxpcCxTY3Vi
151
        YWZsb3lkLFNobG9taSBaYWRvayxTdGVwaGVuIEJlbmphbWluLFlhbm4gQ8Op
152
        emFyZCIsImRlc2NyaXB0aW9uIjoiTWFhUyBEaXNjb3ZlcnkgUGx1Z2luIGVu
153
        Z2luZSBmb3IgRm9yZW1hbiIsInVybCI6Imh0dHA6Ly9naXRodWIuY29tL3Ro
154
        ZWZvcmVtYW4vZm9yZW1hbl9kaXNjb3ZlcnkiLCJ2ZXJzaW9uIjoiNS4wLjAu
155
        OSJ9LHsiaWQiOiJmb3JlbWFuX2RvY2tlciIsIm5hbWUiOiJmb3JlbWFuX2Rv
156
        Y2tlciIsImF1dGhvciI6IkRhbmllbCBMb2JhdG8sIEFtb3MgQmVuYXJpIiwi
157
        ZGVzY3JpcHRpb24iOiJQcm92aXNpb24gYW5kIG1hbmFnZSBEb2NrZXIgY29u
158
        dGFpbmVycyBhbmQgaW1hZ2VzIGZyb20gRm9yZW1hbi4iLCJ1cmwiOiJodHRw
159
        Oi8vZ2l0aHViLmNvbS90aGVmb3JlbWFuL2ZvcmVtYW4tZG9ja2VyIiwidmVy
160
        c2lvbiI6IjIuMC4xLjExIn0seyJpZCI6ImZvcmVtYW5faG9va3MiLCJuYW1l
161
        IjoiZm9yZW1hbl9ob29rcyIsImF1dGhvciI6IkRvbWluaWMgQ2xlYWwiLCJk
162
        ZXNjcmlwdGlvbiI6IlBsdWdpbiBlbmdpbmUgZm9yIEZvcmVtYW4gdGhhdCBl
163
        bmFibGVzIHJ1bm5pbmcgY3VzdG9tIGhvb2sgc2NyaXB0cyBvbiBGb3JlbWFu
164
        IGV2ZW50cyIsInVybCI6Imh0dHA6Ly9naXRodWIuY29tL3RoZWZvcmVtYW4v
165
        Zm9yZW1hbl9ob29rcyIsInZlcnNpb24iOiIwLjMuMTEifSx7ImlkIjoiZm9y
166
        ZW1hbl9vcGVuc2NhcCIsIm5hbWUiOiJmb3JlbWFuX29wZW5zY2FwIiwiYXV0
167
        aG9yIjoixaBpbW9uIEx1a2HFocOtayxTaGxvbWkgWmFkb2ssTWFyZWsgSHVs
168
        YW4sT25kcmVqIFByYXphayIsImRlc2NyaXB0aW9uIjoiRm9yZW1hbiBwbHVn
169
        LWluIGZvciBtYW5hZ2luZyBzZWN1cml0eSBjb21wbGlhbmNlIHJlcG9ydHMi
170
        LCJ1cmwiOiJodHRwczovL2dpdGh1Yi5jb20vT3BlblNDQVAvZm9yZW1hbl9v
171
        cGVuc2NhcCIsInZlcnNpb24iOiIwLjUuMy4xOCJ9LHsiaWQiOiJmb3JlbWFu
172
        X3JlbW90ZV9leGVjdXRpb24iLCJuYW1lIjoiZm9yZW1hbl9yZW1vdGVfZXhl
173
        Y3V0aW9uIiwiYXV0aG9yIjoiRm9yZW1hbiBSZW1vdGUgRXhlY3V0aW9uIHRl
174
        YW0iLCJkZXNjcmlwdGlvbiI6IkEgcGx1Z2luIGJyaW5naW5nIHJlbW90ZSBl
175
        eGVjdXRpb24gdG8gdGhlIEZvcmVtYW4sIGNvbXBsZXRpbmcgdGhlIGNvbmZp
176
        ZyBtYW5hZ2VtZW50IGZ1bmN0aW9uYWxpdHkgd2l0aCByZW1vdGUgbWFuYWdl
177
        bWVudCBmdW5jdGlvbmFsaXR5LiIsInVybCI6Imh0dHBzOi8vZ2l0aHViLmNv
178
        bS90aGVmb3JlbWFuL2ZvcmVtYW5fcmVtb3RlX2V4ZWN1dGlvbiIsInZlcnNp
179
        b24iOiIwLjMuMC4xMiJ9LHsiaWQiOiJmb3JlbWFuX3RoZW1lX3NhdGVsbGl0
180
        ZSIsIm5hbWUiOiJmb3JlbWFuX3RoZW1lX3NhdGVsbGl0ZSIsImF1dGhvciI6
181
        IkFsb24gR29sZGJvaW0sIFNoaW1vbiBTdGVpbiIsImRlc2NyaXB0aW9uIjoi
182
        VGhpcyBpcyBhIHBsdWdpbiB0aGF0IGVuYWJsZXMgYnVpbGRpbmcgYSB0aGVt
183
        ZSBmb3IgRm9yZW1hbi4iLCJ1cmwiOiJodHRwczovL2dpdGh1Yi5jb20vYWxv
184
        bmdvbGRib2ltL2ZvcmVtYW5fdGhlbWVfc2F0ZWxsaXRlIiwidmVyc2lvbiI6
185
        IjAuMS4zMyJ9LHsiaWQiOiJrYXRlbGxvIiwibmFtZSI6ImthdGVsbG8iLCJh
186
        dXRob3IiOiJOL0EiLCJkZXNjcmlwdGlvbiI6IkNvbnRlbnQgYW5kIFN1YnNj
187
        cmlwdGlvbiBNYW5hZ2VtZW50IHBsdWdpbiBmb3IgRm9yZW1hbiIsInVybCI6
188
        Imh0dHA6Ly93d3cua2F0ZWxsby5vcmciLCJ2ZXJzaW9uIjoiMy4wLjAuODIi
189
        fSx7ImlkIjoicmVkaGF0X2FjY2VzcyIsIm5hbWUiOiJyZWRoYXRfYWNjZXNz
190
        IiwiYXV0aG9yIjoiTGluZGFuaSBQaGlyaSIsImRlc2NyaXB0aW9uIjoiVGhp
191
        cyBwbHVnaW4gYWRkcyBSZWQgSGF0IEFjY2VzcyBrbm93bGVkZ2UgYmFzZSBz
192
        ZWFyY2gsIGNhc2UgbWFuYWdlbWVudCBhbmQgZGlhZ25vc3RpY3MgdG8gRm9y
193
        ZW1hbiIsInVybCI6Imh0dHA6Ly93d3cubHBoaXJpLnJlZGhhdC5jb20iLCJ2
194
        ZXJzaW9uIjoiMS4wLjEzIn1dCn0K
195
    http_version: 
196
  recorded_at: Tue, 13 Dec 2016 14:48:36 GMT
197
- request:
198
    method: get
199
    uri: https://admin:changeme@satlap.example.com/katello/api/organizations?per_page=999999&search=name=%22Test%20Corporation%22
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
      - Tue, 13 Dec 2016 14:48:38 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.54
233
      Foreman-Api-Version:
234
      - '2'
235
      Apipie-Checksum:
236
      - e1df2e8d43e22495b02a53b48e3b5298
237
      Cache-Control:
238
      - max-age=0, private, must-revalidate
239
      X-Request-Id:
240
      - fe000748-bd68-499b-b744-3053e0c7c7aa
241
      X-Runtime:
242
      - '0.043491'
243
      X-Powered-By:
244
      - Phusion Passenger 4.0.18
245
      Set-Cookie:
246
      - _session_id=375c9de7ddc4aa91acbec21f78bb9f08; path=/; secure; HttpOnly
247
      Etag:
248
      - '"679e32140c09b4b1376234e361ab87b0-gzip"'
249
      Status:
250
      - 200 OK
251
      Vary:
252
      - Accept-Encoding
253
      Content-Length:
254
      - '388'
255
      Content-Type:
256
      - application/json; charset=utf-8
257
    body:
258
      encoding: ASCII-8BIT
259
      string: |
260
        {
261
          "total": 2,
262
          "subtotal": 1,
263
          "page": 1,
264
          "per_page": 999999,
265
          "search": "name=\"Test Corporation\"",
266
          "sort": {
267
            "by": null,
268
            "order": null
269
          },
270
          "results": [{"label":"testcorp","created_at":"2016-12-13 10:58:26 UTC","updated_at":"2016-12-13 14:47:54 UTC","id":8,"name":"Test Corporation","title":"Test Corporation","description":"Testing today for a better tomorrow"}]
271
        }
272
    http_version: 
273
  recorded_at: Tue, 13 Dec 2016 14:48:36 GMT
274
- request:
275
    method: get
276
    uri: https://admin:changeme@satlap.example.com/katello/api/organizations/8/content_views?nondefault=true&per_page=999999
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
      - Tue, 13 Dec 2016 14:48:38 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.54
310
      Foreman-Api-Version:
311
      - '2'
312
      Apipie-Checksum:
313
      - e1df2e8d43e22495b02a53b48e3b5298
314
      Cache-Control:
315
      - max-age=0, private, must-revalidate
316
      X-Request-Id:
317
      - a2d3ce8d-cdc3-48a4-bd64-bdd82979c46b
318
      X-Runtime:
319
      - '0.056673'
320
      X-Powered-By:
321
      - Phusion Passenger 4.0.18
322
      Set-Cookie:
323
      - _session_id=56d32e688bd0bf52dc2f8562f8d689e8; path=/; secure; HttpOnly
324
      Etag:
325
      - '"cf301b4117cad49bd4d896be95b62228-gzip"'
326
      Status:
327
      - 200 OK
328
      Vary:
329
      - Accept-Encoding
330
      Content-Length:
331
      - '923'
332
      Content-Type:
333
      - application/json; charset=utf-8
334
    body:
335
      encoding: ASCII-8BIT
336
      string: '{"total":1,"subtotal":1,"page":1,"per_page":"999999","error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"composite":false,"repository_ids":[],"component_ids":[],"default":false,"next_version":2,"id":3,"name":"Test
337
        Puppet Modules","label":"Test_Puppet_Modules","description":null,"organization":{"name":"Test
338
        Corporation","label":"testcorp","id":8},"created_at":"2016-12-13 10:58:58
339
        UTC","updated_at":"2016-12-13 10:58:59 UTC","environments":[{"id":2,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[],"puppet_modules":[],"versions":[{"id":3,"version":"1.0","published":"2016-12-13
340
        10:58:59 UTC","environment_ids":[2]}],"components":[],"activation_keys":[],"last_published":"2016-12-13
341
        10:58:59 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]}
342

    
343
'
344
    http_version: 
345
  recorded_at: Tue, 13 Dec 2016 14:48:36 GMT
346
- request:
347
    method: put
348
    uri: https://admin:changeme@satlap.example.com/katello/api/content_views/3
349
    body:
350
      encoding: UTF-8
351
      string: '{"description":null,"repository_ids":[]}'
352
    headers:
353
      Accept:
354
      - application/json;version=2
355
      Accept-Encoding:
356
      - gzip, deflate
357
      User-Agent:
358
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
359
      Content-Type:
360
      - application/json
361
      Accept-Language:
362
      - en
363
      Content-Length:
364
      - '40'
365
      Host:
366
      - satlap.example.com
367
  response:
368
    status:
369
      code: 200
370
      message: OK
371
    headers:
372
      Date:
373
      - Tue, 13 Dec 2016 14:48:38 GMT
374
      Server:
375
      - Apache/2.4.6 (Red Hat Enterprise Linux)
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.11.0.54
384
      Foreman-Api-Version:
385
      - '2'
386
      Apipie-Checksum:
387
      - e1df2e8d43e22495b02a53b48e3b5298
388
      Cache-Control:
389
      - max-age=0, private, must-revalidate
390
      X-Request-Id:
391
      - a591f1cf-78c7-48b8-962f-a7d004b3c3f4
392
      X-Runtime:
393
      - '0.298336'
394
      X-Powered-By:
395
      - Phusion Passenger 4.0.18
396
      Set-Cookie:
397
      - _session_id=0f410de4dfa7fa2029ff81ddbc9a9dd0; path=/; secure; HttpOnly
398
      - request_method=PUT; path=/
399
      Etag:
400
      - '"8750b128c6a00d402d732d7e92ceb9a1-gzip"'
401
      Status:
402
      - 200 OK
403
      Vary:
404
      - Accept-Encoding
405
      Content-Length:
406
      - '823'
407
      Content-Type:
408
      - application/json; charset=utf-8
409
    body:
410
      encoding: ASCII-8BIT
411
      string: '  {"content_host_count":0,"composite":false,"repository_ids":[],"component_ids":[],"default":false,"next_version":2,"id":3,"name":"Test
412
        Puppet Modules","label":"Test_Puppet_Modules","description":null,"organization":{"name":"Test
413
        Corporation","label":"testcorp","id":8},"created_at":"2016-12-13 10:58:58
414
        UTC","updated_at":"2016-12-13 10:58:59 UTC","environments":[{"id":2,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[],"puppet_modules":[],"versions":[{"id":3,"version":"1.0","published":"2016-12-13
415
        10:58:59 UTC","environment_ids":[2]}],"components":[],"activation_keys":[],"last_published":"2016-12-13
416
        10:58:59 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}
417

    
418
'
419
    http_version: 
420
  recorded_at: Tue, 13 Dec 2016 14:48:36 GMT
421
- request:
422
    method: get
423
    uri: https://admin:changeme@satlap.example.com/katello/api/content_views/3
424
    body:
425
      encoding: US-ASCII
426
      string: ''
427
    headers:
428
      Accept:
429
      - application/json;version=2
430
      Accept-Encoding:
431
      - gzip, deflate
432
      User-Agent:
433
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
434
      Content-Type:
435
      - application/json
436
      Accept-Language:
437
      - en
438
      Host:
439
      - satlap.example.com
440
  response:
441
    status:
442
      code: 200
443
      message: OK
444
    headers:
445
      Date:
446
      - Tue, 13 Dec 2016 14:48:38 GMT
447
      Server:
448
      - Apache/2.4.6 (Red Hat Enterprise Linux)
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.11.0.54
457
      Foreman-Api-Version:
458
      - '2'
459
      Apipie-Checksum:
460
      - e1df2e8d43e22495b02a53b48e3b5298
461
      Cache-Control:
462
      - max-age=0, private, must-revalidate
463
      X-Request-Id:
464
      - c2f1569a-63a4-4594-ac32-703aab2958ab
465
      X-Runtime:
466
      - '0.041342'
467
      X-Powered-By:
468
      - Phusion Passenger 4.0.18
469
      Set-Cookie:
470
      - _session_id=27a084a76ac4914c5e25ee05be4c3430; path=/; secure; HttpOnly
471
      Etag:
472
      - '"8750b128c6a00d402d732d7e92ceb9a1-gzip"'
473
      Status:
474
      - 200 OK
475
      Vary:
476
      - Accept-Encoding
477
      Content-Length:
478
      - '823'
479
      Content-Type:
480
      - application/json; charset=utf-8
481
    body:
482
      encoding: ASCII-8BIT
483
      string: '  {"content_host_count":0,"composite":false,"repository_ids":[],"component_ids":[],"default":false,"next_version":2,"id":3,"name":"Test
484
        Puppet Modules","label":"Test_Puppet_Modules","description":null,"organization":{"name":"Test
485
        Corporation","label":"testcorp","id":8},"created_at":"2016-12-13 10:58:58
486
        UTC","updated_at":"2016-12-13 10:58:59 UTC","environments":[{"id":2,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[],"puppet_modules":[],"versions":[{"id":3,"version":"1.0","published":"2016-12-13
487
        10:58:59 UTC","environment_ids":[2]}],"components":[],"activation_keys":[],"last_published":"2016-12-13
488
        10:58:59 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}
489

    
490
'
491
    http_version: 
492
  recorded_at: Tue, 13 Dec 2016 14:48:36 GMT
493
- request:
494
    method: get
495
    uri: https://admin:changeme@satlap.example.com/katello/api/environments/2
496
    body:
497
      encoding: US-ASCII
498
      string: ''
499
    headers:
500
      Accept:
501
      - application/json;version=2
502
      Accept-Encoding:
503
      - gzip, deflate
504
      User-Agent:
505
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
506
      Content-Type:
507
      - application/json
508
      Accept-Language:
509
      - en
510
      Host:
511
      - satlap.example.com
512
  response:
513
    status:
514
      code: 200
515
      message: OK
516
    headers:
517
      Date:
518
      - Tue, 13 Dec 2016 14:48:39 GMT
519
      Server:
520
      - Apache/2.4.6 (Red Hat Enterprise Linux)
521
      X-Frame-Options:
522
      - SAMEORIGIN
523
      X-Xss-Protection:
524
      - 1; mode=block
525
      X-Content-Type-Options:
526
      - nosniff
527
      Foreman-Version:
528
      - 1.11.0.54
529
      Foreman-Api-Version:
530
      - '2'
531
      Apipie-Checksum:
532
      - e1df2e8d43e22495b02a53b48e3b5298
533
      Cache-Control:
534
      - max-age=0, private, must-revalidate
535
      X-Request-Id:
536
      - 3f6bf5d6-6f81-4d3d-b258-aea24ff0d3e0
537
      X-Runtime:
538
      - '0.055800'
539
      X-Powered-By:
540
      - Phusion Passenger 4.0.18
541
      Set-Cookie:
542
      - _session_id=ae681bc60d89b53610652c9ab23f95f6; path=/; secure; HttpOnly
543
      Etag:
544
      - '"e2749250466895341168c2f7edf57bf2-gzip"'
545
      Status:
546
      - 200 OK
547
      Vary:
548
      - Accept-Encoding
549
      Content-Length:
550
      - '659'
551
      Content-Type:
552
      - application/json; charset=utf-8
553
    body:
554
      encoding: ASCII-8BIT
555
      string: '  {"library":true,"id":2,"name":"Library","label":"Library","description":null,"organization":{"name":"Test
556
        Corporation","label":"testcorp","id":8},"created_at":"2016-12-13 10:58:26
557
        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}}
558

    
559
'
560
    http_version: 
561
  recorded_at: Tue, 13 Dec 2016 14:48:36 GMT
562
recorded_with: VCR 3.0.3