Project

General

Profile

Revision d0cb4289

Added by Stephen Benjamin over 4 years ago

refs #22446 - use relative_url for iso repo path

View differences:

lib/runcible/models/iso_distributor.rb
5 5
  module Models
6 6
    class IsoDistributor < Distributor
7 7
      #required attributes
8
      attr_accessor 'serve_http', 'serve_https'
8
      attr_accessor 'relative_url', 'serve_http', 'serve_https'
9 9

  
10 10
      # Instantiates an iso distributor
11 11
      #
12
      # @param  [path]            relative URL
12 13
      # @param  [boolean]         http  serve the contents over http
13 14
      # @param  [boolean]         https serve the contents over https
14 15
      # @return [Runcible::Extensions::IsoDistributor]
15
      def initialize(http, https, options = {})
16
      def initialize(relative_url, http, https, options = {})
17
        @relative_url = relative_url
16 18
        @serve_http = http
17 19
        @serve_https = https
18 20
        super(options)
test/extensions/iso_repository_test.rb
27 27
    end
28 28

  
29 29
    def test_create_with_importer_and_distributors_objects
30
      distributors = [Runcible::Models::IsoDistributor.new(true, true, :id => 'iso_distributor')]
30
      distributors = [Runcible::Models::IsoDistributor.new('path', true, true, :id => 'iso_distributor')]
31 31
      importer = Runcible::Models::IsoImporter.new(:feed => @repo_url)
32 32

  
33 33
      response = @extension.create_with_importer_and_distributors(@repo_id, importer, distributors)
test/fixtures/vcr_cassettes/extensions/iso_repository_create/create_with_importer_and_distributors_objects.yml
345 345
  recorded_at: Fri, 01 Jul 2016 14:43:39 GMT
346 346
- request:
347 347
    method: get
348
    uri: https://admin:admin@devel.example.com/pulp/api/v2/repositories/integration_test_id/?details=true
348
    uri: https://admin:admin@devel.example.com/pulp/api/v2/tasks/4a693baa-4ecc-47dd-971b-fa5d498967b8/
349 349
    body:
350 350
      encoding: US-ASCII
351 351
      string: ''
......
364 364
      message: OK
365 365
    headers:
366 366
      Date:
367
      - Fri, 01 Jul 2016 14:43:39 GMT
367
      - Fri, 01 Jul 2016 14:43:40 GMT
368 368
      Server:
369 369
      - Apache/2.4.6 (CentOS)
370 370
      Vary:
371 371
      - Accept-Encoding
372 372
      Content-Length:
373
      - '1129'
373
      - '678'
374 374
      Content-Type:
375 375
      - application/json; charset=utf-8
376 376
    body:
377 377
      encoding: ASCII-8BIT
378
      string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
379
        "_href": "/pulp/api/v2/tasks/4a693baa-4ecc-47dd-971b-fa5d498967b8/", "task_id":
380
        "4a693baa-4ecc-47dd-971b-fa5d498967b8", "tags": ["pulp:repository:integration_test_id",
381
        "pulp:action:delete"], "finish_time": "2016-07-01T14:43:39Z", "_ns": "task_status",
382
        "start_time": "2016-07-01T14:43:39Z", "traceback": null, "spawned_tasks":
383
        [], "progress_report": {}, "queue": "reserved_resource_worker-1@devel.example.com.dq",
384
        "state": "finished", "worker_name": "reserved_resource_worker-1@devel.example.com",
385
        "result": null, "error": null, "_id": {"$oid": "5776819b9036949adab88912"},
386
        "id": "5776819b9036949adab88912"}'
387
    http_version: 
388
  recorded_at: Fri, 01 Jul 2016 14:43:40 GMT
389
- request:
390
    method: post
391
    uri: https://admin:admin@centos7-devel.zpm.example.com/pulp/api/v2/repositories/
392
    body:
393
      encoding: UTF-8
394
      string: '{"id":"integration_test_id","importer_type_id":"iso_importer","importer_config":{"feed":"file:///var/www/repositories/iso"},"distributors":[{"distributor_type_id":"iso_distributor","distributor_config":{"relative_url":"/path","serve_http":true,"serve_https":true},"auto_publish":false,"distributor_id":"iso_distributor"}]}'
395
    headers:
396
      Accept:
397
      - application/json
398
      Accept-Encoding:
399
      - gzip, deflate
400
      User-Agent:
401
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
402
      Content-Type:
403
      - application/json
404
      Content-Length:
405
      - '322'
406
      Host:
407
      - centos7-devel.zpm.example.com
408
  response:
409
    status:
410
      code: 400
411
      message: BAD REQUEST
412
    headers:
413
      Date:
414
      - Mon, 29 Jan 2018 17:52:07 GMT
415
      Server:
416
      - Apache/2.4.6 (CentOS)
417
      Content-Length:
418
      - '419'
419
      Connection:
420
      - close
421
      Content-Type:
422
      - application/json; charset=utf-8
423
    body:
424
      encoding: UTF-8
425
      string: '{"http_request_method": "POST", "exception": null, "error_message":
426
        "Value for [relative_url]  must be be a relative path: /path", "_href": "/pulp/api/v2/repositories/",
427
        "http_status": 400, "error": {"code": "PLP0000", "data": {}, "description":
428
        "Value for [relative_url]  must be be a relative path: /path", "sub_errors":
429
        []}, "args": ["Value for [relative_url]  must be be a relative path: /path"],
430
        "traceback": null}'
431
    http_version: 
432
  recorded_at: Mon, 29 Jan 2018 17:52:07 GMT
433
- request:
434
    method: post
435
    uri: https://admin:admin@centos7-devel.zpm.example.com/pulp/api/v2/repositories/
436
    body:
437
      encoding: UTF-8
438
      string: '{"id":"integration_test_id","importer_type_id":"iso_importer","importer_config":{"feed":"file:///var/www/repositories/iso"},"distributors":[{"distributor_type_id":"iso_distributor","distributor_config":{"relative_url":"path","serve_http":true,"serve_https":true},"auto_publish":false,"distributor_id":"iso_distributor"}]}'
439
    headers:
440
      Accept:
441
      - application/json
442
      Accept-Encoding:
443
      - gzip, deflate
444
      User-Agent:
445
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
446
      Content-Type:
447
      - application/json
448
      Content-Length:
449
      - '321'
450
      Host:
451
      - centos7-devel.zpm.example.com
452
  response:
453
    status:
454
      code: 201
455
      message: CREATED
456
    headers:
457
      Date:
458
      - Mon, 29 Jan 2018 17:59:41 GMT
459
      Server:
460
      - Apache/2.4.6 (CentOS)
461
      Content-Length:
462
      - '319'
463
      Location:
464
      - https://centos7-devel.zpm.example.com/pulp/api/v2/repositories/integration_test_id/
465
      Content-Type:
466
      - application/json; charset=utf-8
467
    body:
468
      encoding: UTF-8
378 469
      string: '{"scratchpad": {}, "display_name": "integration_test_id", "description":
379
        null, "distributors": [{"repo_id": "integration_test_id", "_href": "/pulp/api/v2/repositories/integration_test_id/distributors/iso_distributor/",
380
        "_ns": "repo_distributors", "last_publish": null, "distributor_type_id": "iso_distributor",
381
        "auto_publish": false, "scratchpad": {}, "_id": {"$oid": "5776819b8af3c82a3af4a906"},
382
        "config": {"serve_https": true, "serve_http": true}, "id": "iso_distributor"}],
383
        "last_unit_added": null, "notes": {}, "last_unit_removed": null, "content_unit_counts":
384
        {}, "_ns": "repos", "importers": [{"scratchpad": null, "_href": "/pulp/api/v2/repositories/integration_test_id/importers/iso_importer/",
385
        "_ns": "repo_importers", "importer_type_id": "iso_importer", "last_sync":
386
        null, "repo_id": "integration_test_id", "_id": {"$oid": "5776819b8af3c82a3af4a905"},
470
        null, "last_unit_added": null, "notes": {}, "last_unit_removed": null, "content_unit_counts":
471
        {}, "_ns": "repos", "_id": {"$oid": "5a6f610d07049113890cb948"}, "id": "integration_test_id",
472
        "_href": "/pulp/api/v2/repositories/integration_test_id/"}'
473
    http_version: 
474
  recorded_at: Mon, 29 Jan 2018 17:59:41 GMT
475
- request:
476
    method: get
477
    uri: https://admin:admin@centos7-devel.zpm.example.com/pulp/api/v2/repositories/integration_test_id/?details=true
478
    body:
479
      encoding: US-ASCII
480
      string: ''
481
    headers:
482
      Accept:
483
      - application/json
484
      Accept-Encoding:
485
      - gzip, deflate
486
      User-Agent:
487
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
488
      Content-Type:
489
      - application/json
490
      Host:
491
      - centos7-devel.zpm.example.com
492
  response:
493
    status:
494
      code: 200
495
      message: OK
496
    headers:
497
      Date:
498
      - Mon, 29 Jan 2018 17:59:41 GMT
499
      Server:
500
      - Apache/2.4.6 (CentOS)
501
      Vary:
502
      - Accept-Encoding
503
      Content-Length:
504
      - '1289'
505
      Content-Type:
506
      - application/json; charset=utf-8
507
    body:
508
      encoding: ASCII-8BIT
509
      string: '{"scratchpad": {}, "display_name": "integration_test_id", "description":
510
        null, "distributors": [{"repo_id": "integration_test_id", "last_updated":
511
        "2018-01-29T17:59:41Z", "_href": "/pulp/api/v2/repositories/integration_test_id/distributors/iso_distributor/",
512
        "last_override_config": {}, "last_publish": null, "distributor_type_id": "iso_distributor",
513
        "auto_publish": false, "scratchpad": {}, "_ns": "repo_distributors", "_id":
514
        {"$oid": "5a6f610d07049113890cb94a"}, "config": {"serve_https": true, "serve_http":
515
        true, "relative_url": "path"}, "id": "iso_distributor"}], "last_unit_added":
516
        null, "notes": {}, "last_unit_removed": null, "content_unit_counts": {}, "_ns":
517
        "repos", "importers": [{"repo_id": "integration_test_id", "last_updated":
518
        "2018-01-29T17:59:41Z", "_href": "/pulp/api/v2/repositories/integration_test_id/importers/iso_importer/",
519
        "_ns": "repo_importers", "importer_type_id": "iso_importer", "last_override_config":
520
        {}, "last_sync": null, "scratchpad": null, "_id": {"$oid": "5a6f610d07049113890cb949"},
387 521
        "config": {"feed": "file:///var/www/repositories/iso"}, "id": "iso_importer"}],
388
        "locally_stored_units": 0, "_id": {"$oid": "5776819b8af3c82a3af4a904"}, "total_repository_units":
522
        "locally_stored_units": 0, "_id": {"$oid": "5a6f610d07049113890cb948"}, "total_repository_units":
389 523
        0, "id": "integration_test_id", "_href": "/pulp/api/v2/repositories/integration_test_id/"}'
