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/repository_schedules.yml
---
http_interactions:
- request:
method: post
method: get
uri: https://admin:admin@localhost/pulp/api/v2/repositories/integration_test_id/importers/yum_importer/schedules/sync/
body:
string: "{\"schedule\":\"2012-09-25T20:44:00Z/P7D\"}"
encoding: US-ASCII
string: ""
headers:
Content-Length:
- "39"
Content-Type:
- application/json
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
User-Agent:
- Ruby
response:
status:
code: 201
message: Created
code: 200
message: OK
headers:
Content-Length:
- "406"
Date:
- Tue, 26 Feb 2013 00:58:43 GMT
- Mon, 18 Mar 2013 17:34:41 GMT
Server:
- Apache/2.4.3 (Fedora) OpenSSL/1.0.1c-fips mod_wsgi/3.4 Python/2.7.3
Content-Length:
- "408"
Content-Type:
- application/json
Location:
- /pulp/api/v2/repositories/integration_test_id/importers/yum_importer/schedules/sync/512c08c39c60ed7441003577/
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/512c08c39c60ed7441003577/\", \"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\": \"512c08c39c60ed7441003577\", \"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/514750314964c84cd4fd62ee/\", \"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\": \"514750314964c84cd4fd62ee\", \"consecutive_failures\": 0}]"
http_version:
recorded_at: Tue, 26 Feb 2013 00:58:43 GMT
recorded_at: Mon, 18 Mar 2013 17:34:41 GMT
- request:
method: get
method: post
uri: https://admin:admin@localhost/pulp/api/v2/repositories/integration_test_id/importers/yum_importer/schedules/sync/
body:
string: ""
encoding: US-ASCII
string: "{\"schedule\":\"2012-09-25T20:44:00Z/P7D\"}"
headers:
Content-Type:
- application/json
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
Content-Length:
- "39"
User-Agent:
- Ruby
response:
status:
code: 200
message: OK
code: 201
message: Created
headers:
Content-Length:
- "408"
Date:
- Tue, 26 Feb 2013 00:58:50 GMT
- Mon, 18 Mar 2013 17:34: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/514750364964c84cd4fd6339/
Content-Length:
- "406"
Content-Type:
- application/json
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/512c08ca9c60ed74410035b5/\", \"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\": \"512c08ca9c60ed74410035b5\", \"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/514750364964c84cd4fd6339/\", \"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\": \"514750364964c84cd4fd6339\", \"consecutive_failures\": 0}"
http_version:
recorded_at: Tue, 26 Feb 2013 00:58:50 GMT
recorded_with: VCR 2.3.0
recorded_at: Mon, 18 Mar 2013 17:34:46 GMT
recorded_with: VCR 2.4.0

Also available in: Unified diff