1
|
---
|
2
|
http_interactions:
|
3
|
- request:
|
4
|
method: put
|
5
|
uri: http://admin:changeme@katello:3000/api/settings/99
|
6
|
body:
|
7
|
encoding: UTF-8
|
8
|
string: '{"setting":{"value":"60000"}}'
|
9
|
headers:
|
10
|
Accept:
|
11
|
- application/json;version=2
|
12
|
Accept-Encoding:
|
13
|
- gzip, deflate
|
14
|
Content-Type:
|
15
|
- application/json
|
16
|
Content-Length:
|
17
|
- '29'
|
18
|
User-Agent:
|
19
|
- Ruby
|
20
|
response:
|
21
|
status:
|
22
|
code: 200
|
23
|
message: OK
|
24
|
headers:
|
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.13.0-develop
|
33
|
Foreman-Api-Version:
|
34
|
- '2'
|
35
|
Content-Type:
|
36
|
- application/json; charset=utf-8
|
37
|
Apipie-Checksum:
|
38
|
- e98945ba1db6bdbb4c25ce4988912344
|
39
|
Etag:
|
40
|
- W/"076d4507efa74eb8790faa1c97e1c713"
|
41
|
Cache-Control:
|
42
|
- max-age=0, private, must-revalidate
|
43
|
Set-Cookie:
|
44
|
- _session_id=2db127278d1d58e8edacf000b8807c04; path=/; HttpOnly
|
45
|
- request_method=PUT; path=/
|
46
|
X-Request-Id:
|
47
|
- 9f7e6bbd-61d7-45d7-9bb6-73875ebb50d1
|
48
|
X-Runtime:
|
49
|
- '0.322533'
|
50
|
Transfer-Encoding:
|
51
|
- chunked
|
52
|
body:
|
53
|
encoding: UTF-8
|
54
|
string: '{"value":60000,"description":"Log out idle users after a certain number
|
55
|
of minutes","category":"Setting::Auth","settings_type":"integer","default":60,"created_at":"2016-08-10
|
56
|
12:38:11 UTC","updated_at":"2016-08-10 13:34:48 UTC","id":99,"name":"idle_timeout"}'
|
57
|
http_version:
|
58
|
recorded_at: Tue, 23 Aug 2016 12:27:09 GMT
|
59
|
- request:
|
60
|
method: get
|
61
|
uri: https://admin:changeme@katello.example.com:50191/api/status
|
62
|
body:
|
63
|
encoding: US-ASCII
|
64
|
string: ''
|
65
|
headers:
|
66
|
Accept-Encoding:
|
67
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
68
|
Accept:
|
69
|
- "*/*"
|
70
|
User-Agent:
|
71
|
- Ruby
|
72
|
response:
|
73
|
status:
|
74
|
code: 200
|
75
|
message: OK
|
76
|
headers:
|
77
|
Date:
|
78
|
- Fri, 09 Sep 2016 20:03:31 GMT
|
79
|
Server:
|
80
|
- Apache/2.4.6 (CentOS)
|
81
|
X-Frame-Options:
|
82
|
- SAMEORIGIN
|
83
|
X-Xss-Protection:
|
84
|
- 1; mode=block
|
85
|
X-Content-Type-Options:
|
86
|
- nosniff
|
87
|
Foreman-Version:
|
88
|
- 1.14.0-develop
|
89
|
Foreman-Api-Version:
|
90
|
- '2'
|
91
|
Content-Type:
|
92
|
- application/json; charset=utf-8
|
93
|
Apipie-Checksum:
|
94
|
- 9544abef9cf8343005f07ed8c9f1f8e7
|
95
|
Etag:
|
96
|
- W/"1316c9d778b9181476af8a9546423fb1-gzip"
|
97
|
Cache-Control:
|
98
|
- max-age=0, private, must-revalidate
|
99
|
X-Request-Id:
|
100
|
- ca083cfa-80e1-4718-9d98-b4b4fc2593a5
|
101
|
X-Runtime:
|
102
|
- '0.218150'
|
103
|
Via:
|
104
|
- 1.1 katello.example.com:50191
|
105
|
Vary:
|
106
|
- Accept-Encoding
|
107
|
Content-Length:
|
108
|
- '81'
|
109
|
Set-Cookie:
|
110
|
- _session_id=fdf26a1e0ae85327c25a29e01103e3c9; path=/; HttpOnly
|
111
|
body:
|
112
|
encoding: UTF-8
|
113
|
string: '{"result":"ok","status":200,"version":"1.14.0-develop","api_version":2}'
|
114
|
http_version:
|
115
|
recorded_at: Fri, 09 Sep 2016 20:03:32 GMT
|
116
|
- request:
|
117
|
method: get
|
118
|
uri: https://admin:changeme@katello.example.com:50191/api/v2/plugins
|
119
|
body:
|
120
|
encoding: US-ASCII
|
121
|
string: ''
|
122
|
headers:
|
123
|
Accept-Encoding:
|
124
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
125
|
Accept:
|
126
|
- "*/*"
|
127
|
User-Agent:
|
128
|
- Ruby
|
129
|
response:
|
130
|
status:
|
131
|
code: 200
|
132
|
message: OK
|
133
|
headers:
|
134
|
Date:
|
135
|
- Fri, 09 Sep 2016 20:03:32 GMT
|
136
|
Server:
|
137
|
- Apache/2.4.6 (CentOS)
|
138
|
X-Frame-Options:
|
139
|
- SAMEORIGIN
|
140
|
X-Xss-Protection:
|
141
|
- 1; mode=block
|
142
|
X-Content-Type-Options:
|
143
|
- nosniff
|
144
|
Foreman-Version:
|
145
|
- 1.14.0-develop
|
146
|
Foreman-Api-Version:
|
147
|
- '2'
|
148
|
Content-Type:
|
149
|
- application/json; charset=utf-8
|
150
|
Apipie-Checksum:
|
151
|
- 9544abef9cf8343005f07ed8c9f1f8e7
|
152
|
Etag:
|
153
|
- W/"c547959b2afaff0cf0a8d731005e9365-gzip"
|
154
|
Cache-Control:
|
155
|
- max-age=0, private, must-revalidate
|
156
|
X-Request-Id:
|
157
|
- 0846426a-0f16-4f7c-8516-5a23c95d6502
|
158
|
X-Runtime:
|
159
|
- '0.180131'
|
160
|
Via:
|
161
|
- 1.1 katello.example.com:50191
|
162
|
Vary:
|
163
|
- Accept-Encoding
|
164
|
Content-Length:
|
165
|
- '566'
|
166
|
Set-Cookie:
|
167
|
- _session_id=594dea456656bd0d54082896b20e74d7; path=/; HttpOnly
|
168
|
body:
|
169
|
encoding: ASCII-8BIT
|
170
|
string: !binary |-
|
171
|
ewogICJ0b3RhbCI6IDMsCiAgInN1YnRvdGFsIjogMywKICAicGFnZSI6IDEs
|
172
|
CiAgInBlcl9wYWdlIjogMjAsCiAgInNlYXJjaCI6IG51bGwsCiAgInNvcnQi
|
173
|
OiB7CiAgICAiYnkiOiBudWxsLAogICAgIm9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BEb2NrZXIgY29udGFpbmVycyBhbmQgaW1hZ2Vz
|
190
|
IGZyb20gRm9yZW1hbi4iLCJ1cmwiOiJodHRwOi8vZ2l0aHViLmNvbS90aGVm
|
191
|
b3JlbWFuL2ZvcmVtYW4tZG9ja2VyIiwidmVyc2lvbiI6IjMuMC4wIn0seyJp
|
192
|
ZCI6ImthdGVsbG8iLCJuYW1lIjoia2F0ZWxsbyIsImF1dGhvciI6Ik4vQSIs
|
193
|
ImRlc2NyaXB0aW9uIjoiQ29udGVudCBhbmQgU3Vic2NyaXB0aW9uIE1hbmFn
|
194
|
ZW1lbnQgcGx1Z2luIGZvciBGb3JlbWFuIiwidXJsIjoiaHR0cDovL3d3dy5r
|
195
|
YXRlbGxvLm9yZyIsInZlcnNpb24iOiIzLjIuMCJ9XQp9Cg==
|
196
|
http_version:
|
197
|
recorded_at: Fri, 09 Sep 2016 20:03:32 GMT
|
198
|
- request:
|
199
|
method: get
|
200
|
uri: https://admin:changeme@katello.example.com:50191/api/settings?search=name=%22badsetting%22
|
201
|
body:
|
202
|
encoding: US-ASCII
|
203
|
string: ''
|
204
|
headers:
|
205
|
Accept:
|
206
|
- application/json;version=2
|
207
|
Accept-Encoding:
|
208
|
- gzip, deflate
|
209
|
User-Agent:
|
210
|
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
|
211
|
Content-Type:
|
212
|
- application/json
|
213
|
Host:
|
214
|
- katello.example.com:50191
|
215
|
response:
|
216
|
status:
|
217
|
code: 200
|
218
|
message: OK
|
219
|
headers:
|
220
|
Date:
|
221
|
- Fri, 09 Sep 2016 20:03:32 GMT
|
222
|
Server:
|
223
|
- Apache/2.4.6 (CentOS)
|
224
|
X-Frame-Options:
|
225
|
- SAMEORIGIN
|
226
|
X-Xss-Protection:
|
227
|
- 1; mode=block
|
228
|
X-Content-Type-Options:
|
229
|
- nosniff
|
230
|
Foreman-Version:
|
231
|
- 1.14.0-develop
|
232
|
Foreman-Api-Version:
|
233
|
- '2'
|
234
|
Content-Type:
|
235
|
- application/json; charset=utf-8
|
236
|
Apipie-Checksum:
|
237
|
- 9544abef9cf8343005f07ed8c9f1f8e7
|
238
|
Etag:
|
239
|
- W/"9cf326b5132c13814d1b9e58e5145928-gzip"
|
240
|
Cache-Control:
|
241
|
- max-age=0, private, must-revalidate
|
242
|
X-Request-Id:
|
243
|
- b9fba7a8-ab09-4a1f-95dd-57304bbd4461
|
244
|
X-Runtime:
|
245
|
- '0.220234'
|
246
|
Via:
|
247
|
- 1.1 katello.example.com:50191
|
248
|
Vary:
|
249
|
- Accept-Encoding
|
250
|
Content-Length:
|
251
|
- '170'
|
252
|
Set-Cookie:
|
253
|
- _session_id=b8994796b4fe1bace7d0cd6b33503ce7; path=/; HttpOnly
|
254
|
body:
|
255
|
encoding: ASCII-8BIT
|
256
|
string: |
|
257
|
{
|
258
|
"total": 101,
|
259
|
"subtotal": 0,
|
260
|
"page": 1,
|
261
|
"per_page": 20,
|
262
|
"search": "name=\"badsetting\"",
|
263
|
"sort": {
|
264
|
"by": null,
|
265
|
"order": null
|
266
|
},
|
267
|
"results": []
|
268
|
}
|
269
|
http_version:
|
270
|
recorded_at: Fri, 09 Sep 2016 20:03:33 GMT
|
271
|
- request:
|
272
|
method: get
|
273
|
uri: https://admin:changeme@katello.example.com:50191/api/settings?search=name=%22idle_timeout%22
|
274
|
body:
|
275
|
encoding: US-ASCII
|
276
|
string: ''
|
277
|
headers:
|
278
|
Accept:
|
279
|
- application/json;version=2
|
280
|
Accept-Encoding:
|
281
|
- gzip, deflate
|
282
|
User-Agent:
|
283
|
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
|
284
|
Content-Type:
|
285
|
- application/json
|
286
|
Host:
|
287
|
- katello.example.com:50191
|
288
|
response:
|
289
|
status:
|
290
|
code: 200
|
291
|
message: OK
|
292
|
headers:
|
293
|
Date:
|
294
|
- Fri, 09 Sep 2016 20:03:32 GMT
|
295
|
Server:
|
296
|
- Apache/2.4.6 (CentOS)
|
297
|
X-Frame-Options:
|
298
|
- SAMEORIGIN
|
299
|
X-Xss-Protection:
|
300
|
- 1; mode=block
|
301
|
X-Content-Type-Options:
|
302
|
- nosniff
|
303
|
Foreman-Version:
|
304
|
- 1.14.0-develop
|
305
|
Foreman-Api-Version:
|
306
|
- '2'
|
307
|
Content-Type:
|
308
|
- application/json; charset=utf-8
|
309
|
Apipie-Checksum:
|
310
|
- 9544abef9cf8343005f07ed8c9f1f8e7
|
311
|
Etag:
|
312
|
- W/"63f186b15a72e07220b8ff2f9fac5b9b-gzip"
|
313
|
Cache-Control:
|
314
|
- max-age=0, private, must-revalidate
|
315
|
X-Request-Id:
|
316
|
- b93e8380-08e9-4da0-8548-dda550c394c3
|
317
|
X-Runtime:
|
318
|
- '1.236567'
|
319
|
Via:
|
320
|
- 1.1 katello.example.com:50191
|
321
|
Vary:
|
322
|
- Accept-Encoding
|
323
|
Content-Length:
|
324
|
- '430'
|
325
|
Set-Cookie:
|
326
|
- _session_id=458fa61a5d6339ca36328a2b15e77f5a; path=/; HttpOnly
|
327
|
body:
|
328
|
encoding: ASCII-8BIT
|
329
|
string: |
|
330
|
{
|
331
|
"total": 101,
|
332
|
"subtotal": 1,
|
333
|
"page": 1,
|
334
|
"per_page": 20,
|
335
|
"search": "name=\"idle_timeout\"",
|
336
|
"sort": {
|
337
|
"by": null,
|
338
|
"order": null
|
339
|
},
|
340
|
"results": [{"value":60000,"description":"Log out idle users after a certain number of minutes","category":"Setting::Auth","settings_type":"integer","default":60,"created_at":"2016-09-02 14:00:52 UTC","updated_at":"2016-09-02 14:58:40 UTC","id":78,"name":"idle_timeout"}]
|
341
|
}
|
342
|
http_version:
|
343
|
recorded_at: Fri, 09 Sep 2016 20:03:34 GMT
|
344
|
- request:
|
345
|
method: put
|
346
|
uri: https://admin:changeme@katello.example.com:50191/api/settings/78
|
347
|
body:
|
348
|
encoding: UTF-8
|
349
|
string: '{"setting":{"value":"60000"}}'
|
350
|
headers:
|
351
|
Accept:
|
352
|
- application/json;version=2
|
353
|
Accept-Encoding:
|
354
|
- gzip, deflate
|
355
|
User-Agent:
|
356
|
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
|
357
|
Content-Type:
|
358
|
- application/json
|
359
|
Content-Length:
|
360
|
- '29'
|
361
|
Host:
|
362
|
- katello.example.com:50191
|
363
|
response:
|
364
|
status:
|
365
|
code: 200
|
366
|
message: OK
|
367
|
headers:
|
368
|
Date:
|
369
|
- Fri, 09 Sep 2016 20:03:33 GMT
|
370
|
Server:
|
371
|
- Apache/2.4.6 (CentOS)
|
372
|
X-Frame-Options:
|
373
|
- SAMEORIGIN
|
374
|
X-Xss-Protection:
|
375
|
- 1; mode=block
|
376
|
X-Content-Type-Options:
|
377
|
- nosniff
|
378
|
Foreman-Version:
|
379
|
- 1.14.0-develop
|
380
|
Foreman-Api-Version:
|
381
|
- '2'
|
382
|
Content-Type:
|
383
|
- application/json; charset=utf-8
|
384
|
Apipie-Checksum:
|
385
|
- 9544abef9cf8343005f07ed8c9f1f8e7
|
386
|
Etag:
|
387
|
- W/"e21f68d81962ac9e253c7f1abb1dfab4-gzip"
|
388
|
Cache-Control:
|
389
|
- max-age=0, private, must-revalidate
|
390
|
X-Request-Id:
|
391
|
- 6f388d28-22ee-4061-9c26-aca79d5a74ac
|
392
|
X-Runtime:
|
393
|
- '0.282920'
|
394
|
Via:
|
395
|
- 1.1 katello.example.com:50191
|
396
|
Vary:
|
397
|
- Accept-Encoding
|
398
|
Content-Length:
|
399
|
- '258'
|
400
|
Set-Cookie:
|
401
|
- _session_id=b6e8bc54a65e21d870af83d65fd5ac0b; path=/; HttpOnly
|
402
|
- request_method=PUT; path=/
|
403
|
body:
|
404
|
encoding: ASCII-8BIT
|
405
|
string: '{"value":60000,"description":"Log out idle users after a certain number
|
406
|
of minutes","category":"Setting::Auth","settings_type":"integer","default":60,"created_at":"2016-09-02
|
407
|
14:00:52 UTC","updated_at":"2016-09-02 14:58:40 UTC","id":78,"name":"idle_timeout"}'
|
408
|
http_version:
|
409
|
recorded_at: Fri, 09 Sep 2016 20:03:34 GMT
|
410
|
recorded_with: VCR 3.0.3
|