390 524
    http_version: 
391
  recorded_at: Fri, 01 Jul 2016 14:43:39 GMT
525
  recorded_at: Mon, 29 Jan 2018 17:59:41 GMT
392 526
- request:
393 527
    method: delete
394
    uri: https://admin:admin@devel.example.com/pulp/api/v2/repositories/integration_test_id/
528
    uri: https://admin:admin@centos7-devel.zpm.example.com/pulp/api/v2/repositories/integration_test_id/
395 529
    body:
396 530
      encoding: US-ASCII
397 531
      string: ''
......
400 534
      - application/json
401 535
      Accept-Encoding:
402 536
      - gzip, deflate
537
      User-Agent:
538
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
403 539
      Content-Type:
404 540
      - application/json
405
      User-Agent:
406
      - Ruby
541
      Host:
542
      - centos7-devel.zpm.example.com
407 543
  response:
408 544
    status:
409 545
      code: 202
410 546
      message: ACCEPTED
411 547
    headers:
412 548
      Date:
413
      - Fri, 01 Jul 2016 14:43:39 GMT
549
      - Mon, 29 Jan 2018 17:59:41 GMT
414 550
      Server:
415 551
      - Apache/2.4.6 (CentOS)
416 552
      Content-Length:
......
419 555
      - application/json; charset=utf-8
420 556
    body:
421 557
      encoding: UTF-8
422
      string: '{"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/4a693baa-4ecc-47dd-971b-fa5d498967b8/",
423
        "task_id": "4a693baa-4ecc-47dd-971b-fa5d498967b8"}], "result": null, "error":
558
      string: '{"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/a6d1ef83-f04b-4f6a-bc35-833a7161beb9/",
559
        "task_id": "a6d1ef83-f04b-4f6a-bc35-833a7161beb9"}], "result": null, "error":
424 560
        null}'
425 561
    http_version: 
426
  recorded_at: Fri, 01 Jul 2016 14:43:39 GMT
562
  recorded_at: Mon, 29 Jan 2018 17:59:41 GMT
427 563
- request:
428 564
    method: get
429
    uri: https://admin:admin@devel.example.com/pulp/api/v2/tasks/4a693baa-4ecc-47dd-971b-fa5d498967b8/
565
    uri: https://admin:admin@centos7-devel.zpm.example.com/pulp/api/v2/tasks/a6d1ef83-f04b-4f6a-bc35-833a7161beb9/
430 566
    body:
431 567
      encoding: US-ASCII
432 568
      string: ''
......
435 571
      - application/json
436 572
      Accept-Encoding:
437 573
      - gzip, deflate
574
      User-Agent:
575
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
438 576
      Content-Type:
439 577
      - application/json
440
      User-Agent:
441
      - Ruby
578
      Host:
579
      - centos7-devel.zpm.example.com
442 580
  response:
443 581
    status:
444 582
      code: 200
445 583
      message: OK
446 584
    headers:
447 585
      Date:
448
      - Fri, 01 Jul 2016 14:43:40 GMT
586
      - Mon, 29 Jan 2018 17:59:41 GMT
449 587
      Server:
450 588
      - Apache/2.4.6 (CentOS)
451 589
      Vary:
452 590
      - Accept-Encoding
453 591
      Content-Length:
454
      - '678'
592
      - '702'
455 593
      Content-Type:
456 594
      - application/json; charset=utf-8
457 595
    body:
458 596
      encoding: ASCII-8BIT
459 597
      string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
460
        "_href": "/pulp/api/v2/tasks/4a693baa-4ecc-47dd-971b-fa5d498967b8/", "task_id":
461
        "4a693baa-4ecc-47dd-971b-fa5d498967b8", "tags": ["pulp:repository:integration_test_id",
462
        "pulp:action:delete"], "finish_time": "2016-07-01T14:43:39Z", "_ns": "task_status",
463
        "start_time": "2016-07-01T14:43:39Z", "traceback": null, "spawned_tasks":
464
        [], "progress_report": {}, "queue": "reserved_resource_worker-1@devel.example.com.dq",
465
        "state": "finished", "worker_name": "reserved_resource_worker-1@devel.example.com",
466
        "result": null, "error": null, "_id": {"$oid": "5776819b9036949adab88912"},
467
        "id": "5776819b9036949adab88912"}'
598
        "_href": "/pulp/api/v2/tasks/a6d1ef83-f04b-4f6a-bc35-833a7161beb9/", "task_id":
599
        "a6d1ef83-f04b-4f6a-bc35-833a7161beb9", "tags": ["pulp:repository:integration_test_id",
600
        "pulp:action:delete"], "finish_time": "2018-01-29T17:59:41Z", "_ns": "task_status",
601
        "start_time": "2018-01-29T17:59:41Z", "traceback": null, "spawned_tasks":
602
        [], "progress_report": {}, "queue": "reserved_resource_worker-1@centos7-devel.zpm.example.com.dq",
603
        "state": "finished", "worker_name": "reserved_resource_worker-1@centos7-devel.zpm.example.com",
604
        "result": null, "error": null, "_id": {"$oid": "5a6f610dab249cfe47a6cbe9"},
605
        "id": "5a6f610dab249cfe47a6cbe9"}'
468 606
    http_version: 
469
  recorded_at: Fri, 01 Jul 2016 14:43:40 GMT
470
recorded_with: VCR 3.0.3
607
  recorded_at: Mon, 29 Jan 2018 17:59:42 GMT
608
recorded_with: VCR 4.0.0
test/fixtures/vcr_cassettes/extensions/iso_repository_create/file_ids.yml
1 1
---
2 2
http_interactions:
3 3
- request:
4
    method: delete
5
    uri: https://admin:admin@devel.example.com/pulp/api/v2/repositories/integration_test_id/
4
    method: get
5
    uri: https://admin:admin@devel.example.com/pulp/api/v2/tasks/189cee85-8aec-415b-b7c4-b5934ab5de92/
6 6
    body:
7 7
      encoding: US-ASCII
8 8
      string: ''
......
17 17
      - Ruby
18 18
  response:
19 19
    status:
20
      code: 200
21
      message: OK
22
    headers:
23
      Date:
24
      - Fri, 01 Jul 2016 14:43:44 GMT
25
      Server:
26
      - Apache/2.4.6 (CentOS)
27
      Vary:
28
      - Accept-Encoding
29
      Content-Length:
30
      - '2487'
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/189cee85-8aec-415b-b7c4-b5934ab5de92/", "task_id":
37
        "189cee85-8aec-415b-b7c4-b5934ab5de92", "tags": ["pulp:repository:integration_test_id",
38
        "pulp:action:sync"], "finish_time": "2016-07-01T14:43:44Z", "_ns": "task_status",
39
        "start_time": "2016-07-01T14:43:44Z", "traceback": "Traceback (most recent
40
        call last):\n  File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\",
41
        line 240, in trace_task\n    R = retval = fun(*args, **kwargs)\n  File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\",
42
        line 473, in __call__\n    return super(Task, self).__call__(*args, **kwargs)\n  File
43
        \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 103,
44
        in __call__\n    return super(PulpTask, self).__call__(*args, **kwargs)\n  File
45
        \"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 437, in __protected_call__\n    return
46
        self.run(*args, **kwargs)\n  File \"/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py\",
47
        line 760, in sync\n    sync_report = sync_repo(transfer_repo, conduit, call_config)\n  File
48
        \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 658,
49
        in wrap_f\n    return f(*args, **kwargs)\n  File \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/iso/importer.py\",
50
        line 103, in sync_repo\n    report = self.iso_sync.perform_sync()\n  File
51
        \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/iso/sync.py\",
52
        line 220, in perform_sync\n    self.add_catalog_entries(local_available_isos)\n  File
53
        \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/iso/sync.py\",
54
        line 186, in add_catalog_entries\n    entry.url = unit.url\nAttributeError:
55
        ''ISO'' object has no attribute ''url''\n", "spawned_tasks": [], "progress_report":
