Project

General

Profile

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

runcible / test / fixtures / vcr_cassettes / extensions / deb_repository_create / create_with_importer_and_distributors.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","importer_type_id":"deb_importer","importer_config":{},"distributors":[{"distributor_type_id":"deb_distributor","distributor_config":{"relative_url":"/","http":true,"https":true},"auto_publish":true,"distributor_id":"234"}]}'
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
      - '252'
20
      Host:
21
      - localhost
22
  response:
23
    status:
24
      code: 500
25
      message: INTERNAL SERVER ERROR
26
    headers:
27
      Date:
28
      - Fri, 10 Nov 2017 13:07:22 GMT
29
      Server:
30
      - Apache/2.4.6 (CentOS)
31
      Content-Length:
32
      - '2560'
33
      Connection:
34
      - close
35
      Content-Type:
36
      - application/json; charset=utf-8
37
    body:
38
      encoding: UTF-8
39
      string: '{"http_request_method": "POST", "exception": ["IndexError: list index
40
        out of range\n"], "error_message": "list index out of range", "_href": "/pulp/api/v2/repositories/",
41
        "http_status": 500, "traceback": ["  File \"/usr/lib/python2.7/site-packages/django/core/handlers/base.py\",
42
        line 112, in get_response\n    response = wrapped_callback(request, *callback_args,
43
        **callback_kwargs)\n", "  File \"/usr/lib/python2.7/site-packages/django/views/generic/base.py\",
44
        line 69, in view\n    return self.dispatch(request, *args, **kwargs)\n", "  File
45
        \"/usr/lib/python2.7/site-packages/django/views/generic/base.py\", line 87,
46
        in dispatch\n    return handler(request, *args, **kwargs)\n", "  File \"/usr/lib/python2.7/site-packages/pulp/server/webservices/views/decorators.py\",
47
        line 241, in _auth_decorator\n    return _verify_auth(self, operation, super_user_only,
48
        method, *args, **kwargs)\n", "  File \"/usr/lib/python2.7/site-packages/pulp/server/webservices/views/decorators.py\",
49
        line 195, in _verify_auth\n    value = method(self, *args, **kwargs)\n", "  File
50
        \"/usr/lib/python2.7/site-packages/pulp/server/webservices/views/util.py\",
51
        line 130, in wrapper\n    return func(*args, **kwargs)\n", "  File \"/usr/lib/python2.7/site-packages/pulp/server/webservices/views/repositories.py\",
52
        line 128, in post\n    distributor_list=repo_data.get(''distributors'')\n",
53
        "  File \"/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py\",
54
        line 433, in create_repo\n    dist_controller.add_distributor(repo_id, type_id,
55
        plugin_config, auto_publish, dist_id)\n", "  File \"/usr/lib/python2.7/site-packages/pulp/server/controllers/distributor.py\",
56
        line 67, in add_distributor\n    result = distributor_instance.validate_config(transfer_repo,
57
        call_config, config_conduit)\n", "  File \"/usr/lib/python2.7/site-packages/pulp_deb/plugins/distributors/distributor.py\",
58
        line 168, in validate_config\n    return configuration.validate_config(repo,
59
        config, config_conduit)\n", "  File \"/usr/lib/python2.7/site-packages/pulp_deb/plugins/distributors/configuration.py\",
60
        line 90, in validate_config\n    error_messages)\n", "  File \"/usr/lib/python2.7/site-packages/pulp_deb/plugins/distributors/configuration.py\",
61
        line 257, in _check_for_relative_path_conflicts\n    conflicting_distributors
62
        = config_conduit.get_repo_distributors_by_relative_url(relative_path, repo.id)  #
63
        noqa\n", "  File \"/usr/lib/python2.7/site-packages/pulp/plugins/conduits/repo_config.py\",
64
        line 46, in get_repo_distributors_by_relative_url\n    repo_id_url = current_url_pieces[0]\n"]}'
65
    http_version: 
66
  recorded_at: Fri, 10 Nov 2017 13:07:22 GMT
67
- request:
68
    method: delete
69
    uri: https://admin:admin@localhost/pulp/api/v2/repositories/integration_test_id/
70
    body:
71
      encoding: US-ASCII
72
      string: ''
73
    headers:
74
      Accept:
75
      - application/json
76
      Accept-Encoding:
77
      - gzip, deflate
78
      User-Agent:
79
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
80
      Content-Type:
81
      - application/json
82
      Host:
83
      - localhost
84
  response:
85
    status:
86
      code: 404
87
      message: NOT FOUND
88
    headers:
89
      Date:
90
      - Fri, 10 Nov 2017 13:07:22 GMT
91
      Server:
92
      - Apache/2.4.6 (CentOS)
93
      Content-Length:
94
      - '454'
95
      Content-Type:
96
      - application/json; charset=utf-8
97
    body:
98
      encoding: UTF-8
99
      string: '{"http_request_method": "DELETE", "exception": null, "error_message":
