Project

General

Profile

Revision d0cb4289

Added by Stephen Benjamin over 5 years ago

refs #22446 - use relative_url for iso repo path

View differences:

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

Also available in: Unified diff