56
        {"iso_importer": {"error_message": null, "traceback": null, "finished_bytes":
57
        0, "num_isos": null, "state": "manifest_in_progress", "total_bytes": null,
58
        "state_times": {"not_started": "2016-07-01T14:43:44", "manifest_in_progress":
59
        "2016-07-01T14:43:44"}, "num_isos_finished": 0, "iso_error_messages": []}},
60
        "queue": "reserved_resource_worker-1@devel.example.com.dq", "state": "error",
61
        "worker_name": "reserved_resource_worker-1@devel.example.com", "result": null,
62
        "error": {"code": "PLP0000", "data": {}, "description": "''ISO'' object has
63
        no attribute ''url''", "sub_errors": []}, "_id": {"$oid": "577681a09036949adab88917"},
64
        "id": "577681a09036949adab88917"}'
65
    http_version: 
66
  recorded_at: Fri, 01 Jul 2016 14:43:44 GMT
67
- request:
68
    method: get
69
    uri: https://admin:admin@devel.example.com/pulp/api/v2/tasks/bbbf395d-7f77-4d5c-bf3f-d6ce752128a7/
70
    body:
71
      encoding: US-ASCII
72
      string: ''
73
    headers:
74
      Accept:
75
      - application/json
76
      Accept-Encoding:
77
      - gzip, deflate
78
      Content-Type:
79
      - application/json
80
      User-Agent:
81
      - Ruby
82
  response:
83
    status:
84
      code: 200
85
      message: OK
86
    headers:
87
      Date:
88
      - Fri, 01 Jul 2016 14:43:45 GMT
89
      Server:
90
      - Apache/2.4.6 (CentOS)
91
      Vary:
92
      - Accept-Encoding
93
      Content-Length:
94
      - '678'
95
      Content-Type:
96
      - application/json; charset=utf-8
97
    body:
98
      encoding: ASCII-8BIT
99
      string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
100
        "_href": "/pulp/api/v2/tasks/bbbf395d-7f77-4d5c-bf3f-d6ce752128a7/", "task_id":
101
        "bbbf395d-7f77-4d5c-bf3f-d6ce752128a7", "tags": ["pulp:repository:integration_test_id",
102
        "pulp:action:delete"], "finish_time": "2016-07-01T14:43:44Z", "_ns": "task_status",
103
        "start_time": "2016-07-01T14:43:44Z", "traceback": null, "spawned_tasks":
104
        [], "progress_report": {}, "queue": "reserved_resource_worker-1@devel.example.com.dq",
105
        "state": "finished", "worker_name": "reserved_resource_worker-1@devel.example.com",
106
        "result": null, "error": null, "_id": {"$oid": "577681a09036949adab88918"},
107
        "id": "577681a09036949adab88918"}'
108
    http_version: 
109
  recorded_at: Fri, 01 Jul 2016 14:43:45 GMT
110
- request:
111
    method: get
112
    uri: https://admin:admin@centos7-devel.zpm.example.com/pulp/api/v2/tasks/72871a94-06b7-49f4-ba22-faac1f17d9a5/
113
    body:
114
      encoding: US-ASCII
115
      string: ''
116
    headers:
117
      Accept:
118
      - application/json
119
      Accept-Encoding:
120
      - gzip, deflate
121
      User-Agent:
122
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
123
      Content-Type:
124
      - application/json
125
      Host:
126
      - centos7-devel.zpm.example.com
127
  response:
128
    status:
129
      code: 200
130
      message: OK
131
    headers:
132
      Date:
133
      - Mon, 29 Jan 2018 17:52:08 GMT
134
      Server:
135
      - Apache/2.4.6 (CentOS)
136
      Vary:
137
      - Accept-Encoding
138
      Content-Length:
139
      - '1811'
140
      Content-Type:
141
      - application/json; charset=utf-8
142
    body:
143
      encoding: ASCII-8BIT
144
      string: '{"exception": null, "task_type": "pulp.server.managers.repo.sync.sync",
145
        "_href": "/pulp/api/v2/tasks/72871a94-06b7-49f4-ba22-faac1f17d9a5/", "task_id":
146
        "72871a94-06b7-49f4-ba22-faac1f17d9a5", "tags": ["pulp:repository:integration_test_id",
147
        "pulp:action:sync"], "finish_time": "2018-01-29T17:52:08Z", "_ns": "task_status",
148
        "start_time": "2018-01-29T17:52:07Z", "traceback": null, "spawned_tasks":
149
        [], "progress_report": {"iso_importer": {"error_message": null, "traceback":
150
        null, "finished_bytes": 0, "num_isos": 0, "state": "complete", "total_bytes":
151
        0, "state_times": {"not_started": "2018-01-29T17:52:07", "manifest_in_progress":
152
        "2018-01-29T17:52:07", "complete": "2018-01-29T17:52:07", "isos_in_progress":
153
        "2018-01-29T17:52:07"}, "num_isos_finished": 0, "iso_error_messages": []}},
154
        "queue": "reserved_resource_worker-1@centos7-devel.zpm.example.com.dq", "state":
155
        "finished", "worker_name": "reserved_resource_worker-1@centos7-devel.zpm.example.com",
156
        "result": {"result": "success", "importer_id": "iso_importer", "exception":
157
        null, "repo_id": "integration_test_id", "traceback": null, "started": "2018-01-29T17:52:07Z",
158
        "_ns": "repo_sync_results", "completed": "2018-01-29T17:52:07Z", "importer_type_id":
159
        "iso_importer", "error_message": null, "summary": {"total_bytes": 0, "traceback":
160
        null, "error_message": null, "finished_bytes": 0, "num_isos": 0, "state":
161
        "complete", "iso_error_messages": [], "num_isos_finished": 0, "state_times":
162
        {"not_started": "2018-01-29T17:52:07", "manifest_in_progress": "2018-01-29T17:52:07",
163
        "complete": "2018-01-29T17:52:07", "isos_in_progress": "2018-01-29T17:52:07"}},
164
        "added_count": 1, "removed_count": 0, "updated_count": 0, "id": "5a6f5f4707049123c1aaf6da",
165
        "details": null}, "error": null, "_id": {"$oid": "5a6f5f47ab249cfe47a6cbe2"},
166
        "id": "5a6f5f47ab249cfe47a6cbe2"}'
167
    http_version: 
168
  recorded_at: Mon, 29 Jan 2018 17:52:08 GMT
169
- request:
170
    method: get
171
    uri: https://admin:admin@centos7-devel.zpm.example.com/pulp/api/v2/tasks/19e40b86-f155-4d2d-8615-7f428897de46/
172
    body:
173
      encoding: US-ASCII
174
      string: ''
175
    headers:
176
      Accept:
177
      - application/json
178
      Accept-Encoding:
179
      - gzip, deflate
180
      User-Agent:
181
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
182
      Content-Type:
183
      - application/json
184
      Host:
185
      - centos7-devel.zpm.example.com
186
  response:
187
    status:
188
      code: 200
189
      message: OK
190
    headers:
191
      Date:
192
      - Mon, 29 Jan 2018 17:52:09 GMT
193
      Server:
194
      - Apache/2.4.6 (CentOS)
195
      Vary:
196
      - Accept-Encoding
197
      Content-Length:
198
      - '702'
199
      Content-Type:
200
      - application/json; charset=utf-8
201
    body:
202
      encoding: ASCII-8BIT
203
      string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
204
        "_href": "/pulp/api/v2/tasks/19e40b86-f155-4d2d-8615-7f428897de46/", "task_id":
205
        "19e40b86-f155-4d2d-8615-7f428897de46", "tags": ["pulp:repository:integration_test_id",
206
        "pulp:action:delete"], "finish_time": "2018-01-29T17:52:08Z", "_ns": "task_status",
207
        "start_time": "2018-01-29T17:52:08Z", "traceback": null, "spawned_tasks":
208
        [], "progress_report": {}, "queue": "reserved_resource_worker-1@centos7-devel.zpm.example.com.dq",
209
        "state": "finished", "worker_name": "reserved_resource_worker-1@centos7-devel.zpm.example.com",
210
        "result": null, "error": null, "_id": {"$oid": "5a6f5f48ab249cfe47a6cbe3"},
211
        "id": "5a6f5f48ab249cfe47a6cbe3"}'
212
    http_version: 
213
  recorded_at: Mon, 29 Jan 2018 17:52:09 GMT
214
- request:
215
    method: delete
216
    uri: https://admin:admin@centos7-devel.zpm.example.com/pulp/api/v2/repositories/integration_test_id/
217
    body:
218
      encoding: US-ASCII
219
      string: ''
220
    headers:
221
      Accept:
222
      - application/json
223
      Accept-Encoding:
224
      - gzip, deflate
225
      User-Agent:
226
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
227
      Content-Type:
228
      - application/json
229
      Host:
230
      - centos7-devel.zpm.example.com
231
  response:
232
    status:
20 233
      code: 404
21 234
      message: NOT FOUND
22 235
    headers:
23 236
      Date:
24
      - Fri, 01 Jul 2016 14:43:43 GMT
237
      - Mon, 29 Jan 2018 17:59:38 GMT
25 238
      Server:
26 239
      - Apache/2.4.6 (CentOS)
27
      Content-Encoding:
28
      - utf-8
29 240
      Content-Length:
30 241
      - '454'
31 242
      Content-Type:
......
38 249
        "integration_test_id"}}, "description": "Missing resource(s): repository=integration_test_id",
39 250
        "sub_errors": []}, "traceback": null, "resources": {"repository": "integration_test_id"}}'
40 251
    http_version: 
41
  recorded_at: Fri, 01 Jul 2016 14:43:43 GMT
252
  recorded_at: Mon, 29 Jan 2018 17:59:38 GMT
