Project

General

Profile

Revision ac187d3d

Added by Thomas McKay about 4 years ago

vcr recording tests

View differences:

test/fixtures/vcr_cassettes/resources/products/create_rpm.yml
422 422
  recorded_at: Mon, 19 Dec 2016 16:42:24 GMT
423 423
- request:
424 424
    method: get
425
    uri: https://admin:changeme@devel.example.com:50083/katello/api/products/68/repositories?all=false&library=true&organization_id=3
426
    body:
427
      encoding: US-ASCII
428
      string: ''
429
    headers:
430
      Accept:
431
      - application/json;version=2
432
      Accept-Encoding:
433
      - gzip, deflate
434
      User-Agent:
435
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
436
      Content-Type:
437
      - application/json
438
      Accept-Language:
439
      - en
440
      Host:
441
      - devel.example.com:50083
442
  response:
443
    status:
444
      code: 200
445
      message: OK
446
    headers:
447
      Date:
448
      - Mon, 27 Mar 2017 18:35:42 GMT
449
      Server:
450
      - Apache/2.4.6 (Red Hat Enterprise Linux)
451
      X-Frame-Options:
452
      - SAMEORIGIN
453
      X-Xss-Protection:
454
      - 1; mode=block
455
      X-Content-Type-Options:
456
      - nosniff
457
      Foreman-Version:
458
      - 1.11.0.54
459
      Foreman-Api-Version:
460
      - '2'
461
      Apipie-Checksum:
462
      - e1df2e8d43e22495b02a53b48e3b5298
463
      Cache-Control:
464
      - max-age=0, private, must-revalidate
465
      X-Request-Id:
466
      - 697b4c7a-903c-4e59-9ee6-4606977a016a
467
      X-Runtime:
468
      - '0.038186'
469
      X-Powered-By:
470
      - Phusion Passenger 4.0.18
471
      Etag:
472
      - '"6a5cc8a6caa41dfb85f960ee483ee634-gzip"'
473
      Status:
474
      - 200 OK
475
      Vary:
476
      - Accept-Encoding
477
      Content-Length:
478
      - '120'
479
      Content-Type:
480
      - application/json; charset=utf-8
481
      Set-Cookie:
482
      - _session_id=4a646bba7c2cd9a790d3e2021703ae1f; path=/; secure; HttpOnly
483
    body:
484
      encoding: ASCII-8BIT
485
      string: '{"total":0,"subtotal":0,"page":1,"per_page":20,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
486

  
487
'
488
    http_version: 
489
  recorded_at: Mon, 27 Mar 2017 18:35:48 GMT
490
- request:
491
    method: post
492
    uri: https://admin:changeme@devel.example.com:50083/katello/api/repositories
493
    body:
494
      encoding: UTF-8
495
      string: '{"organization_id":3,"name":"Zoo","url":"https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/zoo/","label":"Zoo","product_id":68,"content_type":"yum"}'
496
    headers:
497
      Accept:
498
      - application/json;version=2
499
      Accept-Encoding:
500
      - gzip, deflate
501
      User-Agent:
502
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
503
      Content-Type:
504
      - application/json
505
      Accept-Language:
506
      - en
507
      Content-Length:
508
      - '156'
509
      Host:
510
      - devel.example.com:50083
511
  response:
512
    status:
513
      code: 200
514
      message: OK
515
    headers:
516
      Date:
517
      - Mon, 27 Mar 2017 18:35:42 GMT
518
      Server:
519
      - Apache/2.4.6 (Red Hat Enterprise Linux)
520
      X-Frame-Options:
521
      - SAMEORIGIN
522
      X-Xss-Protection:
523
      - 1; mode=block
524
      X-Content-Type-Options:
525
      - nosniff
526
      Foreman-Version:
527
      - 1.11.0.54
528
      Foreman-Api-Version:
529
      - '2'
530
      Apipie-Checksum:
531
      - e1df2e8d43e22495b02a53b48e3b5298
532
      Cache-Control:
533
      - max-age=0, private, must-revalidate
534
      X-Request-Id:
535
      - a44ead26-8e3e-4c62-a678-f181c39f00b7
536
      X-Runtime:
537
      - '2.403828'
538
      X-Powered-By:
539
      - Phusion Passenger 4.0.18
540
      Etag:
541
      - '"a4aa64d6c9a42d5901baa47fe73d2dc3-gzip"'
542
      Status:
543
      - 200 OK
544
      Vary:
545
      - Accept-Encoding
546
      Content-Length:
547
      - '1177'
548
      Content-Type:
549
      - application/json; charset=utf-8
550
      Set-Cookie:
551
      - _session_id=2123d8037bfbe5eda1fea2e642271d8a; path=/; secure; HttpOnly
552
      - request_method=POST; path=/
553
    body:
554
      encoding: ASCII-8BIT
555
      string: '  {"content_type":"yum","docker_upstream_name":null,"mirror_on_sync":true,"unprotected":true,"full_path":"http://sat62.example.com/pulp/repos/testcorp/Library/custom/product_create_rpm/Zoo/","checksum_type":null,"container_repository_name":null,"download_policy":"immediate","url":"https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/zoo/","relative_path":"testcorp/Library/custom/product_create_rpm/Zoo","major":null,"minor":null,"gpg_key_id":null,"content_id":"1490639744011","content_view_version_id":2,"library_instance_id":null,"product_type":"custom","promoted":false,"ostree_branches":[],"organization":{"name":"Test
