Project

General

Profile

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

runcible / test / fixtures / vcr_cassettes / extensions / deb_repository_create / create_with_distributor_object.yml @ c022bb6f

1
---
2
http_interactions:
3
- request:
4
    method: post
5
    uri: https://admin:admin@localhost/pulp/api/v2/repositories/
6
    body:
7
      encoding: UTF-8
8
      string: '{"id":"integration_test_id_distro","distributors":[{"distributor_type_id":"deb_distributor","distributor_config":{"relative_url":"/path","http":true,"https":true},"auto_publish":false,"distributor_id":"123"}]}'
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
      - '209'
20
      Host:
21
      - localhost
22
  response:
23
    status:
24
      code: 201
25
      message: CREATED
26
    headers:
27
      Date:
28
      - Fri, 10 Nov 2017 12:53:02 GMT
29
      Server:
30
      - Apache/2.4.6 (CentOS)
31
      Content-Length:
32
      - '340'
33
      Location:
34
      - https://localhost/pulp/api/v2/repositories/integration_test_id_distro/
35
      Content-Type:
36
      - application/json; charset=utf-8
37
    body:
38
      encoding: UTF-8
39
      string: '{"scratchpad": {}, "display_name": "integration_test_id_distro", "description":
40
        null, "last_unit_added": null, "notes": {}, "last_unit_removed": null, "content_unit_counts":
41
        {}, "_ns": "repos", "_id": {"$oid": "5a05a12e3ca9a00419d21f0c"}, "id": "integration_test_id_distro",
42
        "_href": "/pulp/api/v2/repositories/integration_test_id_distro/"}'
43
    http_version: 
44
  recorded_at: Fri, 10 Nov 2017 12:53:02 GMT
45
- request:
46
    method: get
47
    uri: https://admin:admin@localhost/pulp/api/v2/repositories/integration_test_id_distro/?details=true
48
    body:
49
      encoding: US-ASCII
50
      string: ''
51
    headers:
52
      Accept:
53
      - application/json
54
      Accept-Encoding:
55
      - gzip, deflate
56
      User-Agent:
57
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
58
      Content-Type:
59
      - application/json
60
      Host:
61
      - localhost
62
  response:
63
    status:
64
      code: 200
65
      message: OK
66
    headers:
67
      Date:
68
      - Fri, 10 Nov 2017 12:53:02 GMT
69
      Server:
70
      - Apache/2.4.6 (CentOS)
71
      Vary:
72
      - Accept-Encoding
73
      Content-Length:
74
      - '882'
75
      Content-Type:
76
      - application/json; charset=utf-8
77
    body:
78
      encoding: ASCII-8BIT
79
      string: '{"scratchpad": {}, "display_name": "integration_test_id_distro", "description":
80
        null, "distributors": [{"repo_id": "integration_test_id_distro", "last_updated":
81
        "2017-11-10T12:53:02Z", "_href": "/pulp/api/v2/repositories/integration_test_id_distro/distributors/123/",
82
        "last_override_config": {}, "last_publish": null, "distributor_type_id": "deb_distributor",
83
        "auto_publish": false, "scratchpad": {}, "_ns": "repo_distributors", "_id":
84
        {"$oid": "5a05a12e3ca9a00419d21f0d"}, "config": {"http": true, "https": true,
85
        "relative_url": "/path"}, "id": "123"}], "last_unit_added": null, "notes":
86
        {}, "last_unit_removed": null, "content_unit_counts": {}, "_ns": "repos",
87
        "importers": [], "locally_stored_units": 0, "_id": {"$oid": "5a05a12e3ca9a00419d21f0c"},
88
        "total_repository_units": 0, "id": "integration_test_id_distro", "_href":
89
        "/pulp/api/v2/repositories/integration_test_id_distro/"}'
90
    http_version: 
91
  recorded_at: Fri, 10 Nov 2017 12:53:02 GMT
92
- request:
93
    method: delete
94
    uri: https://admin:admin@localhost/pulp/api/v2/repositories/integration_test_id_distro/
95
    body:
96
      encoding: US-ASCII
97
      string: ''
98
    headers:
99
      Accept:
100
      - application/json
101
      Accept-Encoding:
102
      - gzip, deflate
103
      User-Agent:
104
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
105
      Content-Type:
106
      - application/json
