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
|
- Fri, 09 Sep 2016 20:04:32 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
|
- 5e78e7bc-9ac2-4efc-b4cc-7c120795d660
|
45
|
X-Runtime:
|
46
|
- '0.196733'
|
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=f5fa05806ada8b520cf7446769a096d0; 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: Fri, 09 Sep 2016 20:04:33 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
|
- Fri, 09 Sep 2016 20:04:32 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
|
- f8e8fe7e-7ff5-4e4c-8842-c0ad4d3d71b8
|
102
|
X-Runtime:
|
103
|
- '0.178158'
|
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=fbfd3f225496515121b6f0e3ea4c6553; 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: Fri, 09 Sep 2016 20:04:33 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
|
- Fri, 09 Sep 2016 20:04:32 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
|
- a76a3d61-aed3-4aeb-90c5-d8d3a9efbcfc
|
188
|
X-Runtime:
|
189
|
- '0.220072'
|
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=091e0cd198cb7a9a843b02c8d4dcb388; 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: Fri, 09 Sep 2016 20:04:33 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
|
- Fri, 09 Sep 2016 20:04:33 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
|
- cbd26007-2002-44b6-868e-b53f0838068e
|
261
|
X-Runtime:
|
262
|
- '1.277271'
|
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=4661d43342244c01e38fcf97c0dc4fd2; 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: Fri, 09 Sep 2016 20:04:34 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
|
- Fri, 09 Sep 2016 20:04:34 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
|
- 0bd45bcc-e416-41b2-b96c-7829503c15c4
|
334
|
X-Runtime:
|
335
|
- '0.379026'
|
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=22aa0f16d9dcd99e83e35b55279a6eb3; 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: Fri, 09 Sep 2016 20:04:35 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
|
- Fri, 09 Sep 2016 20:04:34 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
|
- 26f251d7-e5ae-4446-8b77-4cb3604c4a87
|
396
|
X-Runtime:
|
397
|
- '0.215495'
|
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=f1abb7c46848a4f0525a559bf1a38adb; 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: Fri, 09 Sep 2016 20:04:35 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
|
- Fri, 09 Sep 2016 20:04:35 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
|
- b71f5ece-96d7-4e8f-8b21-25fd299157ab
|
469
|
X-Runtime:
|
470
|
- '1.817325'
|
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=203c62d9f2535db08a63afb7bbab5818; 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: Fri, 09 Sep 2016 20:04:37 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
|
- Fri, 09 Sep 2016 20:04:36 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
|
- 85d91851-7e36-46fb-9bfc-46fa4be0920e
|
531
|
X-Runtime:
|
532
|
- '0.222561'
|
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=416d90624b0aa06040aaecb219928ab1; 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: Fri, 09 Sep 2016 20:04:37 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
|
- Fri, 09 Sep 2016 20:04:37 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
|
- 6b2400ed-5652-4bd1-b0de-8f3630093a85
|
604
|
X-Runtime:
|
605
|
- '1.770496'
|
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=ac43af011027de8b7ede482d848eb0cc; 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: Fri, 09 Sep 2016 20:04:39 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
|
- Fri, 09 Sep 2016 20:04:39 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
|
- cc0488cc-7351-4d55-ac6a-229209c30ddf
|
668
|
X-Runtime:
|
669
|
- '1.481445'
|
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=295d73a909fb060e27f4f771ae3e6be3; 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: Fri, 09 Sep 2016 20:04:40 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
|
- Fri, 09 Sep 2016 20:04:40 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
|
- d5008ddb-73c6-4897-a1d4-a96205dc722d
|
733
|
X-Runtime:
|
734
|
- '0.396450'
|
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=42794b9c66048758d4b7349e3208eb36; 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: Fri, 09 Sep 2016 20:04:41 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
|
- Fri, 09 Sep 2016 20:04:40 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
|
- e47c5fba-195c-45a2-b8b7-d1622e9749fa
|
798
|
X-Runtime:
|
799
|
- '1.475747'
|
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=5de21afa539565ee0f9ccdf89e41ddc4; 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: Fri, 09 Sep 2016 20:04:42 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
|
- Fri, 09 Sep 2016 20:04:42 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
|
- 63e3ddf7-6488-4f42-805e-851a1bd61ee3
|
863
|
X-Runtime:
|
864
|
- '0.363383'
|
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=96dbeac27fb9a563c1ae665676d7fd28; 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: Fri, 09 Sep 2016 20:04:43 GMT
|
880
|
recorded_with: VCR 3.0.3
|