42 253
- request:
43 254
    method: get
44
    uri: https://admin:admin@devel.example.com/pulp/api/v2/repositories/integration_test_id/
255
    uri: https://admin:admin@centos7-devel.zpm.example.com/pulp/api/v2/repositories/integration_test_id/
45 256
    body:
46 257
      encoding: US-ASCII
47 258
      string: ''
......
50 261
      - application/json
51 262
      Accept-Encoding:
52 263
      - gzip, deflate
264
      User-Agent:
265
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
53 266
      Content-Type:
54 267
      - application/json
55
      User-Agent:
56
      - Ruby
268
      Host:
269
      - centos7-devel.zpm.example.com
57 270
  response:
58 271
    status:
59 272
      code: 404
60 273
      message: NOT FOUND
61 274
    headers:
62 275
      Date:
63
      - Fri, 01 Jul 2016 14:43:43 GMT
276
      - Mon, 29 Jan 2018 17:59:38 GMT
64 277
      Server:
65 278
      - Apache/2.4.6 (CentOS)
66
      Content-Encoding:
67
      - utf-8
68 279
      Content-Length:
69 280
      - '452'
70 281
      Content-Type:
......
77 288
        "integration_test_id"}}, "description": "Missing resource(s): repository=integration_test_id",
78 289
        "sub_errors": []}, "traceback": null, "resources": {"repository": "integration_test_id"}}'
79 290
    http_version: 
80
  recorded_at: Fri, 01 Jul 2016 14:43:43 GMT
291
  recorded_at: Mon, 29 Jan 2018 17:59:38 GMT
81 292
- request:
82 293
    method: post
83
    uri: https://admin:admin@devel.example.com/pulp/api/v2/repositories/
294
    uri: https://admin:admin@centos7-devel.zpm.example.com/pulp/api/v2/repositories/
84 295
    body:
85 296
      encoding: UTF-8
86 297
      string: '{"id":"integration_test_id","importer_type_id":"iso_importer","importer_config":{"feed":"file:///var/www/repositories/iso"}}'
......
89 300
      - application/json
90 301
      Accept-Encoding:
91 302
      - gzip, deflate
303
      User-Agent:
304
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
92 305
      Content-Type:
93 306
      - application/json
94 307
      Content-Length:
95 308
      - '124'
96
      User-Agent:
97
      - Ruby
309
      Host:
310
      - centos7-devel.zpm.example.com
98 311
  response:
99 312
    status:
100 313
      code: 201
101 314
      message: CREATED
102 315
    headers:
103 316
      Date:
104
      - Fri, 01 Jul 2016 14:43:43 GMT
317
      - Mon, 29 Jan 2018 17:59:38 GMT
105 318
      Server:
106 319
      - Apache/2.4.6 (CentOS)
107 320
      Content-Length:
108 321
      - '319'
109 322
      Location:
110
      - https://devel.example.com/pulp/api/v2/repositories/integration_test_id/
323
      - https://centos7-devel.zpm.example.com/pulp/api/v2/repositories/integration_test_id/
111 324
      Content-Type:
112 325
      - application/json; charset=utf-8
113 326
    body:
114 327
      encoding: UTF-8
115 328
      string: '{"scratchpad": {}, "display_name": "integration_test_id", "description":
116 329
        null, "last_unit_added": null, "notes": {}, "last_unit_removed": null, "content_unit_counts":
117
        {}, "_ns": "repos", "_id": {"$oid": "577681a08af3c82a3af4a90a"}, "id": "integration_test_id",
330
        {}, "_ns": "repos", "_id": {"$oid": "5a6f610a070491138bd54b36"}, "id": "integration_test_id",
118 331
        "_href": "/pulp/api/v2/repositories/integration_test_id/"}'
119 332
    http_version: 
120
  recorded_at: Fri, 01 Jul 2016 14:43:44 GMT
333
  recorded_at: Mon, 29 Jan 2018 17:59:38 GMT
121 334
- request:
122 335
    method: post
123
    uri: https://admin:admin@devel.example.com/pulp/api/v2/repositories/integration_test_id/actions/sync/
336
    uri: https://admin:admin@centos7-devel.zpm.example.com/pulp/api/v2/repositories/integration_test_id/actions/sync/
124 337
    body:
125 338
      encoding: UTF-8
126 339
      string: "{}"
......
129 342
      - application/json
130 343
      Accept-Encoding:
131 344
      - gzip, deflate
345
      User-Agent:
346
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
132 347
      Content-Type:
133 348
      - application/json
134 349
      Content-Length:
135 350
      - '2'
136
      User-Agent:
137
      - Ruby
351
      Host:
352
      - centos7-devel.zpm.example.com
138 353
  response:
139 354
    status:
140 355
      code: 202
141 356
      message: ACCEPTED
142 357
    headers:
143 358
      Date:
144
      - Fri, 01 Jul 2016 14:43:44 GMT
359
      - Mon, 29 Jan 2018 17:59:38 GMT
145 360
      Server:
146 361
      - Apache/2.4.6 (CentOS)
147 362
      Content-Length:
......
150 365
      - application/json; charset=utf-8
151 366
    body:
152 367
      encoding: UTF-8
153
      string: '{"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/189cee85-8aec-415b-b7c4-b5934ab5de92/",
154
        "task_id": "189cee85-8aec-415b-b7c4-b5934ab5de92"}], "result": null, "error":
368
      string: '{"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/0da4ca11-e073-42ca-ba1c-049c789646c1/",
369
        "task_id": "0da4ca11-e073-42ca-ba1c-049c789646c1"}], "result": null, "error":
155 370
        null}'
156 371
    http_version: 
157
  recorded_at: Fri, 01 Jul 2016 14:43:44 GMT
372
  recorded_at: Mon, 29 Jan 2018 17:59:38 GMT
158 373
- request:
159 374
    method: get
160
    uri: https://admin:admin@devel.example.com/pulp/api/v2/tasks/189cee85-8aec-415b-b7c4-b5934ab5de92/
375
    uri: https://admin:admin@centos7-devel.zpm.example.com/pulp/api/v2/tasks/0da4ca11-e073-42ca-ba1c-049c789646c1/
161 376
    body:
162 377
      encoding: US-ASCII
163 378
      string: ''
......
166 381
      - application/json
167 382
      Accept-Encoding:
168 383
      - gzip, deflate
384
      User-Agent:
385
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
169 386
      Content-Type:
170 387
      - application/json
171
      User-Agent:
172
      - Ruby
388
      Host:
389
      - centos7-devel.zpm.example.com
173 390
  response:
174 391
    status:
175 392
      code: 200
176 393
      message: OK
177 394
    headers:
178 395
      Date:
179
      - Fri, 01 Jul 2016 14:43:44 GMT
396
      - Mon, 29 Jan 2018 17:59:39 GMT
180 397
      Server:
181 398
      - Apache/2.4.6 (CentOS)
182 399
      Vary:
183 400
      - Accept-Encoding
184 401
      Content-Length:
185
      - '2487'
402
      - '1811'
186 403
      Content-Type:
187 404
      - application/json; charset=utf-8
188 405
    body:
189 406
      encoding: ASCII-8BIT
190 407
      string: '{"exception": null, "task_type": "pulp.server.managers.repo.sync.sync",
191
        "_href": "/pulp/api/v2/tasks/189cee85-8aec-415b-b7c4-b5934ab5de92/", "task_id":
192
        "189cee85-8aec-415b-b7c4-b5934ab5de92", "tags": ["pulp:repository:integration_test_id",
193
        "pulp:action:sync"], "finish_time": "2016-07-01T14:43:44Z", "_ns": "task_status",
194
        "start_time": "2016-07-01T14:43:44Z", "traceback": "Traceback (most recent
195
        call last):\n  File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\",
196
        line 240, in trace_task\n    R = retval = fun(*args, **kwargs)\n  File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\",
197
        line 473, in __call__\n    return super(Task, self).__call__(*args, **kwargs)\n  File
198
        \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 103,
199
        in __call__\n    return super(PulpTask, self).__call__(*args, **kwargs)\n  File
200
        \"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 437, in __protected_call__\n    return
201
        self.run(*args, **kwargs)\n  File \"/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py\",
202
        line 760, in sync\n    sync_report = sync_repo(transfer_repo, conduit, call_config)\n  File
203
        \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 658,
204
        in wrap_f\n    return f(*args, **kwargs)\n  File \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/iso/importer.py\",
205
        line 103, in sync_repo\n    report = self.iso_sync.perform_sync()\n  File
206
        \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/iso/sync.py\",
207
        line 220, in perform_sync\n    self.add_catalog_entries(local_available_isos)\n  File
208
        \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/iso/sync.py\",
209
        line 186, in add_catalog_entries\n    entry.url = unit.url\nAttributeError:
210
        ''ISO'' object has no attribute ''url''\n", "spawned_tasks": [], "progress_report":
211
        {"iso_importer": {"error_message": null, "traceback": null, "finished_bytes":
212
        0, "num_isos": null, "state": "manifest_in_progress", "total_bytes": null,
213
        "state_times": {"not_started": "2016-07-01T14:43:44", "manifest_in_progress":
214
        "2016-07-01T14:43:44"}, "num_isos_finished": 0, "iso_error_messages": []}},
215
        "queue": "reserved_resource_worker-1@devel.example.com.dq", "state": "error",
216
        "worker_name": "reserved_resource_worker-1@devel.example.com", "result": null,
217
        "error": {"code": "PLP0000", "data": {}, "description": "''ISO'' object has
218
        no attribute ''url''", "sub_errors": []}, "_id": {"$oid": "577681a09036949adab88917"},
219
        "id": "577681a09036949adab88917"}'
