Project

General

Profile

Revision 524638e4

Added by Partha Aji over 5 years ago

Fixes #18076 - Can set OSTree repo depth

Enables one to set the importer depth value for the ostree repo.
look at http://projects.theforeman.org/issues/18076 for more info.

View differences:

test/fixtures/vcr_cassettes/extensions/ostree_repository_create/create_with_importer_and_distributors_objects.yml
42 42
  recorded_at: Fri, 29 Apr 2016 16:21:40 GMT
43 43
- request:
44 44
    method: get
45
    uri: https://admin:HeQSzZgm6ZEKG8aHrJEGW7aGD85Wrj57@runcible.example.com/pulp/api/v2/repositories/integration_test_id/?details=true
45
    uri: https://admin:HeQSzZgm6ZEKG8aHrJEGW7aGD85Wrj57@runcible.example.com/pulp/api/v2/tasks/3230f8d2-677d-482b-a2e0-39069b578a3f/
46 46
    body:
47 47
      encoding: US-ASCII
48 48
      string: ''
......
67 67
      Vary:
68 68
      - Accept-Encoding
69 69
      Content-Length:
70
      - '1074'
70
      - '684'
71
      Content-Type:
72
      - application/json; charset=utf-8
73
    body:
74
      encoding: ASCII-8BIT
75
      string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
76
        "_href": "/pulp/api/v2/tasks/3230f8d2-677d-482b-a2e0-39069b578a3f/", "task_id":
77
        "3230f8d2-677d-482b-a2e0-39069b578a3f", "tags": ["pulp:repository:integration_test_id",
78
        "pulp:action:delete"], "finish_time": "2016-04-29T16:21:40Z", "_ns": "task_status",
79
        "start_time": "2016-04-29T16:21:40Z", "traceback": null, "spawned_tasks":
80
        [], "progress_report": {}, "queue": "reserved_resource_worker-0@runcible.example.com.dq",
81
        "state": "finished", "worker_name": "reserved_resource_worker-0@runcible.example.com",
82
        "result": null, "error": null, "_id": {"$oid": "57238a14898f5c862fa3ea80"},
83
        "id": "57238a14898f5c862fa3ea80"}'
84
    http_version: 
85
  recorded_at: Fri, 29 Apr 2016 16:21:41 GMT
86
- request:
87
    method: get
88
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/tasks/936bf004-4abe-451e-b6ca-8c80dd86ae1c/
89
    body:
90
      encoding: US-ASCII
91
      string: ''
92
    headers:
93
      Accept:
94
      - application/json
95
      Accept-Encoding:
96
      - gzip, deflate
97
      Content-Type:
98
      - application/json
99
      User-Agent:
100
      - Ruby
101
  response:
102
    status:
103
      code: 200
104
      message: OK
105
    headers:
106
      Date:
107
      - Wed, 01 Feb 2017 12:26:45 GMT
108
      Server:
109
      - Apache/2.4.6 (CentOS)
110
      Vary:
111
      - Accept-Encoding
112
      Content-Length:
113
      - '680'
114
      Connection:
115
      - close
116
      Content-Type:
117
      - application/json; charset=utf-8
118
    body:
119
      encoding: ASCII-8BIT
120
      string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
121
        "_href": "/pulp/api/v2/tasks/936bf004-4abe-451e-b6ca-8c80dd86ae1c/", "task_id":
122
        "936bf004-4abe-451e-b6ca-8c80dd86ae1c", "tags": ["pulp:repository:integration_test_id",
123
        "pulp:action:delete"], "finish_time": "2017-02-01T12:26:45Z", "_ns": "task_status",
124
        "start_time": "2017-02-01T12:26:45Z", "traceback": null, "spawned_tasks":
125
        [], "progress_report": {}, "queue": "reserved_resource_worker-1@obelix.example.com.dq",
126
        "state": "finished", "worker_name": "reserved_resource_worker-1@obelix.example.com",
127
        "result": null, "error": null, "_id": {"$oid": "5891d4054b92d9e3004e81c0"},
128
        "id": "5891d4054b92d9e3004e81c0"}'
129
    http_version: 
130
  recorded_at: Wed, 01 Feb 2017 12:26:45 GMT
131
- request:
132
    method: get
133
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/tasks/f61b3286-b834-4370-9cd7-a18392a46123/
134
    body:
135
      encoding: US-ASCII
136
      string: ''
137
    headers:
138
      Accept:
139
      - application/json
140
      Accept-Encoding:
141
      - gzip, deflate
142
      Content-Type:
143
      - application/json
144
      User-Agent:
145
      - Ruby
146
  response:
