Project

General

Profile

Revision df1b6e2a

Added by Partha Aji about 5 years ago

Fixes #21661 - Retrieve All for consumers

This commit adds a couple of methods to retrieve all consumers in one
go.

View differences:

test/fixtures/vcr_cassettes/resources/consumer_requires_repo/suite.yml
1 1
---
2 2
http_interactions:
3 3
- request:
4
    method: get
5
    uri: https://admin:HeQSzZgm6ZEKG8aHrJEGW7aGD85Wrj57@runcible.example.com/pulp/api/v2/tasks/7e302471-00a1-4a5d-81d0-cf0f5b87c210/
6
    body:
7
      encoding: US-ASCII
8
      string: ''
9
    headers:
10
      Accept:
11
      - application/json
12
      Accept-Encoding:
13
      - gzip, deflate
14
      Content-Type:
15
      - application/json
16
      User-Agent:
17
      - Ruby
18
  response:
19
    status:
20
      code: 200
21
      message: OK
22
    headers:
23
      Date:
24
      - Fri, 29 Apr 2016 16:27:10 GMT
25
      Server:
26
      - Apache/2.4.6 (CentOS)
27
      Vary:
28
      - Accept-Encoding
29
      Content-Length:
30
      - '2188'
31
      Content-Type:
32
      - application/json; charset=utf-8
33
    body:
34
      encoding: ASCII-8BIT
35
      string: '{"exception": null, "task_type": "pulp.server.managers.repo.sync.sync",
36
        "_href": "/pulp/api/v2/tasks/7e302471-00a1-4a5d-81d0-cf0f5b87c210/", "task_id":
37
        "7e302471-00a1-4a5d-81d0-cf0f5b87c210", "tags": ["pulp:repository:integration_test_id",
38
        "pulp:action:sync"], "finish_time": "2016-04-29T16:27:10Z", "_ns": "task_status",
39
        "start_time": "2016-04-29T16:27:09Z", "traceback": null, "spawned_tasks":
40
        [], "progress_report": {"yum_importer": {"content": {"items_total": 0, "state":
41
        "FINISHED", "error_details": [], "details": {"rpm_total": 0, "rpm_done": 0,
42
        "drpm_total": 0, "drpm_done": 0}, "size_total": 0, "size_left": 0, "items_left":
43
        0}, "comps": {"state": "FINISHED"}, "purge_duplicates": {"state": "FINISHED"},
44
        "distribution": {"items_total": 3, "state": "FINISHED", "error_details": [],
45
        "items_left": 0}, "errata": {"state": "FINISHED"}, "metadata": {"state": "FINISHED"}}},
46
        "queue": "reserved_resource_worker-0@runcible.example.com.dq", "state": "finished",
47
        "worker_name": "reserved_resource_worker-0@runcible.example.com", "result":
48
        {"result": "success", "importer_id": "yum_importer", "exception": null, "repo_id":
49
        "integration_test_id", "traceback": null, "started": "2016-04-29T16:27:09Z",
50
        "_ns": "repo_sync_results", "completed": "2016-04-29T16:27:10Z", "importer_type_id":
51
        "yum_importer", "error_message": null, "summary": {"content": {"state": "FINISHED"},
52
        "comps": {"state": "FINISHED"}, "purge_duplicates": {"state": "FINISHED"},
53
        "distribution": {"state": "FINISHED"}, "errata": {"state": "FINISHED"}, "metadata":
54
        {"state": "FINISHED"}}, "added_count": 14, "removed_count": 0, "updated_count":
55
        0, "id": "57238b5eaca4886e0c05c3fe", "details": {"content": {"size_total":
56
        0, "items_left": 0, "items_total": 0, "state": "FINISHED", "size_left": 0,
57
        "details": {"rpm_total": 0, "rpm_done": 0, "drpm_total": 0, "drpm_done": 0},
58
        "error_details": []}, "comps": {"state": "FINISHED"}, "purge_duplicates":
59
        {"state": "FINISHED"}, "distribution": {"items_total": 3, "state": "FINISHED",
60
        "error_details": [], "items_left": 0}, "errata": {"state": "FINISHED"}, "metadata":
61
        {"state": "FINISHED"}}}, "error": null, "_id": {"$oid": "57238b5d898f5c862fa3ec10"},
62
        "id": "57238b5d898f5c862fa3ec10"}'
63
    http_version: 
64
  recorded_at: Fri, 29 Apr 2016 16:27:10 GMT
65
- request:
66
    method: get
67
    uri: https://admin:HeQSzZgm6ZEKG8aHrJEGW7aGD85Wrj57@runcible.example.com/pulp/api/v2/tasks/8bd3f973-99bc-4387-96f1-317c73701a99/
68
    body:
69
      encoding: US-ASCII
70
      string: ''
71
    headers:
72
      Accept:
73
      - application/json
74
      Accept-Encoding:
75
      - gzip, deflate
76
      Content-Type:
77
      - application/json
78
      User-Agent:
79
      - Ruby
80
  response:
81
    status:
82
      code: 200
83
      message: OK
84
    headers:
85
      Date:
86
      - Fri, 29 Apr 2016 16:27:12 GMT
87
      Server:
88
      - Apache/2.4.6 (CentOS)
89
      Vary:
90
      - Accept-Encoding
91
      Content-Length:
92
      - '684'
93
      Content-Type:
94
      - application/json; charset=utf-8
95
    body:
96
      encoding: ASCII-8BIT
97
      string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
98
        "_href": "/pulp/api/v2/tasks/8bd3f973-99bc-4387-96f1-317c73701a99/", "task_id":
99
        "8bd3f973-99bc-4387-96f1-317c73701a99", "tags": ["pulp:repository:integration_test_id",
100
        "pulp:action:delete"], "finish_time": "2016-04-29T16:27:12Z", "_ns": "task_status",
101
        "start_time": "2016-04-29T16:27:12Z", "traceback": null, "spawned_tasks":
102
        [], "progress_report": {}, "queue": "reserved_resource_worker-0@runcible.example.com.dq",
103
        "state": "finished", "worker_name": "reserved_resource_worker-0@runcible.example.com",
104
        "result": null, "error": null, "_id": {"$oid": "57238b60898f5c862fa3ec20"},
105
        "id": "57238b60898f5c862fa3ec20"}'
106
    http_version: 
107
  recorded_at: Fri, 29 Apr 2016 16:27:12 GMT
108
- request:
4 109
    method: post
5
    uri: https://admin:HeQSzZgm6ZEKG8aHrJEGW7aGD85Wrj57@runcible.example.com/pulp/api/v2/consumers/
110
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/consumers/
6 111
    body:
7 112
      encoding: UTF-8
8 113
      string: '{"id":"integration_test_consumer_support"}'
......
11 116
      - application/json
12 117
      Accept-Encoding:
13 118
      - gzip, deflate
119
      User-Agent:
120
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
14 121
      Content-Type:
15 122
      - application/json
16 123
      Content-Length:
17 124
      - '42'
18
      User-Agent:
19
      - Ruby
125
      Host:
126
      - obelix.example.com
20 127
  response:
21 128
    status:
22 129
      code: 201
23 130
      message: CREATED
24 131
    headers:
25 132
      Date:
26
      - Fri, 29 Apr 2016 16:27:08 GMT
133
      - Tue, 14 Nov 2017 20:18:49 GMT
27 134
      Server:
28 135
      - Apache/2.4.6 (CentOS)
29 136
      Content-Length:
30
      - '2513'
137
      - '2537'
31 138
      Location:
32
      - https://runcible.example.com/pulp/api/v2/consumers/integration_test_consumer_support/
139
      - https://obelix.example.com/pulp/api/v2/consumers/integration_test_consumer_support/
140
      Connection:
141
      - close
33 142
      Content-Type:
34 143
      - application/json; charset=utf-8
35 144
    body:
36 145
      encoding: UTF-8
