Project

General

Profile

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

hammer-cli-csv / test / fixtures / vcr_cassettes / setup / setup_content_views / 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:50 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
      - 16d3d194-b1a7-445d-8626-87e494c7cf5b
43
      X-Runtime:
44
      - '0.046121'
45
      X-Powered-By:
46
      - Phusion Passenger 4.0.18
47
      Set-Cookie:
48
      - _session_id=28c54f68938892bdc6c36bf9a5ec72d3; 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:34 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:51 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
      - 9b4e98dc-2cfc-48bd-9f2e-7bfbd5366c00
102
      X-Runtime:
103
      - '0.036413'
104
      X-Powered-By:
105
      - Phusion Passenger 4.0.18
106
      Set-Cookie:
107
      - _session_id=9fa25e2c06257d9bed6f3990a09a71ae; 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:34 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
      - Mon, 19 Dec 2016 16:43:51 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
      - d2ece62f-632f-41e8-8b96-7709e4bdf121
241
      X-Runtime:
242
      - '0.041197'
243
      X-Powered-By:
244
      - Phusion Passenger 4.0.18
245
      Set-Cookie:
246
      - _session_id=7d9801c381839acc4b2a33e692782ef7; path=/; secure; HttpOnly
247
      Etag:
248
      - '"f1bc20326d93260c86807cfd4749cd80-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-19 16:42:44 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:34 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
      - Mon, 19 Dec 2016 16:43:51 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
      - 34322e3a-ec7b-43df-bfbe-b8f6a20bb512
318
      X-Runtime:
319
      - '0.056925'
320
      X-Powered-By:
321
      - Phusion Passenger 4.0.18
322
      Set-Cookie:
323
      - _session_id=4614c90932934a4178d9d3436607dc4f; 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: Mon, 19 Dec 2016 16:43:34 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
      - Mon, 19 Dec 2016 16:43:51 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.61
384
      Foreman-Api-Version:
385
      - '2'
386
      Apipie-Checksum:
387
      - 9793fd9909c89b81479655ed560c4340
388
      Cache-Control:
389
      - max-age=0, private, must-revalidate
390
      X-Request-Id:
391
      - 59541c0e-5f41-4e99-a3c5-c6e57c0b153a
392
      X-Runtime:
393
      - '0.342193'
394
      X-Powered-By:
395
      - Phusion Passenger 4.0.18
396
      Set-Cookie:
397
      - _session_id=d5c259d096bafe87004f66c0b2d88ebc; 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: Mon, 19 Dec 2016 16:43:35 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
      - Mon, 19 Dec 2016 16:43:51 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.61
457
      Foreman-Api-Version:
458
      - '2'
459
      Apipie-Checksum:
460
      - 9793fd9909c89b81479655ed560c4340
461
      Cache-Control:
462
      - max-age=0, private, must-revalidate
463
      X-Request-Id:
464
      - 3747e7db-d348-410a-b7bd-37dc6e57af30
465
      X-Runtime:
466
      - '0.069829'
467
      X-Powered-By:
468
      - Phusion Passenger 4.0.18
469
      Set-Cookie:
470
      - _session_id=0b82caee63e56c5a3b1deca256074a62; 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: Mon, 19 Dec 2016 16:43:35 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
      - Mon, 19 Dec 2016 16:43:51 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.61
529
      Foreman-Api-Version:
530
      - '2'
531
      Apipie-Checksum:
532
      - 9793fd9909c89b81479655ed560c4340
533
      Cache-Control:
534
      - max-age=0, private, must-revalidate
535
      X-Request-Id:
536
      - a98efe0e-367f-4b76-bd88-88d75712b9d7
537
      X-Runtime:
538
      - '0.057128'
539
      X-Powered-By:
540
      - Phusion Passenger 4.0.18
541
      Set-Cookie:
542
      - _session_id=f3e497957e2c65b8f1b3d8d5795eb233; 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: Mon, 19 Dec 2016 16:43:35 GMT
562
recorded_with: VCR 3.0.3