Project

General

Profile

« Previous | Next » 

Revision 085c9956

Added by Eric Helms about 11 years ago

Pulp2.1 - Updates to how consumer group content tests are handled
to test them properly.

View differences:

test/fixtures/vcr_cassettes/support/repository.yml
method: delete
uri: https://admin:admin@localhost/pulp/api/v2/repositories/integration_test_id_distro/
body:
encoding: US-ASCII
string: ""
headers:
Content-Type:
- application/json
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
User-Agent:
- Ruby
response:
status:
code: 202
message: Accepted
headers:
Date:
- Mon, 18 Mar 2013 17:32:23 GMT
Server:
- Apache/2.4.3 (Fedora) OpenSSL/1.0.1c-fips mod_wsgi/3.4 Python/2.7.3
Content-Encoding:
- utf-8
Content-Length:
- "724"
Date:
- Tue, 26 Feb 2013 00:56:23 GMT
Content-Type:
- application/json
Content-Encoding:
- utf-8
Server:
- Apache/2.2.22 (Fedora)
body:
string: "[{\"task_group_id\": \"dd85690a-0400-418e-b371-8dbfce9f9ed6\", \"exception\": null, \"traceback\": null, \"_href\": \"/pulp/api/v2/task_groups/dd85690a-0400-418e-b371-8dbfce9f9ed6/\", \"task_id\": \"987d2c86-f15c-45c5-bd0f-1b9c891f1bf9\", \"call_request_tags\": [\"pulp:repository:integration_test_id_distro\", \"pulp:action:delete\"], \"reasons\": [], \"start_time\": null, \"tags\": [\"pulp:repository:integration_test_id_distro\", \"pulp:action:delete\"], \"state\": \"waiting\", \"finish_time\": null, \"dependency_failures\": {}, \"schedule_id\": null, \"progress\": {}, \"call_request_group_id\": \"dd85690a-0400-418e-b371-8dbfce9f9ed6\", \"call_request_id\": \"987d2c86-f15c-45c5-bd0f-1b9c891f1bf9\", \"principal_login\": \"admin\", \"response\": \"accepted\", \"result\": null}]"
encoding: US-ASCII
string: "[{\"task_group_id\": \"fece6ff3-a1ee-41a3-86f3-0fb9da4bfba9\", \"exception\": null, \"traceback\": null, \"_href\": \"/pulp/api/v2/task_groups/fece6ff3-a1ee-41a3-86f3-0fb9da4bfba9/\", \"task_id\": \"39226270-9e36-4c1c-93be-69ace8e11ce5\", \"call_request_tags\": [\"pulp:repository:integration_test_id_distro\", \"pulp:action:delete\"], \"reasons\": [], \"start_time\": null, \"tags\": [\"pulp:repository:integration_test_id_distro\", \"pulp:action:delete\"], \"state\": \"waiting\", \"finish_time\": null, \"dependency_failures\": {}, \"schedule_id\": null, \"progress\": {}, \"call_request_group_id\": \"fece6ff3-a1ee-41a3-86f3-0fb9da4bfba9\", \"call_request_id\": \"39226270-9e36-4c1c-93be-69ace8e11ce5\", \"principal_login\": \"admin\", \"response\": \"accepted\", \"result\": null}]"
http_version:
recorded_at: Tue, 26 Feb 2013 00:56:23 GMT
recorded_at: Mon, 18 Mar 2013 17:32:23 GMT
- request:
method: delete
uri: https://admin:admin@localhost/pulp/api/v2/repositories/integration_test_id_clone/
body:
encoding: US-ASCII
string: ""
headers:
Content-Type:
- application/json
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
User-Agent:
- Ruby
response:
status:
code: 202
message: Accepted
headers:
Date:
- Mon, 18 Mar 2013 17:34:34 GMT
Server:
- Apache/2.4.3 (Fedora) OpenSSL/1.0.1c-fips mod_wsgi/3.4 Python/2.7.3
Content-Encoding:
- utf-8
Content-Length:
- "722"
Date:
- Tue, 26 Feb 2013 00:58:34 GMT
Content-Type:
- application/json
Content-Encoding:
- utf-8
Server:
- Apache/2.2.22 (Fedora)
body:
string: "[{\"task_group_id\": \"a558f7c0-ffd4-4e57-924e-783f144a6deb\", \"exception\": null, \"traceback\": null, \"_href\": \"/pulp/api/v2/task_groups/a558f7c0-ffd4-4e57-924e-783f144a6deb/\", \"task_id\": \"4f49cc8f-9b06-4d36-a658-630dce39ff1f\", \"call_request_tags\": [\"pulp:repository:integration_test_id_clone\", \"pulp:action:delete\"], \"reasons\": [], \"start_time\": null, \"tags\": [\"pulp:repository:integration_test_id_clone\", \"pulp:action:delete\"], \"state\": \"waiting\", \"finish_time\": null, \"dependency_failures\": {}, \"schedule_id\": null, \"progress\": {}, \"call_request_group_id\": \"a558f7c0-ffd4-4e57-924e-783f144a6deb\", \"call_request_id\": \"4f49cc8f-9b06-4d36-a658-630dce39ff1f\", \"principal_login\": \"admin\", \"response\": \"accepted\", \"result\": null}]"
encoding: US-ASCII
string: "[{\"task_group_id\": \"35c0bbd8-8c3d-438c-8d20-923cd45af080\", \"exception\": null, \"traceback\": null, \"_href\": \"/pulp/api/v2/task_groups/35c0bbd8-8c3d-438c-8d20-923cd45af080/\", \"task_id\": \"aad45355-d27e-4b64-93ea-99acbb172418\", \"call_request_tags\": [\"pulp:repository:integration_test_id_clone\", \"pulp:action:delete\"], \"reasons\": [], \"start_time\": null, \"tags\": [\"pulp:repository:integration_test_id_clone\", \"pulp:action:delete\"], \"state\": \"waiting\", \"finish_time\": null, \"dependency_failures\": {}, \"schedule_id\": null, \"progress\": {}, \"call_request_group_id\": \"35c0bbd8-8c3d-438c-8d20-923cd45af080\", \"call_request_id\": \"aad45355-d27e-4b64-93ea-99acbb172418\", \"principal_login\": \"admin\", \"response\": \"accepted\", \"result\": null}]"
http_version:
recorded_at: Tue, 26 Feb 2013 00:58:34 GMT
recorded_at: Mon, 18 Mar 2013 17:34:34 GMT
- request:
method: post
uri: https://admin:admin@localhost/pulp/api/v2/repositories/integration_test_id/importers/yum_importer/schedules/sync/
body:
encoding: US-ASCII
string: "{\"schedule\":\"2012-09-25T20:44:00Z/P7D\"}"
headers:
Content-Length:
- "39"
Content-Type:
- application/json
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
Content-Length:
- "39"
User-Agent:
- Ruby
response:
status:
code: 201
message: Created
headers:
Date:
- Mon, 18 Mar 2013 17:35:46 GMT
Server:
- Apache/2.4.3 (Fedora) OpenSSL/1.0.1c-fips mod_wsgi/3.4 Python/2.7.3
Location:
- /pulp/api/v2/repositories/integration_test_id/importers/yum_importer/schedules/sync/514750724964c84cd4fd6563/
Content-Length:
- "406"
Date:
- Tue, 26 Feb 2013 01:00:03 GMT
Content-Type:
- application/json
Location:
- /pulp/api/v2/repositories/integration_test_id/importers/yum_importer/schedules/sync/512c09149c60ed74410037dd/
Server:
- Apache/2.2.22 (Fedora)
body:
string: "{\"next_run\": \"2013-02-26T20:44:00Z\", \"_href\": \"/pulp/api/v2/repositories/integration_test_id/importers/yum_importer/schedules/sync/512c09149c60ed74410037dd/\", \"schedule\": \"2012-09-25T20:44:00Z/P7D\", \"override_config\": {}, \"remaining_runs\": null, \"first_run\": \"2013-02-26T20:44:00Z\", \"enabled\": true, \"last_run\": null, \"failure_threshold\": null, \"_id\": \"512c09149c60ed74410037dd\", \"consecutive_failures\": 0}"
encoding: US-ASCII
string: "{\"next_run\": \"2013-03-19T20:44:00Z\", \"_href\": \"/pulp/api/v2/repositories/integration_test_id/importers/yum_importer/schedules/sync/514750724964c84cd4fd6563/\", \"schedule\": \"2012-09-25T20:44:00Z/P7D\", \"override_config\": {}, \"remaining_runs\": null, \"first_run\": \"2013-03-19T20:44:00Z\", \"enabled\": true, \"last_run\": null, \"failure_threshold\": null, \"_id\": \"514750724964c84cd4fd6563\", \"consecutive_failures\": 0}"
http_version:
recorded_at: Tue, 26 Feb 2013 01:00:04 GMT
recorded_at: Mon, 18 Mar 2013 17:35:46 GMT
- request:
method: get
uri: https://admin:admin@localhost/pulp/api/v2/repositories/integration_test_id/?
body:
encoding: US-ASCII
string: ""
headers:
Content-Type:
- application/json
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
User-Agent:
- Ruby
response:
status:
code: 404
message: Not Found
headers:
Content-Length:
- "273"
Date:
- Tue, 26 Feb 2013 01:00:07 GMT
Content-Type:
- application/json
- Mon, 18 Mar 2013 17:35:50 GMT
Server:
- Apache/2.4.3 (Fedora) OpenSSL/1.0.1c-fips mod_wsgi/3.4 Python/2.7.3
Content-Encoding:
- utf-8
Server:
- Apache/2.2.22 (Fedora)
Content-Length:
- "259"
Content-Type:
- application/json
body:
string: "{\"http_request_method\": \"GET\", \"exception\": null, \"error_message\": \"Missing resource(s): resource_id=integration_test_id\", \"_href\": \"/pulp/api/v2/repositories/integration_test_id/\", \"http_status\": 404, \"traceback\": null, \"resources\": {\"resource_id\": \"integration_test_id\"}}"
encoding: US-ASCII
string: "{\"http_request_method\": \"GET\", \"exception\": null, \"error_message\": \"Missing resource(s): repo=integration_test_id\", \"_href\": \"/pulp/api/v2/repositories/integration_test_id/\", \"http_status\": 404, \"traceback\": null, \"resources\": {\"repo\": \"integration_test_id\"}}"
http_version:
recorded_at: Tue, 26 Feb 2013 01:00:07 GMT
recorded_at: Mon, 18 Mar 2013 17:35:50 GMT
- request:
method: post
uri: https://admin:admin@localhost/pulp/api/v2/repositories/
body:
string: "{\"importer_config\":{\"feed_url\":\"file:///home/jlsherri/github/runcible/test/fixtures/repositories/zoo5\"},\"id\":\"integration_test_id\",\"importer_type_id\":\"yum_importer\"}"
encoding: US-ASCII
string: "{\"id\":\"integration_test_id\",\"importer_type_id\":\"yum_importer\",\"importer_config\":{\"feed_url\":\"file:///home/ehelms/workspace/runcible/test/fixtures/repositories/zoo5\"}}"
headers:
Content-Length:
- "165"
Content-Type:
- application/json
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
Content-Length:
- "166"
User-Agent:
- Ruby
response:
status:
code: 201
message: Created
headers:
Content-Length:
- "265"
Date:
- Tue, 26 Feb 2013 01:00:07 GMT
Content-Type:
- application/json
- Mon, 18 Mar 2013 17:35:50 GMT
Server:
- Apache/2.4.3 (Fedora) OpenSSL/1.0.1c-fips mod_wsgi/3.4 Python/2.7.3
Location:
- integration_test_id
Server:
- Apache/2.2.22 (Fedora)
Content-Length:
- "267"
Content-Type:
- application/json
body:
string: "{\"scratchpad\": {}, \"display_name\": \"integration_test_id\", \"description\": null, \"_ns\": \"repos\", \"notes\": {}, \"content_unit_count\": 0, \"_id\": {\"$oid\": \"512c09179c60ed74410037fc\"}, \"id\": \"integration_test_id\", \"_href\": \"/pulp/api/v2/repositories/integration_test_id/\"}"
encoding: US-ASCII
string: "{\"scratchpad\": {}, \"display_name\": \"integration_test_id\", \"description\": null, \"_ns\": \"repos\", \"notes\": {}, \"content_unit_counts\": {}, \"_id\": {\"$oid\": \"514750764964c84cd4fd6583\"}, \"id\": \"integration_test_id\", \"_href\": \"/pulp/api/v2/repositories/integration_test_id/\"}"
http_version:
recorded_at: Tue, 26 Feb 2013 01:00:07 GMT
recorded_at: Mon, 18 Mar 2013 17:35:50 GMT
- request:
method: post
uri: https://admin:admin@localhost/pulp/api/v2/repositories/integration_test_id/actions/sync/
body:
encoding: US-ASCII
string: "{}"
headers:
Content-Length:
- "2"
Content-Type:
- application/json
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
Content-Length:
- "2"
User-Agent:
- Ruby
response:
status:
code: 202
message: Accepted
headers:
Date:
- Mon, 18 Mar 2013 17:35:50 GMT
Server:
- Apache/2.4.3 (Fedora) OpenSSL/1.0.1c-fips mod_wsgi/3.4 Python/2.7.3
Content-Encoding:
- utf-8
Content-Length:
- "706"
Date:
- Tue, 26 Feb 2013 01:00:08 GMT
Content-Type:
- application/json
Content-Encoding:
- utf-8
Server:
- Apache/2.2.22 (Fedora)
body:
string: "[{\"task_group_id\": \"40a4eb72-b6fb-4d4c-9ead-d56e03e9aaa4\", \"exception\": null, \"traceback\": null, \"_href\": \"/pulp/api/v2/task_groups/40a4eb72-b6fb-4d4c-9ead-d56e03e9aaa4/\", \"task_id\": \"f4ef3833-c6d9-4771-a961-f4ecc9898287\", \"call_request_tags\": [\"pulp:repository:integration_test_id\", \"pulp:action:sync\"], \"reasons\": [], \"start_time\": null, \"tags\": [\"pulp:repository:integration_test_id\", \"pulp:action:sync\"], \"state\": \"waiting\", \"finish_time\": null, \"dependency_failures\": {}, \"schedule_id\": null, \"progress\": {}, \"call_request_group_id\": \"40a4eb72-b6fb-4d4c-9ead-d56e03e9aaa4\", \"call_request_id\": \"f4ef3833-c6d9-4771-a961-f4ecc9898287\", \"principal_login\": \"admin\", \"response\": \"accepted\", \"result\": null}]"
encoding: US-ASCII
string: "[{\"task_group_id\": \"2cff4e83-dc05-4d4d-86e7-a728fdfc30f1\", \"exception\": null, \"traceback\": null, \"_href\": \"/pulp/api/v2/task_groups/2cff4e83-dc05-4d4d-86e7-a728fdfc30f1/\", \"task_id\": \"a002e645-e3ff-4196-91b4-87c335736a5b\", \"call_request_tags\": [\"pulp:repository:integration_test_id\", \"pulp:action:sync\"], \"reasons\": [], \"start_time\": null, \"tags\": [\"pulp:repository:integration_test_id\", \"pulp:action:sync\"], \"state\": \"waiting\", \"finish_time\": null, \"dependency_failures\": {}, \"schedule_id\": null, \"progress\": {}, \"call_request_group_id\": \"2cff4e83-dc05-4d4d-86e7-a728fdfc30f1\", \"call_request_id\": \"a002e645-e3ff-4196-91b4-87c335736a5b\", \"principal_login\": \"admin\", \"response\": \"accepted\", \"result\": null}]"
http_version:
recorded_at: Tue, 26 Feb 2013 01:00:08 GMT
recorded_at: Mon, 18 Mar 2013 17:35:50 GMT
- request:
method: delete
uri: https://admin:admin@localhost/pulp/api/v2/repositories/integration_test_id/
body:
encoding: US-ASCII
string: ""
headers:
Content-Type:
- application/json
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
User-Agent:
- Ruby
response:
status:
code: 202
message: Accepted
headers:
Date:
- Mon, 18 Mar 2013 17:35:57 GMT
Server:
- Apache/2.4.3 (Fedora) OpenSSL/1.0.1c-fips mod_wsgi/3.4 Python/2.7.3
Content-Encoding:
- utf-8
Content-Length:
- "710"
Date:
- Tue, 26 Feb 2013 01:00:14 GMT
Content-Type:
- application/json
Content-Encoding:
- utf-8
Server:
- Apache/2.2.22 (Fedora)
body:
string: "[{\"task_group_id\": \"e4e5ae06-1179-4f6d-973e-c029e7366bc4\", \"exception\": null, \"traceback\": null, \"_href\": \"/pulp/api/v2/task_groups/e4e5ae06-1179-4f6d-973e-c029e7366bc4/\", \"task_id\": \"804d60bf-d437-48e3-9729-6dd0d6c7e583\", \"call_request_tags\": [\"pulp:repository:integration_test_id\", \"pulp:action:delete\"], \"reasons\": [], \"start_time\": null, \"tags\": [\"pulp:repository:integration_test_id\", \"pulp:action:delete\"], \"state\": \"waiting\", \"finish_time\": null, \"dependency_failures\": {}, \"schedule_id\": null, \"progress\": {}, \"call_request_group_id\": \"e4e5ae06-1179-4f6d-973e-c029e7366bc4\", \"call_request_id\": \"804d60bf-d437-48e3-9729-6dd0d6c7e583\", \"principal_login\": \"admin\", \"response\": \"accepted\", \"result\": null}]"
encoding: US-ASCII
string: "[{\"task_group_id\": \"bd9040ab-f986-4197-98f0-d6ca0997c442\", \"exception\": null, \"traceback\": null, \"_href\": \"/pulp/api/v2/task_groups/bd9040ab-f986-4197-98f0-d6ca0997c442/\", \"task_id\": \"884eb5c3-7841-450f-994e-094c37b4415f\", \"call_request_tags\": [\"pulp:repository:integration_test_id\", \"pulp:action:delete\"], \"reasons\": [], \"start_time\": null, \"tags\": [\"pulp:repository:integration_test_id\", \"pulp:action:delete\"], \"state\": \"waiting\", \"finish_time\": null, \"dependency_failures\": {}, \"schedule_id\": null, \"progress\": {}, \"call_request_group_id\": \"bd9040ab-f986-4197-98f0-d6ca0997c442\", \"call_request_id\": \"884eb5c3-7841-450f-994e-094c37b4415f\", \"principal_login\": \"admin\", \"response\": \"accepted\", \"result\": null}]"
http_version:
recorded_at: Tue, 26 Feb 2013 01:00:14 GMT
recorded_with: VCR 2.3.0
recorded_at: Mon, 18 Mar 2013 17:35:57 GMT
recorded_with: VCR 2.4.0

Also available in: Unified diff