556
        Corporation","label":"testcorp","id":3},"created_at":"2017-03-27 18:35:42
557
        UTC","updated_at":"2017-03-27 18:35:44 UTC","id":15,"name":"Zoo","label":"Zoo","product":{"id":68,"cp_id":"1490639740047","name":"product
558
        create_rpm","sync_plan":["name","description","sync_date","interval","next_sync"]},"last_sync":null,"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0},"last_sync_words":null,"gpg_key":null,"environment":{"id":2},"permissions":{"deletable":true}}
559

  
560
'
561
    http_version: 
562
  recorded_at: Mon, 27 Mar 2017 18:35:50 GMT
563
- request:
564
    method: delete
565
    uri: https://admin:changeme@devel.example.com:50083/katello/api/products/68
566
    body:
567
      encoding: US-ASCII
568
      string: ''
569
    headers:
570
      Accept:
571
      - application/json;version=2
572
      Accept-Encoding:
573
      - gzip, deflate
574
      User-Agent:
575
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
576
      Content-Type:
577
      - application/json
578
      Accept-Language:
579
      - en
580
      Host:
581
      - devel.example.com:50083
582
  response:
583
    status:
584
      code: 202
585
      message: Accepted
586
    headers:
587
      Date:
588
      - Mon, 27 Mar 2017 18:35:44 GMT
589
      Server:
590
      - Apache/2.4.6 (Red Hat Enterprise Linux)
591
      X-Frame-Options:
592
      - SAMEORIGIN
593
      X-Xss-Protection:
594
      - 1; mode=block
595
      X-Content-Type-Options:
596
      - nosniff
597
      Foreman-Version:
598
      - 1.11.0.54
599
      Foreman-Api-Version:
600
      - '2'
601
      Apipie-Checksum:
602
      - e1df2e8d43e22495b02a53b48e3b5298
603
      Cache-Control:
604
      - no-cache
605
      X-Request-Id:
606
      - 3072481c-c28c-4aaa-bf1c-a98c378a9edb
607
      X-Runtime:
608
      - '0.992744'
609
      X-Powered-By:
610
      - Phusion Passenger 4.0.18
611
      Status:
612
      - 202 Accepted
613
      Content-Type:
614
      - application/json; charset=utf-8
615
      Set-Cookie:
616
      - _session_id=41712914c1f00fe1dd910da5101896c6; path=/; secure; HttpOnly
617
      - request_method=DELETE; path=/
618
      Transfer-Encoding:
619
      - chunked
620
    body:
621
      encoding: UTF-8
622
      string: '  {"id":"b22a6b04-cc4c-44cc-adb2-1095bbee05d5","label":"Actions::Katello::Product::Destroy","pending":true,"username":"admin","started_at":"2017-03-27
623
        18:35:44 UTC","ended_at":null,"state":"planned","result":"pending","progress":0.0,"input":{"product":{"id":68,"name":"product
624
        create_rpm","label":"product_create_rpm","cp_id":"1490639740047"},"provider":{"id":3,"name":"Anonymous"},"organization":{"id":3,"name":"Test
625
        Corporation","label":"testcorp"},"services_checked":["pulp","pulp_auth","candlepin","candlepin_auth"],"product_id":68},"output":{},"humanized":{"action":"Delete
626
        Product","input":[["product",{"text":"product ''product create_rpm''","link":"#/products/68/info"}],["organization",{"text":"organization
627
        ''Test Corporation''","link":"/organizations/3/edit"}]],"output":"","errors":[]},"cli_example":null}
628

  
629
'
630
    http_version: 
631
  recorded_at: Mon, 27 Mar 2017 18:35:52 GMT
632
- request:
633
    method: get
425 634
    uri: https://admin:changeme@devel.example.com:50083/api/status
426 635
    body:
427 636
      encoding: US-ASCII
......
441 650
      message: OK
442 651
    headers:
443 652
      Date:
444
      - Mon, 27 Mar 2017 18:35:38 GMT
653
      - Wed, 19 Apr 2017 17:06:53 GMT
445 654
      Server:
446 655
      - Apache/2.4.6 (Red Hat Enterprise Linux)
447 656
      X-Frame-Options:
......
459 668
      Cache-Control:
460 669
      - max-age=0, private, must-revalidate
461 670
      X-Request-Id:
462
      - 80232f05-2e27-45b4-a1cc-ff57a80330da
671
      - 4741efef-93a6-45bc-bba3-f94c469bac51
463 672
      X-Runtime:
464
      - '0.175302'
673
      - '0.060129'
465 674
      X-Powered-By:
466 675
      - Phusion Passenger 4.0.18
467 676
      Etag:
......
473 682
      Content-Type:
474 683
      - application/json; charset=utf-8
475 684
      Set-Cookie:
476
      - _session_id=58ae385abacf2b21fb26c4c08f0b293f; path=/; secure; HttpOnly
685
      - _session_id=2f42a6f1e5ea79077abd951b1527cf7a; path=/; secure; HttpOnly
477 686
    body:
478 687
      encoding: UTF-8
479 688
      string: '{"result":"ok","status":200,"version":"1.11.0.54","api_version":2}'
