Newer
Older
postorius / src / postorius / tests / fixtures / vcr_cassettes / test_list_members_add_owner.yaml
@Abhilash Raj Abhilash Raj on 16 Apr 2015 11 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:51:40 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:51:40 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:51:40 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:51:40 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/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:51:40 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/roster/member?count=25&page=1
  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:51:40 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/roster/owner
  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:51:40 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/roster/moderator
  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:51:40 GMT']
      server: [WSGIServer/0.2 CPython/3.4.3]
    status: {code: 200, message: OK}
- request:
    body: role=owner&subscriber=newowner%40example.com&list_id=foo.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/members
  response:
    body: {string: !!python/unicode ''}
    headers:
      content-length: ['0']
      date: ['Thu, 16 Apr 2015 01:51:40 GMT']
      location: ['http://localhost:9001/3.0/members/163990815957256542525750658852072134490']
      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/foo.example.com/roster/owner
  response:
    body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com",
        "self_link": "http://localhost:9001/3.0/members/163990815957256542525750658852072134490",
        "delivery_mode": "regular", "member_id": 163990815957256542525750658852072134490,
        "http_etag": "\"9913ae2abb0010bf9b4c855de522fab707f828d1\"", "list_id": "foo.example.com",
        "email": "newowner@example.com", "role": "owner", "user": "http://localhost:9001/3.0/users/188365834934970343643315563563123245888"}],
        "start": 0, "total_size": 1, "http_etag": "\"4aa693de9438fe5a363b664de3be5204147b1cf3\""}'}
    headers:
      content-length: ['572']
      content-type: [application/json; charset=utf-8]
      date: ['Thu, 16 Apr 2015 01:51:40 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/roster/moderator
  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:51:41 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/roster/owner
  response:
    body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com",
        "self_link": "http://localhost:9001/3.0/members/163990815957256542525750658852072134490",
        "delivery_mode": "regular", "member_id": 163990815957256542525750658852072134490,
        "http_etag": "\"9913ae2abb0010bf9b4c855de522fab707f828d1\"", "list_id": "foo.example.com",
        "email": "newowner@example.com", "role": "owner", "user": "http://localhost:9001/3.0/users/188365834934970343643315563563123245888"}],
        "start": 0, "total_size": 1, "http_etag": "\"4aa693de9438fe5a363b664de3be5204147b1cf3\""}'}
    headers:
      content-length: ['572']
      content-type: [application/json; charset=utf-8]
      date: ['Thu, 16 Apr 2015 01:51:41 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:51:41 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:51:41 GMT']
      server: [WSGIServer/0.2 CPython/3.4.3]
    status: {code: 204, message: No Content}
version: 1