Project

General

Profile

Download (6.1 KB) Statistics
| Branch: | Tag: | Revision:

runcible / test / fixtures / vcr_cassettes / resources / general_methods / retrieve_all.yml @ df1b6e2a

1
---
2
http_interactions:
3
- request:
4
    method: post
5
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/consumers/
6
    body:
7
      encoding: UTF-8
8
      string: '{"id":"integration_test_consumer","name":"boo"}'
9
    headers:
10
      Accept:
11
      - application/json
12
      Accept-Encoding:
13
      - gzip, deflate
14
      User-Agent:
15
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
16
      Content-Type:
17
      - application/json
18
      Content-Length:
19
      - '47'
20
      Host:
21
      - obelix.example.com
22
  response:
23
    status:
24
      code: 201
25
      message: CREATED
26
    headers:
27
      Date:
28
      - Tue, 14 Nov 2017 20:18:57 GMT
29
      Server:
30
      - Apache/2.4.6 (CentOS)
31
      Content-Length:
32
      - '2497'
33
      Location:
34
      - https://obelix.example.com/pulp/api/v2/consumers/integration_test_consumer/
35
      Connection:
36
      - close
37
      Content-Type:
38
      - application/json; charset=utf-8
39
    body:
40
      encoding: UTF-8
41
      string: '{"consumer": {"display_name": "integration_test_consumer", "description":
42
        null, "_ns": "consumers", "notes": {}, "rsa_pub": null, "capabilities": {},
43
        "_id": {"$oid": "5a0b4fb170be6f049ee2a56c"}, "id": "integration_test_consumer",
44
        "_href": "/pulp/api/v2/consumers/integration_test_consumer/"}, "certificate":
45
        "-----BEGIN RSA PRIVATE KEY-----\nMIICXQIBAAKBgQCr5NGYNL1oKSKw0lFqq1SO/Rz/8+vpxl041wOAphBjLCHzxWZ5\nRD/jiWmwvyU9uNtGhunhYPhFGg46FOEf52Ugky1robcLCxinsAwvjSxbquP3GT8i\npyxFZWN3slmNS2udQdR1g+wC3p0sqOd/u9o+JFYv7rcC39MsNVucFDMRDwIDAQAB\nAoGBAI6oKmJ9cqwdZ5MEGVnDszuwSP8K+sFbRUbE+z0rlPIZUFw1eaQuxi8afcKY\nAFpHLoRLt5K6nZ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Lf0yw1W5wUMxEPAgMBAAEwDQYJKoZIhvcNAQEFBQADggIBAAFQ\nHYObXboYnZQ0arPP1aJDGJGzZQc0yVNq+kamny06cP8bao1yN7cf6Xhdk44nQnQH\nG3a0oCiaAe9MTR6RBEAtYv09VKzZScb/3FVpwKzTowcKvMMP5qXZahddtP4tKlPI\nB3M2Y+0xwT2F2pP1ot+wiz0pqyJ2KydohiXhVDzpkuwA3u5VRxHSLj6AJQVRYyiW\nLGLmCoHAE2u+PyzxJaTz5SqYbrF2TnVpfHldM98czTV5j/Sr92mKRrhBplehqVHn\nJ2ILpuiaGjxMbmSn4YnBOmSbpBqvWpGloplwBYLdkUaAV8ZwMdAJVH3YnGv8rDcc\nQY/oK75o0dcuGXjoVT2ntASOCGY0dIHYXsDHQNU456vAMgez0cnc1xumodN6JxbE\nejx7S8LQz0VEQ4D0ia0fjjSUNjKHQJMPcJrpGEaCSW6mwH40vn+jOAsATxZNJj0p\nywzlswnWo5PMl/UWDboR338PTyo6xu9dmEmGyctrMggyyzXF8b63LRonzshZCbMY\noWzDqAfjBQu/Z7mhYC+f4PYxD+2SbhpAcr8k9HOtq+F8On/UpBYZ+fiu3BuKIOSt\nQPafGwyNQznpR5YvK/pQ99xw/OjczJLRtH65griEKyGP9PPEQVFxW3BPZ+aJABxY\nfoRJUrw0mIflEG0NLEia30xjrlBpfYY5jEkYsVNU\n-----END
47
        CERTIFICATE-----"}'
48
    http_version: 
49
  recorded_at: Tue, 14 Nov 2017 20:18:57 GMT
50
- request:
51
    method: get
52
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/consumers/
53
    body:
54
      encoding: US-ASCII
55
      string: ''
56
    headers:
57
      Accept:
58
      - application/json
59
      Accept-Encoding:
60
      - gzip, deflate
61
      User-Agent:
62
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
63
      Content-Type:
64
      - application/json
65
      Host:
66
      - obelix.example.com
67
  response:
68
    status:
69
      code: 200
70
      message: OK
71
    headers:
72
      Date:
73
      - Tue, 14 Nov 2017 20:18:57 GMT
74
      Server:
75
      - Apache/2.4.6 (CentOS)
76
      Vary:
77
      - Accept-Encoding
78
      Content-Length:
79
      - '874'
80
      Connection:
81
      - close
82
      Content-Type:
83
      - application/json; charset=utf-8
84
    body:
85
      encoding: ASCII-8BIT
86
      string: '[{"display_name": "rhel7-box.example.com", "description": null, "_ns":
87
        "consumers", "notes": {}, "rsa_pub": null, "capabilities": {}, "_id": {"$oid":
88
        "58ac1f2070be6f0a1894aade"}, "id": "ffd1954b-cb06-4a28-9e9b-ac4963b2884e",
89
        "_href": "/pulp/api/v2/consumers/ffd1954b-cb06-4a28-9e9b-ac4963b2884e/"},
90
        {"display_name": "centos7.example.com", "description": null, "_ns": "consumers",
91
        "notes": {}, "rsa_pub": null, "capabilities": {}, "_id": {"$oid": "597b4f5070be6f1dc2056364"},
92
        "id": "2e961570-6aa7-4b8f-8d84-91eb40ad249d", "_href": "/pulp/api/v2/consumers/2e961570-6aa7-4b8f-8d84-91eb40ad249d/"},
93
        {"display_name": "integration_test_consumer", "description": null, "_ns":
94
        "consumers", "notes": {}, "rsa_pub": null, "capabilities": {}, "_id": {"$oid":
95
        "5a0b4fb170be6f049ee2a56c"}, "id": "integration_test_consumer", "_href": "/pulp/api/v2/consumers/integration_test_consumer/"}]'
96
    http_version: 
97
  recorded_at: Tue, 14 Nov 2017 20:18:57 GMT
98
- request:
99
    method: delete
100
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/consumers/integration_test_consumer/
101
    body:
102
      encoding: US-ASCII
103
      string: ''
104
    headers:
105
      Accept:
106
      - application/json
107
      Accept-Encoding:
108
      - gzip, deflate
109
      User-Agent:
110
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
111
      Content-Type:
112
      - application/json
113
      Host:
114
      - obelix.example.com
115
  response:
116
    status:
117
      code: 200
118
      message: OK
119
    headers:
120
      Date:
121
      - Tue, 14 Nov 2017 20:18:57 GMT
122
      Server:
123
      - Apache/2.4.6 (CentOS)
124
      Content-Length:
125
      - '4'
126
      Connection:
127
      - close
128
      Content-Type:
129
      - application/json; charset=utf-8
130
    body:
131
      encoding: UTF-8
132
      string: 'null'
133
    http_version: 
134
  recorded_at: Tue, 14 Nov 2017 20:18:57 GMT
135
recorded_with: VCR 3.0.3