480 689
    http_version: 
481
  recorded_at: Mon, 27 Mar 2017 18:35:44 GMT
690
  recorded_at: Wed, 19 Apr 2017 17:07:12 GMT
482 691
- request:
483 692
    method: get
484 693
    uri: https://admin:changeme@devel.example.com:50083/api/v2/plugins
......
500 709
      message: OK
501 710
    headers:
502 711
      Date:
503
      - Mon, 27 Mar 2017 18:35:38 GMT
712
      - Wed, 19 Apr 2017 17:06:53 GMT
504 713
      Server:
505 714
      - Apache/2.4.6 (Red Hat Enterprise Linux)
506 715
      X-Frame-Options:
......
518 727
      Cache-Control:
519 728
      - max-age=0, private, must-revalidate
520 729
      X-Request-Id:
521
      - b0de717b-eaa9-4694-a4a5-be6e4456ce5a
730
      - c91650a2-2114-4f28-8f7d-169e6444be5e
522 731
      X-Runtime:
523
      - '0.201136'
732
      - '0.035719'
524 733
      X-Powered-By:
525 734
      - Phusion Passenger 4.0.18
526 735
      Etag:
......
534 743
      Content-Type:
535 744
      - application/json; charset=utf-8
536 745
      Set-Cookie:
537
      - _session_id=b492e6349bb0994a4193ec3b7ce81c51; path=/; secure; HttpOnly
746
      - _session_id=a6eda52021ff368c84ef74818a4dace9; path=/; secure; HttpOnly
538 747
    body:
539 748
      encoding: ASCII-8BIT
540 749
      string: !binary |-
......
613 822
        ZW1hbiIsInVybCI6Imh0dHA6Ly93d3cubHBoaXJpLnJlZGhhdC5jb20iLCJ2
614 823
        ZXJzaW9uIjoiMS4wLjEzIn1dCn0K
615 824
    http_version: 
616
  recorded_at: Mon, 27 Mar 2017 18:35:45 GMT
825
  recorded_at: Wed, 19 Apr 2017 17:07:12 GMT
617 826
- request:
618 827
    method: get
619 828
    uri: https://devel.example.com:50083/apidoc/v2.en.json
......
626 835
      Accept-Encoding:
627 836
      - gzip, deflate
628 837
      User-Agent:
629
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
838
      - rest-client/2.0.1 (linux-gnu x86_64) ruby/2.3.1p112
630 839
      Content-Type:
631 840
      - application/json
632 841
      Accept-Language:
......
639 848
      message: OK
640 849
    headers:
641 850
      Date:
642
      - Mon, 27 Mar 2017 18:35:39 GMT
851
      - Wed, 19 Apr 2017 17:06:53 GMT
643 852
      Server:
644 853
      - Apache/2.4.6 (Red Hat Enterprise Linux)
645 854
      X-Frame-Options:
......
657 866
      Apipie-Checksum:
658 867
      - e1df2e8d43e22495b02a53b48e3b5298
659 868
      X-Request-Id:
660
      - c4b3b3ff-fa19-48e1-9da2-443d82ca13a4
869
      - 7c3b274b-cfc8-411c-9634-6c7217d1f1df
661 870
      X-Runtime:
662
      - '0.005169'
871
      - '0.004672'
663 872
      X-Powered-By:
664 873
      - Phusion Passenger 4.0.18
665 874
      Status:
......
20298 20507
        Ijp0cnVlfV0sImhlYWRlcnMiOm51bGx9fSwibGlua19leHRlbnNpb24iOiIu
20299 20508
        ZW4uaHRtbCJ9fQ==
20300 20509
    http_version: 
20301
  recorded_at: Mon, 27 Mar 2017 18:35:45 GMT
20510
  recorded_at: Wed, 19 Apr 2017 17:07:12 GMT
20302 20511
- request:
20303 20512
    method: get
20304 20513
    uri: https://admin:changeme@devel.example.com:50083/katello/api/organizations?per_page=999999&search=name=%22Test%20Corporation%22
......
20311 20520
      Accept-Encoding:
20312 20521
      - gzip, deflate
20313 20522
      User-Agent:
20314
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
20523
      - rest-client/2.0.1 (linux-gnu x86_64) ruby/2.3.1p112
20315 20524
      Content-Type:
20316 20525
      - application/json
20317 20526
      Accept-Language:
......
20324 20533
      message: OK
20325 20534
    headers:
20326 20535
      Date:
20327
      - Mon, 27 Mar 2017 18:35:39 GMT
20536
      - Wed, 19 Apr 2017 17:06:53 GMT
20328 20537
      Server:
20329 20538
      - Apache/2.4.6 (Red Hat Enterprise Linux)
20330 20539
      X-Frame-Options:
......
20342 20551
      Cache-Control:
20343 20552
      - max-age=0, private, must-revalidate
20344 20553
      X-Request-Id:
20345
      - c4f54496-8303-4f29-861f-4fa2d661acba
20554
      - 11d4faaa-4b63-432b-b98d-5d81df20dd02
20346 20555
      X-Runtime:
20347
      - '0.087129'
20556
      - '0.033475'
20348 20557
      X-Powered-By:
20349 20558
      - Phusion Passenger 4.0.18
20350 20559
      Etag:
20351
      - '"45c0a1d1908621d8a984de3fe2b76754-gzip"'
20560
      - '"91d3578ba2141f4a65055b10047bdf20-gzip"'
20352 20561
      Status:
20353 20562
      - 200 OK
20354 20563
      Vary:
......
20358 20567
      Content-Type:
20359 20568
      - application/json; charset=utf-8
20360 20569
      Set-Cookie:
20361
      - _session_id=4c8aac0758584e41c9d5a79162548b07; path=/; secure; HttpOnly
20570
      - _session_id=017efe4d941c1e2e7cd4de8d507d7f85; path=/; secure; HttpOnly
20362 20571
    body:
20363 20572
      encoding: ASCII-8BIT
20364 20573
      string: |
......
20372 20581
            "by": null,
20373 20582
            "order": null
20374 20583
          },
20375
          "results": [{"label":"testcorp","created_at":"2016-12-01 19:35:26 UTC","updated_at":"2017-03-27 18:28:18 UTC","id":3,"name":"Test Corporation","title":"Test Corporation","description":"Testing today for a better tomorrow"}]
20584
          "results": [{"label":"testcorp","created_at":"2016-12-01 19:35:26 UTC","updated_at":"2017-04-06 01:50:20 UTC","id":3,"name":"Test Corporation","title":"Test Corporation","description":"Testing today for a better tomorrow"}]
20376 20585
        }
20377 20586
    http_version: 
20378
  recorded_at: Mon, 27 Mar 2017 18:35:45 GMT
20587
  recorded_at: Wed, 19 Apr 2017 17:07:12 GMT
20379 20588
- request:
20380 20589
    method: get
20381 20590
    uri: https://admin:changeme@devel.example.com:50083/katello/api/organizations/3/products?enabled=true&per_page=999999&search=name=%22product%20create_rpm%22
......
20388 20597
      Accept-Encoding:
20389 20598
      - gzip, deflate
20390 20599
      User-Agent:
20391
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
20600
      - rest-client/2.0.1 (linux-gnu x86_64) ruby/2.3.1p112
20392 20601
      Content-Type:
20393 20602
      - application/json
20394 20603
      Accept-Language:
......
20401 20610
      message: OK
20402 20611
    headers:
20403 20612
      Date:
20404
      - Mon, 27 Mar 2017 18:35:39 GMT
20613
      - Wed, 19 Apr 2017 17:06:53 GMT
20405 20614
      Server:
20406 20615
      - Apache/2.4.6 (Red Hat Enterprise Linux)
20407 20616
      X-Frame-Options:
......
20419 20628
      Cache-Control:
20420 20629
      - max-age=0, private, must-revalidate
20421 20630
      X-Request-Id:
20422
      - 83a69639-5523-4224-a62e-39973ea87455
20631
      - 90dfee38-8a6b-4884-9820-f8b5aa0982b0
20423 20632
      X-Runtime:
20424
      - '0.057004'
20633
      - '0.058386'
20425 20634
      X-Powered-By:
20426 20635
      - Phusion Passenger 4.0.18
20427 20636
      Etag:
......
20435 20644
      Content-Type:
20436 20645
      - application/json; charset=utf-8
20437 20646
      Set-Cookie:
20438
      - _session_id=d158a2b5bc160be49f7a3c6b29f77963; path=/; secure; HttpOnly
20647
      - _session_id=5412cc36d8fb79eb29f83461e9cee309; path=/; secure; HttpOnly
20439 20648
    body:
20440 20649
      encoding: ASCII-8BIT
20441 20650
      string: '{"total":1,"subtotal":0,"page":1,"per_page":"999999","error":null,"search":"name=\"product
......
20443 20652

  
20444 20653
'
20445 20654
    http_version: 
20446
  recorded_at: Mon, 27 Mar 2017 18:35:45 GMT
20655
  recorded_at: Wed, 19 Apr 2017 17:07:12 GMT
20447 20656
- request:
20448 20657
    method: post
20449 20658
    uri: https://admin:changeme@devel.example.com:50083/katello/api/products
......
20456 20665
      Accept-Encoding:
20457 20666
      - gzip, deflate
20458 20667
      User-Agent:
20459
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
20668
      - rest-client/2.0.1 (linux-gnu x86_64) ruby/2.3.1p112
20460 20669
      Content-Type:
20461 20670
      - application/json
20462 20671
      Accept-Language:
......
20471 20680
      message: OK
20472 20681
    headers:
20473 20682
      Date:
20474
      - Mon, 27 Mar 2017 18:35:39 GMT
20683
      - Wed, 19 Apr 2017 17:06:54 GMT
20475 20684
      Server:
20476 20685
      - Apache/2.4.6 (Red Hat Enterprise Linux)
20477 20686
      X-Frame-Options:
......
20489 20698
      Cache-Control:
20490 20699
      - max-age=0, private, must-revalidate
20491 20700
      X-Request-Id:
20492
      - 80b24a8b-8e2e-4b53-be0e-07d8e1c74bcc
20701
      - b1c29b6d-883b-4f15-8c1f-ccd1260875ef
20493 20702
      X-Runtime:
20494
      - '2.889246'
20703
      - '1.790358'
20495 20704
      X-Powered-By:
20496 20705
      - Phusion Passenger 4.0.18
20497 20706
      Etag:
20498
      - '"2327cf34b90f86ef25125473847cf55a-gzip"'
20707
      - '"90297b0a53d735169dee1a1802048c4c-gzip"'
20499 20708
      Status:
20500 20709
      - 200 OK
20501 20710
      Vary:
20502 20711
      - Accept-Encoding
20503 20712
      Content-Length:
20504
      - '868'
20713
      - '869'
20505 20714
      Content-Type:
20506 20715
      - application/json; charset=utf-8
20507 20716
      Set-Cookie:
20508
      - _session_id=da385ecd359a8b88ee0d755622ebebde; path=/; secure; HttpOnly
20717
      - _session_id=203c03187edac574c243d3b9ea368ef2; path=/; secure; HttpOnly
20509 20718
      - request_method=POST; path=/
20510 20719
    body:
20511 20720
      encoding: ASCII-8BIT
20512
      string: '  {"product_content":[],"available_content":[],"redhat":false,"id":68,"cp_id":null,"name":"product
20721
      string: '  {"product_content":[],"available_content":[],"redhat":false,"id":116,"cp_id":null,"name":"product
20513 20722
        create_rpm","label":"product_create_rpm","description":null,"provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization":{"name":"Test
20514
        Corporation","label":"testcorp","id":3},"sync_plan":null,"repository_count":0,"created_at":"2017-03-27
20515
        18:35:39 UTC","updated_at":"2017-03-27 18:35:39 UTC","repositories":[],"provider":{"name":"Anonymous"},"sync_status":{"id":null,"product_id":null,"progress":null,"sync_id":null,"state":null,"raw_state":null,"start_time":null,"finish_time":null,"duration":null,"display_size":null,"size":null,"is_running":null,"error_details":null},"permissions":{"destroy_products":true,"edit_products":true,"sync_products":true},"published_content_view_ids":[]}
20723
        Corporation","label":"testcorp","id":3},"sync_plan":null,"repository_count":0,"created_at":"2017-04-19
20724
        17:06:54 UTC","updated_at":"2017-04-19 17:06:54 UTC","repositories":[],"provider":{"name":"Anonymous"},"sync_status":{"id":null,"product_id":null,"progress":null,"sync_id":null,"state":null,"raw_state":null,"start_time":null,"finish_time":null,"duration":null,"display_size":null,"size":null,"is_running":null,"error_details":null},"permissions":{"destroy_products":true,"edit_products":true,"sync_products":true},"published_content_view_ids":[]}
20516 20725

  
20517 20726
'
20518 20727
    http_version: 
20519
  recorded_at: Mon, 27 Mar 2017 18:35:48 GMT
20728
  recorded_at: Wed, 19 Apr 2017 17:07:14 GMT
20520 20729
- request:
20521 20730
    method: get
20522
    uri: https://admin:changeme@devel.example.com:50083/katello/api/products/68/repositories?all=false&library=true&organization_id=3
20731
    uri: https://admin:changeme@devel.example.com:50083/katello/api/products/116/repositories?all=false&library=true&organization_id=3
20523 20732
    body:
20524 20733
      encoding: US-ASCII
20525 20734
      string: ''
......
20529 20738
      Accept-Encoding:
20530 20739
      - gzip, deflate
20531 20740
      User-Agent:
20532
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
20741
      - rest-client/2.0.1 (linux-gnu x86_64) ruby/2.3.1p112
20533 20742
      Content-Type:
20534 20743
      - application/json
20535 20744
      Accept-Language:
......
20542 20751
      message: OK
20543 20752
    headers:
20544 20753
      Date:
20545
      - Mon, 27 Mar 2017 18:35:42 GMT
20754
      - Wed, 19 Apr 2017 17:06:55 GMT
20546 20755
      Server:
20547 20756
      - Apache/2.4.6 (Red Hat Enterprise Linux)
20548 20757
      X-Frame-Options:
......
20560 20769
      Cache-Control:
20561 20770
      - max-age=0, private, must-revalidate
20562 20771
      X-Request-Id:
20563
      - 697b4c7a-903c-4e59-9ee6-4606977a016a
20772
      - 43ace56a-aa91-4b55-9831-250899f25cb7
20564 20773
      X-Runtime:
20565
      - '0.038186'
20774
      - '0.043205'
20566 20775
      X-Powered-By:
20567 20776
      - Phusion Passenger 4.0.18
20568 20777
      Etag:
......
20576 20785
      Content-Type:
20577 20786
      - application/json; charset=utf-8
20578 20787
      Set-Cookie:
20579
      - _session_id=4a646bba7c2cd9a790d3e2021703ae1f; path=/; secure; HttpOnly
20788
      - _session_id=15b945f331bec5aab7a8770f032a047e; path=/; secure; HttpOnly
20580 20789
    body:
20581 20790
      encoding: ASCII-8BIT
20582 20791
      string: '{"total":0,"subtotal":0,"page":1,"per_page":20,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
20583 20792

  
20584 20793
'
20585 20794
    http_version: 
20586
  recorded_at: Mon, 27 Mar 2017 18:35:48 GMT
20795
  recorded_at: Wed, 19 Apr 2017 17:07:14 GMT
20587 20796
- request:
20588 20797
    method: post
20589 20798
    uri: https://admin:changeme@devel.example.com:50083/katello/api/repositories
20590 20799
    body:
20591 20800
      encoding: UTF-8
20592
      string: '{"organization_id":3,"name":"Zoo","url":"https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/zoo/","label":"Zoo","product_id":68,"content_type":"yum"}'
20801
      string: '{"organization_id":3,"name":"Zoo","url":"https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/zoo/","label":"Zoo","product_id":116,"content_type":"yum"}'
20593 20802
    headers:
20594 20803
      Accept:
20595 20804
      - application/json;version=2
20596 20805
      Accept-Encoding:
20597 20806
      - gzip, deflate
20598 20807
      User-Agent:
20599
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
20808
      - rest-client/2.0.1 (linux-gnu x86_64) ruby/2.3.1p112
20600 20809
      Content-Type:
20601 20810
      - application/json
20602 20811
      Accept-Language:
20603 20812
      - en
20604 20813
      Content-Length:
20605
      - '156'
20814
      - '157'
20606 20815
      Host:
20607 20816
      - devel.example.com:50083
20608 20817
  response:
......
20611 20820
      message: OK
20612 20821
    headers:
20613 20822
      Date:
20614
      - Mon, 27 Mar 2017 18:35:42 GMT
20823
      - Wed, 19 Apr 2017 17:06:55 GMT
20615 20824
      Server:
20616 20825
      - Apache/2.4.6 (Red Hat Enterprise Linux)
20617 20826
      X-Frame-Options:
......
20629 20838
      Cache-Control:
20630 20839
      - max-age=0, private, must-revalidate
20631 20840
      X-Request-Id:
20632
      - a44ead26-8e3e-4c62-a678-f181c39f00b7
20841
      - c863a9f3-d34f-4d52-99d2-cfdb66411728
20633 20842
      X-Runtime:
20634
      - '2.403828'
20843
      - '2.313974'
20635 20844
      X-Powered-By:
20636 20845
      - Phusion Passenger 4.0.18
20637 20846
      Etag:
20638
      - '"a4aa64d6c9a42d5901baa47fe73d2dc3-gzip"'
20847
      - '"b16524700dd80145c63d069bc5be5cc3-gzip"'
20639 20848
      Status:
20640 20849
      - 200 OK
20641 20850
      Vary:
20642 20851
      - Accept-Encoding
20643 20852
      Content-Length:
20644
      - '1177'
20853
      - '1178'
20645 20854
      Content-Type:
20646 20855
      - application/json; charset=utf-8
20647 20856
      Set-Cookie:
20648
      - _session_id=2123d8037bfbe5eda1fea2e642271d8a; path=/; secure; HttpOnly
20857
      - _session_id=6ff3c5fe80e140fa09331c4442eb4b24; path=/; secure; HttpOnly
20649 20858
      - request_method=POST; path=/
20650 20859
    body:
20651 20860
      encoding: ASCII-8BIT
20652
      string: '  {"content_type":"yum","docker_upstream_name":null,"mirror_on_sync":true,"unprotected":true,"full_path":"http://sat62.example.com/pulp/repos/testcorp/Library/custom/product_create_rpm/Zoo/","checksum_type":null,"container_repository_name":null,"download_policy":"immediate","url":"https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/zoo/","relative_path":"testcorp/Library/custom/product_create_rpm/Zoo","major":null,"minor":null,"gpg_key_id":null,"content_id":"1490639744011","content_view_version_id":2,"library_instance_id":null,"product_type":"custom","promoted":false,"ostree_branches":[],"organization":{"name":"Test
20653
        Corporation","label":"testcorp","id":3},"created_at":"2017-03-27 18:35:42
20654
        UTC","updated_at":"2017-03-27 18:35:44 UTC","id":15,"name":"Zoo","label":"Zoo","product":{"id":68,"cp_id":"1490639740047","name":"product
20861
      string: '  {"content_type":"yum","docker_upstream_name":null,"mirror_on_sync":true,"unprotected":true,"full_path":"http://sat62.example.com/pulp/repos/testcorp/Library/custom/product_create_rpm/Zoo/","checksum_type":null,"container_repository_name":null,"download_policy":"immediate","url":"https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/zoo/","relative_path":"testcorp/Library/custom/product_create_rpm/Zoo","major":null,"minor":null,"gpg_key_id":null,"content_id":"1492621617528","content_view_version_id":2,"library_instance_id":null,"product_type":"custom","promoted":false,"ostree_branches":[],"organization":{"name":"Test
20862
        Corporation","label":"testcorp","id":3},"created_at":"2017-04-19 17:06:56
20863
        UTC","updated_at":"2017-04-19 17:06:58 UTC","id":71,"name":"Zoo","label":"Zoo","product":{"id":116,"cp_id":"1492621614594","name":"product
20655 20864
        create_rpm","sync_plan":["name","description","sync_date","interval","next_sync"]},"last_sync":null,"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0},"last_sync_words":null,"gpg_key":null,"environment":{"id":2},"permissions":{"deletable":true}}
20656 20865

  
20657 20866
'
20658 20867
    http_version: 
20659
  recorded_at: Mon, 27 Mar 2017 18:35:50 GMT
20868
  recorded_at: Wed, 19 Apr 2017 17:07:17 GMT
20660 20869
- request:
20661 20870
    method: get
20662 20871
    uri: https://admin:changeme@devel.example.com:50083/katello/api/organizations?search=name%20=%20%22Test%20Corporation%22
......
20669 20878
      Accept-Encoding:
20670 20879
      - gzip, deflate
20671 20880
      User-Agent:
20672
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
20881
      - rest-client/2.0.1 (linux-gnu x86_64) ruby/2.3.1p112
20673 20882
      Content-Type:
20674 20883
      - application/json
20675 20884
      Accept-Language:
......
20682 20891
      message: OK
20683 20892
    headers:
20684 20893
      Date:
20685
      - Mon, 27 Mar 2017 18:35:44 GMT
20894
      - Wed, 19 Apr 2017 17:06:58 GMT
20686 20895
      Server:
20687 20896
      - Apache/2.4.6 (Red Hat Enterprise Linux)
20688 20897
      X-Frame-Options:
......
20700 20909
      Cache-Control:
20701 20910
      - max-age=0, private, must-revalidate
20702 20911
      X-Request-Id:
20703
      - 23f24d96-a2d7-4556-843a-a6d72a59581e
20912
      - 22af9d4a-a93f-4307-ac01-624061c9db35
20704 20913
      X-Runtime:
20705
      - '0.040450'
20914
      - '0.037599'
20706 20915
      X-Powered-By:
20707 20916
      - Phusion Passenger 4.0.18
20708 20917
      Etag:
20709
      - '"4ca819c8f4b990404bfbc12a1ceaa3fb-gzip"'
20918
      - '"33f5ad55285e93110ffd8103723370df-gzip"'
20710 20919
      Status:
20711 20920
      - 200 OK
20712 20921
      Vary:
......
20716 20925
      Content-Type:
20717 20926
      - application/json; charset=utf-8
20718 20927
      Set-Cookie:
20719
      - _session_id=a06b1044de18cf198cab1da542fec6d2; path=/; secure; HttpOnly
20928
      - _session_id=88c5236e50603e942a82736434e23170; path=/; secure; HttpOnly
20720 20929
    body:
20721 20930
      encoding: ASCII-8BIT
20722 20931
      string: |
......
20730 20939
            "by": null,
20731 20940
            "order": null
20732 20941
          },
20733
          "results": [{"label":"testcorp","created_at":"2016-12-01 19:35:26 UTC","updated_at":"2017-03-27 18:28:18 UTC","id":3,"name":"Test Corporation","title":"Test Corporation","description":"Testing today for a better tomorrow"}]
20942
          "results": [{"label":"testcorp","created_at":"2016-12-01 19:35:26 UTC","updated_at":"2017-04-06 01:50:20 UTC","id":3,"name":"Test Corporation","title":"Test Corporation","description":"Testing today for a better tomorrow"}]
20734 20943
        }
20735 20944
    http_version: 
20736
  recorded_at: Mon, 27 Mar 2017 18:35:50 GMT
20945
  recorded_at: Wed, 19 Apr 2017 17:07:17 GMT
20737 20946
- request:
20738 20947
    method: get
20739 20948
    uri: https://admin:changeme@devel.example.com:50083/katello/api/organizations/3/products?page=1&per_page=20&search=product%20create_rpm&sort
......
20746 20955
      Accept-Encoding:
20747 20956
      - gzip, deflate
20748 20957
      User-Agent:
20749
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
20958
      - rest-client/2.0.1 (linux-gnu x86_64) ruby/2.3.1p112
20750 20959
      Content-Type:
20751 20960
      - application/json
20752 20961
      Accept-Language:
......
20759 20968
      message: OK
20760 20969
    headers:
20761 20970
      Date:
20762
      - Mon, 27 Mar 2017 18:35:44 GMT
20971
      - Wed, 19 Apr 2017 17:06:58 GMT
20763 20972
      Server:
20764 20973
      - Apache/2.4.6 (Red Hat Enterprise Linux)
20765 20974
      X-Frame-Options:
......
20777 20986
      Cache-Control:
20778 20987
      - max-age=0, private, must-revalidate
20779 20988
      X-Request-Id:
20780
      - 05c25a72-d56f-4417-babf-683598f0eccf
20989
      - 17c997f2-8f59-44c8-a79e-be5a7f63f62a
20781 20990
      X-Runtime:
20782
      - '0.115922'
20991
      - '0.070253'
20783 20992
      X-Powered-By:
20784 20993
      - Phusion Passenger 4.0.18
20785 20994
      Etag:
20786
      - '"bb7f7f4a889f6005a9ab9911068ff8c1-gzip"'
20995
      - '"1d787c4c6fe58db7e39416dcc8c07371-gzip"'
20787 20996
      Status:
20788 20997
      - 200 OK
20789 20998
      Vary:
20790 20999
      - Accept-Encoding
20791 21000
      Content-Length:
20792
      - '487'
21001
      - '488'
20793 21002
      Content-Type:
20794 21003
      - application/json; charset=utf-8
20795 21004
      Set-Cookie:
20796
      - _session_id=d47973e67f0d5b6f35ed65ebfe4ddd6f; path=/; secure; HttpOnly
21005
      - _session_id=9bde21bf3530841273038b128bc10ded; path=/; secure; HttpOnly
20797 21006
    body:
20798 21007
      encoding: ASCII-8BIT
