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","importer_type_id":"deb_importer","importer_config":{},"notes":{"_repo-type":"deb-repo"},"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
|
- '291'
|
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:04 GMT
|
29
|
Server:
|
30
|
- Apache/2.4.6 (CentOS)
|
31
|
Content-Length:
|
32
|
- '343'
|
33
|
Location:
|
34
|
- https://localhost/pulp/api/v2/repositories/integration_test_id/
|
35
|
Content-Type:
|
36
|
- application/json; charset=utf-8
|
37
|
body:
|
38
|
encoding: UTF-8
|
39
|
string: '{"scratchpad": {}, "display_name": "integration_test_id", "description":
|
40
|
null, "last_unit_added": null, "notes": {"_repo-type": "deb-repo"}, "last_unit_removed":
|
41
|
null, "content_unit_counts": {}, "_ns": "repos", "_id": {"$oid": "5a05a1303ca9a004163109bb"},
|
42
|
"id": "integration_test_id", "_href": "/pulp/api/v2/repositories/integration_test_id/"}'
|
43
|
http_version:
|
44
|
recorded_at: Fri, 10 Nov 2017 12:53:04 GMT
|
45
|
- request:
|
46
|
method: get
|
47
|
uri: https://admin:admin@localhost/pulp/api/v2/repositories/integration_test_id/?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:04 GMT
|
69
|
Server:
|
70
|
- Apache/2.4.6 (CentOS)
|
71
|
Vary:
|
72
|
- Accept-Encoding
|
73
|
Content-Length:
|
74
|
- '1236'
|
75
|
Content-Type:
|
76
|
- application/json; charset=utf-8
|
77
|
body:
|
78
|
encoding: ASCII-8BIT
|
79
|
string: '{"scratchpad": {}, "display_name": "integration_test_id", "description":
|
80
|
null, "distributors": [{"repo_id": "integration_test_id", "last_updated":
|
81
|
"2017-11-10T12:53:04Z", "_href": "/pulp/api/v2/repositories/integration_test_id/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": "5a05a1303ca9a004163109bd"}, "config": {"http": true, "https": true,
|
85
|
"relative_url": "/path"}, "id": "123"}], "last_unit_added": null, "notes":
|
86
|
{"_repo-type": "deb-repo"}, "last_unit_removed": null, "content_unit_counts":
|
87
|
{}, "_ns": "repos", "importers": [{"repo_id": "integration_test_id", "last_updated":
|
88
|
"2017-11-10T12:53:04Z", "_href": "/pulp/api/v2/repositories/integration_test_id/importers/deb_importer/",
|
89
|
"_ns": "repo_importers", "importer_type_id": "deb_importer", "last_override_config":
|
90
|
{}, "last_sync": null, "scratchpad": null, "_id": {"$oid": "5a05a1303ca9a004163109bc"},
|
91
|
"config": {}, "id": "deb_importer"}], "locally_stored_units": 0, "_id": {"$oid":
|
92
|
"5a05a1303ca9a004163109bb"}, "total_repository_units": 0, "id": "integration_test_id",
|
93
|
"_href": "/pulp/api/v2/repositories/integration_test_id/"}'
|
94
|
http_version:
|
95
|
recorded_at: Fri, 10 Nov 2017 12:53:04 GMT
|
96
|
- request:
|
97
|
method: delete
|
98
|
uri: https://admin:admin@localhost/pulp/api/v2/repositories/integration_test_id/
|
99
|
body:
|
100
|
encoding: US-ASCII
|
101
|
string: ''
|
102
|
headers:
|
103
|
Accept:
|
104
|
- application/json
|
105
|
Accept-Encoding:
|
106
|
- gzip, deflate
|
107
|
User-Agent:
|
108
|
- rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
|
109
|
Content-Type:
|
110
|
- application/json
|
111
|
Host:
|
112
|
- localhost
|
113
|
response:
|
114
|
status:
|
115
|
code: 202
|
116
|
message: ACCEPTED
|
117
|
headers:
|
118
|
Date:
|
119
|
- Fri, 10 Nov 2017 12:53:04 GMT
|
120
|
Server:
|
121
|
- Apache/2.4.6 (CentOS)
|
122
|
Content-Length:
|
123
|
- '172'
|
124
|
Content-Type:
|
125
|
- application/json; charset=utf-8
|
126
|
body:
|
127
|
encoding: UTF-8
|
128
|
string: '{"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/c1166bb0-a5b6-40df-a938-5971b86fc2db/",
|
129
|
"task_id": "c1166bb0-a5b6-40df-a938-5971b86fc2db"}], "result": null, "error":
|
130
|
null}'
|
131
|
http_version:
|
132
|
recorded_at: Fri, 10 Nov 2017 12:53:04 GMT
|
133
|
- request:
|
134
|
method: get
|
135
|
uri: https://admin:admin@localhost/pulp/api/v2/tasks/c1166bb0-a5b6-40df-a938-5971b86fc2db/
|
136
|
body:
|
137
|
encoding: US-ASCII
|
138
|
string: ''
|
139
|
headers:
|
140
|
Accept:
|
141
|
- application/json
|
142
|
Accept-Encoding:
|
143
|
- gzip, deflate
|
144
|
User-Agent:
|
145
|
- rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
|
146
|
Content-Type:
|
147
|
- application/json
|
148
|
Host:
|
149
|
- localhost
|
150
|
response:
|
151
|
status:
|
152
|
code: 200
|
153
|
message: OK
|
154
|
headers:
|
155
|
Date:
|
156
|
- Fri, 10 Nov 2017 12:53:05 GMT
|
157
|
Server:
|
158
|
- Apache/2.4.6 (CentOS)
|
159
|
Vary:
|
160
|
- Accept-Encoding
|
161
|
Content-Length:
|
162
|
- '708'
|
163
|
Content-Type:
|
164
|
- application/json; charset=utf-8
|
165
|
body:
|
166
|
encoding: ASCII-8BIT
|
167
|
string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
|
168
|
"_href": "/pulp/api/v2/tasks/c1166bb0-a5b6-40df-a938-5971b86fc2db/", "task_id":
|
169
|
"c1166bb0-a5b6-40df-a938-5971b86fc2db", "tags": ["pulp:repository:integration_test_id",
|
170
|
"pulp:action:delete"], "finish_time": "2017-11-10T12:53:04Z", "_ns": "task_status",
|
171
|
"start_time": "2017-11-10T12:53:04Z", "traceback": null, "spawned_tasks":
|
172
|
[], "progress_report": {}, "queue": "reserved_resource_worker-0@centos7-devel.anubis.example.com.dq",
|
173
|
"state": "finished", "worker_name": "reserved_resource_worker-0@centos7-devel.anubis.example.com",
|
174
|
"result": null, "error": null, "_id": {"$oid": "5a05a130d1897cd5b1e4abe2"},
|
175
|
"id": "5a05a130d1897cd5b1e4abe2"}'
|
176
|
http_version:
|
177
|
recorded_at: Fri, 10 Nov 2017 12:53:05 GMT
|
178
|
recorded_with: VCR 3.0.3
|