runcible 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/runcible/base.rb CHANGED
@@ -55,6 +55,8 @@ module Runcible
55
55
  def self.call(method, path, options={})
56
56
  path = config[:api_path] + path
57
57
 
58
+ RestClient.log = config[:logger] if config[:logger]
59
+
58
60
  headers = config[:headers]
59
61
  headers[:params] = options[:params] if options[:params]
60
62
 
@@ -1,3 +1,3 @@
1
1
  module Runcible
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -1,5 +1,4 @@
1
1
  ---
2
- recorded_with: VCR 2.2.4
3
2
  http_interactions:
4
3
  - request:
5
4
  method: post
@@ -7,29 +6,29 @@ http_interactions:
7
6
  body:
8
7
  string: "{\"login\":\"integration_test_user\"}"
9
8
  headers:
9
+ Content-Type:
10
+ - application/json
10
11
  Accept-Encoding:
11
12
  - gzip, deflate
12
- Content-Type:
13
+ Accept:
13
14
  - application/json
14
15
  Content-Length:
15
16
  - "33"
16
- Accept:
17
- - application/json
18
17
  response:
19
18
  status:
20
19
  code: 404
21
20
  message: Not Found
22
21
  headers:
23
- Server:
24
- - Apache/2.2.22 (Fedora)
25
22
  Content-Type:
26
23
  - text/html; charset=UTF-8
27
- Content-Length:
28
- - "9"
29
24
  Connection:
30
25
  - close
31
26
  Date:
32
27
  - Sun, 09 Sep 2012 04:24:17 GMT
28
+ Content-Length:
29
+ - "9"
30
+ Server:
31
+ - Apache/2.2.22 (Fedora)
33
32
  body:
34
33
  string: not found
35
34
  http_version:
@@ -40,29 +39,29 @@ http_interactions:
40
39
  body:
41
40
  string: "{\"login\":\"integration_test_user\"}"
42
41
  headers:
42
+ Content-Type:
43
+ - application/json
43
44
  Accept-Encoding:
44
45
  - gzip, deflate
45
- Content-Type:
46
+ Accept:
46
47
  - application/json
47
48
  Content-Length:
48
49
  - "33"
49
- Accept:
50
- - application/json
51
50
  response:
52
51
  status:
53
52
  code: 404
54
53
  message: Not Found
55
54
  headers:
56
- Server:
57
- - Apache/2.2.22 (Fedora)
58
55
  Content-Type:
59
56
  - text/html; charset=UTF-8
60
- Content-Length:
61
- - "9"
62
57
  Connection:
63
58
  - close
64
59
  Date:
65
60
  - Sun, 09 Sep 2012 04:24:52 GMT
61
+ Content-Length:
62
+ - "9"
63
+ Server:
64
+ - Apache/2.2.22 (Fedora)
66
65
  body:
67
66
  string: not found
68
67
  http_version:
@@ -77,25 +76,25 @@ http_interactions:
77
76
  - application/json
78
77
  Accept-Encoding:
79
78
  - gzip, deflate
80
- Content-Length:
81
- - "33"
82
79
  Accept:
83
80
  - application/json
81
+ Content-Length:
82
+ - "33"
84
83
  response:
85
84
  status:
86
85
  code: 200
87
86
  message: OK
88
87
  headers:
89
- Server:
90
- - Apache/2.2.22 (Fedora)
91
88
  Content-Type:
92
89
  - application/json
93
90
  Connection:
94
91
  - close
95
- Content-Length:
96
- - "4"
97
92
  Date:
98
93
  - Mon, 10 Sep 2012 01:18:30 GMT
94
+ Content-Length:
95
+ - "4"
96
+ Server:
97
+ - Apache/2.2.22 (Fedora)
99
98
  body:
100
99
  string: "null"
101
100
  http_version:
@@ -117,17 +116,78 @@ http_interactions:
117
116
  code: 200
118
117
  message: OK
119
118
  headers:
120
- Server:
121
- - Apache/2.2.22 (Fedora)
122
119
  Content-Type:
123
120
  - application/json
124
121
  Connection:
125
122
  - close
126
- Content-Length:
127
- - "4"
128
123
  Date:
129
124
  - Mon, 10 Sep 2012 01:18:30 GMT
125
+ Content-Length:
126
+ - "4"
127
+ Server:
128
+ - Apache/2.2.22 (Fedora)
130
129
  body:
131
130
  string: "null"
132
131
  http_version:
133
132
  recorded_at: Mon, 10 Sep 2012 01:18:30 GMT