20799
      string: '{"total":22,"subtotal":1,"page":"1","per_page":"20","error":null,"search":"product
20800
        create_rpm","sort":{"by":null,"order":null},"results":[{"id":68,"cp_id":"1490639740047","name":"product
21008
      string: '{"total":35,"subtotal":1,"page":"1","per_page":"20","error":null,"search":"product
21009
        create_rpm","sort":{"by":null,"order":null},"results":[{"id":116,"cp_id":"1492621614594","name":"product
20801 21010
        create_rpm","label":"product_create_rpm","description":null,"provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization":{"name":"Test
20802 21011
        Corporation","label":"testcorp","id":3},"sync_plan":null,"repository_count":1}]}
20803 21012

  
20804 21013
'
20805 21014
    http_version: 
20806
  recorded_at: Mon, 27 Mar 2017 18:35:51 GMT
21015
  recorded_at: Wed, 19 Apr 2017 17:07:17 GMT
20807 21016
- request:
20808 21017
    method: delete
20809
    uri: https://admin:changeme@devel.example.com:50083/katello/api/products/68
21018
    uri: https://admin:changeme@devel.example.com:50083/katello/api/products/116
20810 21019
    body:
20811 21020
      encoding: US-ASCII
20812 21021
      string: ''
......
20816 21025
      Accept-Encoding:
20817 21026
      - gzip, deflate
20818 21027
      User-Agent:
20819
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
21028
      - rest-client/2.0.1 (linux-gnu x86_64) ruby/2.3.1p112
20820 21029
      Content-Type:
20821 21030
      - application/json
20822 21031
      Accept-Language:
......
20829 21038
      message: Accepted
20830 21039
    headers:
20831 21040
      Date:
20832
      - Mon, 27 Mar 2017 18:35:44 GMT
21041
      - Wed, 19 Apr 2017 17:06:58 GMT
20833 21042
      Server:
20834 21043
      - Apache/2.4.6 (Red Hat Enterprise Linux)
20835 21044
      X-Frame-Options:
......
20847 21056
      Cache-Control:
20848 21057
      - no-cache
20849 21058
      X-Request-Id:
20850
      - 3072481c-c28c-4aaa-bf1c-a98c378a9edb
21059
      - 82b04a7c-ce22-4acb-9659-11f945c0e9f6
20851 21060
      X-Runtime:
20852
      - '0.992744'
21061
      - '0.986363'
20853 21062
      X-Powered-By:
20854 21063
      - Phusion Passenger 4.0.18
20855 21064
      Status:
......
20857 21066
      Content-Type:
20858 21067
      - application/json; charset=utf-8
20859 21068
      Set-Cookie:
20860
      - _session_id=41712914c1f00fe1dd910da5101896c6; path=/; secure; HttpOnly
21069
      - _session_id=c44d0dee2c359e9a3238bf79001007c4; path=/; secure; HttpOnly
20861 21070
      - request_method=DELETE; path=/
20862 21071
      Transfer-Encoding:
20863 21072
      - chunked
20864 21073
    body:
20865 21074
      encoding: UTF-8
20866
      string: '  {"id":"b22a6b04-cc4c-44cc-adb2-1095bbee05d5","label":"Actions::Katello::Product::Destroy","pending":true,"username":"admin","started_at":"2017-03-27
20867
        18:35:44 UTC","ended_at":null,"state":"planned","result":"pending","progress":0.0,"input":{"product":{"id":68,"name":"product
20868
        create_rpm","label":"product_create_rpm","cp_id":"1490639740047"},"provider":{"id":3,"name":"Anonymous"},"organization":{"id":3,"name":"Test
20869
        Corporation","label":"testcorp"},"services_checked":["pulp","pulp_auth","candlepin","candlepin_auth"],"product_id":68},"output":{},"humanized":{"action":"Delete
20870
        Product","input":[["product",{"text":"product ''product create_rpm''","link":"#/products/68/info"}],["organization",{"text":"organization
21075
      string: '  {"id":"a178ebdf-114a-4435-958b-a81404b9e12d","label":"Actions::Katello::Product::Destroy","pending":true,"username":"admin","started_at":"2017-04-19
21076
        17:06:58 UTC","ended_at":null,"state":"planned","result":"pending","progress":0.0,"input":{"product":{"id":116,"name":"product
21077
        create_rpm","label":"product_create_rpm","cp_id":"1492621614594"},"provider":{"id":3,"name":"Anonymous"},"organization":{"id":3,"name":"Test
21078
        Corporation","label":"testcorp"},"services_checked":["pulp","pulp_auth","candlepin","candlepin_auth"],"product_id":116},"output":{},"humanized":{"action":"Delete
21079
        Product","input":[["product",{"text":"product ''product create_rpm''","link":"#/products/116/info"}],["organization",{"text":"organization
20871 21080
        ''Test Corporation''","link":"/organizations/3/edit"}]],"output":"","errors":[]},"cli_example":null}
20872 21081

  
20873 21082
'
20874 21083
    http_version: 
20875
  recorded_at: Mon, 27 Mar 2017 18:35:52 GMT
21084
  recorded_at: Wed, 19 Apr 2017 17:07:18 GMT
20876 21085
recorded_with: VCR 3.0.3

Also available in: Unified diff