Project

General

Profile

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

runcible / test / fixtures / vcr_cassettes / resources / profiles / retrieve_profile.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:58 GMT
29
      Server:
30
      - Apache/2.4.6 (CentOS)
31
      Content-Length:
32
      - '2501'
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": "5a0b4fb270be6f049ee2a570"}, "id": "integration_test_consumer",
44
        "_href": "/pulp/api/v2/consumers/integration_test_consumer/"}, "certificate":
45
        "-----BEGIN RSA PRIVATE KEY-----\nMIICXgIBAAKBgQDWG6d6l5up/Nm4nBRsqNNGO/1uHXk4gGfT1LGtOf16BJIOfXBB\n+S4GI2p1w0sE0cxeXVDfNHav0zE7H+9vrbb/FJ3K6Np5ScW1lnzg9CWt1tdFFOn4\nseflYUnLYNA6nF3RwS0XLEUDwGzDq58zSpl4XY2ZlrZATPJg+JAI38trnwIDAQAB\nAoGAdDTaN41lrWNRAAOmijsvQGV67XMNwf7fW3eLX8ujqcAlTbwDW6tUsXwzYes3\nIkyEMYtQQ3U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nSpl4XY2ZlrZATPJg+JAI38trnwIDAQABMA0GCSqGSIb3DQEBBQUAA4ICAQCq2/5l\ncdTWSCYnHz+OfKDqzZ6Vso+4/c6Yt4R+J0BVyJvHH03QvHHqaSXD/l0pmqBqKL0b\n62dgYJJ8HcAmJ8t32bOn/BPvYV6i7QuS7jxwpqmOX63i2e9MirwqjW7VMQkcK24w\n1d6xUcfd9IvMVkvBsbBJQ/eLr+a8qj4fbFnpMUNdsGwNlGBkGbz6IjBg/E8y8YoM\nzuKptmDdmoTdO8DrXpMSPmmihttQU1btawL9ylXQhTXCyC7IflHSmkBfyUEThQr3\niL2zYvBhO3fW7t17/YsrcWzRuwY7Jshfyd+T/FizZA7NiswsGFUph6/0WwP6/ogC\n7ZdYw6O7vD/iTK6T3vFLI0O8j4SjQBmU0cmvYuWY3Sd/knimVlsEO57CKVc6TQUt\nXvIY36bVS9ZeVybGVihRNyE8nfgzZQgQ85xmNKVdRSscKVP45xrXOXwzwQnjeQFh\nVO+zTelBe1TWefLPjKxc6gem02d6UFcsCUPD71BGZKk6QDUqflLaFGHXitpmoL5M\nCq2kqN3m8i4+i1BEeOUz7r+fhSFfTBw8MqXzycjqEt0W5JMMAkc3ErCxpoXZA4fM\n3UWcX7V3iPqYdx2r9Obas8UTDEIW0LLaLgXas3mwat5w6LbeGdZiotEEkSrzUGZ2\nmTPleskOkjtf44rs4qcmIgBxejaWDoDMkClsqg==\n-----END
47
        CERTIFICATE-----"}'
48
    http_version: 
49
  recorded_at: Tue, 14 Nov 2017 20:18:58 GMT
50
- request:
51
    method: post
52
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/consumers/integration_test_consumer/profiles//
53
    body:
54
      encoding: UTF-8
55
      string: '{"content_type":"rpm","profile":[{"vendor":"FedoraHosted","name":"elephant","version":"0.3","release":"0.8","arch":"noarch","epoch":"1"}]}'
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
      Content-Length:
66
      - '138'
67
      Host:
68
      - obelix.example.com
69
  response:
70
    status:
71
      code: 201
72
      message: CREATED
73
    headers:
74
      Date:
75
      - Tue, 14 Nov 2017 20:18:58 GMT
76
      Server:
77
      - Apache/2.4.6 (CentOS)
78
      Content-Length:
79
      - '467'
80
      Location:
81
      - https://obelix.example.com/pulp/api/v2/consumers/integration_test_consumer/profiles/rpm/
82
      Connection:
83
      - close
84
      Content-Type:
85
      - application/json; charset=utf-8
86
    body:
87
      encoding: UTF-8
88
      string: '{"profile": [{"vendor": "FedoraHosted", "name": "elephant", "epoch":
89
        "1", "version": "0.3", "release": "0.8", "arch": "noarch"}], "_href": "/pulp/api/v2/consumers/integration_test_consumer/profiles/rpm/",
90
        "_ns": "consumer_unit_profiles", "profile_hash": "d90bb3279565b158bdffa9db6f8f4cf1e6189a4bda6d3bbca1c353627d911302",
91
        "consumer_id": "integration_test_consumer", "content_type": "rpm", "_id":
92
        {"$oid": "5a0b4fb270be6f049ca06fd9"}, "id": "5a0b4fb270be6f049ca06fd9"}'
93
    http_version: 
94
  recorded_at: Tue, 14 Nov 2017 20:18:58 GMT
95
- request:
96
    method: get
97
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/consumers/integration_test_consumer/profiles/rpm//
98
    body:
99
      encoding: US-ASCII
100
      string: ''
101
    headers:
102
      Accept:
103
      - application/json
104
      Accept-Encoding:
105
      - gzip, deflate
106
      User-Agent:
107
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
108
      Content-Type:
109
      - application/json
110
      Host:
111
      - obelix.example.com
112
  response:
113
    status:
114
      code: 200
115
      message: OK
116
    headers:
117
      Date:
118
      - Tue, 14 Nov 2017 20:18:58 GMT
119
      Server:
120
      - Apache/2.4.6 (CentOS)
121
      Vary:
122
      - Accept-Encoding
123
      Content-Length:
124
      - '467'
125
      Connection:
126
      - close
127
      Content-Type:
128
      - application/json; charset=utf-8
129
    body:
130
      encoding: ASCII-8BIT
131
      string: '{"profile": [{"vendor": "FedoraHosted", "name": "elephant", "epoch":
132
        "1", "version": "0.3", "release": "0.8", "arch": "noarch"}], "_href": "/pulp/api/v2/consumers/integration_test_consumer/profiles/rpm/",
133
        "_ns": "consumer_unit_profiles", "profile_hash": "d90bb3279565b158bdffa9db6f8f4cf1e6189a4bda6d3bbca1c353627d911302",
134
        "consumer_id": "integration_test_consumer", "content_type": "rpm", "_id":
135
        {"$oid": "5a0b4fb270be6f049ca06fd9"}, "id": "5a0b4fb270be6f049ca06fd9"}'
136
    http_version: 
137
  recorded_at: Tue, 14 Nov 2017 20:18:58 GMT
138
- request:
139
    method: delete
140
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/consumers/integration_test_consumer/
141
    body:
142
      encoding: US-ASCII
143
      string: ''
144
    headers:
145
      Accept:
146
      - application/json
147
      Accept-Encoding:
148
      - gzip, deflate
149
      User-Agent:
150
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
151
      Content-Type:
152
      - application/json
153
      Host:
154
      - obelix.example.com
155
  response:
156
    status:
157
      code: 200
158
      message: OK
159
    headers:
160
      Date:
161
      - Tue, 14 Nov 2017 20:18:58 GMT
162
      Server:
163
      - Apache/2.4.6 (CentOS)
164
      Content-Length:
165
      - '4'
166
      Connection:
167
      - close
168
      Content-Type:
169
      - application/json; charset=utf-8
170
    body:
171
      encoding: UTF-8
172
      string: 'null'
173
    http_version: 
174
  recorded_at: Tue, 14 Nov 2017 20:18:58 GMT
175
recorded_with: VCR 3.0.3