133
+ - request:
134
+ method: post
135
+ uri: https://admin:admin@knifeparty.localdomain/pulp/api/v2/roles/super-users//users/
136
+ body:
137
+ string: "{\"login\":\"integration_test_user\"}"
138
+ headers:
139
+ Content-Type:
140
+ - application/json
141
+ Accept-Encoding:
142
+ - gzip, deflate
143
+ Accept:
144
+ - application/json
145
+ Content-Length:
146
+ - "33"
147
+ response:
148
+ status:
149
+ code: 200
150
+ message: OK
151
+ headers:
152
+ Date:
153
+ - Fri, 14 Sep 2012 12:36:06 GMT
154
+ Content-Type:
155
+ - application/json
156
+ Content-Length:
157
+ - "4"
158
+ Server:
159
+ - Apache/2.2.22 (Fedora)
160
+ body:
161
+ string: "null"
162
+ http_version:
163
+ recorded_at: Fri, 14 Sep 2012 12:36:06 GMT
164
+ - request:
165
+ method: delete
166
+ uri: https://admin:admin@knifeparty.localdomain/pulp/api/v2/roles/super-users//users/integration_test_user/
167
+ body:
168
+ string: ""
169
+ headers:
170
+ Content-Type:
171
+ - application/json
172
+ Accept-Encoding:
173
+ - gzip, deflate
174
+ Accept:
175
+ - application/json
176
+ response:
177
+ status:
178
+ code: 200
179
+ message: OK
180
+ headers:
181
+ Date:
182
+ - Fri, 14 Sep 2012 12:36:06 GMT
183
+ Content-Type:
184
+ - application/json
185
+ Content-Length:
186
+ - "4"
187
+ Server:
188
+ - Apache/2.2.22 (Fedora)
189
+ body:
190
+ string: "null"
191
+ http_version:
192
+ recorded_at: Fri, 14 Sep 2012 12:36:07 GMT
193
+ recorded_with: VCR 2.2.5
@@ -1,5 +1,4 @@
1
1
  ---
2
- recorded_with: VCR 2.2.5
3
2
  http_interactions:
4
3
  - request:
5
4
  method: delete
@@ -7,10 +6,10 @@ http_interactions:
7
6
  body:
8
7
  string: ""
9
8
  headers:
10
- Accept-Encoding:
11
- - gzip, deflate
12
9
  Content-Type:
13
10
  - application/json
11
+ Accept-Encoding:
12
+ - gzip, deflate
14
13
  Accept:
15
14
  - application/json
16
15
  response:
@@ -18,16 +17,16 @@ http_interactions:
18
17
  code: 200
19
18
  message: OK
20
19
  headers:
21
- Date:
22
- - Sun, 09 Sep 2012 00:16:36 GMT
23
- Content-Type:
24
- - application/json
25
20
  Connection:
26
21
  - close
27
- Server:
28
- - Apache/2.2.22 (Fedora)
22
+ Content-Type:
23
+ - application/json
24
+ Date:
25
+ - Sun, 09 Sep 2012 00:16:36 GMT
29
26
  Content-Length:
30
27
  - "4"
28
+ Server:
29
+ - Apache/2.2.22 (Fedora)
31
30
  body:
32
31
  string: "null"
33
32
  http_version:
@@ -38,10 +37,10 @@ http_interactions:
38
37
  body:
39
38
  string: ""
40
39
  headers:
41
- Accept-Encoding:
42
- - gzip, deflate
43
40
  Content-Type:
44
41
  - application/json
42
+ Accept-Encoding:
43
+ - gzip, deflate
45
44
  Accept:
46
45
  - application/json
47
46
  response:
@@ -49,16 +48,16 @@ http_interactions:
49
48
  code: 404
50
49
  message: Not Found
51
50
  headers:
52
- Date:
53
- - Sun, 09 Sep 2012 04:31:41 GMT
54
- Content-Type:
55
- - text/html; charset=UTF-8
56
51
  Connection:
57
52
  - close
58
- Server:
59
- - Apache/2.2.22 (Fedora)
53
+ Content-Type:
54
+ - text/html; charset=UTF-8
55
+ Date:
56
+ - Sun, 09 Sep 2012 04:31:41 GMT
60
57
  Content-Length:
61
58
  - "9"
59
+ Server:
60
+ - Apache/2.2.22 (Fedora)
62
61
  body:
63
62
  string: not found
64
63
  http_version:
@@ -69,10 +68,10 @@ http_interactions:
69
68
  body:
70
69
  string: ""
71
70
  headers:
72
- Accept-Encoding:
73
- - gzip, deflate
74
71
  Content-Type:
75
72
  - application/json
73
+ Accept-Encoding:
74
+ - gzip, deflate
76
75
  Accept:
77
76
  - application/json
78
77
  response:
@@ -80,16 +79,16 @@ http_interactions:
80
79
  code: 404
81
80
  message: Not Found
82
81
  headers:
83
- Date:
84
- - Sun, 09 Sep 2012 04:32:39 GMT
85
- Content-Type:
86
- - text/html; charset=UTF-8
87
82
  Connection:
88
83
  - close
89
- Server:
90
- - Apache/2.2.22 (Fedora)
84
+ Content-Type:
85
+ - text/html; charset=UTF-8
86
+ Date:
87
+ - Sun, 09 Sep 2012 04:32:39 GMT
91
88
  Content-Length:
92
89
  - "9"
90
+ Server:
91
+ - Apache/2.2.22 (Fedora)
93
92
  body:
94
93
  string: not found
95
94
  http_version:
@@ -100,10 +99,10 @@ http_interactions:
100
99
  body:
101
100
  string: ""
102
101
  headers:
103
- Accept-Encoding:
104
- - gzip, deflate
105
102
  Content-Type:
106
103
  - application/json
104
+ Accept-Encoding:
105
+ - gzip, deflate
107
106
  Accept:
108
107
  - application/json
109
108
  response:
@@ -111,16 +110,16 @@ http_interactions:
111
110
  code: 404
112
111
  message: Not Found
113
112
  headers:
114
- Date:
115
- - Sun, 09 Sep 2012 04:33:46 GMT
116
- Content-Type:
117
- - text/html; charset=UTF-8
118
113
  Connection:
119
114
  - close
120
- Server:
121
- - Apache/2.2.22 (Fedora)
115
+ Content-Type:
116
+ - text/html; charset=UTF-8
117
+ Date:
118
+ - Sun, 09 Sep 2012 04:33:46 GMT
122
119
  Content-Length:
123
120
  - "9"
121
+ Server:
122
+ - Apache/2.2.22 (Fedora)
124
123
  body:
125
124
  string: not found
126
125
  http_version:
@@ -131,10 +130,10 @@ http_interactions:
131
130
  body:
132
131
  string: "{\"password\":\"integration_test_user\",\"login\":\"integration_test_user\",\"name\":\"integration_test_password\"}"
133
132
  headers:
134
- Accept-Encoding:
135
- - gzip, deflate
136
133
  Content-Type:
137
134
  - application/json
135
+ Accept-Encoding:
136
+ - gzip, deflate
138
137
  Accept:
139
138
  - application/json
140
139
  Content-Length:
@@ -144,16 +143,16 @@ http_interactions:
144
143
  code: 404
145
144
  message: Not Found
146
145
  headers:
147
- Date:
148
- - Sun, 09 Sep 2012 04:33:46 GMT
149
- Content-Type:
150
- - text/html; charset=UTF-8
151
146
  Connection:
152
147
  - close
153
- Server:
154
- - Apache/2.2.22 (Fedora)
148
+ Content-Type:
149
+ - text/html; charset=UTF-8
150
+ Date:
151
+ - Sun, 09 Sep 2012 04:33:46 GMT
155
152
  Content-Length:
156
153
  - "9"
154
+ Server:
155
+ - Apache/2.2.22 (Fedora)
157
156
  body:
158
157
  string: not found
159
158
  http_version:
@@ -164,10 +163,10 @@ http_interactions:
164
163
  body:
165
164
  string: ""
166
165
  headers:
167
- Accept-Encoding:
168
- - gzip, deflate
169
166
  Content-Type:
170
167
  - application/json
168
+ Accept-Encoding:
169
+ - gzip, deflate
171
170
  Accept:
172
171
  - application/json
173
172
  response:
@@ -175,16 +174,16 @@ http_interactions:
175
174
  code: 200
176
175
  message: OK
177
176
  headers:
178
- Date:
179
- - Sun, 09 Sep 2012 10:52:52 GMT
180
- Content-Type:
181
- - application/json
182
177
  Connection:
183
178
  - close
184
- Server:
185
- - Apache/2.2.22 (Fedora)
179
+ Content-Type:
180
+ - application/json
181
+ Date:
182
+ - Sun, 09 Sep 2012 10:52:52 GMT
186
183
  Content-Length:
187
184
  - "267"
185
+ Server:
186
+ - Apache/2.2.22 (Fedora)
188
187
  body:
189
188
  string: "{\"_id\": {\"$oid\": \"5048f6c5ec6a6d6734000008\"}, \"name\": \"admin\", \"roles\": [\"super-users\"], \"_ns\": \"users\", \"login\": \"admin\", \"password\": \"VVz8lz2wFGM=,TKtfpt6HEXaxzEGRaDeJm5Zo7UsCdf9d26QVyiKKnb4=\", \"id\": \"5048f6c5ec6a6d6734000008\", \"_href\": \"/pulp/api/v2/users/admin/\"}"
190
189
  http_version:
@@ -195,10 +194,10 @@ http_interactions:
195
194
  body:
196
195
  string: ""
197
196
  headers:
198
- Accept-Encoding:
199
- - gzip, deflate
200
197
  Content-Type:
201
198
  - application/json
199
+ Accept-Encoding:
200
+ - gzip, deflate
202
201
  Accept:
203
202
  - application/json
204
203
  response:
@@ -206,14 +205,14 @@ http_interactions:
206
205
  code: 200
207
206
  message: OK
208
207
  headers:
209
- Date:
210
- - Thu, 13 Sep 2012 21:19:38 GMT
211
208
  Content-Type:
212
209
  - application/json