408
        "_href": "/pulp/api/v2/tasks/0da4ca11-e073-42ca-ba1c-049c789646c1/", "task_id":
409
        "0da4ca11-e073-42ca-ba1c-049c789646c1", "tags": ["pulp:repository:integration_test_id",
410
        "pulp:action:sync"], "finish_time": "2018-01-29T17:59:38Z", "_ns": "task_status",
411
        "start_time": "2018-01-29T17:59:38Z", "traceback": null, "spawned_tasks":
412
        [], "progress_report": {"iso_importer": {"error_message": null, "traceback":
413
        null, "finished_bytes": 0, "num_isos": 0, "state": "complete", "total_bytes":
414
        0, "state_times": {"not_started": "2018-01-29T17:59:38", "manifest_in_progress":
415
        "2018-01-29T17:59:38", "complete": "2018-01-29T17:59:38", "isos_in_progress":
416
        "2018-01-29T17:59:38"}, "num_isos_finished": 0, "iso_error_messages": []}},
417
        "queue": "reserved_resource_worker-1@centos7-devel.zpm.example.com.dq", "state":
418
        "finished", "worker_name": "reserved_resource_worker-1@centos7-devel.zpm.example.com",
419
        "result": {"result": "success", "importer_id": "iso_importer", "exception":
420
        null, "repo_id": "integration_test_id", "traceback": null, "started": "2018-01-29T17:59:38Z",
421
        "_ns": "repo_sync_results", "completed": "2018-01-29T17:59:38Z", "importer_type_id":
422
        "iso_importer", "error_message": null, "summary": {"total_bytes": 0, "traceback":
423
        null, "error_message": null, "finished_bytes": 0, "num_isos": 0, "state":
424
        "complete", "iso_error_messages": [], "num_isos_finished": 0, "state_times":
425
        {"not_started": "2018-01-29T17:59:38", "manifest_in_progress": "2018-01-29T17:59:38",
426
        "complete": "2018-01-29T17:59:38", "isos_in_progress": "2018-01-29T17:59:38"}},
427
        "added_count": 1, "removed_count": 0, "updated_count": 0, "id": "5a6f610a07049123c1aaf6dc",
428
        "details": null}, "error": null, "_id": {"$oid": "5a6f610aab249cfe47a6cbe5"},
429
        "id": "5a6f610aab249cfe47a6cbe5"}'
220 430
    http_version: 
221
  recorded_at: Fri, 01 Jul 2016 14:43:44 GMT
431
  recorded_at: Mon, 29 Jan 2018 17:59:39 GMT
222 432
- request:
223 433
    method: post
224
    uri: https://admin:admin@devel.example.com/pulp/api/v2/repositories/integration_test_id/search/units/
434
    uri: https://admin:admin@centos7-devel.zpm.example.com/pulp/api/v2/repositories/integration_test_id/search/units/
225 435
    body:
226 436
      encoding: UTF-8
227 437
      string: '{"criteria":{"type_ids":["iso"],"fields":{"unit":[],"association":["unit_id"]}}}'
......
230 440
      - application/json
231 441
      Accept-Encoding:
232 442
      - gzip, deflate
443
      User-Agent:
444
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
233 445
      Content-Type:
234 446
      - application/json
235 447
      Content-Length:
236 448
      - '80'
237
      User-Agent:
238
      - Ruby
449
      Host:
450
      - centos7-devel.zpm.example.com
239 451
  response:
240 452
    status:
241 453
      code: 200
242 454
      message: OK
243 455
    headers:
244 456
      Date:
245
      - Fri, 01 Jul 2016 14:43:44 GMT
457
      - Mon, 29 Jan 2018 17:59:39 GMT
246 458
      Server:
247 459
      - Apache/2.4.6 (CentOS)
248 460
      Vary:
......
253 465
      - application/json; charset=utf-8
254 466
    body:
255 467
      encoding: ASCII-8BIT
256
      string: '[{"metadata": {"_id": "f09a24f8-f982-4184-8104-ed4097954a06", "_content_type_id":
257
        "iso"}, "_id": {"$oid": "577681a08af3c8729bd1c047"}, "unit_id": "f09a24f8-f982-4184-8104-ed4097954a06",
468
      string: '[{"metadata": {"_id": "9b2b9731-abf3-4397-ba2e-177aa4bac207", "_content_type_id":
469
        "iso"}, "_id": {"$oid": "5a6f610a07049123c1aaf6db"}, "unit_id": "9b2b9731-abf3-4397-ba2e-177aa4bac207",
258 470
        "unit_type_id": "iso"}]'
259 471
    http_version: 
260
  recorded_at: Fri, 01 Jul 2016 14:43:44 GMT
472
  recorded_at: Mon, 29 Jan 2018 17:59:39 GMT
261 473
- request:
262 474
    method: delete
263
    uri: https://admin:admin@devel.example.com/pulp/api/v2/repositories/integration_test_id/
475
    uri: https://admin:admin@centos7-devel.zpm.example.com/pulp/api/v2/repositories/integration_test_id/
264 476
    body:
265 477
      encoding: US-ASCII
266 478
      string: ''
......
269 481
      - application/json
270 482
      Accept-Encoding:
271 483
      - gzip, deflate
484
      User-Agent:
485
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
272 486
      Content-Type:
273 487
      - application/json
274
      User-Agent:
275
      - Ruby
488
      Host:
489
      - centos7-devel.zpm.example.com
276 490
  response:
277 491
    status:
278 492
      code: 202
279 493
      message: ACCEPTED
280 494
    headers:
281 495
      Date:
282
      - Fri, 01 Jul 2016 14:43:44 GMT
496
      - Mon, 29 Jan 2018 17:59:39 GMT
283 497
      Server:
284 498
      - Apache/2.4.6 (CentOS)
285 499
      Content-Length:
......
288 502
      - application/json; charset=utf-8
289 503
    body:
290 504
      encoding: UTF-8
291
      string: '{"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/bbbf395d-7f77-4d5c-bf3f-d6ce752128a7/",
292
        "task_id": "bbbf395d-7f77-4d5c-bf3f-d6ce752128a7"}], "result": null, "error":
505
      string: '{"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/445cadd9-acf3-4d0f-b442-9a0b4b188e5c/",
506
        "task_id": "445cadd9-acf3-4d0f-b442-9a0b4b188e5c"}], "result": null, "error":
293 507
        null}'
294 508
    http_version: 
295
  recorded_at: Fri, 01 Jul 2016 14:43:44 GMT
509
  recorded_at: Mon, 29 Jan 2018 17:59:39 GMT
296 510
- request:
297 511
    method: get
298
    uri: https://admin:admin@devel.example.com/pulp/api/v2/tasks/bbbf395d-7f77-4d5c-bf3f-d6ce752128a7/
512
    uri: https://admin:admin@centos7-devel.zpm.example.com/pulp/api/v2/tasks/445cadd9-acf3-4d0f-b442-9a0b4b188e5c/
299 513
    body:
300 514
      encoding: US-ASCII
301 515
      string: ''
......
304 518
      - application/json
305 519
      Accept-Encoding:
306 520
      - gzip, deflate
521
      User-Agent:
522
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
307 523
      Content-Type:
308 524
      - application/json
309
      User-Agent:
310
      - Ruby
525
      Host:
526
      - centos7-devel.zpm.example.com
311 527
  response:
312 528
    status:
313 529
      code: 200
314 530
      message: OK
315 531
    headers:
316 532
      Date:
317
      - Fri, 01 Jul 2016 14:43:45 GMT
533
      - Mon, 29 Jan 2018 17:59:39 GMT
318 534
      Server:
319 535
      - Apache/2.4.6 (CentOS)
320 536
      Vary:
321 537
      - Accept-Encoding
322 538
      Content-Length:
323
      - '678'
539
      - '702'
324 540
      Content-Type:
325 541
      - application/json; charset=utf-8
326 542
    body:
327 543
      encoding: ASCII-8BIT
328 544
      string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
329
        "_href": "/pulp/api/v2/tasks/bbbf395d-7f77-4d5c-bf3f-d6ce752128a7/", "task_id":
330
        "bbbf395d-7f77-4d5c-bf3f-d6ce752128a7", "tags": ["pulp:repository:integration_test_id",
331
        "pulp:action:delete"], "finish_time": "2016-07-01T14:43:44Z", "_ns": "task_status",
332
        "start_time": "2016-07-01T14:43:44Z", "traceback": null, "spawned_tasks":
333
        [], "progress_report": {}, "queue": "reserved_resource_worker-1@devel.example.com.dq",
334
        "state": "finished", "worker_name": "reserved_resource_worker-1@devel.example.com",
335
        "result": null, "error": null, "_id": {"$oid": "577681a09036949adab88918"},
336
        "id": "577681a09036949adab88918"}'
545
        "_href": "/pulp/api/v2/tasks/445cadd9-acf3-4d0f-b442-9a0b4b188e5c/", "task_id":
546
        "445cadd9-acf3-4d0f-b442-9a0b4b188e5c", "tags": ["pulp:repository:integration_test_id",
547
        "pulp:action:delete"], "finish_time": "2018-01-29T17:59:39Z", "_ns": "task_status",
548
        "start_time": "2018-01-29T17:59:39Z", "traceback": null, "spawned_tasks":
549
        [], "progress_report": {}, "queue": "reserved_resource_worker-1@centos7-devel.zpm.example.com.dq",
550
        "state": "finished", "worker_name": "reserved_resource_worker-1@centos7-devel.zpm.example.com",
