Newer
Older
postorius / src / postorius / tests / fixtures / vcr_cassettes / test_list_members / add_moderator_setup.yaml
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.0b1']
    method: !!python/unicode 'POST'
    uri: http://localhost:9001/3.0/domains
  response:
    body: {string: !!python/unicode 'Domain exists'}
    headers:
      content-length: ['13']
      content-type: [application/json; charset=utf-8]
      date: ['Mon, 09 Feb 2015 21:39:02 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    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.0b1']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/domains/example.com
  response:
    body: {string: !!python/unicode '{"description": null, "url_host": "example.com",
        "base_url": "http://example.com", "contact_address": "postmaster@example.com",
        "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com",
        "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'}
    headers:
      content-length: ['278']
      content-type: [application/json; charset=utf-8]
      date: ['Mon, 09 Feb 2015 21:39:02 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    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.0b1']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/domains/example.com
  response:
    body: {string: !!python/unicode '{"description": null, "url_host": "example.com",
        "base_url": "http://example.com", "contact_address": "postmaster@example.com",
        "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com",
        "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'}
    headers:
      content-length: ['278']
      content-type: [application/json; charset=utf-8]
      date: ['Mon, 09 Feb 2015 21:39:02 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    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.0b1']
    method: !!python/unicode 'POST'
    uri: http://localhost:9001/3.0/lists
  response:
    body: {string: !!python/unicode ''}
    headers:
      content-length: ['0']
      date: ['Mon, 09 Feb 2015 21:39:02 GMT']
      location: ['http://localhost:9001/3.0/lists/foo.example.com']
      server: [WSGIServer/0.2 CPython/3.4.2]
    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.0b1']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/lists/foo@example.com
  response:
    body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"",
        "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume":
        1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count":
        0, "mail_host": "example.com", "list_name": "foo"}'}
    headers:
      content-length: ['294']
      content-type: [application/json; charset=utf-8]
      date: ['Mon, 09 Feb 2015 21:39:03 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    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.0b1']
    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, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
        "total_size": 0}'}
    headers:
      content-length: ['90']
      content-type: [application/json; charset=utf-8]
      date: ['Mon, 09 Feb 2015 21:39:03 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    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.0b1']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
  response:
    body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
        "total_size": 0}'}
    headers:
      content-length: ['90']
      content-type: [application/json; charset=utf-8]
      date: ['Mon, 09 Feb 2015 21:39:03 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    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.0b1']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator
  response:
    body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
        "total_size": 0}'}
    headers:
      content-length: ['90']
      content-type: [application/json; charset=utf-8]
      date: ['Mon, 09 Feb 2015 21:39:03 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    status: {code: 200, message: OK}
- request:
    body: subscriber=newmod%40example.com&role=moderator&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.0b1']
    method: !!python/unicode 'POST'
    uri: http://localhost:9001/3.0/members
  response:
    body: {string: !!python/unicode ''}
    headers:
      content-length: ['0']
      date: ['Mon, 09 Feb 2015 21:39:03 GMT']
      location: ['http://localhost:9001/3.0/members/199324285054835647433873267170287937248']
      server: [WSGIServer/0.2 CPython/3.4.2]
    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.0b1']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
  response:
    body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
        "total_size": 0}'}
    headers:
      content-length: ['90']
      content-type: [application/json; charset=utf-8]
      date: ['Mon, 09 Feb 2015 21:39:03 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    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.0b1']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator
  response:
    body: {string: !!python/unicode '{"start": 0, "http_etag": "\"5dc6aa6830d9bde962b6459452c6bea19ecd9b28\"",
        "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/newmod@example.com",
        "list_id": "foo.example.com", "http_etag": "\"99cbd443005c7ccc550446c454f28d2facea9ff0\"",
        "delivery_mode": "regular", "email": "newmod@example.com", "self_link": "http://localhost:9001/3.0/members/199324285054835647433873267170287937248",
        "role": "moderator", "user": "http://localhost:9001/3.0/users/219548507436655030397270575671136077291"}]}'}
    headers:
      content-length: ['518']
      content-type: [application/json; charset=utf-8]
      date: ['Mon, 09 Feb 2015 21:39:03 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    status: {code: 200, message: OK}
- 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.0b1']
    method: !!python/unicode 'POST'
    uri: http://localhost:9001/3.0/domains
  response:
    body: {string: !!python/unicode 'Domain exists'}
    headers:
      content-length: ['13']
      content-type: [application/json; charset=utf-8]
      date: ['Mon, 09 Feb 2015 21:41:04 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    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.0b1']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/domains/example.com
  response:
    body: {string: !!python/unicode '{"description": null, "url_host": "example.com",
        "base_url": "http://example.com", "contact_address": "postmaster@example.com",
        "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com",
        "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'}
    headers:
      content-length: ['278']
      content-type: [application/json; charset=utf-8]
      date: ['Mon, 09 Feb 2015 21:41:04 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    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.0b1']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/domains/example.com
  response:
    body: {string: !!python/unicode '{"description": null, "url_host": "example.com",
        "base_url": "http://example.com", "contact_address": "postmaster@example.com",
        "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com",
        "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'}
    headers:
      content-length: ['278']
      content-type: [application/json; charset=utf-8]
      date: ['Mon, 09 Feb 2015 21:41:04 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    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.0b1']
    method: !!python/unicode 'POST'
    uri: http://localhost:9001/3.0/lists
  response:
    body: {string: !!python/unicode ''}
    headers:
      content-length: ['0']
      date: ['Mon, 09 Feb 2015 21:41:04 GMT']
      location: ['http://localhost:9001/3.0/lists/foo.example.com']
      server: [WSGIServer/0.2 CPython/3.4.2]
    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.0b1']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/lists/foo@example.com
  response:
    body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"",
        "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume":
        1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count":
        0, "mail_host": "example.com", "list_name": "foo"}'}
    headers:
      content-length: ['294']
      content-type: [application/json; charset=utf-8]
      date: ['Mon, 09 Feb 2015 21:41:04 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    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.0b1']
    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, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
        "total_size": 0}'}
    headers:
      content-length: ['90']
      content-type: [application/json; charset=utf-8]
      date: ['Mon, 09 Feb 2015 21:41:04 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    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.0b1']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
  response:
    body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
        "total_size": 0}'}
    headers:
      content-length: ['90']
      content-type: [application/json; charset=utf-8]
      date: ['Mon, 09 Feb 2015 21:41:04 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    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.0b1']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator
  response:
    body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
        "total_size": 0}'}
    headers:
      content-length: ['90']
      content-type: [application/json; charset=utf-8]
      date: ['Mon, 09 Feb 2015 21:41:04 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    status: {code: 200, message: OK}
- request:
    body: subscriber=newmod%40example.com&role=moderator&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.0b1']
    method: !!python/unicode 'POST'
    uri: http://localhost:9001/3.0/members
  response:
    body: {string: !!python/unicode ''}
    headers:
      content-length: ['0']
      date: ['Mon, 09 Feb 2015 21:41:04 GMT']
      location: ['http://localhost:9001/3.0/members/325690135860390078965733464571147603169']
      server: [WSGIServer/0.2 CPython/3.4.2]
    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.0b1']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
  response:
    body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
        "total_size": 0}'}
    headers:
      content-length: ['90']
      content-type: [application/json; charset=utf-8]
      date: ['Mon, 09 Feb 2015 21:41:04 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    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.0b1']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator
  response:
    body: {string: !!python/unicode '{"start": 0, "http_etag": "\"eaaf84bcb954f185e66d6bdd3f31291b7a58fecf\"",
        "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/newmod@example.com",
        "list_id": "foo.example.com", "http_etag": "\"14db5ab1b3821b866642b1f9849bd3bc8bdd6c3e\"",
        "delivery_mode": "regular", "email": "newmod@example.com", "self_link": "http://localhost:9001/3.0/members/325690135860390078965733464571147603169",
        "role": "moderator", "user": "http://localhost:9001/3.0/users/219548507436655030397270575671136077291"}]}'}
    headers:
      content-length: ['518']
      content-type: [application/json; charset=utf-8]
      date: ['Mon, 09 Feb 2015 21:41:04 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    status: {code: 200, message: OK}
version: 1