37 146
      string: '{"consumer": {"display_name": "integration_test_consumer_support",
38 147
        "description": null, "_ns": "consumers", "notes": {}, "rsa_pub": null, "capabilities":
39
        {}, "_id": {"$oid": "57238b5caca4886d952eeaf4"}, "id": "integration_test_consumer_support",
148
        {}, "_id": {"$oid": "5a0b4fa970be6f049d38d85b"}, "id": "integration_test_consumer_support",
40 149
        "_href": "/pulp/api/v2/consumers/integration_test_consumer_support/"}, "certificate":
41
        "-----BEGIN RSA PRIVATE KEY-----\nMIICXQIBAAKBgQD5l/phQOWJ10TZl7/Es4Mk6Gck1NutnVi8Zu4mQG90LkhAwPaz\naUH92C31PttsroKPdhjpcIcYOqnZlAHp0kOFUV80Rk4YXaSmk1DV40T6LDlxQYew\nO6IFTV1/HiUEtdlDEfWq5rqGrC6+P8iNUzvK4IT3RtEhUcwbN+GaIeLCgwIDAQAB\nAoGAZxsaKozFhdCwt3aRmK9TcK601Sk9apYCbynSHWkm4YaxAFb2Up0bzsI8EgCa\nYmYgtyThG6YJmL+7JI+Yzr+2dg6QUC0LQMBH2xgNZRhai6Uq7PCLMsiPT/0lqm8u\nwOGhJC2skHMjxRJt7NUON/c4tn2ZAqwPdeiy0JBfNFWVf+kCQQD/0D4/uwv+WE0W\nd4gMjS6Ef8GQ62ZLCXAyrdYDVGAEcB9B7VIn2peYAaWwWxMr5M+AInEIwctmDdhU\nZoD+EYutAkEA+caS4IUONgu5azfouqC5HWYYUK3Ou0XxJzpdKAEV25fkSh7QECpI\npLNNIDnAy25qmn8Fn1TnMMr8iOoOg3JM7wJBAPtdF12uIRnakFzsNU4ICFZ/5qbM\n+CXxb0MNF4cMCJEz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bO43e2NfN/ip1uCMLhx177rykH92qOEMzU0oyHCq/GL7UodQ7CGD4KSE\nMYaNkhWqTyG2vIENWKGWhW0YRJ/44CPRr4HSciRxcBRTtKR4Sd2Nw5HaQGXislhx\nGgODCFhItv4bNjPQ9Ala6SpjMLAFV02IunNCnZhVlfeAf2j+Uvxf6FTE/7DG/Ylh\n/T2xfZMiEw7uJrG0lpIZIv0SjFCtr6wuqmZLKc5CavfxxBJ/hnaYokaQGzR/1HDG\nY6j5ZqVxB5sgAoQt8LMEuRJx04Gltci82gTl9jvrwv4brN8cd9pz5kArCegHa6nl\nDzyqta1e/P4sBsJVCLtUco0SqVGqSr5X/2vT8r2E4vvKQtZs5HsEeoOeVRirtuGa\n3f33elOg/kQJv8PYuzMB0G5wDyNFloeJK9F68TxukndexGfXSA==\n-----END
43 152
        CERTIFICATE-----"}'
44 153
    http_version: 
45
  recorded_at: Fri, 29 Apr 2016 16:27:08 GMT
154
  recorded_at: Tue, 14 Nov 2017 20:18:49 GMT
46 155
- request:
47 156
    method: post
48
    uri: https://admin:HeQSzZgm6ZEKG8aHrJEGW7aGD85Wrj57@runcible.example.com/pulp/api/v2/consumers/integration_test_consumer_support/profiles//
157
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/consumers/integration_test_consumer_support/profiles//
49 158
    body:
50 159
      encoding: UTF-8
51 160
      string: '{"content_type":"rpm","profile":[{"name":"elephant","version":"0.2","release":"0.7","epoch":0,"arch":"noarch","vendor":"Fedora"}]}'
......
54 163
      - application/json
55 164
      Accept-Encoding:
56 165
      - gzip, deflate
166
      User-Agent:
167
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
57 168
      Content-Type:
58 169
      - application/json
59 170
      Content-Length:
60 171
      - '130'
61
      User-Agent:
62
      - Ruby
172
      Host:
173
      - obelix.example.com
63 174
  response:
64 175
    status:
65 176
      code: 201
66 177
      message: CREATED
67 178
    headers:
68 179
      Date:
69
      - Fri, 29 Apr 2016 16:27:08 GMT
180
      - Tue, 14 Nov 2017 20:18:49 GMT
70 181
      Server:
71 182
      - Apache/2.4.6 (CentOS)
72 183
      Content-Length:
73 184
      - '475'
74 185
      Location:
75
      - https://runcible.example.com/pulp/api/v2/consumers/integration_test_consumer_support/profiles/rpm/
186
      - https://obelix.example.com/pulp/api/v2/consumers/integration_test_consumer_support/profiles/rpm/
187
      Connection:
188
      - close
76 189
      Content-Type:
77 190
      - application/json; charset=utf-8
78 191
    body:
......
81 194
        "0.2", "release": "0.7", "arch": "noarch"}], "_href": "/pulp/api/v2/consumers/integration_test_consumer_support/profiles/rpm/",
82 195
        "_ns": "consumer_unit_profiles", "profile_hash": "db16b75e977ae3fbbf27beb919693137b26ba59eb7be73f2888197b89521e50d",
83 196
        "consumer_id": "integration_test_consumer_support", "content_type": "rpm",
84
        "_id": {"$oid": "57238b5caca4886d952eeaf6"}, "id": "57238b5caca4886d952eeaf6"}'
197
        "_id": {"$oid": "5a0b4fa970be6f049d38d85d"}, "id": "5a0b4fa970be6f049d38d85d"}'
85 198
    http_version: 
86
  recorded_at: Fri, 29 Apr 2016 16:27:08 GMT
199
  recorded_at: Tue, 14 Nov 2017 20:18:49 GMT
87 200
- request:
88 201
    method: get
89
    uri: https://admin:HeQSzZgm6ZEKG8aHrJEGW7aGD85Wrj57@runcible.example.com/pulp/api/v2/repositories/integration_test_id/
202
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/repositories/integration_test_id/
90 203
    body:
91 204
      encoding: US-ASCII
92 205
      string: ''
......
95 208
      - application/json
96 209
      Accept-Encoding:
97 210
      - gzip, deflate
211
      User-Agent:
212
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
98 213
      Content-Type:
99 214
      - application/json
100
      User-Agent:
101
      - Ruby
215
      Host:
216
      - obelix.example.com
102 217
  response:
103 218
    status:
104 219
      code: 404
105 220
      message: NOT FOUND
106 221
    headers:
107 222
      Date:
108
      - Fri, 29 Apr 2016 16:27:09 GMT
223
      - Tue, 14 Nov 2017 20:18:49 GMT
109 224
      Server:
110 225
      - Apache/2.4.6 (CentOS)
111
      Content-Encoding:
112
      - utf-8
113 226
      Content-Length:
114 227
      - '452'
228
      Connection:
229
      - close
115 230
      Content-Type:
116 231
      - application/json; charset=utf-8
117 232
    body:
......
122 237
        "integration_test_id"}}, "description": "Missing resource(s): repository=integration_test_id",
123 238
        "sub_errors": []}, "traceback": null, "resources": {"repository": "integration_test_id"}}'
124 239
    http_version: 
125
  recorded_at: Fri, 29 Apr 2016 16:27:09 GMT
240
  recorded_at: Tue, 14 Nov 2017 20:18:49 GMT
126 241
- request:
127 242
    method: post
128
    uri: https://admin:HeQSzZgm6ZEKG8aHrJEGW7aGD85Wrj57@runcible.example.com/pulp/api/v2/repositories/
243
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/repositories/
129 244
    body:
130 245
      encoding: UTF-8