551
        "result": null, "error": null, "_id": {"$oid": "5a6f610bab249cfe47a6cbe6"},
552
        "id": "5a6f610bab249cfe47a6cbe6"}'
337 553
    http_version: 
338
  recorded_at: Fri, 01 Jul 2016 14:43:45 GMT
339
recorded_with: VCR 3.0.3
554
  recorded_at: Mon, 29 Jan 2018 17:59:39 GMT
555
recorded_with: VCR 4.0.0
test/fixtures/vcr_cassettes/extensions/iso_repository_create/files.yml
1 1
---
2 2
http_interactions:
3 3
- request:
4
    method: delete
5
    uri: https://admin:admin@devel.example.com/pulp/api/v2/repositories/integration_test_id/
4
    method: get
5
    uri: https://admin:admin@devel.example.com/pulp/api/v2/tasks/a003b404-521c-4834-8673-007570545fea/
6 6
    body:
7 7
      encoding: US-ASCII
8 8
      string: ''
......
17 17
      - Ruby
18 18
  response:
19 19
    status:
20
      code: 200
21
      message: OK
22
    headers:
23
      Date:
24
      - Fri, 01 Jul 2016 14:43:41 GMT
25
      Server:
26
      - Apache/2.4.6 (CentOS)
27
      Vary:
28
      - Accept-Encoding
29
      Content-Length:
30
      - '2487'
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/a003b404-521c-4834-8673-007570545fea/", "task_id":
37
        "a003b404-521c-4834-8673-007570545fea", "tags": ["pulp:repository:integration_test_id",
38
        "pulp:action:sync"], "finish_time": "2016-07-01T14:43:40Z", "_ns": "task_status",
39
        "start_time": "2016-07-01T14:43:40Z", "traceback": "Traceback (most recent
40
        call last):\n  File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\",
41
        line 240, in trace_task\n    R = retval = fun(*args, **kwargs)\n  File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\",
42
        line 473, in __call__\n    return super(Task, self).__call__(*args, **kwargs)\n  File
43
        \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 103,
44
        in __call__\n    return super(PulpTask, self).__call__(*args, **kwargs)\n  File
45
        \"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 437, in __protected_call__\n    return
46
        self.run(*args, **kwargs)\n  File \"/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py\",
47
        line 760, in sync\n    sync_report = sync_repo(transfer_repo, conduit, call_config)\n  File
48
        \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 658,
49
        in wrap_f\n    return f(*args, **kwargs)\n  File \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/iso/importer.py\",
50
        line 103, in sync_repo\n    report = self.iso_sync.perform_sync()\n  File
51
        \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/iso/sync.py\",
52
        line 220, in perform_sync\n    self.add_catalog_entries(local_available_isos)\n  File
53
        \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/iso/sync.py\",
54
        line 186, in add_catalog_entries\n    entry.url = unit.url\nAttributeError:
55
        ''ISO'' object has no attribute ''url''\n", "spawned_tasks": [], "progress_report":
56
        {"iso_importer": {"error_message": null, "traceback": null, "finished_bytes":
57
        0, "num_isos": null, "state": "manifest_in_progress", "total_bytes": null,
58
        "state_times": {"not_started": "2016-07-01T14:43:40", "manifest_in_progress":
59
        "2016-07-01T14:43:40"}, "num_isos_finished": 0, "iso_error_messages": []}},
60
        "queue": "reserved_resource_worker-1@devel.example.com.dq", "state": "error",
61
        "worker_name": "reserved_resource_worker-1@devel.example.com", "result": null,
62
        "error": {"code": "PLP0000", "data": {}, "description": "''ISO'' object has
63
        no attribute ''url''", "sub_errors": []}, "_id": {"$oid": "5776819c9036949adab88913"},
64
        "id": "5776819c9036949adab88913"}'
65
    http_version: 
66
  recorded_at: Fri, 01 Jul 2016 14:43:41 GMT
67
- request:
68
    method: get
69
    uri: https://admin:admin@devel.example.com/pulp/api/v2/tasks/9e857859-b4e8-4388-80ec-1841dfb157fd/
70
    body:
71
      encoding: US-ASCII
72
      string: ''
73
    headers:
74
      Accept:
75
      - application/json
76
      Accept-Encoding:
77
      - gzip, deflate
78
      Content-Type:
79
      - application/json
80
      User-Agent:
81
      - Ruby
82
  response:
83
    status:
84
      code: 200
85
      message: OK
86
    headers:
87
      Date:
88
      - Fri, 01 Jul 2016 14:43:41 GMT
89
      Server:
90
      - Apache/2.4.6 (CentOS)
91
      Vary:
92
      - Accept-Encoding
93
      Content-Length:
94
      - '678'
95
      Content-Type:
96
      - application/json; charset=utf-8
97
    body:
98
      encoding: ASCII-8BIT
99
      string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
100
        "_href": "/pulp/api/v2/tasks/9e857859-b4e8-4388-80ec-1841dfb157fd/", "task_id":
101
        "9e857859-b4e8-4388-80ec-1841dfb157fd", "tags": ["pulp:repository:integration_test_id",
102
        "pulp:action:delete"], "finish_time": "2016-07-01T14:43:41Z", "_ns": "task_status",
103
        "start_time": "2016-07-01T14:43:41Z", "traceback": null, "spawned_tasks":
104
        [], "progress_report": {}, "queue": "reserved_resource_worker-1@devel.example.com.dq",
105
        "state": "finished", "worker_name": "reserved_resource_worker-1@devel.example.com",
106
        "result": null, "error": null, "_id": {"$oid": "5776819d9036949adab88914"},
107
        "id": "5776819d9036949adab88914"}'
108
    http_version: 
109
  recorded_at: Fri, 01 Jul 2016 14:43:41 GMT
110
- request:
111
    method: get
112
    uri: https://admin:admin@centos7-devel.zpm.example.com/pulp/api/v2/tasks/e76b8b40-387e-46f2-a4c5-610a83f7dd07/
113
    body:
114
      encoding: US-ASCII
115
      string: ''
116
    headers:
117
      Accept:
118
      - application/json
119
      Accept-Encoding:
120
      - gzip, deflate
121
      User-Agent:
122
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
123
      Content-Type:
124
      - application/json
125
      Host:
126
      - centos7-devel.zpm.example.com
127
  response:
128
    status:
129
      code: 200
130
      message: OK
131
    headers:
132
      Date:
133
      - Mon, 29 Jan 2018 17:52:06 GMT
134
      Server:
135
      - Apache/2.4.6 (CentOS)
136
      Vary:
137
      - Accept-Encoding
138
      Content-Length:
139
      - '1811'
140
      Content-Type:
141
      - application/json; charset=utf-8
142
    body:
143
      encoding: ASCII-8BIT
144
      string: '{"exception": null, "task_type": "pulp.server.managers.repo.sync.sync",
145
        "_href": "/pulp/api/v2/tasks/e76b8b40-387e-46f2-a4c5-610a83f7dd07/", "task_id":
146
        "e76b8b40-387e-46f2-a4c5-610a83f7dd07", "tags": ["pulp:repository:integration_test_id",
147
        "pulp:action:sync"], "finish_time": "2018-01-29T17:52:06Z", "_ns": "task_status",
148
        "start_time": "2018-01-29T17:52:06Z", "traceback": null, "spawned_tasks":
149
        [], "progress_report": {"iso_importer": {"error_message": null, "traceback":
150
        null, "finished_bytes": 0, "num_isos": 0, "state": "complete", "total_bytes":
151
        0, "state_times": {"not_started": "2018-01-29T17:52:06", "manifest_in_progress":
152
        "2018-01-29T17:52:06", "complete": "2018-01-29T17:52:06", "isos_in_progress":
153
        "2018-01-29T17:52:06"}, "num_isos_finished": 0, "iso_error_messages": []}},
154
        "queue": "reserved_resource_worker-1@centos7-devel.zpm.example.com.dq", "state":
155
        "finished", "worker_name": "reserved_resource_worker-1@centos7-devel.zpm.example.com",
156
        "result": {"result": "success", "importer_id": "iso_importer", "exception":
157
        null, "repo_id": "integration_test_id", "traceback": null, "started": "2018-01-29T17:52:06Z",
158
        "_ns": "repo_sync_results", "completed": "2018-01-29T17:52:06Z", "importer_type_id":
159
        "iso_importer", "error_message": null, "summary": {"total_bytes": 0, "traceback":
160
        null, "error_message": null, "finished_bytes": 0, "num_isos": 0, "state":
161
        "complete", "iso_error_messages": [], "num_isos_finished": 0, "state_times":
162
        {"not_started": "2018-01-29T17:52:06", "manifest_in_progress": "2018-01-29T17:52:06",
163
        "complete": "2018-01-29T17:52:06", "isos_in_progress": "2018-01-29T17:52:06"}},
164
        "added_count": 1, "removed_count": 0, "updated_count": 0, "id": "5a6f5f4607049123c1aaf6d8",
165
        "details": null}, "error": null, "_id": {"$oid": "5a6f5f46ab249cfe47a6cbe0"},
166
        "id": "5a6f5f46ab249cfe47a6cbe0"}'
167
    http_version: 
168
  recorded_at: Mon, 29 Jan 2018 17:52:06 GMT
169
- request:
170
    method: get
171
    uri: https://admin:admin@centos7-devel.zpm.example.com/pulp/api/v2/tasks/35fb2ebd-60ab-4de8-8064-4e36a42066ca/
172
    body:
173
      encoding: US-ASCII
174
      string: ''
175
    headers:
176
      Accept:
177
      - application/json
178
      Accept-Encoding:
179
      - gzip, deflate
180
      User-Agent:
181
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
182
      Content-Type:
183
      - application/json
184
      Host:
185
      - centos7-devel.zpm.example.com
186
  response:
187
    status:
188
      code: 200
189
      message: OK
190
    headers:
191
      Date:
192
      - Mon, 29 Jan 2018 17:52:07 GMT
193
      Server:
194
      - Apache/2.4.6 (CentOS)
195
      Vary:
196
      - Accept-Encoding
197
      Content-Length:
198
      - '702'
199
      Content-Type:
200
      - application/json; charset=utf-8
201
    body:
202
      encoding: ASCII-8BIT
203
      string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
204
        "_href": "/pulp/api/v2/tasks/35fb2ebd-60ab-4de8-8064-4e36a42066ca/", "task_id":
205
        "35fb2ebd-60ab-4de8-8064-4e36a42066ca", "tags": ["pulp:repository:integration_test_id",
206
        "pulp:action:delete"], "finish_time": "2018-01-29T17:52:07Z", "_ns": "task_status",
207
        "start_time": "2018-01-29T17:52:07Z", "traceback": null, "spawned_tasks":
208
        [], "progress_report": {}, "queue": "reserved_resource_worker-1@centos7-devel.zpm.example.com.dq",
209
        "state": "finished", "worker_name": "reserved_resource_worker-1@centos7-devel.zpm.example.com",
210
        "result": null, "error": null, "_id": {"$oid": "5a6f5f47ab249cfe47a6cbe1"},
211
        "id": "5a6f5f47ab249cfe47a6cbe1"}'
212
    http_version: 
213
  recorded_at: Mon, 29 Jan 2018 17:52:07 GMT
214
- request:
215
    method: delete
216
    uri: https://admin:admin@centos7-devel.zpm.example.com/pulp/api/v2/repositories/integration_test_id/
217
    body:
218
      encoding: US-ASCII
219
      string: ''
220
    headers:
221
      Accept:
222
      - application/json
223
      Accept-Encoding:
224
      - gzip, deflate
225
      User-Agent:
226
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
227
      Content-Type:
228
      - application/json
229
      Host:
230
      - centos7-devel.zpm.example.com
231
  response:
232
    status:
20 233
      code: 404
21 234
      message: NOT FOUND
22 235
    headers:
23 236
      Date:
24
      - Fri, 01 Jul 2016 14:43:40 GMT
237
      - Mon, 29 Jan 2018 17:59:39 GMT
25 238
      Server:
26 239
      - Apache/2.4.6 (CentOS)
27
      Content-Encoding:
28
      - utf-8
29 240
      Content-Length:
30 241
      - '454'
31 242
      Content-Type:
......
38 249
        "integration_test_id"}}, "description": "Missing resource(s): repository=integration_test_id",
39 250
        "sub_errors": []}, "traceback": null, "resources": {"repository": "integration_test_id"}}'
40 251
    http_version: 
41
  recorded_at: Fri, 01 Jul 2016 14:43:40 GMT
252
  recorded_at: Mon, 29 Jan 2018 17:59:39 GMT
42 253
- request:
43 254
    method: get
44
    uri: https://admin:admin@devel.example.com/pulp/api/v2/repositories/integration_test_id/
255
    uri: https://admin:admin@centos7-devel.zpm.example.com/pulp/api/v2/repositories/integration_test_id/
45 256
    body:
46 257
      encoding: US-ASCII
47 258
      string: ''
......
50 261
      - application/json
51 262
      Accept-Encoding:
52 263
      - gzip, deflate
264
      User-Agent:
265
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
53 266
      Content-Type:
54 267
      - application/json
55
      User-Agent:
56
      - Ruby
268
      Host:
269
      - centos7-devel.zpm.example.com
57 270
  response:
58 271
    status:
59 272
      code: 404
60 273
      message: NOT FOUND
61 274
    headers:
62 275
      Date:
63
      - Fri, 01 Jul 2016 14:43:40 GMT
276
      - Mon, 29 Jan 2018 17:59:39 GMT
64 277
      Server:
65 278
      - Apache/2.4.6 (CentOS)
66
      Content-Encoding:
67
      - utf-8
68 279
      Content-Length:
69 280
      - '452'
70 281
      Content-Type:
......
77 288
        "integration_test_id"}}, "description": "Missing resource(s): repository=integration_test_id",
78 289
        "sub_errors": []}, "traceback": null, "resources": {"repository": "integration_test_id"}}'
79 290
    http_version: 
80
  recorded_at: Fri, 01 Jul 2016 14:43:40 GMT
291
  recorded_at: Mon, 29 Jan 2018 17:59:39 GMT
81 292
- request:
82 293
    method: post
83
    uri: https://admin:admin@devel.example.com/pulp/api/v2/repositories/
294
    uri: https://admin:admin@centos7-devel.zpm.example.com/pulp/api/v2/repositories/
84 295
    body:
85 296
      encoding: UTF-8
86 297
      string: '{"id":"integration_test_id","importer_type_id":"iso_importer","importer_config":{"feed":"file:///var/www/repositories/iso"}}'
......
89 300
      - application/json
90 301
      Accept-Encoding:
91 302
      - gzip, deflate
303
      User-Agent:
304
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
92 305
      Content-Type:
93 306
      - application/json
94 307
      Content-Length:
95 308
      - '124'
96
      User-Agent:
97
      - Ruby
309
      Host:
310
      - centos7-devel.zpm.example.com
98 311
  response:
99 312
    status:
100 313
      code: 201
101 314
      message: CREATED
102 315
    headers:
103 316
      Date:
104
      - Fri, 01 Jul 2016 14:43:40 GMT
317
      - Mon, 29 Jan 2018 17:59:39 GMT
105 318
      Server:
106 319
      - Apache/2.4.6 (CentOS)
107 320
      Content-Length:
108 321
      - '319'
109 322
      Location:
110
      - https://devel.example.com/pulp/api/v2/repositories/integration_test_id/
323
      - https://centos7-devel.zpm.example.com/pulp/api/v2/repositories/integration_test_id/
111 324
      Content-Type:
112 325
      - application/json; charset=utf-8
113 326
    body:
114 327
      encoding: UTF-8
115 328
      string: '{"scratchpad": {}, "display_name": "integration_test_id", "description":
116 329
        null, "last_unit_added": null, "notes": {}, "last_unit_removed": null, "content_unit_counts":
117
        {}, "_ns": "repos", "_id": {"$oid": "5776819c8af3c82a3af4a907"}, "id": "integration_test_id",
330
        {}, "_ns": "repos", "_id": {"$oid": "5a6f610b070491138bd54b38"}, "id": "integration_test_id",
118 331
        "_href": "/pulp/api/v2/repositories/integration_test_id/"}'
119 332
    http_version: 
120
  recorded_at: Fri, 01 Jul 2016 14:43:40 GMT
333
  recorded_at: Mon, 29 Jan 2018 17:59:39 GMT
121 334
- request:
122 335
    method: post
123
    uri: https://admin:admin@devel.example.com/pulp/api/v2/repositories/integration_test_id/actions/sync/
336
    uri: https://admin:admin@centos7-devel.zpm.example.com/pulp/api/v2/repositories/integration_test_id/actions/sync/
124 337
    body:
125 338
      encoding: UTF-8
126 339
      string: "{}"
......
129 342
      - application/json
130 343
      Accept-Encoding:
131 344
      - gzip, deflate
345
      User-Agent:
346
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
132 347
      Content-Type:
133 348
      - application/json
134 349
      Content-Length:
135 350
      - '2'
136
      User-Agent:
137
      - Ruby
351
      Host:
352
      - centos7-devel.zpm.example.com
138 353
  response:
139 354
    status:
140 355
      code: 202
141 356
      message: ACCEPTED
142 357
    headers:
143 358
      Date:
144
      - Fri, 01 Jul 2016 14:43:40 GMT
359
      - Mon, 29 Jan 2018 17:59:39 GMT
145 360
      Server:
146 361
      - Apache/2.4.6 (CentOS)
147 362
      Content-Length:
......
150 365
      - application/json; charset=utf-8
151 366
    body:
152 367
      encoding: UTF-8
153
      string: '{"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/a003b404-521c-4834-8673-007570545fea/",
154
        "task_id": "a003b404-521c-4834-8673-007570545fea"}], "result": null, "error":
368
      string: '{"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/dd73db99-9565-4eb2-87f7-81c28456a8f3/",
369
        "task_id": "dd73db99-9565-4eb2-87f7-81c28456a8f3"}], "result": null, "error":
155 370
        null}'
156 371
    http_version: 
157
  recorded_at: Fri, 01 Jul 2016 14:43:40 GMT
372
  recorded_at: Mon, 29 Jan 2018 17:59:40 GMT
158 373
- request:
159 374
    method: get
160
    uri: https://admin:admin@devel.example.com/pulp/api/v2/tasks/a003b404-521c-4834-8673-007570545fea/
375
    uri: https://admin:admin@centos7-devel.zpm.example.com/pulp/api/v2/tasks/dd73db99-9565-4eb2-87f7-81c28456a8f3/
161 376
    body:
162 377
      encoding: US-ASCII
163 378
      string: ''
......
166 381
      - application/json
167 382
      Accept-Encoding:
168 383
      - gzip, deflate
384
      User-Agent:
385
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
169 386
      Content-Type:
170 387
      - application/json
171
      User-Agent:
172
      - Ruby
388
      Host:
389
      - centos7-devel.zpm.example.com