213
- Server:
214
- - Apache/2.2.22 (Fedora)
210
+ Date:
211
+ - Thu, 13 Sep 2012 21:19:38 GMT
215
212
  Content-Length:
216
213
  - "4"
214
+ Server:
215
+ - Apache/2.2.22 (Fedora)
217
216
  body:
218
217
  string: "null"
219
218
  http_version:
@@ -224,10 +223,10 @@ http_interactions:
224
223
  body:
225
224
  string: ""
226
225
  headers:
227
- Accept-Encoding:
228
- - gzip, deflate
229
226
  Content-Type:
230
227
  - application/json
228
+ Accept-Encoding:
229
+ - gzip, deflate
231
230
  Accept:
232
231
  - application/json
233
232
  response:
@@ -235,14 +234,14 @@ http_interactions:
235
234
  code: 200
236
235
  message: OK
237
236
  headers:
238
- Date:
239
- - Thu, 13 Sep 2012 21:19:40 GMT
240
237
  Content-Type:
241
238
  - application/json
242
- Server:
243
- - Apache/2.2.22 (Fedora)
239
+ Date:
240
+ - Thu, 13 Sep 2012 21:19:40 GMT
244
241
  Content-Length:
245
242
  - "247"
243
+ Server:
244
+ - Apache/2.2.22 (Fedora)
246
245
  body:
247
246
  string: "{\"_id\": {\"$oid\": \"50524decdc792114e700002a\"}, \"name\": \"integration_test_user\", \"roles\": [], \"_ns\": \"users\", \"login\": \"integration_test_user\", \"password\": null, \"id\": \"50524decdc792114e700002a\", \"_href\": \"/pulp/api/v2/users/integration_test_user/\"}"
248
247
  http_version:
@@ -253,10 +252,10 @@ http_interactions:
253
252
  body:
254
253
  string: "{\"password\":\"integration_test_password\",\"login\":\"integration_test_user\",\"name\":\"integration_test_user\"}"
255
254
  headers:
256
- Accept-Encoding:
257
- - gzip, deflate
258
255
  Content-Type:
259
256
  - application/json
257
+ Accept-Encoding:
258
+ - gzip, deflate
260
259
  Accept:
261
260
  - application/json
262
261
  Content-Length:
@@ -266,16 +265,16 @@ http_interactions:
266
265
  code: 201
267
266
  message: Created
268
267
  headers:
269
- Date:
270
- - Thu, 13 Sep 2012 21:19:41 GMT
271
268
  Content-Type:
272
269
  - application/json
273
- Server:
274
- - Apache/2.2.22 (Fedora)
270
+ Date:
271
+ - Thu, 13 Sep 2012 21:19:41 GMT
275
272
  Location:
276
273
  - integration_test_user
277
274
  Content-Length:
278
275
  - "229"
276
+ Server:
277
+ - Apache/2.2.22 (Fedora)
279
278
  body:
280
279
  string: "{\"_id\": {\"$oid\": \"50524deedc792114e7000041\"}, \"name\": \"integration_test_user\", \"roles\": [], \"_ns\": \"users\", \"login\": \"integration_test_user\", \"id\": \"50524deedc792114e7000041\", \"_href\": \"/pulp/api/v2/users/integration_test_user/\"}"
281
280
  http_version:
@@ -286,14 +285,14 @@ http_interactions:
286
285
  body:
287
286
  string: "{\"password\":\"integration_test_password\",\"login\":\"integration_test_user\",\"name\":\"integration_test_user\"}"
288
287
  headers:
289
- Authorization:
290
- - OAuth oauth_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_consumer_key="katello", oauth_nonce="uEdiZ5ik2FlxbjLpkF99lrlpNyi2OORNiLflX0MxY", oauth_signature="wLHkSByoJx2Xuue9OhxJE8xXZDM%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1347571252", oauth_version="1.0"
291
- Accept-Encoding:
292
- - gzip, deflate
293
288
  Content-Type:
294
289
  - application/json
290
+ Accept-Encoding:
291
+ - gzip, deflate
295
292
  Accept:
296
293
  - application/json
294
+ Authorization:
295
+ - OAuth oauth_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_consumer_key="katello", oauth_nonce="uEdiZ5ik2FlxbjLpkF99lrlpNyi2OORNiLflX0MxY", oauth_signature="wLHkSByoJx2Xuue9OhxJE8xXZDM%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1347571252", oauth_version="1.0"
297
296
  Content-Length:
298
297
  - "103"
299
298
  response:
@@ -301,14 +300,14 @@ http_interactions:
301
300
  code: 401
302
301
  message: Unauthorized
303
302
  headers:
304
- Date:
305
- - Thu, 13 Sep 2012 21:20:52 GMT
306
303
  Content-Type:
307
304
  - application/json
308
- Server:
309
- - Apache/2.2.22 (Fedora)
305
+ Date:
306
+ - Thu, 13 Sep 2012 21:20:52 GMT
310
307
  Content-Length:
311
308
  - "25"
309
+ Server:
310
+ - Apache/2.2.22 (Fedora)
312
311
  body:
313
312
  string: "\"Invalid SSL Certificate\""
314
313
  http_version:
@@ -319,33 +318,33 @@ http_interactions:
319
318
  body:
320
319
  string: "{\"login\":\"integration_test_user\"}"
321
320
  headers:
322
- Pulp-User:
323
- - admin
324
- Accept-Encoding:
325
- - gzip, deflate
326
321
  Content-Type:
327
322
  - application/json
323
+ Accept-Encoding:
324
+ - gzip, deflate
328
325
  Accept:
329
326
  - application/json
330
327
  Content-Length:
331
328
  - "33"
329
+ Pulp-User:
330
+ - admin
332
331
  response:
333
332
  status:
334
333
  code: 404
335
334
  message: Not Found
336
335
  headers:
337
- Date:
338
- - Fri, 14 Sep 2012 09:33:42 GMT
339
336
  Content-Type:
340
337
  - text/html; charset=UTF-8
341
- Content-Encoding:
342
- - gzip
338
+ Date:
339
+ - Fri, 14 Sep 2012 09:33:42 GMT
340
+ Content-Length:
341
+ - "29"
343
342
  Vary:
344
343
  - Accept-Encoding
344
+ Content-Encoding:
345
+ - gzip
345
346
  Server:
346
347
  - Apache/2.2.22 (Fedora)
347
- Content-Length:
348
- - "29"
349
348
  body:
350
349
  string: !binary |
351
350
  H4sIAAAAAAAAA8vLL1FIyy/NSwEA6iFE8gkAAAA=
@@ -358,33 +357,33 @@ http_interactions:
358
357
  body:
359
358
  string: "{\"password\":\"integration_test_password\",\"login\":\"integration_test_user\",\"name\":\"integration_test_user\"}"
360
359
  headers:
361
- Pulp-User:
362
- - admin
363
- Accept-Encoding:
364
- - gzip, deflate
365
360
  Content-Type:
366
361
  - application/json
362
+ Accept-Encoding:
363
+ - gzip, deflate
367
364
  Accept:
368
365
  - application/json
369
366
  Content-Length:
370
367
  - "103"
368
+ Pulp-User:
369
+ - admin
371
370
  response:
372
371
  status:
373
372
  code: 404
374
373
  message: Not Found
375
374
  headers:
376
- Date:
377
- - Fri, 14 Sep 2012 09:44:37 GMT
378
375
  Content-Type:
379
376
  - text/html; charset=UTF-8
380
- Content-Encoding:
381
- - gzip
377
+ Date:
378
+ - Fri, 14 Sep 2012 09:44:37 GMT
379
+ Content-Length:
380
+ - "29"
382
381
  Vary:
383
382
  - Accept-Encoding
383
+ Content-Encoding:
384
+ - gzip
384
385
  Server:
385
386
  - Apache/2.2.22 (Fedora)
386
- Content-Length:
387
- - "29"
388
387
  body:
389
388
  string: !binary |
390
389
  H4sIAAAAAAAAA8vLL1FIyy/NSwEA6iFE8gkAAAA=
@@ -397,33 +396,33 @@ http_interactions:
397
396
  body:
398
397
  string: "{\"password\":\"integration_test_password\",\"name\":\"integration_test_user\",\"login\":\"integration_test_user\"}"
399
398
  headers:
400
- Pulp-User:
401
- - admin
402
- Accept-Encoding:
403
- - gzip, deflate
404
399
  Content-Type:
405
400
  - application/json
401
+ Accept-Encoding:
402
+ - gzip, deflate
406
403
  Accept:
407
404
  - application/json
408
405
  Content-Length:
409
406
  - "103"
407
+ Pulp-User:
408
+ - admin
410
409
  response:
411
410
  status:
412
411
  code: 404
413
412
  message: Not Found
414
413
  headers:
415
- Date:
416
- - Fri, 14 Sep 2012 09:58:13 GMT
417
414
  Content-Type:
418
415
  - text/html; charset=iso-8859-1
419
- Content-Encoding:
420
- - gzip
416
+ Date:
417
+ - Fri, 14 Sep 2012 09:58:13 GMT
418
+ Content-Length:
419
+ - "239"
421
420
  Vary:
422
421
  - Accept-Encoding
422
+ Content-Encoding:
423
+ - gzip
423
424
  Server:
424
425
  - Apache/2.2.22 (Fedora)
425
- Content-Length:
426
- - "239"
427
426
  body:
428
427
  string: !binary |
429
428
  H4sIAAAAAAAAA01PTU/DMAy991eYneBAPUqPViRYWzGpjAqyA8eweEpFl5Qk
@@ -441,138 +440,146 @@ http_interactions:
441
440
  body:
442
441
  string: "{\"login\":\"integration_test_user\"}"
443
442
  headers:
444
- Pulp-User:
445
- - admin
446
- Accept-Encoding:
447
- - gzip, deflate
448
443
  Content-Type:
449
444
  - application/json
445
+ Accept-Encoding:
446
+ - gzip, deflate
450
447
  Accept:
451
448
  - application/json
452
449
  Content-Length:
453
450
  - "33"
451
+ Pulp-User:
452
+ - admin
454
453
  response:
455
454
  status:
456
455
  code: 401
457
456
  message: Unauthorized
458
457
  headers:
459
- Date:
460
- - Fri, 14 Sep 2012 10:03:04 GMT
461
458
  Content-Type:
462
459
  - application/json
463
- Server:
464
- - Apache/2.2.22 (Fedora)
460
+ Date:
461
+ - Fri, 14 Sep 2012 10:03:04 GMT
465
462
  Content-Length:
466
463
  - "30"
464
+ Server:
465
+ - Apache/2.2.22 (Fedora)
467
466
  body:
468
467
  string: "\"Invalid username or password\""
469
468
  http_version:
470
469
  recorded_at: Fri, 14 Sep 2012 10:03:04 GMT
471
470
  - request:
472
- method: delete
473
- uri: https://admin:admin@knifeparty.localdomain/pulp/api/v2/users/integration_test_user/
471
+ method: get
472
+ uri: https://knifeparty.localdomain/pulp/api/v2/users/integration_test_user/
474
473
  body:
475
474
  string: ""
476
475
  headers:
477
- Accept-Encoding:
478
- - gzip, deflate
479
476
  Content-Type:
480
477
  - application/json
478
+ Accept-Encoding:
479
+ - gzip, deflate
481
480
  Accept:
482
481
  - application/json
482
+ Authorization:
483
+ - OAuth oauth_consumer_key="katello", oauth_nonce="OiaNeoYoQDQWZMg9tMVADRw0qaDhtzxhoIzmaEwk", oauth_signature="gGYpabO%2FPiVx4F3daCpo7FEprIM%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1347618864", oauth_version="1.0"
484
+ Pulp-User:
485
+ - admin
483
486
  response:
484
487
  status:
485
488
  code: 200
486
489
  message: OK
487
490
  headers:
488
- Date:
489
- - Fri, 14 Sep 2012 10:34:04 GMT
490
491
  Content-Type:
491
492
  - application/json
493
+ Date:
494
+ - Fri, 14 Sep 2012 10:34:24 GMT
495
+ Content-Length:
496
+ - "247"
492
497
  Server:
493
498
  - Apache/2.2.22 (Fedora)
494
- Content-Length:
495
- - "4"
496
499
  body:
497
- string: "null"
500
+ string: "{\"_id\": {\"$oid\": \"50530830dc792114e700059a\"}, \"name\": \"integration_test_user\", \"roles\": [], \"_ns\": \"users\", \"login\": \"integration_test_user\", \"password\": null, \"id\": \"50530830dc792114e700059a\", \"_href\": \"/pulp/api/v2/users/integration_test_user/\"}"
498
501
  http_version:
499
- recorded_at: Fri, 14 Sep 2012 10:34:04 GMT
502
+ recorded_at: Fri, 14 Sep 2012 10:34:24 GMT
500
503
  - request:
501
- method: get
502
- uri: https://admin:admin@knifeparty.localdomain/pulp/api/v2/users/integration_test_user/
504
+ method: delete
505
+ uri: https://knifeparty.localdomain/pulp/api/v2/users/integration_test_user/
503
506
  body:
504
507
  string: ""
505
508
  headers:
506
- Accept-Encoding:
507
- - gzip, deflate
508
509
  Content-Type:
509
510
  - application/json
511
+ Accept-Encoding:
512
+ - gzip, deflate
510
513
  Accept:
511
514
  - application/json
515
+ Authorization:
516
+ - OAuth oauth_consumer_key="katello", oauth_nonce="rY1S66BAm9QNdysC00wWyMFZBpOaw13Bzxh3IW9aFU", oauth_signature="fpMqoMloGB8QSvfzv1KrrspunUs%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1347618865", oauth_version="1.0"
517
+ Pulp-User:
518
+ - admin
512
519
  response:
513
520
  status:
514
521
  code: 200
515
522
  message: OK
516
523
  headers:
517
- Date:
518
- - Fri, 14 Sep 2012 10:34:05 GMT
519
524
  Content-Type:
520
525
  - application/json
526
+ Date:
527
+ - Fri, 14 Sep 2012 10:34:25 GMT
528
+ Content-Length:
529
+ - "4"
521
530
  Server:
522
531
  - Apache/2.2.22 (Fedora)
523
- Content-Length:
524
- - "247"
525
532
  body:
526
- string: "{\"_id\": {\"$oid\": \"5053081ddc792114e700054c\"}, \"name\": \"integration_test_user\", \"roles\": [], \"_ns\": \"users\", \"login\": \"integration_test_user\", \"password\": null, \"id\": \"5053081ddc792114e700054c\", \"_href\": \"/pulp/api/v2/users/integration_test_user/\"}"
533
+ string: "null"
527
534
  http_version:
528
- recorded_at: Fri, 14 Sep 2012 10:34:05 GMT
535
+ recorded_at: Fri, 14 Sep 2012 10:34:25 GMT
529
536
  - request:
530
537
  method: post
531
- uri: https://admin:admin@knifeparty.localdomain/pulp/api/v2/users/
538
+ uri: https://knifeparty.localdomain/pulp/api/v2/users/
532
539
  body:
533
540
  string: "{\"password\":\"integration_test_password\",\"login\":\"integration_test_user\",\"name\":\"integration_test_user\"}"
534
541
  headers:
535
- Accept-Encoding:
536
- - gzip, deflate
537
542
  Content-Type:
538
543
  - application/json
544
+ Accept-Encoding:
545
+ - gzip, deflate
539
546
  Accept:
540
547
  - application/json
548
+ Authorization:
549
+ - OAuth oauth_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_consumer_key="katello", oauth_nonce="PoRfUkYNlgf4bOCQ5KN9mk3WwoB5IgeKTpgHEHmWV04", oauth_signature="6f%2BYu8wORab4%2FRc9MQmxhaB9B4g%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1347618866", oauth_version="1.0"
541
550
  Content-Length:
542
551
  - "103"
552
+ Pulp-User:
553
+ - admin
543
554
  response:
544
555
  status:
545
556
  code: 201
546
557
  message: Created
547
558
  headers:
548
- Date:
549
- - Fri, 14 Sep 2012 10:34:08 GMT
550
559
  Content-Type:
551
560
  - application/json
552
- Server:
553
- - Apache/2.2.22 (Fedora)
561
+ Date:
562
+ - Fri, 14 Sep 2012 10:34:26 GMT
554
563
  Location:
555
564
  - integration_test_user
556
565
  Content-Length:
557
566
  - "229"
567
+ Server:
568
+ - Apache/2.2.22 (Fedora)
558
569
  body:
559
- string: "{\"_id\": {\"$oid\": \"50530820dc792114e7000579\"}, \"name\": \"integration_test_user\", \"roles\": [], \"_ns\": \"users\", \"login\": \"integration_test_user\", \"id\": \"50530820dc792114e7000579\", \"_href\": \"/pulp/api/v2/users/integration_test_user/\"}"
570
+ string: "{\"_id\": {\"$oid\": \"50530832dc792114e70005bb\"}, \"name\": \"integration_test_user\", \"roles\": [], \"_ns\": \"users\", \"login\": \"integration_test_user\", \"id\": \"50530832dc792114e70005bb\", \"_href\": \"/pulp/api/v2/users/integration_test_user/\"}"
560
571
  http_version:
561
- recorded_at: Fri, 14 Sep 2012 10:34:08 GMT
572
+ recorded_at: Fri, 14 Sep 2012 10:34:26 GMT
562
573
  - request:
563
574
  method: get
564
- uri: https://knifeparty.localdomain/pulp/api/v2/users/integration_test_user/
575
+ uri: https://admin:admin@knifeparty.localdomain/pulp/api/v2/users/integration_test_user/
565
576
  body:
566
577
  string: ""
567
578
  headers:
568
- Authorization:
569
- - OAuth oauth_consumer_key="katello", oauth_nonce="OiaNeoYoQDQWZMg9tMVADRw0qaDhtzxhoIzmaEwk", oauth_signature="gGYpabO%2FPiVx4F3daCpo7FEprIM%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1347618864", oauth_version="1.0"
570
- Pulp-User:
571
- - admin
572
- Accept-Encoding:
573
- - gzip, deflate
574
579
  Content-Type:
575
580
  - application/json
581
+ Accept-Encoding:
582
+ - gzip, deflate
576
583
  Accept:
577
584
  - application/json
578
585
  response:
@@ -583,82 +590,75 @@ http_interactions:
583
590
  Content-Type:
584
591
  - application/json
585
592
  Date:
586
- - Fri, 14 Sep 2012 10:34:24 GMT
587
- Server:
588
- - Apache/2.2.22 (Fedora)
593
+ - Fri, 14 Sep 2012 12:35:56 GMT
589
594
  Content-Length:
590
595
  - "247"
596
+ Server:
597
+ - Apache/2.2.22 (Fedora)
591
598
  body:
592
- string: "{\"_id\": {\"$oid\": \"50530830dc792114e700059a\"}, \"name\": \"integration_test_user\", \"roles\": [], \"_ns\": \"users\", \"login\": \"integration_test_user\", \"password\": null, \"id\": \"50530830dc792114e700059a\", \"_href\": \"/pulp/api/v2/users/integration_test_user/\"}"
599
+ string: "{\"_id\": {\"$oid\": \"505324acdc792114e700065e\"}, \"name\": \"integration_test_user\", \"roles\": [], \"_ns\": \"users\", \"login\": \"integration_test_user\", \"password\": null, \"id\": \"505324acdc792114e700065e\", \"_href\": \"/pulp/api/v2/users/integration_test_user/\"}"
593
600
  http_version:
594
- recorded_at: Fri, 14 Sep 2012 10:34:24 GMT
601
+ recorded_at: Fri, 14 Sep 2012 12:35:56 GMT
595
602
  - request:
596
- method: delete
597
- uri: https://knifeparty.localdomain/pulp/api/v2/users/integration_test_user/
603
+ method: post
604
+ uri: https://admin:admin@knifeparty.localdomain/pulp/api/v2/users/
598
605
  body:
599
- string: ""
606
+ string: "{\"login\":\"integration_test_user\"}"
600
607
  headers:
601
- Authorization:
602
- - OAuth oauth_consumer_key="katello", oauth_nonce="rY1S66BAm9QNdysC00wWyMFZBpOaw13Bzxh3IW9aFU", oauth_signature="fpMqoMloGB8QSvfzv1KrrspunUs%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1347618865", oauth_version="1.0"
603
- Pulp-User:
604
- - admin
605
- Accept-Encoding:
606
- - gzip, deflate
607
608
  Content-Type:
608
609
  - application/json
610
+ Accept-Encoding:
611
+ - gzip, deflate
609
612
  Accept:
610
613
  - application/json
614
+ Content-Length:
615
+ - "33"
611
616
  response:
612
617
  status:
613
- code: 200
614
- message: OK
618
+ code: 201
619
+ message: Created
615
620
  headers:
621
+ Date:
622
+ - Fri, 14 Sep 2012 12:36:06 GMT
616
623
  Content-Type:
617
624
  - application/json
618
- Date:
619
- - Fri, 14 Sep 2012 10:34:25 GMT
625
+ Location:
626
+ - integration_test_user
627
+ Content-Length:
628
+ - "229"
620
629
  Server:
621
630
  - Apache/2.2.22 (Fedora)
622
- Content-Length:
623
- - "4"
624
631
  body:
625
- string: "null"
632
+ string: "{\"_id\": {\"$oid\": \"505324b6dc792114e70006bd\"}, \"name\": \"integration_test_user\", \"roles\": [], \"_ns\": \"users\", \"login\": \"integration_test_user\", \"id\": \"505324b6dc792114e70006bd\", \"_href\": \"/pulp/api/v2/users/integration_test_user/\"}"
626
633
  http_version:
627
- recorded_at: Fri, 14 Sep 2012 10:34:25 GMT
634
+ recorded_at: Fri, 14 Sep 2012 12:36:06 GMT
628
635
  - request:
629
- method: post
630
- uri: https://knifeparty.localdomain/pulp/api/v2/users/
636
+ method: delete
637
+ uri: https://admin:admin@knifeparty.localdomain/pulp/api/v2/users/integration_test_user/
631
638
  body:
632
- string: "{\"password\":\"integration_test_password\",\"login\":\"integration_test_user\",\"name\":\"integration_test_user\"}"
639
+ string: ""
633
640
  headers:
634
- Authorization:
635
- - OAuth oauth_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_consumer_key="katello", oauth_nonce="PoRfUkYNlgf4bOCQ5KN9mk3WwoB5IgeKTpgHEHmWV04", oauth_signature="6f%2BYu8wORab4%2FRc9MQmxhaB9B4g%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1347618866", oauth_version="1.0"
636
- Pulp-User:
637
- - admin
638
- Accept-Encoding:
639
- - gzip, deflate
640
641
  Content-Type:
641
642
  - application/json
643
+ Accept-Encoding:
644
+ - gzip, deflate
642
645
  Accept:
643
646
  - application/json
644
- Content-Length:
645
- - "103"
646
647
  response:
647
648
  status:
648
- code: 201
649
- message: Created
649
+ code: 200
650
+ message: OK
650
651
  headers:
652
+ Date:
653
+ - Fri, 14 Sep 2012 12:36:07 GMT
651
654
  Content-Type:
652
655
  - application/json
653
- Date:
654
- - Fri, 14 Sep 2012 10:34:26 GMT
656
+ Content-Length:
657
+ - "4"
655
658
  Server:
656
659
  - Apache/2.2.22 (Fedora)
657
- Location:
658
- - integration_test_user
659
- Content-Length:
660
- - "229"
661
660
  body:
662
- string: "{\"_id\": {\"$oid\": \"50530832dc792114e70005bb\"}, \"name\": \"integration_test_user\", \"roles\": [], \"_ns\": \"users\", \"login\": \"integration_test_user\", \"id\": \"50530832dc792114e70005bb\", \"_href\": \"/pulp/api/v2/users/integration_test_user/\"}"
661
+ string: "null"
663
662
  http_version:
664
- recorded_at: Fri, 14 Sep 2012 10:34:26 GMT
663
+ recorded_at: Fri, 14 Sep 2012 12:36:07 GMT
664
+ recorded_with: VCR 2.2.5