147
    status:
148
      code: 200
149
      message: OK
150
    headers:
151
      Date:
152
      - Wed, 01 Feb 2017 12:28:30 GMT
153
      Server:
154
      - Apache/2.4.6 (CentOS)
155
      Vary:
156
      - Accept-Encoding
157
      Content-Length:
158
      - '680'
159
      Connection:
160
      - close
71 161
      Content-Type:
72 162
      - application/json; charset=utf-8
73 163
    body:
74 164
      encoding: ASCII-8BIT
165
      string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
166
        "_href": "/pulp/api/v2/tasks/f61b3286-b834-4370-9cd7-a18392a46123/", "task_id":
167
        "f61b3286-b834-4370-9cd7-a18392a46123", "tags": ["pulp:repository:integration_test_id",
168
        "pulp:action:delete"], "finish_time": "2017-02-01T12:28:30Z", "_ns": "task_status",
169
        "start_time": "2017-02-01T12:28:30Z", "traceback": null, "spawned_tasks":
170
        [], "progress_report": {}, "queue": "reserved_resource_worker-1@obelix.example.com.dq",
171
        "state": "finished", "worker_name": "reserved_resource_worker-1@obelix.example.com",
172
        "result": null, "error": null, "_id": {"$oid": "5891d46e4b92d9e3004e81c8"},
173
        "id": "5891d46e4b92d9e3004e81c8"}'
174
    http_version: 
175
  recorded_at: Wed, 01 Feb 2017 12:28:30 GMT
176
- request:
177
    method: get
178
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/tasks/3483f8a3-51b3-4710-907c-0649d2f31d21/
179
    body:
180
      encoding: US-ASCII
181
      string: ''
182
    headers:
183
      Accept:
184
      - application/json
185
      Accept-Encoding:
186
      - gzip, deflate
187
      Content-Type:
188
      - application/json
189
      User-Agent:
190
      - Ruby
191
  response:
192
    status:
193
      code: 200
194
      message: OK
195
    headers:
196
      Date:
197
      - Wed, 01 Feb 2017 12:30:36 GMT
198
      Server:
199
      - Apache/2.4.6 (CentOS)
200
      Vary:
201
      - Accept-Encoding
202
      Content-Length:
203
      - '680'
204
      Connection:
205
      - close
206
      Content-Type:
207
      - application/json; charset=utf-8
208
    body:
209
      encoding: ASCII-8BIT
210
      string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
211
        "_href": "/pulp/api/v2/tasks/3483f8a3-51b3-4710-907c-0649d2f31d21/", "task_id":
212
        "3483f8a3-51b3-4710-907c-0649d2f31d21", "tags": ["pulp:repository:integration_test_id",
213
        "pulp:action:delete"], "finish_time": "2017-02-01T12:30:35Z", "_ns": "task_status",
214
        "start_time": "2017-02-01T12:30:35Z", "traceback": null, "spawned_tasks":
215
        [], "progress_report": {}, "queue": "reserved_resource_worker-1@obelix.example.com.dq",
216
        "state": "finished", "worker_name": "reserved_resource_worker-1@obelix.example.com",
217
        "result": null, "error": null, "_id": {"$oid": "5891d4eb4b92d9e3004e81d6"},
218
        "id": "5891d4eb4b92d9e3004e81d6"}'
219
    http_version: 
220
  recorded_at: Wed, 01 Feb 2017 12:30:36 GMT
221
- request:
222
    method: post
223
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/repositories/
224
    body:
225
      encoding: UTF-8
226
      string: '{"id":"integration_test_id","importer_type_id":"ostree_web_importer","importer_config":{"depth":-1},"notes":{"_repo-type":"OSTREE"},"distributors":[{"distributor_type_id":"ostree_web_distributor","distributor_config":{},"auto_publish":false,"distributor_id":"123"}]}'
227
    headers:
228
      Accept:
229
      - application/json
230
      Accept-Encoding:
231
      - gzip, deflate
232
      Content-Type:
233
      - application/json
234
      Content-Length:
235
      - '266'
236
      User-Agent:
237
      - Ruby
238
  response:
239
    status:
240
      code: 201
241
      message: CREATED
242
    headers:
243
      Date:
244
      - Wed, 01 Feb 2017 12:30:54 GMT
245
      Server:
246
      - Apache/2.4.6 (CentOS)
247
      Content-Length:
248
      - '341'
249
      Location:
250
      - https://obelix.example.com/pulp/api/v2/repositories/integration_test_id/
251
      Connection:
252
      - close
253
      Content-Type:
254
      - application/json; charset=utf-8
255
    body:
256
      encoding: UTF-8
75 257
      string: '{"scratchpad": {}, "display_name": "integration_test_id", "description":
76
        null, "distributors": [{"repo_id": "integration_test_id", "_href": "/pulp/api/v2/repositories/integration_test_id/distributors/123/",
77
        "_ns": "repo_distributors", "last_publish": null, "distributor_type_id": "ostree_web_distributor",
78
        "auto_publish": false, "scratchpad": {}, "_id": {"$oid": "57238a14aca4886d952eea9a"},
79
        "config": {}, "id": "123"}], "last_unit_added": null, "notes": {"_repo-type":
80
        "OSTREE"}, "last_unit_removed": null, "content_unit_counts": {}, "_ns": "repos",
81
        "importers": [{"scratchpad": null, "_href": "/pulp/api/v2/repositories/integration_test_id/importers/ostree_web_importer/",
82
        "_ns": "repo_importers", "importer_type_id": "ostree_web_importer", "last_sync":
83
        null, "repo_id": "integration_test_id", "_id": {"$oid": "57238a14aca4886d952eea99"},
84
        "config": {}, "id": "ostree_web_importer"}], "locally_stored_units": 0, "_id":
85
        {"$oid": "57238a14aca4886d952eea98"}, "total_repository_units": 0, "id": "integration_test_id",
86
        "_href": "/pulp/api/v2/repositories/integration_test_id/"}'
258
        null, "last_unit_added": null, "notes": {"_repo-type": "OSTREE"}, "last_unit_removed":
259
        null, "content_unit_counts": {}, "_ns": "repos", "_id": {"$oid": "5891d4fe70be6f18c91f61d7"},
260
        "id": "integration_test_id", "_href": "/pulp/api/v2/repositories/integration_test_id/"}'
87 261
    http_version: 
88
  recorded_at: Fri, 29 Apr 2016 16:21:40 GMT
262
  recorded_at: Wed, 01 Feb 2017 12:30:54 GMT
263
- request:
264
    method: get
265
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/repositories/integration_test_id/?details=true
266
    body:
267
      encoding: US-ASCII
268
      string: ''
269
    headers:
270
      Accept:
271
      - application/json
272
      Accept-Encoding:
273
      - gzip, deflate
274
      Content-Type:
275
      - application/json
276
      User-Agent:
277
      - Ruby
278
  response:
279
    status:
280
      code: 200
281
      message: OK
282
    headers:
283
      Date:
284
      - Wed, 01 Feb 2017 12:30:54 GMT
285
      Server:
286
      - Apache/2.4.6 (CentOS)
287
      Vary:
288
      - Accept-Encoding
289
      Content-Length:
290
      - '1221'
291
      Connection:
292
      - close
293
      Content-Type:
294
      - application/json; charset=utf-8
295
    body:
296
      encoding: ASCII-8BIT
297
      string: '{"scratchpad": {}, "display_name": "integration_test_id", "description":
298
        null, "distributors": [{"repo_id": "integration_test_id", "last_updated":
299
        "2017-02-01T12:30:54Z", "_href": "/pulp/api/v2/repositories/integration_test_id/distributors/123/",
300
        "last_override_config": {}, "last_publish": null, "distributor_type_id": "ostree_web_distributor",
301
        "auto_publish": false, "scratchpad": {}, "_ns": "repo_distributors", "_id":
302
        {"$oid": "5891d4fe70be6f18c91f61d9"}, "config": {}, "id": "123"}], "last_unit_added":
303
        null, "notes": {"_repo-type": "OSTREE"}, "last_unit_removed": null, "content_unit_counts":
304
        {}, "_ns": "repos", "importers": [{"repo_id": "integration_test_id", "last_updated":
305
        "2017-02-01T12:30:54Z", "_href": "/pulp/api/v2/repositories/integration_test_id/importers/ostree_web_importer/",
306
        "_ns": "repo_importers", "importer_type_id": "ostree_web_importer", "last_override_config":
307
        {}, "last_sync": null, "scratchpad": null, "_id": {"$oid": "5891d4fe70be6f18c91f61d8"},
308
        "config": {"depth": -1}, "id": "ostree_web_importer"}], "locally_stored_units":
309
        0, "_id": {"$oid": "5891d4fe70be6f18c91f61d7"}, "total_repository_units":
310
        0, "id": "integration_test_id", "_href": "/pulp/api/v2/repositories/integration_test_id/"}'
311
    http_version: 
312
  recorded_at: Wed, 01 Feb 2017 12:30:54 GMT
89 313
- request:
90 314
    method: delete
91
    uri: https://admin:HeQSzZgm6ZEKG8aHrJEGW7aGD85Wrj57@runcible.example.com/pulp/api/v2/repositories/integration_test_id/
315
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/repositories/integration_test_id/
92 316
    body:
93 317
      encoding: US-ASCII
94 318
      string: ''
......
107 331
      message: ACCEPTED
108 332
    headers:
109 333
      Date:
110
      - Fri, 29 Apr 2016 16:21:40 GMT
334
      - Wed, 01 Feb 2017 12:30:54 GMT
111 335
      Server:
112 336
      - Apache/2.4.6 (CentOS)
113 337
      Content-Length:
114 338
      - '172'
339
      Connection:
340
      - close
115 341
      Content-Type:
116 342
      - application/json; charset=utf-8
117 343
    body:
118 344
      encoding: UTF-8
119
      string: '{"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/3230f8d2-677d-482b-a2e0-39069b578a3f/",
120
        "task_id": "3230f8d2-677d-482b-a2e0-39069b578a3f"}], "result": null, "error":
345
      string: '{"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/34b2728e-41c7-4c47-9ca4-b494b3b5916e/",
346
        "task_id": "34b2728e-41c7-4c47-9ca4-b494b3b5916e"}], "result": null, "error":
121 347
        null}'
122 348
    http_version: 
123
  recorded_at: Fri, 29 Apr 2016 16:21:40 GMT
349
  recorded_at: Wed, 01 Feb 2017 12:30:54 GMT
124 350
- request:
125 351
    method: get
126
    uri: https://admin:HeQSzZgm6ZEKG8aHrJEGW7aGD85Wrj57@runcible.example.com/pulp/api/v2/tasks/3230f8d2-677d-482b-a2e0-39069b578a3f/
352
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/tasks/34b2728e-41c7-4c47-9ca4-b494b3b5916e/
127 353
    body:
128 354
      encoding: US-ASCII
129 355
      string: ''
......
142 368
      message: OK
143 369
    headers:
144 370
      Date:
145
      - Fri, 29 Apr 2016 16:21:40 GMT
371
      - Wed, 01 Feb 2017 12:30:55 GMT
146 372
      Server:
147 373
      - Apache/2.4.6 (CentOS)
148 374
      Vary:
149 375
      - Accept-Encoding
150 376
      Content-Length:
151
      - '684'
377
      - '680'
378
      Connection:
379
      - close
152 380
      Content-Type:
153 381
      - application/json; charset=utf-8
154 382
    body:
155 383
      encoding: ASCII-8BIT
156 384
      string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
157
        "_href": "/pulp/api/v2/tasks/3230f8d2-677d-482b-a2e0-39069b578a3f/", "task_id":
158
        "3230f8d2-677d-482b-a2e0-39069b578a3f", "tags": ["pulp:repository:integration_test_id",
159
        "pulp:action:delete"], "finish_time": "2016-04-29T16:21:40Z", "_ns": "task_status",
160
        "start_time": "2016-04-29T16:21:40Z", "traceback": null, "spawned_tasks":
161
        [], "progress_report": {}, "queue": "reserved_resource_worker-0@runcible.example.com.dq",
162
        "state": "finished", "worker_name": "reserved_resource_worker-0@runcible.example.com",
163
        "result": null, "error": null, "_id": {"$oid": "57238a14898f5c862fa3ea80"},
164
        "id": "57238a14898f5c862fa3ea80"}'
385
        "_href": "/pulp/api/v2/tasks/34b2728e-41c7-4c47-9ca4-b494b3b5916e/", "task_id":
386
        "34b2728e-41c7-4c47-9ca4-b494b3b5916e", "tags": ["pulp:repository:integration_test_id",
387
        "pulp:action:delete"], "finish_time": "2017-02-01T12:30:54Z", "_ns": "task_status",
388
        "start_time": "2017-02-01T12:30:54Z", "traceback": null, "spawned_tasks":
389
        [], "progress_report": {}, "queue": "reserved_resource_worker-1@obelix.example.com.dq",
390
        "state": "finished", "worker_name": "reserved_resource_worker-1@obelix.example.com",
391
        "result": null, "error": null, "_id": {"$oid": "5891d4fe4b92d9e3004e81e1"},
392
        "id": "5891d4fe4b92d9e3004e81e1"}'
165 393
    http_version: 
166
  recorded_at: Fri, 29 Apr 2016 16:21:41 GMT
167
recorded_with: VCR 3.0.1
394
  recorded_at: Wed, 01 Feb 2017 12:30:55 GMT
395
recorded_with: VCR 3.0.3

Also available in: Unified diff