173 390
  response:
174 391
    status:
175 392
      code: 200
176 393
      message: OK
177 394
    headers:
178 395
      Date:
179
      - Fri, 01 Jul 2016 14:43:41 GMT
396
      - Mon, 29 Jan 2018 17:59:40 GMT
180 397
      Server:
181 398
      - Apache/2.4.6 (CentOS)
182 399
      Vary:
183 400
      - Accept-Encoding
184 401
      Content-Length:
185
      - '2487'
402
      - '1811'
186 403
      Content-Type:
187 404
      - application/json; charset=utf-8
188 405
    body:
189 406
      encoding: ASCII-8BIT
190 407
      string: '{"exception": null, "task_type": "pulp.server.managers.repo.sync.sync",
191
        "_href": "/pulp/api/v2/tasks/a003b404-521c-4834-8673-007570545fea/", "task_id":
192
        "a003b404-521c-4834-8673-007570545fea", "tags": ["pulp:repository:integration_test_id",
193
        "pulp:action:sync"], "finish_time": "2016-07-01T14:43:40Z", "_ns": "task_status",
194
        "start_time": "2016-07-01T14:43:40Z", "traceback": "Traceback (most recent
195
        call last):\n  File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\",
196
        line 240, in trace_task\n    R = retval = fun(*args, **kwargs)\n  File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\",
197
        line 473, in __call__\n    return super(Task, self).__call__(*args, **kwargs)\n  File
198
        \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 103,
199
        in __call__\n    return super(PulpTask, self).__call__(*args, **kwargs)\n  File
200
        \"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 437, in __protected_call__\n    return
201
        self.run(*args, **kwargs)\n  File \"/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py\",
202
        line 760, in sync\n    sync_report = sync_repo(transfer_repo, conduit, call_config)\n  File
203
        \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 658,
204
        in wrap_f\n    return f(*args, **kwargs)\n  File \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/iso/importer.py\",
205
        line 103, in sync_repo\n    report = self.iso_sync.perform_sync()\n  File
206
        \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/iso/sync.py\",
207
        line 220, in perform_sync\n    self.add_catalog_entries(local_available_isos)\n  File
208
        \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/iso/sync.py\",
209
        line 186, in add_catalog_entries\n    entry.url = unit.url\nAttributeError:
210
        ''ISO'' object has no attribute ''url''\n", "spawned_tasks": [], "progress_report":
211
        {"iso_importer": {"error_message": null, "traceback": null, "finished_bytes":
212
        0, "num_isos": null, "state": "manifest_in_progress", "total_bytes": null,
213
        "state_times": {"not_started": "2016-07-01T14:43:40", "manifest_in_progress":
214
        "2016-07-01T14:43:40"}, "num_isos_finished": 0, "iso_error_messages": []}},
215
        "queue": "reserved_resource_worker-1@devel.example.com.dq", "state": "error",
216
        "worker_name": "reserved_resource_worker-1@devel.example.com", "result": null,
217
        "error": {"code": "PLP0000", "data": {}, "description": "''ISO'' object has
218
        no attribute ''url''", "sub_errors": []}, "_id": {"$oid": "5776819c9036949adab88913"},
219
        "id": "5776819c9036949adab88913"}'
408
        "_href": "/pulp/api/v2/tasks/dd73db99-9565-4eb2-87f7-81c28456a8f3/", "task_id":
409
        "dd73db99-9565-4eb2-87f7-81c28456a8f3", "tags": ["pulp:repository:integration_test_id",
410
        "pulp:action:sync"], "finish_time": "2018-01-29T17:59:40Z", "_ns": "task_status",
411
        "start_time": "2018-01-29T17:59:40Z", "traceback": null, "spawned_tasks":
412
        [], "progress_report": {"iso_importer": {"error_message": null, "traceback":
413
        null, "finished_bytes": 0, "num_isos": 0, "state": "complete", "total_bytes":
414
        0, "state_times": {"not_started": "2018-01-29T17:59:40", "manifest_in_progress":
415
        "2018-01-29T17:59:40", "complete": "2018-01-29T17:59:40", "isos_in_progress":
416
        "2018-01-29T17:59:40"}, "num_isos_finished": 0, "iso_error_messages": []}},
417
        "queue": "reserved_resource_worker-1@centos7-devel.zpm.example.com.dq", "state":
418
        "finished", "worker_name": "reserved_resource_worker-1@centos7-devel.zpm.example.com",
419
        "result": {"result": "success", "importer_id": "iso_importer", "exception":
420
        null, "repo_id": "integration_test_id", "traceback": null, "started": "2018-01-29T17:59:40Z",
421
        "_ns": "repo_sync_results", "completed": "2018-01-29T17:59:40Z", "importer_type_id":
422
        "iso_importer", "error_message": null, "summary": {"total_bytes": 0, "traceback":
423
        null, "error_message": null, "finished_bytes": 0, "num_isos": 0, "state":
424
        "complete", "iso_error_messages": [], "num_isos_finished": 0, "state_times":
425
        {"not_started": "2018-01-29T17:59:40", "manifest_in_progress": "2018-01-29T17:59:40",
426
        "complete": "2018-01-29T17:59:40", "isos_in_progress": "2018-01-29T17:59:40"}},
427
        "added_count": 1, "removed_count": 0, "updated_count": 0, "id": "5a6f610c07049123c1aaf6de",
428
        "details": null}, "error": null, "_id": {"$oid": "5a6f610cab249cfe47a6cbe7"},
429
        "id": "5a6f610cab249cfe47a6cbe7"}'
220 430
    http_version: 
221
  recorded_at: Fri, 01 Jul 2016 14:43:41 GMT
431
  recorded_at: Mon, 29 Jan 2018 17:59:40 GMT
222 432
- request:
223 433
    method: post
224
    uri: https://admin:admin@devel.example.com/pulp/api/v2/repositories/integration_test_id/search/units/
434
    uri: https://admin:admin@centos7-devel.zpm.example.com/pulp/api/v2/repositories/integration_test_id/search/units/
225 435
    body:
226 436
      encoding: UTF-8
227 437
      string: '{"criteria":{"type_ids":["iso"]}}'
......
230 440
      - application/json
231 441
      Accept-Encoding:
232 442
      - gzip, deflate
443
      User-Agent:
444
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
233 445
      Content-Type:
234 446
      - application/json
235 447
      Content-Length:
236 448
      - '33'
237
      User-Agent:
238
      - Ruby
449
      Host:
450
      - centos7-devel.zpm.example.com
239 451
  response:
240 452
    status:
241 453
      code: 200
242 454
      message: OK
243 455
    headers:
244 456
      Date:
245
      - Fri, 01 Jul 2016 14:43:41 GMT
457
      - Mon, 29 Jan 2018 17:59:40 GMT
246 458
      Server:
247 459
      - Apache/2.4.6 (CentOS)
248 460
      Vary:
......
253 465
      - application/json; charset=utf-8
254 466
    body:
255 467
      encoding: ASCII-8BIT
256
      string: '[{"updated": "2016-07-01T14:43:40Z", "repo_id": "integration_test_id",
257
        "created": "2016-07-01T14:43:40Z", "_ns": "repo_content_units", "unit_id":
258
        "f09a24f8-f982-4184-8104-ed4097954a06", "unit_type_id": "iso", "_id": {"$oid":
259
        "5776819c8af3c8729bd1c043"}, "id": "5776819c8af3c8729bd1c043", "metadata":
468
      string: '[{"updated": "2018-01-29T17:59:40Z", "repo_id": "integration_test_id",
469
        "created": "2018-01-29T17:59:40Z", "_ns": "repo_content_units", "unit_id":
470
        "9b2b9731-abf3-4397-ba2e-177aa4bac207", "unit_type_id": "iso", "_id": {"$oid":
471
        "5a6f610c07049123c1aaf6dd"}, "id": "5a6f610c07049123c1aaf6dd", "metadata":
260 472
        {"_storage_path": "/var/lib/pulp/content/units/iso/67/129ce9f2d826ee819b3e14e9478a33786d0a1ce7d3644328c1dc7b275cb798/super_real.iso",
261 473
        "name": "super_real.iso", "checksum": "5528306022e1a897e4c1f2b7bde80c7cae12c6e2e2b20e8f1c8ff572c2396392",
262
        "_last_updated": 1467378687, "_content_type_id": "iso", "downloaded": true,
263
        "pulp_user_metadata": {}, "_ns": "units_iso", "_id": "f09a24f8-f982-4184-8104-ed4097954a06",
474
        "_last_updated": 1517247933, "_content_type_id": "iso", "downloaded": true,
475
        "pulp_user_metadata": {}, "_ns": "units_iso", "_id": "9b2b9731-abf3-4397-ba2e-177aa4bac207",
264 476
        "size": 14}}]'
265 477
    http_version: 
266
  recorded_at: Fri, 01 Jul 2016 14:43:41 GMT
478
  recorded_at: Mon, 29 Jan 2018 17:59:40 GMT
267 479
- request:
268 480
    method: delete
269
    uri: https://admin:admin@devel.example.com/pulp/api/v2/repositories/integration_test_id/
481
    uri: https://admin:admin@centos7-devel.zpm.example.com/pulp/api/v2/repositories/integration_test_id/
270 482
    body:
271 483
      encoding: US-ASCII
272 484
      string: ''
......
275 487
      - application/json
276 488
      Accept-Encoding:
277 489
      - gzip, deflate
490
      User-Agent:
491
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
278 492
      Content-Type:
279 493
      - application/json
280
      User-Agent:
281
      - Ruby
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff