Newer
Older
postorius / src / postorius / tests / fixtures / vcr_cassettes / test_model.yaml
@Abhilash Raj Abhilash Raj on 16 Apr 2015 18 KB rebased trunk
interactions:
- request:
    body: mail_host=example.com
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'POST'
    uri: http://localhost:9001/3.0/domains
  response:
    body: {string: !!python/unicode 'Duplicate email host: example.com'}
    headers:
      content-length: ['33']
      content-type: [application/json; charset=utf-8]
      date: ['Thu, 16 Apr 2015 01:52:04 GMT']
      server: [WSGIServer/0.2 CPython/3.4.3]
    status: {code: 400, message: Bad Request}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/domains/example.com
  response:
    body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com",
        "base_url": "http://example.com", "mail_host": "example.com", "http_etag":
        "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "description": null, "url_host":
        "example.com"}'}
    headers:
      content-length: ['233']
      content-type: [application/json; charset=utf-8]
      date: ['Thu, 16 Apr 2015 01:52:04 GMT']
      server: [WSGIServer/0.2 CPython/3.4.3]
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/domains/example.com
  response:
    body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com",
        "base_url": "http://example.com", "mail_host": "example.com", "http_etag":
        "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "description": null, "url_host":
        "example.com"}'}
    headers:
      content-length: ['233']
      content-type: [application/json; charset=utf-8]
      date: ['Thu, 16 Apr 2015 01:52:04 GMT']
      server: [WSGIServer/0.2 CPython/3.4.3]
    status: {code: 200, message: OK}
- request:
    body: fqdn_listname=foo%40example.com
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'POST'
    uri: http://localhost:9001/3.0/lists
  response:
    body: {string: !!python/unicode ''}
    headers:
      content-length: ['0']
      date: ['Thu, 16 Apr 2015 01:52:04 GMT']
      location: ['http://localhost:9001/3.0/lists/foo.example.com']
      server: [WSGIServer/0.2 CPython/3.4.3]
    status: {code: 201, message: Created}
- request:
    body: display_name=None&password=None&email=test%40example.com
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'POST'
    uri: http://localhost:9001/3.0/users
  response:
    body: {string: !!python/unicode ''}
    headers:
      content-length: ['0']
      date: ['Thu, 16 Apr 2015 01:52:05 GMT']
      location: ['http://localhost:9001/3.0/users/152664054378572437186593410901837671190']
      server: [WSGIServer/0.2 CPython/3.4.3]
    status: {code: 201, message: Created}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/users/test@example.com
  response:
    body: {string: !!python/unicode '{"created_on": "2015-04-16T01:52:04.903173",
        "password": "$6$rounds=109157$TQ8JTJX8.w3GKbUs$Aiid4jQRA4/bdFexGRrOCAIJB5Z/9dOZMjdahHo2JJijqLr2wCG.2YxQ8LBFwOkJmqLzgd1F0.RL4xJ063QH7/",
        "self_link": "http://localhost:9001/3.0/users/152664054378572437186593410901837671190",
        "http_etag": "\"e63be6ace6e8a4c9aeed4192ebc0bb4f03de0af3\"", "user_id": 152664054378572437186593410901837671190,
        "is_server_owner": false, "display_name": "None"}'}
    headers:
      content-length: ['431']
      content-type: [application/json; charset=utf-8]
      date: ['Thu, 16 Apr 2015 01:52:05 GMT']
      server: [WSGIServer/0.2 CPython/3.4.3]
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/users/152664054378572437186593410901837671190
  response:
    body: {string: !!python/unicode '{"created_on": "2015-04-16T01:52:04.903173",
        "password": "$6$rounds=109157$TQ8JTJX8.w3GKbUs$Aiid4jQRA4/bdFexGRrOCAIJB5Z/9dOZMjdahHo2JJijqLr2wCG.2YxQ8LBFwOkJmqLzgd1F0.RL4xJ063QH7/",
        "self_link": "http://localhost:9001/3.0/users/152664054378572437186593410901837671190",
        "http_etag": "\"e63be6ace6e8a4c9aeed4192ebc0bb4f03de0af3\"", "user_id": 152664054378572437186593410901837671190,
        "is_server_owner": false, "display_name": "None"}'}
    headers:
      content-length: ['431']
      content-type: [application/json; charset=utf-8]
      date: ['Thu, 16 Apr 2015 01:52:05 GMT']
      server: [WSGIServer/0.2 CPython/3.4.3]
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/users/152664054378572437186593410901837671190/addresses
  response:
    body: {string: !!python/unicode '{"entries": [{"http_etag": "\"f0e54a29c29210a2a5160c0e98258c0a3c5e7094\"",
        "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "original_email":
        "test@example.com", "user": "http://localhost:9001/3.0/users/152664054378572437186593410901837671190",
        "email": "test@example.com", "display_name": "None", "registered_on": "2015-04-16T01:52:04.902858"}],
        "start": 0, "total_size": 1, "http_etag": "\"f1b521eaaef643599fa6dd18986b6b6d12340943\""}'}
    headers:
      content-length: ['456']
      content-type: [application/json; charset=utf-8]
      date: ['Thu, 16 Apr 2015 01:52:05 GMT']
      server: [WSGIServer/0.2 CPython/3.4.3]
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/lists
  response:
    body: {string: !!python/unicode '{"entries": [{"self_link": "http://localhost:9001/3.0/lists/foo.example.com",
        "mail_host": "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"",
        "member_count": 0, "volume": 1, "list_id": "foo.example.com", "fqdn_listname":
        "foo@example.com", "list_name": "foo", "display_name": "Foo"}], "start": 0,
        "total_size": 1, "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\""}'}
    headers:
      content-length: ['399']
      content-type: [application/json; charset=utf-8]
      date: ['Thu, 16 Apr 2015 01:52:05 GMT']
      server: [WSGIServer/0.2 CPython/3.4.3]
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/lists/foo.example.com
  response:
    body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/lists/foo.example.com",
        "mail_host": "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"",
        "member_count": 0, "volume": 1, "list_id": "foo.example.com", "fqdn_listname":
        "foo@example.com", "list_name": "foo", "display_name": "Foo"}'}
    headers:
      content-length: ['294']
      content-type: [application/json; charset=utf-8]
      date: ['Thu, 16 Apr 2015 01:52:05 GMT']
      server: [WSGIServer/0.2 CPython/3.4.3]
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'DELETE'
    uri: http://localhost:9001/3.0/lists/foo@example.com
  response:
    body: {string: !!python/unicode ''}
    headers:
      content-length: ['0']
      date: ['Thu, 16 Apr 2015 01:52:05 GMT']
      server: [WSGIServer/0.2 CPython/3.4.3]
    status: {code: 204, message: No Content}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/users
  response:
    body: {string: !!python/unicode '{"entries": [{"created_on": "2015-04-16T01:52:02.051314",
        "http_etag": "\"822773e73ed5f0855905bdce97dc31cd1ab87213\"", "self_link":
        "http://localhost:9001/3.0/users/79430588387616846272767218810898318148",
        "user_id": 79430588387616846272767218810898318148, "is_server_owner": false,
        "display_name": "owner"}, {"created_on": "2015-04-16T01:52:04.903173", "password":
        "$6$rounds=109157$TQ8JTJX8.w3GKbUs$Aiid4jQRA4/bdFexGRrOCAIJB5Z/9dOZMjdahHo2JJijqLr2wCG.2YxQ8LBFwOkJmqLzgd1F0.RL4xJ063QH7/",
        "self_link": "http://localhost:9001/3.0/users/152664054378572437186593410901837671190",
        "http_etag": "\"e63be6ace6e8a4c9aeed4192ebc0bb4f03de0af3\"", "user_id": 152664054378572437186593410901837671190,
        "is_server_owner": false, "display_name": "None"}], "start": 0, "total_size":
        2, "http_etag": "\"95b3b1d49c65d1a2afff5fdf039253015ce1fc4d\""}'}
    headers:
      content-length: ['832']
      content-type: [application/json; charset=utf-8]
      date: ['Thu, 16 Apr 2015 01:52:05 GMT']
      server: [WSGIServer/0.2 CPython/3.4.3]
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'DELETE'
    uri: http://localhost:9001/3.0/users/152664054378572437186593410901837671190
  response:
    body: {string: !!python/unicode ''}
    headers:
      content-length: ['0']
      date: ['Thu, 16 Apr 2015 01:52:05 GMT']
      server: [WSGIServer/0.2 CPython/3.4.3]
    status: {code: 204, message: No Content}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'DELETE'
    uri: http://localhost:9001/3.0/users/79430588387616846272767218810898318148
  response:
    body: {string: !!python/unicode ''}
    headers:
      content-length: ['0']
      date: ['Thu, 16 Apr 2015 01:52:05 GMT']
      server: [WSGIServer/0.2 CPython/3.4.3]
    status: {code: 204, message: No Content}
- request:
    body: mail_host=example.com
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'POST'
    uri: http://localhost:9001/3.0/domains
  response:
    body: {string: !!python/unicode 'Duplicate email host: example.com'}
    headers:
      content-length: ['33']
      content-type: [application/json; charset=utf-8]
      date: ['Thu, 16 Apr 2015 01:52:06 GMT']
      server: [WSGIServer/0.2 CPython/3.4.3]
    status: {code: 400, message: Bad Request}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/domains/example.com
  response:
    body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com",
        "base_url": "http://example.com", "mail_host": "example.com", "http_etag":
        "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "description": null, "url_host":
        "example.com"}'}
    headers:
      content-length: ['233']
      content-type: [application/json; charset=utf-8]
      date: ['Thu, 16 Apr 2015 01:52:06 GMT']
      server: [WSGIServer/0.2 CPython/3.4.3]
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/domains/example.com
  response:
    body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com",
        "base_url": "http://example.com", "mail_host": "example.com", "http_etag":
        "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "description": null, "url_host":
        "example.com"}'}
    headers:
      content-length: ['233']
      content-type: [application/json; charset=utf-8]
      date: ['Thu, 16 Apr 2015 01:52:06 GMT']
      server: [WSGIServer/0.2 CPython/3.4.3]
    status: {code: 200, message: OK}
- request:
    body: fqdn_listname=foo%40example.com
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'POST'
    uri: http://localhost:9001/3.0/lists
  response:
    body: {string: !!python/unicode ''}
    headers:
      content-length: ['0']
      date: ['Thu, 16 Apr 2015 01:52:06 GMT']
      location: ['http://localhost:9001/3.0/lists/foo.example.com']
      server: [WSGIServer/0.2 CPython/3.4.3]
    status: {code: 201, message: Created}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/lists
  response:
    body: {string: !!python/unicode '{"entries": [{"self_link": "http://localhost:9001/3.0/lists/foo.example.com",
        "mail_host": "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"",
        "member_count": 0, "volume": 1, "list_id": "foo.example.com", "fqdn_listname":
        "foo@example.com", "list_name": "foo", "display_name": "Foo"}], "start": 0,
        "total_size": 1, "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\""}'}
    headers:
      content-length: ['399']
      content-type: [application/json; charset=utf-8]
      date: ['Thu, 16 Apr 2015 01:52:06 GMT']
      server: [WSGIServer/0.2 CPython/3.4.3]
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/lists/foo.example.com
  response:
    body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/lists/foo.example.com",
        "mail_host": "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"",
        "member_count": 0, "volume": 1, "list_id": "foo.example.com", "fqdn_listname":
        "foo@example.com", "list_name": "foo", "display_name": "Foo"}'}
    headers:
      content-length: ['294']
      content-type: [application/json; charset=utf-8]
      date: ['Thu, 16 Apr 2015 01:52:06 GMT']
      server: [WSGIServer/0.2 CPython/3.4.3]
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'DELETE'
    uri: http://localhost:9001/3.0/lists/foo@example.com
  response:
    body: {string: !!python/unicode ''}
    headers:
      content-length: ['0']
      date: ['Thu, 16 Apr 2015 01:52:06 GMT']
      server: [WSGIServer/0.2 CPython/3.4.3]
    status: {code: 204, message: No Content}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
      !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/users
  response:
    body: {string: !!python/unicode '{"start": 0, "total_size": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\""}'}
    headers:
      content-length: ['90']
      content-type: [application/json; charset=utf-8]
      date: ['Thu, 16 Apr 2015 01:52:06 GMT']
      server: [WSGIServer/0.2 CPython/3.4.3]
    status: {code: 200, message: OK}
version: 1