100
        "Missing resource(s): repository=integration_test_id", "_href": "/pulp/api/v2/repositories/integration_test_id/",
101
        "http_status": 404, "error": {"code": "PLP0009", "data": {"resources": {"repository":
102
        "integration_test_id"}}, "description": "Missing resource(s): repository=integration_test_id",
103
        "sub_errors": []}, "traceback": null, "resources": {"repository": "integration_test_id"}}'
104
    http_version: 
105
  recorded_at: Fri, 10 Nov 2017 13:07:22 GMT
106
- request:
107
    method: post
108
    uri: https://admin:admin@localhost/pulp/api/v2/repositories/
109
    body:
110
      encoding: UTF-8
111
      string: '{"id":"integration_test_id","importer_type_id":"deb_importer","importer_config":{},"distributors":[{"distributor_type_id":"deb_distributor","distributor_config":{"relative_url":"/path","http":true,"https":true},"auto_publish":true,"distributor_id":"234"}]}'
112
    headers:
113
      Accept:
114
      - application/json
115
      Accept-Encoding:
116
      - gzip, deflate
117
      User-Agent:
118
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
119
      Content-Type:
120
      - application/json
121
      Content-Length:
122
      - '256'
123
      Host:
124
      - localhost
125
  response:
126
    status:
127
      code: 201
128
      message: CREATED
129
    headers:
130
      Date:
131
      - Fri, 10 Nov 2017 13:15:12 GMT
132
      Server:
133
      - Apache/2.4.6 (CentOS)
134
      Content-Length:
135
      - '319'
136
      Location:
137
      - https://localhost/pulp/api/v2/repositories/integration_test_id/
138
      Content-Type:
139
      - application/json; charset=utf-8
140
    body:
141
      encoding: UTF-8
142
      string: '{"scratchpad": {}, "display_name": "integration_test_id", "description":
143
        null, "last_unit_added": null, "notes": {}, "last_unit_removed": null, "content_unit_counts":
144
        {}, "_ns": "repos", "_id": {"$oid": "5a05a6603ca9a004163109c0"}, "id": "integration_test_id",
145
        "_href": "/pulp/api/v2/repositories/integration_test_id/"}'
146
    http_version: 
147
  recorded_at: Fri, 10 Nov 2017 13:15:12 GMT
148
- request:
149
    method: get
150
    uri: https://admin:admin@localhost/pulp/api/v2/repositories/integration_test_id/?details=true
151
    body:
152
      encoding: US-ASCII
153
      string: ''
154
    headers:
155
      Accept:
156
      - application/json
157
      Accept-Encoding:
158
      - gzip, deflate
159
      User-Agent:
160
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
161
      Content-Type:
162
      - application/json
163
      Host:
164
      - localhost
165
  response:
166
    status:
167
      code: 200
168
      message: OK
169
    headers:
170
      Date:
171
      - Fri, 10 Nov 2017 13:15:12 GMT
172
      Server:
173
      - Apache/2.4.6 (CentOS)
174
      Vary:
175
      - Accept-Encoding
176
      Content-Length:
177
      - '1211'
178
      Content-Type:
179
      - application/json; charset=utf-8
180
    body:
181
      encoding: ASCII-8BIT
182
      string: '{"scratchpad": {}, "display_name": "integration_test_id", "description":
183
        null, "distributors": [{"repo_id": "integration_test_id", "last_updated":
184
        "2017-11-10T13:15:12Z", "_href": "/pulp/api/v2/repositories/integration_test_id/distributors/234/",
185
        "last_override_config": {}, "last_publish": null, "distributor_type_id": "deb_distributor",
186
        "auto_publish": true, "scratchpad": {}, "_ns": "repo_distributors", "_id":
187
        {"$oid": "5a05a6603ca9a004163109c2"}, "config": {"http": true, "https": true,
188
        "relative_url": "/path"}, "id": "234"}], "last_unit_added": null, "notes":
189
        {}, "last_unit_removed": null, "content_unit_counts": {}, "_ns": "repos",
190
        "importers": [{"repo_id": "integration_test_id", "last_updated": "2017-11-10T13:15:12Z",
191
        "_href": "/pulp/api/v2/repositories/integration_test_id/importers/deb_importer/",
192
        "_ns": "repo_importers", "importer_type_id": "deb_importer", "last_override_config":
193
        {}, "last_sync": null, "scratchpad": null, "_id": {"$oid": "5a05a6603ca9a004163109c1"},
194
        "config": {}, "id": "deb_importer"}], "locally_stored_units": 0, "_id": {"$oid":
195
        "5a05a6603ca9a004163109c0"}, "total_repository_units": 0, "id": "integration_test_id",
196
        "_href": "/pulp/api/v2/repositories/integration_test_id/"}'
197
    http_version: 
198
  recorded_at: Fri, 10 Nov 2017 13:15:12 GMT
199
recorded_with: VCR 3.0.3