131 246
      string: '{"id":"integration_test_id","importer_type_id":"yum_importer","importer_config":{"feed":"file:///var/www/repositories/zoo5"},"distributors":[{"distributor_type_id":"yum_distributor","distributor_config":{"relative_url":"path","http":true,"https":true},"auto_publish":false,"distributor_id":"yum_dist"}]}'
......
134 249
      - application/json
135 250
      Accept-Encoding:
136 251
      - gzip, deflate
252
      User-Agent:
253
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
137 254
      Content-Type:
138 255
      - application/json
139 256
      Content-Length:
140 257
      - '303'
141
      User-Agent:
142
      - Ruby
258
      Host:
259
      - obelix.example.com
143 260
  response:
144 261
    status:
145 262
      code: 201
146 263
      message: CREATED
147 264
    headers:
148 265
      Date:
149
      - Fri, 29 Apr 2016 16:27:09 GMT
266
      - Tue, 14 Nov 2017 20:18:49 GMT
150 267
      Server:
151 268
      - Apache/2.4.6 (CentOS)
152 269
      Content-Length:
153 270
      - '319'
154 271
      Location:
155
      - https://runcible.example.com/pulp/api/v2/repositories/integration_test_id/
272
      - https://obelix.example.com/pulp/api/v2/repositories/integration_test_id/
273
      Connection:
274
      - close
156 275
      Content-Type:
157 276
      - application/json; charset=utf-8
158 277
    body:
159 278
      encoding: UTF-8
160 279
      string: '{"scratchpad": {}, "display_name": "integration_test_id", "description":
161 280
        null, "last_unit_added": null, "notes": {}, "last_unit_removed": null, "content_unit_counts":
162
        {}, "_ns": "repos", "_id": {"$oid": "57238b5daca4886d952eeaf8"}, "id": "integration_test_id",
281
        {}, "_ns": "repos", "_id": {"$oid": "5a0b4fa970be6f049ee2a558"}, "id": "integration_test_id",
163 282
        "_href": "/pulp/api/v2/repositories/integration_test_id/"}'
164 283
    http_version: 
165
  recorded_at: Fri, 29 Apr 2016 16:27:09 GMT
284
  recorded_at: Tue, 14 Nov 2017 20:18:49 GMT
166 285
- request:
167 286
    method: post
168
    uri: https://admin:HeQSzZgm6ZEKG8aHrJEGW7aGD85Wrj57@runcible.example.com/pulp/api/v2/repositories/integration_test_id/actions/sync/
287
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/repositories/integration_test_id/actions/sync/
169 288
    body:
170 289
      encoding: UTF-8
171 290
      string: "{}"
......
174 293
      - application/json
175 294
      Accept-Encoding:
176 295
      - gzip, deflate
296
      User-Agent:
297
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
177 298
      Content-Type:
178 299
      - application/json
179 300
      Content-Length:
180 301
      - '2'
181
      User-Agent:
182
      - Ruby
302
      Host:
303
      - obelix.example.com
183 304
  response:
184 305
    status:
185 306
      code: 202
186 307
      message: ACCEPTED
187 308
    headers:
188 309
      Date:
189
      - Fri, 29 Apr 2016 16:27:09 GMT
310
      - Tue, 14 Nov 2017 20:18:49 GMT
190 311
      Server:
191 312
      - Apache/2.4.6 (CentOS)
192 313
      Content-Length:
193 314
      - '172'
315
      Connection:
316
      - close
194 317
      Content-Type:
195 318
      - application/json; charset=utf-8
196 319
    body:
197 320
      encoding: UTF-8
198
      string: '{"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/7e302471-00a1-4a5d-81d0-cf0f5b87c210/",
199
        "task_id": "7e302471-00a1-4a5d-81d0-cf0f5b87c210"}], "result": null, "error":
321
      string: '{"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/3c861968-98dc-4969-9fab-5e83364a4a73/",
322
        "task_id": "3c861968-98dc-4969-9fab-5e83364a4a73"}], "result": null, "error":
200 323
        null}'
201 324
    http_version: 
202
  recorded_at: Fri, 29 Apr 2016 16:27:09 GMT
325
  recorded_at: Tue, 14 Nov 2017 20:18:49 GMT
203 326
- request:
204 327
    method: get
205
    uri: https://admin:HeQSzZgm6ZEKG8aHrJEGW7aGD85Wrj57@runcible.example.com/pulp/api/v2/tasks/7e302471-00a1-4a5d-81d0-cf0f5b87c210/
328
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/tasks/3c861968-98dc-4969-9fab-5e83364a4a73/
206 329
    body:
207 330
      encoding: US-ASCII
208 331
      string: ''
......
211 334
      - application/json
212 335
      Accept-Encoding:
213 336
      - gzip, deflate
337
      User-Agent:
338
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
214 339
      Content-Type:
215 340
      - application/json
341
      Host:
342
      - obelix.example.com
343
  response:
344
    status:
345
      code: 200
346
      message: OK
347
    headers:
348
      Date:
349
      - Tue, 14 Nov 2017 20:18:50 GMT
350
      Server:
351
      - Apache/2.4.6 (CentOS)
352
      Vary:
353
      - Accept-Encoding
354
      Content-Length:
355
      - '1116'
356
      Connection:
357
      - close
358
      Content-Type:
359
      - application/json; charset=utf-8
360
    body:
361
      encoding: ASCII-8BIT
362
      string: '{"exception": null, "task_type": "pulp.server.managers.repo.sync.sync",
363
        "_href": "/pulp/api/v2/tasks/3c861968-98dc-4969-9fab-5e83364a4a73/", "task_id":
364
        "3c861968-98dc-4969-9fab-5e83364a4a73", "tags": ["pulp:repository:integration_test_id",
365
        "pulp:action:sync"], "finish_time": null, "_ns": "task_status", "start_time":
366
        "2017-11-14T20:18:49Z", "traceback": null, "spawned_tasks": [], "progress_report":
367
        {"yum_importer": {"content": {"items_total": 0, "state": "FINISHED", "error_details":
368
        [], "details": {"rpm_total": 0, "rpm_done": 0, "drpm_total": 0, "drpm_done":
369
        0}, "size_total": 0, "size_left": 0, "items_left": 0}, "comps": {"state":
370
        "FINISHED"}, "purge_duplicates": {"state": "IN_PROGRESS"}, "distribution":
371
        {"items_total": 3, "state": "FINISHED", "error_details": [], "items_left":
372
        0}, "errata": {"state": "FINISHED"}, "metadata": {"state": "FINISHED"}}},
373
        "queue": "reserved_resource_worker-1@obelix.example.com.dq", "state": "running",
374
        "worker_name": "reserved_resource_worker-1@obelix.example.com", "result":
375
        null, "error": null, "_id": {"$oid": "5a0b4fa91fbc3e9fdb584e13"}, "id": "5a0b4fa91fbc3e9fdb584e13"}'
376
    http_version: 
377
  recorded_at: Tue, 14 Nov 2017 20:18:50 GMT
378
- request:
379
    method: get
380
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/tasks/3c861968-98dc-4969-9fab-5e83364a4a73/
381
    body:
382
      encoding: US-ASCII
383
      string: ''
384
    headers:
385
      Accept:
386
      - application/json
387
      Accept-Encoding:
388
      - gzip, deflate
216 389
      User-Agent:
217
      - Ruby
390
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
391
      Content-Type:
392
      - application/json
393
      Host:
394
      - obelix.example.com
218 395
  response:
219 396
    status:
220 397
      code: 200
221 398
      message: OK
222 399
    headers:
223 400
      Date:
224
      - Fri, 29 Apr 2016 16:27:10 GMT
401
      - Tue, 14 Nov 2017 20:18:50 GMT
225 402
      Server:
226 403
      - Apache/2.4.6 (CentOS)
227 404
      Vary:
228 405
      - Accept-Encoding
