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/user.yml
---
http_interactions:
- request:
method: delete
uri: https://admin:admin@localhost/pulp/api/v2/users/integration_test_user/
method: get
uri: https://admin:admin@localhost/pulp/api/v2/users/
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: 200
message: OK
headers:
Content-Length:
- "4"
Date:
- Tue, 26 Feb 2013 01:00:17 GMT
- Mon, 18 Mar 2013 17:35:59 GMT
Server:
- Apache/2.4.3 (Fedora) OpenSSL/1.0.1c-fips mod_wsgi/3.4 Python/2.7.3
Content-Length:
- "427"
Content-Type:
- application/json
Server:
- Apache/2.2.22 (Fedora)
body:
string: "null"
encoding: US-ASCII
string: "[{\"_id\": {\"$oid\": \"513dd6794964c8075127c249\"}, \"name\": \"admin\", \"roles\": [\"super-users\"], \"_ns\": \"users\", \"login\": \"admin\", \"id\": \"513dd6794964c8075127c249\", \"_href\": \"/pulp/api/v2/users/admin/\"}, {\"_id\": {\"$oid\": \"5147507f4964c84cd4fd65bf\"}, \"name\": \"integration_test_user\", \"roles\": [], \"_ns\": \"users\", \"login\": \"integration_test_user\", \"id\": \"5147507f4964c84cd4fd65bf\", \"_href\": \"/pulp/api/v2/users/integration_test_user/\"}]"
http_version:
recorded_at: Tue, 26 Feb 2013 01:00:18 GMT
recorded_at: Mon, 18 Mar 2013 17:35:59 GMT
- request:
method: get
uri: https://admin:admin@localhost/pulp/api/v2/users/
method: delete
uri: https://admin:admin@localhost/pulp/api/v2/users/integration_test_user/
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: 200
message: OK
headers:
Content-Length:
- "1933"
Date:
- Tue, 26 Feb 2013 01:00:18 GMT
- Mon, 18 Mar 2013 17:36:00 GMT
Server:
- Apache/2.4.3 (Fedora) OpenSSL/1.0.1c-fips mod_wsgi/3.4 Python/2.7.3
Content-Length:
- "4"
Content-Type:
- application/json
Server:
- Apache/2.2.22 (Fedora)
body:
string: "[{\"_id\": {\"$oid\": \"512bd3c79c60ed2e26000002\"}, \"name\": \"admin\", \"roles\": [\"super-users\"], \"_ns\": \"users\", \"login\": \"admin\", \"id\": \"512bd3c79c60ed2e26000002\", \"_href\": \"/pulp/api/v2/users/admin/\"}, {\"_id\": {\"$oid\": \"512bd3fd9c60ed2e2600001d\"}, \"name\": \"hidden-tD8diu-80a6387f\", \"roles\": [\"super-users\"], \"_ns\": \"users\", \"login\": \"hidden-tD8diu-80a6387f\", \"id\": \"512bd3fd9c60ed2e2600001d\", \"_href\": \"/pulp/api/v2/users/hidden-tD8diu-80a6387f/\"}, {\"_id\": {\"$oid\": \"512bdf3d9c60ed35e9000017\"}, \"name\": \"hidden-WezxlL-54228efa\", \"roles\": [\"super-users\"], \"_ns\": \"users\", \"login\": \"hidden-WezxlL-54228efa\", \"id\": \"512bdf3d9c60ed35e9000017\", \"_href\": \"/pulp/api/v2/users/hidden-WezxlL-54228efa/\"}, {\"_id\": {\"$oid\": \"512be8ba9c60ed3b50000017\"}, \"name\": \"hidden-edk2Qo-76bbd714\", \"roles\": [\"super-users\"], \"_ns\": \"users\", \"login\": \"hidden-edk2Qo-76bbd714\", \"id\": \"512be8ba9c60ed3b50000017\", \"_href\": \"/pulp/api/v2/users/hidden-edk2Qo-76bbd714/\"}, {\"_id\": {\"$oid\": \"512bee5f9c60ed3b50000229\"}, \"name\": \"user_YTl4OMGZyBKD-205e7b19\", \"roles\": [\"super-users\"], \"_ns\": \"users\", \"login\": \"user_YTl4OMGZyBKD-205e7b19\", \"id\": \"512bee5f9c60ed3b50000229\", \"_href\": \"/pulp/api/v2/users/user_YTl4OMGZyBKD-205e7b19/\"}, {\"_id\": {\"$oid\": \"512bf08d9c60ed3b500002e9\"}, \"name\": \"user_SWpVwIPgEDXJ-f55cdc03\", \"roles\": [\"super-users\"], \"_ns\": \"users\", \"login\": \"user_SWpVwIPgEDXJ-f55cdc03\", \"id\": \"512bf08d9c60ed3b500002e9\", \"_href\": \"/pulp/api/v2/users/user_SWpVwIPgEDXJ-f55cdc03/\"}, {\"_id\": {\"$oid\": \"512bf1249c60ed7441000017\"}, \"name\": \"hidden-hTWSWE-2fa18669\", \"roles\": [\"super-users\"], \"_ns\": \"users\", \"login\": \"hidden-hTWSWE-2fa18669\", \"id\": \"512bf1249c60ed7441000017\", \"_href\": \"/pulp/api/v2/users/hidden-hTWSWE-2fa18669/\"}, {\"_id\": {\"$oid\": \"512c09229c60ed744100384d\"}, \"name\": \"integration_test_user\", \"roles\": [], \"_ns\": \"users\", \"login\": \"integration_test_user\", \"id\": \"512c09229c60ed744100384d\", \"_href\": \"/pulp/api/v2/users/integration_test_user/\"}]"
encoding: US-ASCII
string: "null"
http_version:
recorded_at: Tue, 26 Feb 2013 01:00:18 GMT
recorded_at: Mon, 18 Mar 2013 17:36:01 GMT
- request:
method: get
uri: https://admin:admin@localhost/pulp/api/v2/users/integration_test_user/
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: 200
message: OK
headers:
Date:
- Mon, 18 Mar 2013 17:36:02 GMT
Server:
- Apache/2.4.3 (Fedora) OpenSSL/1.0.1c-fips mod_wsgi/3.4 Python/2.7.3
Content-Length:
- "247"
Date:
- Tue, 26 Feb 2013 01:00:20 GMT
Content-Type:
- application/json
Server:
- Apache/2.2.22 (Fedora)
body:
string: "{\"_id\": {\"$oid\": \"512c09249c60ed744100387c\"}, \"name\": \"integration_test_user\", \"roles\": [], \"_ns\": \"users\", \"login\": \"integration_test_user\", \"password\": null, \"id\": \"512c09249c60ed744100387c\", \"_href\": \"/pulp/api/v2/users/integration_test_user/\"}"
encoding: US-ASCII
string: "{\"_id\": {\"$oid\": \"514750824964c84cd4fd6604\"}, \"name\": \"integration_test_user\", \"roles\": [], \"_ns\": \"users\", \"login\": \"integration_test_user\", \"password\": null, \"id\": \"514750824964c84cd4fd6604\", \"_href\": \"/pulp/api/v2/users/integration_test_user/\"}"
http_version:
recorded_at: Tue, 26 Feb 2013 01:00:20 GMT
recorded_at: Mon, 18 Mar 2013 17:36:02 GMT
- request:
method: post
uri: https://admin:admin@localhost/pulp/api/v2/users/
body:
string: "{\"password\":\"integration_test_password\",\"login\":\"integration_test_user\",\"name\":\"integration_test_user\"}"
encoding: US-ASCII
string: "{\"login\":\"integration_test_user\",\"name\":\"integration_test_user\",\"password\":\"integration_test_password\"}"
headers:
Content-Length:
- "103"
Content-Type:
- application/json
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
Content-Length:
- "103"
User-Agent:
- Ruby
response:
status:
code: 201
message: Created
headers:
Date:
- Mon, 18 Mar 2013 17:36:05 GMT
Server:
- Apache/2.4.3 (Fedora) OpenSSL/1.0.1c-fips mod_wsgi/3.4 Python/2.7.3
Location:
- integration_test_user
Content-Length:
- "229"
Date:
- Tue, 26 Feb 2013 01:00:22 GMT
Content-Type:
- application/json
Location:
- integration_test_user
Server:
- Apache/2.2.22 (Fedora)
body:
string: "{\"_id\": {\"$oid\": \"512c09269c60ed74410038c2\"}, \"name\": \"integration_test_user\", \"roles\": [], \"_ns\": \"users\", \"login\": \"integration_test_user\", \"id\": \"512c09269c60ed74410038c2\", \"_href\": \"/pulp/api/v2/users/integration_test_user/\"}"
encoding: US-ASCII
string: "{\"_id\": {\"$oid\": \"514750854964c84cd4fd664a\"}, \"name\": \"integration_test_user\", \"roles\": [], \"_ns\": \"users\", \"login\": \"integration_test_user\", \"id\": \"514750854964c84cd4fd664a\", \"_href\": \"/pulp/api/v2/users/integration_test_user/\"}"
http_version:
recorded_at: Tue, 26 Feb 2013 01:00:22 GMT
recorded_with: VCR 2.3.0
recorded_at: Mon, 18 Mar 2013 17:36:05 GMT
recorded_with: VCR 2.4.0

Also available in: Unified diff