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/extensions/repository_create_with_importer.yml
method: post
uri: https://admin:admin@localhost/pulp/api/v2/repositories/
body:
string: "{\"id\":\"integration_test_id\",\"distributors\":[{\"distributor_config\":{\"http\":true,\"https\":true,\"relative_url\":\"/path\"},\"distributor_id\":\"123\",\"distributor_type\":\"yum_distributor\",\"auto_publish\":true}]}"
encoding: US-ASCII
string: "{\"id\":\"integration_test_id\",\"distributors\":[{\"distributor_type\":\"yum_distributor\",\"distributor_config\":{\"relative_url\":\"/path\",\"http\":true,\"https\":true},\"auto_publish\":true,\"distributor_id\":\"123\"}]}"
headers:
Content-Length:
- "198"
Content-Type:
- application/json
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
Content-Length:
- "198"
User-Agent:
- Ruby
response:
status:
code: 201
message: Created
headers:
Content-Length:
- "265"
Date:
- Tue, 26 Feb 2013 00:56:20 GMT
Content-Type:
- application/json
- Mon, 18 Mar 2013 17:32:31 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\": \"512c08359c60ed74410030b3\"}, \"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\": \"51474faf4964c84cd4fd5e05\"}, \"id\": \"integration_test_id\", \"_href\": \"/pulp/api/v2/repositories/integration_test_id/\"}"
http_version:
recorded_at: Tue, 26 Feb 2013 00:56:21 GMT
recorded_with: VCR 2.3.0
recorded_at: Mon, 18 Mar 2013 17:32:31 GMT
recorded_with: VCR 2.4.0

Also available in: Unified diff