229 406
      Content-Length:
230
      - '2188'
407
      - '1116'
408
      Connection:
409
      - close
231 410
      Content-Type:
232 411
      - application/json; charset=utf-8
233 412
    body:
234 413
      encoding: ASCII-8BIT
235 414
      string: '{"exception": null, "task_type": "pulp.server.managers.repo.sync.sync",
236
        "_href": "/pulp/api/v2/tasks/7e302471-00a1-4a5d-81d0-cf0f5b87c210/", "task_id":
237
        "7e302471-00a1-4a5d-81d0-cf0f5b87c210", "tags": ["pulp:repository:integration_test_id",
238
        "pulp:action:sync"], "finish_time": "2016-04-29T16:27:10Z", "_ns": "task_status",
239
        "start_time": "2016-04-29T16:27:09Z", "traceback": null, "spawned_tasks":
415
        "_href": "/pulp/api/v2/tasks/3c861968-98dc-4969-9fab-5e83364a4a73/", "task_id":
416
        "3c861968-98dc-4969-9fab-5e83364a4a73", "tags": ["pulp:repository:integration_test_id",
417
        "pulp:action:sync"], "finish_time": null, "_ns": "task_status", "start_time":
418
        "2017-11-14T20:18:49Z", "traceback": null, "spawned_tasks": [], "progress_report":
419
        {"yum_importer": {"content": {"items_total": 0, "state": "FINISHED", "error_details":
420
        [], "details": {"rpm_total": 0, "rpm_done": 0, "drpm_total": 0, "drpm_done":
421
        0}, "size_total": 0, "size_left": 0, "items_left": 0}, "comps": {"state":
422
        "FINISHED"}, "purge_duplicates": {"state": "IN_PROGRESS"}, "distribution":
423
        {"items_total": 3, "state": "FINISHED", "error_details": [], "items_left":
424
        0}, "errata": {"state": "FINISHED"}, "metadata": {"state": "FINISHED"}}},
425
        "queue": "reserved_resource_worker-1@obelix.example.com.dq", "state": "running",
426
        "worker_name": "reserved_resource_worker-1@obelix.example.com", "result":
427
        null, "error": null, "_id": {"$oid": "5a0b4fa91fbc3e9fdb584e13"}, "id": "5a0b4fa91fbc3e9fdb584e13"}'
428
    http_version: 
429
  recorded_at: Tue, 14 Nov 2017 20:18:51 GMT
430
- request:
431
    method: get
432
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/tasks/3c861968-98dc-4969-9fab-5e83364a4a73/
433
    body:
434
      encoding: US-ASCII
435
      string: ''
436
    headers:
437
      Accept:
438
      - application/json
439
      Accept-Encoding:
440
      - gzip, deflate
441
      User-Agent:
442
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
443
      Content-Type:
444
      - application/json
445
      Host:
446
      - obelix.example.com
447
  response:
448
    status:
449
      code: 200
450
      message: OK
451
    headers:
452
      Date:
453
      - Tue, 14 Nov 2017 20:18:51 GMT
454
      Server:
455
      - Apache/2.4.6 (CentOS)
456
      Vary:
457
      - Accept-Encoding
458
      Content-Length:
459
      - '1116'
460
      Connection:
461
      - close
462
      Content-Type:
463
      - application/json; charset=utf-8
464
    body:
465
      encoding: ASCII-8BIT
466
      string: '{"exception": null, "task_type": "pulp.server.managers.repo.sync.sync",
467
        "_href": "/pulp/api/v2/tasks/3c861968-98dc-4969-9fab-5e83364a4a73/", "task_id":
468
        "3c861968-98dc-4969-9fab-5e83364a4a73", "tags": ["pulp:repository:integration_test_id",
469
        "pulp:action:sync"], "finish_time": null, "_ns": "task_status", "start_time":
470
        "2017-11-14T20:18:49Z", "traceback": null, "spawned_tasks": [], "progress_report":
471
        {"yum_importer": {"content": {"items_total": 0, "state": "FINISHED", "error_details":
472
        [], "details": {"rpm_total": 0, "rpm_done": 0, "drpm_total": 0, "drpm_done":
473
        0}, "size_total": 0, "size_left": 0, "items_left": 0}, "comps": {"state":
474
        "FINISHED"}, "purge_duplicates": {"state": "IN_PROGRESS"}, "distribution":
475
        {"items_total": 3, "state": "FINISHED", "error_details": [], "items_left":
476
        0}, "errata": {"state": "FINISHED"}, "metadata": {"state": "FINISHED"}}},
477
        "queue": "reserved_resource_worker-1@obelix.example.com.dq", "state": "running",
478
        "worker_name": "reserved_resource_worker-1@obelix.example.com", "result":
479
        null, "error": null, "_id": {"$oid": "5a0b4fa91fbc3e9fdb584e13"}, "id": "5a0b4fa91fbc3e9fdb584e13"}'
480
    http_version: 
481
  recorded_at: Tue, 14 Nov 2017 20:18:51 GMT
482
- request:
483
    method: get
484
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/tasks/3c861968-98dc-4969-9fab-5e83364a4a73/
485
    body:
486
      encoding: US-ASCII
487
      string: ''
488
    headers:
489
      Accept:
490
      - application/json
491
      Accept-Encoding:
492
      - gzip, deflate
493
      User-Agent:
494
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
495
      Content-Type:
496
      - application/json
497
      Host:
498
      - obelix.example.com
499
  response:
500
    status:
501
      code: 200
502
      message: OK
503
    headers:
504
      Date:
505
      - Tue, 14 Nov 2017 20:18:52 GMT
506
      Server:
507
      - Apache/2.4.6 (CentOS)
508
      Vary:
509
      - Accept-Encoding
510
      Content-Length:
511
      - '1116'
512
      Connection:
513
      - close
514
      Content-Type:
515
      - application/json; charset=utf-8
516
    body:
517
      encoding: ASCII-8BIT
518
      string: '{"exception": null, "task_type": "pulp.server.managers.repo.sync.sync",
519
        "_href": "/pulp/api/v2/tasks/3c861968-98dc-4969-9fab-5e83364a4a73/", "task_id":
520
        "3c861968-98dc-4969-9fab-5e83364a4a73", "tags": ["pulp:repository:integration_test_id",
521
        "pulp:action:sync"], "finish_time": null, "_ns": "task_status", "start_time":
522
        "2017-11-14T20:18:49Z", "traceback": null, "spawned_tasks": [], "progress_report":
523
        {"yum_importer": {"content": {"items_total": 0, "state": "FINISHED", "error_details":
524
        [], "details": {"rpm_total": 0, "rpm_done": 0, "drpm_total": 0, "drpm_done":
525
        0}, "size_total": 0, "size_left": 0, "items_left": 0}, "comps": {"state":
526
        "FINISHED"}, "purge_duplicates": {"state": "IN_PROGRESS"}, "distribution":
527
        {"items_total": 3, "state": "FINISHED", "error_details": [], "items_left":
528
        0}, "errata": {"state": "FINISHED"}, "metadata": {"state": "FINISHED"}}},
529
        "queue": "reserved_resource_worker-1@obelix.example.com.dq", "state": "running",
530
        "worker_name": "reserved_resource_worker-1@obelix.example.com", "result":
531
        null, "error": null, "_id": {"$oid": "5a0b4fa91fbc3e9fdb584e13"}, "id": "5a0b4fa91fbc3e9fdb584e13"}'
532
    http_version: 
533
  recorded_at: Tue, 14 Nov 2017 20:18:52 GMT
534
- request:
535
    method: get
536
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/tasks/3c861968-98dc-4969-9fab-5e83364a4a73/
537
    body:
538
      encoding: US-ASCII
539
      string: ''
540
    headers:
541
      Accept:
542
      - application/json
543
      Accept-Encoding:
544
      - gzip, deflate
545
      User-Agent:
546
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
547
      Content-Type:
548
      - application/json
549
      Host:
550
      - obelix.example.com
551
  response:
552
    status:
553
      code: 200
554
      message: OK
555
    headers:
556
      Date:
557
      - Tue, 14 Nov 2017 20:18:52 GMT
558
      Server:
559
      - Apache/2.4.6 (CentOS)
560
      Vary:
561
      - Accept-Encoding
562
      Content-Length:
563
      - '1116'
564
      Connection:
565
      - close
566
      Content-Type:
567
      - application/json; charset=utf-8
568
    body:
569
      encoding: ASCII-8BIT
570
      string: '{"exception": null, "task_type": "pulp.server.managers.repo.sync.sync",
571
        "_href": "/pulp/api/v2/tasks/3c861968-98dc-4969-9fab-5e83364a4a73/", "task_id":
572
        "3c861968-98dc-4969-9fab-5e83364a4a73", "tags": ["pulp:repository:integration_test_id",
573
        "pulp:action:sync"], "finish_time": null, "_ns": "task_status", "start_time":
574
        "2017-11-14T20:18:49Z", "traceback": null, "spawned_tasks": [], "progress_report":
575
        {"yum_importer": {"content": {"items_total": 0, "state": "FINISHED", "error_details":
576
        [], "details": {"rpm_total": 0, "rpm_done": 0, "drpm_total": 0, "drpm_done":
577
        0}, "size_total": 0, "size_left": 0, "items_left": 0}, "comps": {"state":
578
        "FINISHED"}, "purge_duplicates": {"state": "IN_PROGRESS"}, "distribution":
579
        {"items_total": 3, "state": "FINISHED", "error_details": [], "items_left":
580
        0}, "errata": {"state": "FINISHED"}, "metadata": {"state": "FINISHED"}}},
581
        "queue": "reserved_resource_worker-1@obelix.example.com.dq", "state": "running",
582
        "worker_name": "reserved_resource_worker-1@obelix.example.com", "result":
583
        null, "error": null, "_id": {"$oid": "5a0b4fa91fbc3e9fdb584e13"}, "id": "5a0b4fa91fbc3e9fdb584e13"}'
584
    http_version: 
585
  recorded_at: Tue, 14 Nov 2017 20:18:52 GMT
586
- request:
587
    method: get
588
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/tasks/3c861968-98dc-4969-9fab-5e83364a4a73/
589
    body:
590
      encoding: US-ASCII
591
      string: ''
592
    headers:
593
      Accept:
594
      - application/json
595
      Accept-Encoding:
596
      - gzip, deflate
597
      User-Agent:
598
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
599
      Content-Type:
600
      - application/json
601
      Host:
602
      - obelix.example.com
603
  response:
604
    status:
605
      code: 200
606
      message: OK
607
    headers:
608
      Date:
609
      - Tue, 14 Nov 2017 20:18:53 GMT
610
      Server:
611
      - Apache/2.4.6 (CentOS)
612
      Vary:
613
      - Accept-Encoding
614
      Content-Length:
615
      - '1116'
616
      Connection:
617
      - close
618
      Content-Type:
619
      - application/json; charset=utf-8
620
    body:
621
      encoding: ASCII-8BIT
622
      string: '{"exception": null, "task_type": "pulp.server.managers.repo.sync.sync",
623
        "_href": "/pulp/api/v2/tasks/3c861968-98dc-4969-9fab-5e83364a4a73/", "task_id":
624
        "3c861968-98dc-4969-9fab-5e83364a4a73", "tags": ["pulp:repository:integration_test_id",
625
        "pulp:action:sync"], "finish_time": null, "_ns": "task_status", "start_time":
626
        "2017-11-14T20:18:49Z", "traceback": null, "spawned_tasks": [], "progress_report":
627
        {"yum_importer": {"content": {"items_total": 0, "state": "FINISHED", "error_details":
628
        [], "details": {"rpm_total": 0, "rpm_done": 0, "drpm_total": 0, "drpm_done":
629
        0}, "size_total": 0, "size_left": 0, "items_left": 0}, "comps": {"state":
630
        "FINISHED"}, "purge_duplicates": {"state": "IN_PROGRESS"}, "distribution":
631
        {"items_total": 3, "state": "FINISHED", "error_details": [], "items_left":
632
        0}, "errata": {"state": "FINISHED"}, "metadata": {"state": "FINISHED"}}},
633
        "queue": "reserved_resource_worker-1@obelix.example.com.dq", "state": "running",
634
        "worker_name": "reserved_resource_worker-1@obelix.example.com", "result":
635
        null, "error": null, "_id": {"$oid": "5a0b4fa91fbc3e9fdb584e13"}, "id": "5a0b4fa91fbc3e9fdb584e13"}'
636
    http_version: 
637
  recorded_at: Tue, 14 Nov 2017 20:18:53 GMT
638
- request:
639
    method: get
640
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/tasks/3c861968-98dc-4969-9fab-5e83364a4a73/
641
    body:
642
      encoding: US-ASCII
643
      string: ''
644
    headers:
645
      Accept:
646
      - application/json
647
      Accept-Encoding:
648
      - gzip, deflate
649
      User-Agent:
650
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
651
      Content-Type:
652
      - application/json
653
      Host:
654
      - obelix.example.com
655
  response:
656
    status:
657
      code: 200
658
      message: OK
659
    headers:
660
      Date:
661
      - Tue, 14 Nov 2017 20:18:53 GMT
662
      Server:
663
      - Apache/2.4.6 (CentOS)
664
      Vary:
665
      - Accept-Encoding
666
      Content-Length:
667
      - '1116'
668
      Connection:
669
      - close
670
      Content-Type:
671
      - application/json; charset=utf-8
672
    body:
673
      encoding: ASCII-8BIT
674
      string: '{"exception": null, "task_type": "pulp.server.managers.repo.sync.sync",
675
        "_href": "/pulp/api/v2/tasks/3c861968-98dc-4969-9fab-5e83364a4a73/", "task_id":
676
        "3c861968-98dc-4969-9fab-5e83364a4a73", "tags": ["pulp:repository:integration_test_id",
677
        "pulp:action:sync"], "finish_time": null, "_ns": "task_status", "start_time":
678
        "2017-11-14T20:18:49Z", "traceback": null, "spawned_tasks": [], "progress_report":
679
        {"yum_importer": {"content": {"items_total": 0, "state": "FINISHED", "error_details":
680
        [], "details": {"rpm_total": 0, "rpm_done": 0, "drpm_total": 0, "drpm_done":
681
        0}, "size_total": 0, "size_left": 0, "items_left": 0}, "comps": {"state":
682
        "FINISHED"}, "purge_duplicates": {"state": "IN_PROGRESS"}, "distribution":
683
        {"items_total": 3, "state": "FINISHED", "error_details": [], "items_left":
684
        0}, "errata": {"state": "FINISHED"}, "metadata": {"state": "FINISHED"}}},
685
        "queue": "reserved_resource_worker-1@obelix.example.com.dq", "state": "running",
686
        "worker_name": "reserved_resource_worker-1@obelix.example.com", "result":
687
        null, "error": null, "_id": {"$oid": "5a0b4fa91fbc3e9fdb584e13"}, "id": "5a0b4fa91fbc3e9fdb584e13"}'
688
    http_version: 
689
  recorded_at: Tue, 14 Nov 2017 20:18:53 GMT
690
- request:
691
    method: get
692
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/tasks/3c861968-98dc-4969-9fab-5e83364a4a73/
693
    body:
694
      encoding: US-ASCII
695
      string: ''
696
    headers:
697
      Accept:
698
      - application/json
699
      Accept-Encoding:
700
      - gzip, deflate
701
      User-Agent:
702
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
703
      Content-Type:
704
      - application/json
705
      Host:
706
      - obelix.example.com
707
  response:
708
    status:
709
      code: 200
710
      message: OK
711
    headers:
712
      Date:
713
      - Tue, 14 Nov 2017 20:18:54 GMT
714
      Server:
715
      - Apache/2.4.6 (CentOS)
716
      Vary:
717
      - Accept-Encoding
718
      Content-Length:
719
      - '1116'
720
      Connection:
721
      - close
722
      Content-Type:
723
      - application/json; charset=utf-8
724
    body:
725
      encoding: ASCII-8BIT
726
      string: '{"exception": null, "task_type": "pulp.server.managers.repo.sync.sync",
727
        "_href": "/pulp/api/v2/tasks/3c861968-98dc-4969-9fab-5e83364a4a73/", "task_id":
728
        "3c861968-98dc-4969-9fab-5e83364a4a73", "tags": ["pulp:repository:integration_test_id",
729
        "pulp:action:sync"], "finish_time": null, "_ns": "task_status", "start_time":
730
        "2017-11-14T20:18:49Z", "traceback": null, "spawned_tasks": [], "progress_report":
731
        {"yum_importer": {"content": {"items_total": 0, "state": "FINISHED", "error_details":
732
        [], "details": {"rpm_total": 0, "rpm_done": 0, "drpm_total": 0, "drpm_done":
733
        0}, "size_total": 0, "size_left": 0, "items_left": 0}, "comps": {"state":
734
        "FINISHED"}, "purge_duplicates": {"state": "IN_PROGRESS"}, "distribution":
735
        {"items_total": 3, "state": "FINISHED", "error_details": [], "items_left":
736
        0}, "errata": {"state": "FINISHED"}, "metadata": {"state": "FINISHED"}}},
737
        "queue": "reserved_resource_worker-1@obelix.example.com.dq", "state": "running",
738
        "worker_name": "reserved_resource_worker-1@obelix.example.com", "result":
739
        null, "error": null, "_id": {"$oid": "5a0b4fa91fbc3e9fdb584e13"}, "id": "5a0b4fa91fbc3e9fdb584e13"}'
740
    http_version: 
741
  recorded_at: Tue, 14 Nov 2017 20:18:54 GMT
742
- request:
743
    method: get
744
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/tasks/3c861968-98dc-4969-9fab-5e83364a4a73/
745
    body:
746
      encoding: US-ASCII
747
      string: ''
748
    headers:
749
      Accept:
750
      - application/json
751
      Accept-Encoding:
752
      - gzip, deflate
753
      User-Agent:
754
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
755
      Content-Type:
756
      - application/json
757
      Host:
758
      - obelix.example.com
759
  response:
760
    status:
761
      code: 200
762
      message: OK
763
    headers:
764
      Date:
765
      - Tue, 14 Nov 2017 20:18:54 GMT
766
      Server:
767
      - Apache/2.4.6 (CentOS)
768
      Vary:
769
      - Accept-Encoding
770
      Content-Length:
771
      - '1116'
772
      Connection:
773
      - close
774
      Content-Type:
775
      - application/json; charset=utf-8
776
    body:
777
      encoding: ASCII-8BIT
778
      string: '{"exception": null, "task_type": "pulp.server.managers.repo.sync.sync",
779
        "_href": "/pulp/api/v2/tasks/3c861968-98dc-4969-9fab-5e83364a4a73/", "task_id":
780
        "3c861968-98dc-4969-9fab-5e83364a4a73", "tags": ["pulp:repository:integration_test_id",
781
        "pulp:action:sync"], "finish_time": null, "_ns": "task_status", "start_time":
782
        "2017-11-14T20:18:49Z", "traceback": null, "spawned_tasks": [], "progress_report":
783
        {"yum_importer": {"content": {"items_total": 0, "state": "FINISHED", "error_details":
784
        [], "details": {"rpm_total": 0, "rpm_done": 0, "drpm_total": 0, "drpm_done":
785
        0}, "size_total": 0, "size_left": 0, "items_left": 0}, "comps": {"state":
786
        "FINISHED"}, "purge_duplicates": {"state": "IN_PROGRESS"}, "distribution":
787
        {"items_total": 3, "state": "FINISHED", "error_details": [], "items_left":
788
        0}, "errata": {"state": "FINISHED"}, "metadata": {"state": "FINISHED"}}},
789
        "queue": "reserved_resource_worker-1@obelix.example.com.dq", "state": "running",
790
        "worker_name": "reserved_resource_worker-1@obelix.example.com", "result":
791
        null, "error": null, "_id": {"$oid": "5a0b4fa91fbc3e9fdb584e13"}, "id": "5a0b4fa91fbc3e9fdb584e13"}'
792
    http_version: 
793
  recorded_at: Tue, 14 Nov 2017 20:18:54 GMT
794
- request:
795
    method: get
796
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/tasks/3c861968-98dc-4969-9fab-5e83364a4a73/
797
    body:
798
      encoding: US-ASCII
799
      string: ''
800
    headers:
801
      Accept:
802
      - application/json
803
      Accept-Encoding:
804
      - gzip, deflate
805
      User-Agent:
806
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
807
      Content-Type:
808
      - application/json
809
      Host:
810
      - obelix.example.com
811
  response:
812
    status:
813
      code: 200
814
      message: OK
815
    headers:
816
      Date:
817
      - Tue, 14 Nov 2017 20:18:55 GMT
818
      Server:
819
      - Apache/2.4.6 (CentOS)
820
      Vary:
821
      - Accept-Encoding
822
      Content-Length:
823
      - '2184'
824
      Connection:
825
      - close
826
      Content-Type:
827
      - application/json; charset=utf-8
828
    body:
829
      encoding: ASCII-8BIT
830
      string: '{"exception": null, "task_type": "pulp.server.managers.repo.sync.sync",
831
        "_href": "/pulp/api/v2/tasks/3c861968-98dc-4969-9fab-5e83364a4a73/", "task_id":
832
        "3c861968-98dc-4969-9fab-5e83364a4a73", "tags": ["pulp:repository:integration_test_id",
833
        "pulp:action:sync"], "finish_time": "2017-11-14T20:18:55Z", "_ns": "task_status",
834
        "start_time": "2017-11-14T20:18:49Z", "traceback": null, "spawned_tasks":
240 835
        [], "progress_report": {"yum_importer": {"content": {"items_total": 0, "state":
241 836
        "FINISHED", "error_details": [], "details": {"rpm_total": 0, "rpm_done": 0,
242 837
        "drpm_total": 0, "drpm_done": 0}, "size_total": 0, "size_left": 0, "items_left":
243 838
        0}, "comps": {"state": "FINISHED"}, "purge_duplicates": {"state": "FINISHED"},
244 839
        "distribution": {"items_total": 3, "state": "FINISHED", "error_details": [],
245 840
        "items_left": 0}, "errata": {"state": "FINISHED"}, "metadata": {"state": "FINISHED"}}},
246
        "queue": "reserved_resource_worker-0@runcible.example.com.dq", "state": "finished",
247
        "worker_name": "reserved_resource_worker-0@runcible.example.com", "result":
841
        "queue": "reserved_resource_worker-1@obelix.example.com.dq", "state": "finished",
842
        "worker_name": "reserved_resource_worker-1@obelix.example.com", "result":