107
      Host:
108
      - localhost
109
  response:
110
    status:
111
      code: 202
112
      message: ACCEPTED
113
    headers:
114
      Date:
115
      - Fri, 10 Nov 2017 12:53:02 GMT
116
      Server:
117
      - Apache/2.4.6 (CentOS)
118
      Content-Length:
119
      - '172'
120
      Content-Type:
121
      - application/json; charset=utf-8
122
    body:
123
      encoding: UTF-8
124
      string: '{"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/872a0661-1d67-46bb-ad31-b806a969fbb6/",
125
        "task_id": "872a0661-1d67-46bb-ad31-b806a969fbb6"}], "result": null, "error":
126
        null}'
127
    http_version: 
128
  recorded_at: Fri, 10 Nov 2017 12:53:02 GMT
129
- request:
130
    method: get
131
    uri: https://admin:admin@localhost/pulp/api/v2/tasks/872a0661-1d67-46bb-ad31-b806a969fbb6/
132
    body:
133
      encoding: US-ASCII
134
      string: ''
135
    headers:
136
      Accept:
137
      - application/json
138
      Accept-Encoding:
139
      - gzip, deflate
140
      User-Agent:
141
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
142
      Content-Type:
143
      - application/json
144
      Host:
145
      - localhost
146
  response:
147
    status:
148
      code: 200
149
      message: OK
150
    headers:
151
      Date:
152
      - Fri, 10 Nov 2017 12:53:03 GMT
153
      Server:
154
      - Apache/2.4.6 (CentOS)
155
      Vary:
156
      - Accept-Encoding
157
      Content-Length:
158
      - '715'
159
      Content-Type:
160
      - application/json; charset=utf-8
161
    body:
162
      encoding: ASCII-8BIT
163
      string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
164
        "_href": "/pulp/api/v2/tasks/872a0661-1d67-46bb-ad31-b806a969fbb6/", "task_id":
165
        "872a0661-1d67-46bb-ad31-b806a969fbb6", "tags": ["pulp:repository:integration_test_id_distro",
166
        "pulp:action:delete"], "finish_time": "2017-11-10T12:53:02Z", "_ns": "task_status",
167
        "start_time": "2017-11-10T12:53:02Z", "traceback": null, "spawned_tasks":
168
        [], "progress_report": {}, "queue": "reserved_resource_worker-0@centos7-devel.anubis.example.com.dq",
169
        "state": "finished", "worker_name": "reserved_resource_worker-0@centos7-devel.anubis.example.com",
170
        "result": null, "error": null, "_id": {"$oid": "5a05a12ed1897cd5b1e4abe0"},
171
        "id": "5a05a12ed1897cd5b1e4abe0"}'
172
    http_version: 
173
  recorded_at: Fri, 10 Nov 2017 12:53:03 GMT
174
- request:
175
    method: delete
176
    uri: https://admin:admin@localhost/pulp/api/v2/repositories/integration_test_id/
177
    body:
178
      encoding: US-ASCII
179
      string: ''
180
    headers:
181
      Accept:
182
      - application/json
183
      Accept-Encoding:
184
      - gzip, deflate
185
      User-Agent:
186
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
187
      Content-Type:
188
      - application/json
189
      Host:
190
      - localhost
191
  response:
192
    status:
193
      code: 404
194
      message: NOT FOUND
195
    headers:
196
      Date:
197
      - Fri, 10 Nov 2017 12:53:03 GMT
198
      Server:
199
      - Apache/2.4.6 (CentOS)
200
      Content-Length:
201
      - '454'
202
      Content-Type:
203
      - application/json; charset=utf-8
204
    body:
205
      encoding: UTF-8
206
      string: '{"http_request_method": "DELETE", "exception": null, "error_message":
207
        "Missing resource(s): repository=integration_test_id", "_href": "/pulp/api/v2/repositories/integration_test_id/",
208
        "http_status": 404, "error": {"code": "PLP0009", "data": {"resources": {"repository":
209
        "integration_test_id"}}, "description": "Missing resource(s): repository=integration_test_id",
210
        "sub_errors": []}, "traceback": null, "resources": {"repository": "integration_test_id"}}'
211
    http_version: 
212
  recorded_at: Fri, 10 Nov 2017 12:53:03 GMT
213
recorded_with: VCR 3.0.3