Project

General

Profile

Revision df1b6e2a

Added by Partha Aji about 5 years ago

Fixes #21661 - Retrieve All for consumers

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

View differences:

test/fixtures/vcr_cassettes/resources/consumer_requires_repo/retrieve_bindings.yml
2 2
http_interactions:
3 3
- request:
4 4
    method: get
5
    uri: https://admin:HeQSzZgm6ZEKG8aHrJEGW7aGD85Wrj57@runcible.example.com/pulp/api/v2/consumers/integration_test_consumer_support/bindings//
5
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/consumers/integration_test_consumer_support/bindings//
6 6
    body:
7 7
      encoding: US-ASCII
8 8
      string: ''
......
11 11
      - application/json
12 12
      Accept-Encoding:
13 13
      - gzip, deflate
14
      User-Agent:
15
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
14 16
      Content-Type:
15 17
      - application/json
16
      User-Agent:
17
      - Ruby
18
      Host:
19
      - obelix.example.com
18 20
  response:
19 21
    status:
20 22
      code: 200
21 23
      message: OK
22 24
    headers:
23 25
      Date:
24
      - Fri, 29 Apr 2016 16:27:10 GMT
26
      - Tue, 14 Nov 2017 20:18:55 GMT
25 27
      Server:
26 28
      - Apache/2.4.6 (CentOS)
27 29
      Vary:
28 30
      - Accept-Encoding
29 31
      Content-Length:
30
      - '2451'
32
      - '2445'
33
      Connection:
34
      - close
31 35
      Content-Type:
32 36
      - application/json; charset=utf-8
33 37
    body:
......
35 39
      string: '[{"notify_agent": false, "repo_id": "integration_test_id", "_href":
36 40
        "/pulp/api/v2/consumers/integration_test_consumer_support/bindings/integration_test_id/yum_dist/",
37 41
        "type_id": "yum_distributor", "deleted": false, "_ns": "consumer_bindings",
38
        "_id": {"$oid": "57238b5eaca4886d96d97f11"}, "consumer_id": "integration_test_consumer_support",
39
        "consumer_actions": [], "binding_config": {}, "details": {"server_name": "runcible.example.com",
40
        "ca_cert": null, "global_auth_ca": "-----BEGIN CERTIFICATE-----\nMIIE2DCCAsACCQDmAbBCSLx01DANBgkqhkiG9w0BA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9zWtrCAr0UoV\nv2wHWLmDg/MMEpz6YsYjYBW6w2cn5aH8kw8x/vu86lG+m0UVfrAielZiBLMWBIF2\nw2856koS9P7rdWbUZg1mjXJogEVAJ7r9gYHFWI0zuq3bNDsYQuz5GLFd5ercbMbV\n0br16V6SMtGtgb4eYEe3sfd+rl6RtucHKf3O3xFuEJtyHvh4LcRRenvH4Y+eq9QN\nQpkgYwUeQikMh0cT9T/AJTj6RLyIbiMBGJxKLmeMTdGS3izvmiIxXEnxpWVuJiIg\nKPrh3Z7PfAjWa7NqM/tLQgZSqmDPeCXBuGmCXYU6k+jYl8Gx4NfAkVGalRbSR45G\nMd0Zlnwn8io7V5ac9VHePpbkChtxs8UKAp9v8CjNL0g1MotWjQYqrT1DfGhqJ+V7\noGcK8S1s75J6wV+QN3KV+fwSIVJSOFiOBaqJDvxPIplBLq3vveKKqax1+cKdHOEB\nRpa5JmSYxBkAhyqjuh909NBB70J8aAXwUBCmeOjoExke3ZlGKaWd9BP8LqoT3kaE\n2nbxD3JhnPZuHckET1A2GC3wLzrnFcoy6CUus09egIpaEmh3vFgdFOTMKDg=\n-----END
42
        "_id": {"$oid": "5a0b4faf70be6f049ee2a55b"}, "consumer_id": "integration_test_consumer_support",
43
        "consumer_actions": [], "binding_config": {}, "details": {"server_name": "obelix.example.com",
44
        "ca_cert": null, "global_auth_ca": "-----BEGIN CERTIFICATE-----\nMIIE1DCCArwCCQDqsMJ7V9y2CDANBgkqhkiG9w0BAQUFADAsMRswGQYDVQQDDBJv\nYmVsaXguZXhhbXBsZS5jb20xDTALBgNVBAoMBFBVTFAwHhcNMTcwMTEzMjM1OTM5\nWhcNMzYwNDE4MjM1OTM5WjAsMRswGQYDVQQDDBJvYmVsaXguZXhhbXBsZS5jb20x\nDTALBgNVBAoMBFBVTFAwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDV\nVbeCCRV+CdircY7KM6nEhl1NvMU5bk69lSO3om7OoG4eldRPsIMxi4KFkRNRm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eJEcAh+ZmfgDIz65kkVWRy0QklUFHHkIS9sMKvA+NOGF\nOjOKjN7os6Vtrc6Eoe81GT8hybA0+AUR77EoFmH0VFHEs6pzG6R6cWMY+HbB6RTx\nacW3LbqNPSVcfBjMYRCqNO4AlOFalhSQDb1DmK/9uGcRYADpikEKFkk/e4ilTsVe\nP53jeIwc/svbspdGeyRzqqzaBexo615mXtVVRFrLqxxRMUBrOEom67PaR1CP6vG0\n4Go/5QV5sVEfCKvak8lZ0pRQD0nEru78uA+4A19ze330/2cylAP5Qw==\n-----END
41 45
        CERTIFICATE-----\n", "relative_path": "/pulp/repos/path", "gpg_keys": [],
42 46
        "client_cert": null, "protocols": ["http", "https"], "repo_name": "integration_test_id"},
43
        "distributor_id": "yum_dist", "id": "57238b5eaca4886d96d97f11"}]'
47
        "distributor_id": "yum_dist", "id": "5a0b4faf70be6f049ee2a55b"}]'
44 48
    http_version: 
45
  recorded_at: Fri, 29 Apr 2016 16:27:10 GMT
46
recorded_with: VCR 3.0.1
49
  recorded_at: Tue, 14 Nov 2017 20:18:55 GMT
50
recorded_with: VCR 3.0.3

Also available in: Unified diff