248 843
        {"result": "success", "importer_id": "yum_importer", "exception": null, "repo_id":
249
        "integration_test_id", "traceback": null, "started": "2016-04-29T16:27:09Z",
250
        "_ns": "repo_sync_results", "completed": "2016-04-29T16:27:10Z", "importer_type_id":
844
        "integration_test_id", "traceback": null, "started": "2017-11-14T20:18:49Z",
845
        "_ns": "repo_sync_results", "completed": "2017-11-14T20:18:55Z", "importer_type_id":
251 846
        "yum_importer", "error_message": null, "summary": {"content": {"state": "FINISHED"},
252 847
        "comps": {"state": "FINISHED"}, "purge_duplicates": {"state": "FINISHED"},
253 848
        "distribution": {"state": "FINISHED"}, "errata": {"state": "FINISHED"}, "metadata":
254 849
        {"state": "FINISHED"}}, "added_count": 14, "removed_count": 0, "updated_count":
255
        0, "id": "57238b5eaca4886e0c05c3fe", "details": {"content": {"size_total":
850
        0, "id": "5a0b4faf70be6f067d8a57d1", "details": {"content": {"size_total":
256 851
        0, "items_left": 0, "items_total": 0, "state": "FINISHED", "size_left": 0,
257 852
        "details": {"rpm_total": 0, "rpm_done": 0, "drpm_total": 0, "drpm_done": 0},
258 853
        "error_details": []}, "comps": {"state": "FINISHED"}, "purge_duplicates":
259 854
        {"state": "FINISHED"}, "distribution": {"items_total": 3, "state": "FINISHED",
260 855
        "error_details": [], "items_left": 0}, "errata": {"state": "FINISHED"}, "metadata":
261
        {"state": "FINISHED"}}}, "error": null, "_id": {"$oid": "57238b5d898f5c862fa3ec10"},
262
        "id": "57238b5d898f5c862fa3ec10"}'
856
        {"state": "FINISHED"}}}, "error": null, "_id": {"$oid": "5a0b4fa91fbc3e9fdb584e13"},
857
        "id": "5a0b4fa91fbc3e9fdb584e13"}'
263 858
    http_version: 
264
  recorded_at: Fri, 29 Apr 2016 16:27:10 GMT
859
  recorded_at: Tue, 14 Nov 2017 20:18:55 GMT
265 860
- request:
266 861
    method: get
267
    uri: https://admin:HeQSzZgm6ZEKG8aHrJEGW7aGD85Wrj57@runcible.example.com/pulp/api/v2/repositories/integration_test_id/?details=true
862
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/repositories/integration_test_id/?details=true
268 863
    body:
269 864
      encoding: US-ASCII
270 865
      string: ''
......
273 868
      - application/json
274 869
      Accept-Encoding:
275 870
      - gzip, deflate
871
      User-Agent:
872
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
276 873
      Content-Type:
277 874
      - application/json
278
      User-Agent:
279
      - Ruby
875
      Host:
876
      - obelix.example.com
280 877
  response:
281 878
    status:
282 879
      code: 200
283 880
      message: OK
284 881
    headers:
285 882
      Date:
286
      - Fri, 29 Apr 2016 16:27:10 GMT
883
      - Tue, 14 Nov 2017 20:18:55 GMT
287 884
      Server:
288 885
      - Apache/2.4.6 (CentOS)
289 886
      Vary:
290 887
      - Accept-Encoding
291 888
      Content-Length:
292
      - '1310'
889
      - '1438'
890
      Connection:
891
      - close
293 892
      Content-Type:
294 893
      - application/json; charset=utf-8
295 894
    body:
296 895
      encoding: ASCII-8BIT
297 896
      string: '{"scratchpad": {"checksum_type": "sha256"}, "display_name": "integration_test_id",
298
        "description": null, "distributors": [{"repo_id": "integration_test_id", "_href":
299
        "/pulp/api/v2/repositories/integration_test_id/distributors/yum_dist/", "_ns":
300
        "repo_distributors", "last_publish": null, "distributor_type_id": "yum_distributor",
301
        "auto_publish": false, "scratchpad": {}, "_id": {"$oid": "57238b5daca4886d952eeafa"},
302
        "config": {"http": true, "https": true, "relative_url": "path"}, "id": "yum_dist"}],
303
        "last_unit_added": null, "notes": {}, "last_unit_removed": null, "content_unit_counts":
304
        {"package_group": 2, "distribution": 1, "package_category": 1, "rpm": 8, "erratum":
305
        2}, "_ns": "repos", "importers": [{"scratchpad": {"repomd_revision": 1321893800,
306
        "previous_skip_list": []}, "_href": "/pulp/api/v2/repositories/integration_test_id/importers/yum_importer/",
307
        "_ns": "repo_importers", "importer_type_id": "yum_importer", "last_sync":
308
        "2016-04-29T16:27:10Z", "repo_id": "integration_test_id", "_id": {"$oid":
309
        "57238b5daca4886d952eeaf9"}, "config": {"feed": "file:///var/www/repositories/zoo5"},
310
        "id": "yum_importer"}], "locally_stored_units": 14, "_id": {"$oid": "57238b5daca4886d952eeaf8"},
311
        "total_repository_units": 14, "id": "integration_test_id", "_href": "/pulp/api/v2/repositories/integration_test_id/"}'
897
        "description": null, "distributors": [{"repo_id": "integration_test_id", "last_updated":
898
        "2017-11-14T20:18:49Z", "_href": "/pulp/api/v2/repositories/integration_test_id/distributors/yum_dist/",
899
        "last_override_config": {}, "last_publish": null, "distributor_type_id": "yum_distributor",
900
        "auto_publish": false, "scratchpad": {}, "_ns": "repo_distributors", "_id":
901
        {"$oid": "5a0b4fa970be6f049ee2a55a"}, "config": {"http": true, "https": true,
902
        "relative_url": "path"}, "id": "yum_dist"}], "last_unit_added": "2017-11-14T20:18:55Z",
903
        "notes": {}, "last_unit_removed": null, "content_unit_counts": {"package_group":
904
        2, "distribution": 1, "package_category": 1, "rpm": 8, "erratum": 2}, "_ns":
905
        "repos", "importers": [{"repo_id": "integration_test_id", "last_updated":
906
        "2017-11-14T20:18:49Z", "_href": "/pulp/api/v2/repositories/integration_test_id/importers/yum_importer/",
907
        "_ns": "repo_importers", "importer_type_id": "yum_importer", "last_override_config":
908
        {}, "last_sync": "2017-11-14T20:18:55Z", "scratchpad": {"repomd_revision":
909
        1321893800}, "_id": {"$oid": "5a0b4fa970be6f049ee2a559"}, "config": {"feed":
910
        "file:///var/www/repositories/zoo5"}, "id": "yum_importer"}], "locally_stored_units":
911
        14, "_id": {"$oid": "5a0b4fa970be6f049ee2a558"}, "total_repository_units":
912
        14, "id": "integration_test_id", "_href": "/pulp/api/v2/repositories/integration_test_id/"}'
312 913
    http_version: 
313
  recorded_at: Fri, 29 Apr 2016 16:27:10 GMT
914
  recorded_at: Tue, 14 Nov 2017 20:18:55 GMT
314 915
- request:
315 916
    method: post
316
    uri: https://admin:HeQSzZgm6ZEKG8aHrJEGW7aGD85Wrj57@runcible.example.com/pulp/api/v2/consumers/integration_test_consumer_support/bindings//
917
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/consumers/integration_test_consumer_support/bindings//
317 918
    body:
318 919
      encoding: UTF-8
319 920
      string: '{"repo_id":"integration_test_id","distributor_id":"yum_dist","notify_agent":false}'
......
322 923
      - application/json
323 924
      Accept-Encoding:
324 925
      - gzip, deflate
926
      User-Agent:
927
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
325 928
      Content-Type:
326 929
      - application/json
327 930
      Content-Length:
328 931
      - '82'
329
      User-Agent:
330
      - Ruby
932
      Host:
933
      - obelix.example.com
331 934
  response:
332 935
    status:
333 936
      code: 200
334 937
      message: OK
335 938
    headers:
336 939
      Date:
337
      - Fri, 29 Apr 2016 16:27:10 GMT
940
      - Tue, 14 Nov 2017 20:18:55 GMT
338 941
      Server:
339 942
      - Apache/2.4.6 (CentOS)
340 943
      Vary:
341 944
      - Accept-Encoding
342 945
      Content-Length:
343 946
      - '358'
947
      Connection:
948
      - close
344 949
      Content-Type:
345 950
      - application/json; charset=utf-8
346 951
    body:
......
348 953
      string: '{"spawned_tasks": [], "result": {"notify_agent": false, "repo_id":
349 954
        "integration_test_id", "deleted": false, "_ns": "consumer_bindings", "distributor_id":
350 955
        "yum_dist", "consumer_id": "integration_test_consumer_support", "consumer_actions":
351
        [], "binding_config": {}, "_id": {"$oid": "57238b5eaca4886d96d97f11"}, "id":
352
        "57238b5eaca4886d96d97f11"}, "error": null}'
956
        [], "binding_config": {}, "_id": {"$oid": "5a0b4faf70be6f049ee2a55b"}, "id":
957
        "5a0b4faf70be6f049ee2a55b"}, "error": null}'
353 958
    http_version: 
354
  recorded_at: Fri, 29 Apr 2016 16:27:10 GMT
959
  recorded_at: Tue, 14 Nov 2017 20:18:55 GMT
355 960
- request:
356 961
    method: delete
357
    uri: https://admin:HeQSzZgm6ZEKG8aHrJEGW7aGD85Wrj57@runcible.example.com/pulp/api/v2/consumers/integration_test_consumer_support/
962
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/consumers/integration_test_consumer_support/
358 963
    body:
359 964
      encoding: US-ASCII
360 965
      string: ''
......
363 968
      - application/json
364 969
      Accept-Encoding:
365 970
      - gzip, deflate
971
      User-Agent:
972
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
366 973
      Content-Type:
367 974
      - application/json
368
      User-Agent:
369
      - Ruby
975
      Host:
976
      - obelix.example.com
370 977
  response:
371 978
    status:
372 979
      code: 200
373 980
      message: OK
374 981
    headers:
375 982
      Date:
376
      - Fri, 29 Apr 2016 16:27:11 GMT
983
      - Tue, 14 Nov 2017 20:18:56 GMT
377 984
      Server:
378 985
      - Apache/2.4.6 (CentOS)
379 986
      Content-Length:
380 987
      - '4'
988
      Connection:
989
      - close
381 990
      Content-Type:
382 991
      - application/json; charset=utf-8
383 992
    body:
384 993
      encoding: UTF-8
385 994
      string: 'null'
386 995
    http_version: 
387
  recorded_at: Fri, 29 Apr 2016 16:27:12 GMT
996
  recorded_at: Tue, 14 Nov 2017 20:18:56 GMT
388 997
- request:
389 998
    method: delete
390
    uri: https://admin:HeQSzZgm6ZEKG8aHrJEGW7aGD85Wrj57@runcible.example.com/pulp/api/v2/repositories/integration_test_id/
999
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/repositories/integration_test_id/
391 1000
    body:
392 1001
      encoding: US-ASCII
393 1002
      string: ''
......
396 1005
      - application/json
397 1006
      Accept-Encoding:
398 1007
      - gzip, deflate
1008
      User-Agent:
1009
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
399 1010
      Content-Type:
400 1011
      - application/json
401
      User-Agent:
402
      - Ruby
1012
      Host:
1013
      - obelix.example.com
403 1014
  response:
404 1015
    status:
405 1016
      code: 202
406 1017
      message: ACCEPTED
407 1018
    headers:
408 1019
      Date:
409
      - Fri, 29 Apr 2016 16:27:12 GMT
1020
      - Tue, 14 Nov 2017 20:18:56 GMT
410 1021
      Server:
411 1022
      - Apache/2.4.6 (CentOS)
412 1023
      Content-Length:
413 1024
      - '172'
1025
      Connection:
1026
      - close
414 1027
      Content-Type:
415 1028
      - application/json; charset=utf-8
416 1029
    body:
417 1030
      encoding: UTF-8
418
      string: '{"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/8bd3f973-99bc-4387-96f1-317c73701a99/",
419
        "task_id": "8bd3f973-99bc-4387-96f1-317c73701a99"}], "result": null, "error":
1031
      string: '{"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/0c431ccb-1496-41a3-878a-a41b5373bb48/",
1032
        "task_id": "0c431ccb-1496-41a3-878a-a41b5373bb48"}], "result": null, "error":
420 1033
        null}'
421 1034
    http_version: 
422
  recorded_at: Fri, 29 Apr 2016 16:27:12 GMT
1035
  recorded_at: Tue, 14 Nov 2017 20:18:56 GMT
423 1036
- request:
424 1037
    method: get
425
    uri: https://admin:HeQSzZgm6ZEKG8aHrJEGW7aGD85Wrj57@runcible.example.com/pulp/api/v2/tasks/8bd3f973-99bc-4387-96f1-317c73701a99/
1038
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/tasks/0c431ccb-1496-41a3-878a-a41b5373bb48/
426 1039
    body:
427 1040
      encoding: US-ASCII
428 1041
      string: ''
......
431 1044
      - application/json
432 1045
      Accept-Encoding:
433 1046
      - gzip, deflate
1047
      User-Agent:
1048
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
434 1049
      Content-Type:
435 1050
      - application/json
436
      User-Agent:
437
      - Ruby
1051
      Host:
1052
      - obelix.example.com
438 1053
  response:
439 1054
    status:
440 1055
      code: 200
441 1056
      message: OK
442 1057
    headers:
443 1058
      Date:
444
      - Fri, 29 Apr 2016 16:27:12 GMT
1059
      - Tue, 14 Nov 2017 20:18:56 GMT
445 1060
      Server:
446 1061
      - Apache/2.4.6 (CentOS)
447 1062
      Vary:
448 1063
      - Accept-Encoding
449 1064
      Content-Length:
450
      - '684'
1065
      - '680'
1066
      Connection:
1067
      - close
451 1068
      Content-Type:
452 1069
      - application/json; charset=utf-8
453 1070
    body:
454 1071
      encoding: ASCII-8BIT
455 1072
      string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
456
        "_href": "/pulp/api/v2/tasks/8bd3f973-99bc-4387-96f1-317c73701a99/", "task_id":
457
        "8bd3f973-99bc-4387-96f1-317c73701a99", "tags": ["pulp:repository:integration_test_id",
458
        "pulp:action:delete"], "finish_time": "2016-04-29T16:27:12Z", "_ns": "task_status",
459
        "start_time": "2016-04-29T16:27:12Z", "traceback": null, "spawned_tasks":
460
        [], "progress_report": {}, "queue": "reserved_resource_worker-0@runcible.example.com.dq",
461
        "state": "finished", "worker_name": "reserved_resource_worker-0@runcible.example.com",
462
        "result": null, "error": null, "_id": {"$oid": "57238b60898f5c862fa3ec20"},
463
        "id": "57238b60898f5c862fa3ec20"}'
1073
        "_href": "/pulp/api/v2/tasks/0c431ccb-1496-41a3-878a-a41b5373bb48/", "task_id":
1074
        "0c431ccb-1496-41a3-878a-a41b5373bb48", "tags": ["pulp:repository:integration_test_id",
1075
        "pulp:action:delete"], "finish_time": "2017-11-14T20:18:56Z", "_ns": "task_status",
1076
        "start_time": "2017-11-14T20:18:56Z", "traceback": null, "spawned_tasks":
1077
        [], "progress_report": {}, "queue": "reserved_resource_worker-1@obelix.example.com.dq",
1078
        "state": "finished", "worker_name": "reserved_resource_worker-1@obelix.example.com",
1079
        "result": null, "error": null, "_id": {"$oid": "5a0b4fb01fbc3e9fdb584e23"},
1080
        "id": "5a0b4fb01fbc3e9fdb584e23"}'
464 1081
    http_version: 
465
  recorded_at: Fri, 29 Apr 2016 16:27:12 GMT
466
recorded_with: VCR 3.0.1
1082
  recorded_at: Tue, 14 Nov 2017 20:18:56 GMT
1083
recorded_with: VCR 3.0.3

Also available in: Unified diff