interactions:
- request:
    body: mail_host=example.com
    headers:
      accept-encoding: ['gzip, deflate']
      authorization: [Basic cmVzdGFkbWluOnJlc3RwYXNz]
      content-type: [application/x-www-form-urlencoded]
      user-agent: [GNU Mailman REST client v3.2.0b3]
    method: POST
    uri: http://localhost:9001/3.1/domains
  response:
    body: {string: ''}
    headers:
      Date: ['Wed, 16 May 2018 01:05:59 GMT']
      Server: [WSGIServer/0.2 CPython/3.6.4+]
      content-length: ['0']
      content-type: [application/json; charset=UTF-8]
      location: ['http://localhost:9001/3.1/domains/example.com']
    status: {code: 201, message: Created}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      authorization: [Basic cmVzdGFkbWluOnJlc3RwYXNz]
      user-agent: [GNU Mailman REST client v3.2.0b3]
    method: GET
    uri: http://localhost:9001/3.1/domains/example.com
  response:
    body: {string: '{"alias_domain": null, "description": null, "http_etag": "\"0955c4a2fe5c37a019be0fef3abbb952cdc328a4\"",
        "mail_host": "example.com", "self_link": "http://localhost:9001/3.1/domains/example.com"}'}
    headers:
      Date: ['Wed, 16 May 2018 01:05:59 GMT']
      Server: [WSGIServer/0.2 CPython/3.6.4+]
      content-length: ['194']
      content-type: [application/json; charset=UTF-8]
    status: {code: 200, message: OK}
- request:
    body: fqdn_listname=foo%40example.com
    headers:
      accept-encoding: ['gzip, deflate']
      authorization: [Basic cmVzdGFkbWluOnJlc3RwYXNz]
      content-type: [application/x-www-form-urlencoded]
      user-agent: [GNU Mailman REST client v3.2.0b3]
    method: POST
    uri: http://localhost:9001/3.1/lists
  response:
    body: {string: ''}
    headers:
      Date: ['Wed, 16 May 2018 01:05:59 GMT']
      Server: [WSGIServer/0.2 CPython/3.6.4+]
      content-length: ['0']
      content-type: [application/json; charset=UTF-8]
      location: ['http://localhost:9001/3.1/lists/foo.example.com']
    status: {code: 201, message: Created}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      authorization: [Basic cmVzdGFkbWluOnJlc3RwYXNz]
      user-agent: [GNU Mailman REST client v3.2.0b3]
    method: GET
    uri: http://localhost:9001/3.1/lists/foo.example.com
  response:
    body: {string: '{"display_name": "Foo", "fqdn_listname": "foo@example.com", "http_etag":
        "\"4fb667c3d533cf6b2b6faa284a0d5d1302536524\"", "list_id": "foo.example.com",
        "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link":
        "http://localhost:9001/3.1/lists/foo.example.com", "volume": 1}'}
    headers:
      Date: ['Wed, 16 May 2018 01:05:59 GMT']
      Server: [WSGIServer/0.2 CPython/3.6.4+]
      content-length: ['294']
      content-type: [application/json; charset=UTF-8]
    status: {code: 200, message: OK}
- request:
    body: list_id=foo.example.com&subscriber=ann%40example.com&display_name=None&role=owner
    headers:
      accept-encoding: ['gzip, deflate']
      authorization: [Basic cmVzdGFkbWluOnJlc3RwYXNz]
      content-type: [application/x-www-form-urlencoded]
      user-agent: [GNU Mailman REST client v3.2.0b3]
    method: POST
    uri: http://localhost:9001/3.1/members
  response:
    body: {string: ''}
    headers:
      Date: ['Wed, 16 May 2018 01:05:59 GMT']
      Server: [WSGIServer/0.2 CPython/3.6.4+]
      content-length: ['0']
      content-type: [application/json; charset=UTF-8]
      location: ['http://localhost:9001/3.1/members/00000000000000000000000000000096']
    status: {code: 201, message: Created}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      authorization: [Basic cmVzdGFkbWluOnJlc3RwYXNz]
      user-agent: [GNU Mailman REST client v3.2.0b3]
    method: GET
    uri: http://localhost:9001/3.1/lists/foo.example.com/roster/owner
  response:
    body: {string: '{"entries": [{"address": "http://localhost:9001/3.1/addresses/ann@example.com",
        "delivery_mode": "regular", "display_name": "None", "email": "ann@example.com",
        "http_etag": "\"47b2d3bc61d1c679641c6f4c0a5d8e70bae66cb8\"", "list_id": "foo.example.com",
        "member_id": "00000000000000000000000000000096", "moderation_action": "accept",
        "role": "owner", "self_link": "http://localhost:9001/3.1/members/00000000000000000000000000000096",
        "user": "http://localhost:9001/3.1/users/00000000000000000000000000000082"}],
        "http_etag": "\"d5eedb8061f1f394bbd045e41e5a147cc52373b7\"", "start": 0, "total_size":
        1}'}
    headers:
      Date: ['Wed, 16 May 2018 01:05:59 GMT']
      Server: [WSGIServer/0.2 CPython/3.6.4+]
      content-length: ['598']
      content-type: [application/json; charset=UTF-8]
    status: {code: 200, message: OK}
- request:
    body: subscriber=ann%40example.com&list_id=foo.example.com
    headers:
      accept-encoding: ['gzip, deflate']
      authorization: [Basic cmVzdGFkbWluOnJlc3RwYXNz]
      content-type: [application/x-www-form-urlencoded]
      user-agent: [GNU Mailman REST client v3.2.0b3]
    method: POST
    uri: http://localhost:9001/3.1/members/find
  response:
    body: {string: '{"entries": [{"address": "http://localhost:9001/3.1/addresses/ann@example.com",
        "delivery_mode": "regular", "display_name": "None", "email": "ann@example.com",
        "http_etag": "\"47b2d3bc61d1c679641c6f4c0a5d8e70bae66cb8\"", "list_id": "foo.example.com",
        "member_id": "00000000000000000000000000000096", "moderation_action": "accept",
        "role": "owner", "self_link": "http://localhost:9001/3.1/members/00000000000000000000000000000096",
        "user": "http://localhost:9001/3.1/users/00000000000000000000000000000082"}],
        "http_etag": "\"d5eedb8061f1f394bbd045e41e5a147cc52373b7\"", "start": 0, "total_size":
        1}'}
    headers:
      Date: ['Wed, 16 May 2018 01:05:59 GMT']
      Server: [WSGIServer/0.2 CPython/3.6.4+]
      content-length: ['598']
      content-type: [application/json; charset=UTF-8]
    status: {code: 200, message: OK}
- request:
    body: subscriber=random%40example.com&list_id=foo.example.com
    headers:
      accept-encoding: ['gzip, deflate']
      authorization: [Basic cmVzdGFkbWluOnJlc3RwYXNz]
      content-type: [application/x-www-form-urlencoded]
      user-agent: [GNU Mailman REST client v3.2.0b3]
    method: POST
    uri: http://localhost:9001/3.1/members/find
  response:
    body: {string: '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
        "start": 0, "total_size": 0}'}
    headers:
      Date: ['Wed, 16 May 2018 01:05:59 GMT']
      Server: [WSGIServer/0.2 CPython/3.6.4+]
      content-length: ['90']
      content-type: [application/json; charset=UTF-8]
    status: {code: 200, message: OK}
- request:
    body: list_id=foo.example.com&subscriber=bart%40example.com&display_name=None
    headers:
      accept-encoding: ['gzip, deflate']
      authorization: [Basic cmVzdGFkbWluOnJlc3RwYXNz]
      content-type: [application/x-www-form-urlencoded]
      user-agent: [GNU Mailman REST client v3.2.0b3]
    method: POST
    uri: http://localhost:9001/3.1/members
  response:
    body: {string: '{"http_etag": "\"1a1f5d9e41b526ccc79d2159569064376ab4d8c6\"",
        "token": "0000000000000000000000000000000000000073", "token_owner": "subscriber"}'}
    headers:
      Date: ['Wed, 16 May 2018 01:05:59 GMT']
      Server: [WSGIServer/0.2 CPython/3.6.4+]
      content-length: ['143']
      content-type: [application/json; charset=UTF-8]
    status: {code: 202, message: Accepted}
- request:
    body: subscriber=bart%40example.com&list_id=foo.example.com
    headers:
      accept-encoding: ['gzip, deflate']
      authorization: [Basic cmVzdGFkbWluOnJlc3RwYXNz]
      content-type: [application/x-www-form-urlencoded]
      user-agent: [GNU Mailman REST client v3.2.0b3]
    method: POST
    uri: http://localhost:9001/3.1/members/find
  response:
    body: {string: '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
        "start": 0, "total_size": 0}'}
    headers:
      Date: ['Wed, 16 May 2018 01:05:59 GMT']
      Server: [WSGIServer/0.2 CPython/3.6.4+]
      content-length: ['90']
      content-type: [application/json; charset=UTF-8]
    status: {code: 200, message: OK}
- request:
    body: list_id=foo.example.com&subscriber=mod%40example.com&display_name=None&role=moderator
    headers:
      accept-encoding: ['gzip, deflate']
      authorization: [Basic cmVzdGFkbWluOnJlc3RwYXNz]
      content-type: [application/x-www-form-urlencoded]
      user-agent: [GNU Mailman REST client v3.2.0b3]
    method: POST
    uri: http://localhost:9001/3.1/members
  response:
    body: {string: ''}
    headers:
      Date: ['Wed, 16 May 2018 01:05:59 GMT']
      Server: [WSGIServer/0.2 CPython/3.6.4+]
      content-length: ['0']
      content-type: [application/json; charset=UTF-8]
      location: ['http://localhost:9001/3.1/members/00000000000000000000000000000097']
    status: {code: 201, message: Created}
- request:
    body: subscriber=mod%40example.com&list_id=foo.example.com
    headers:
      accept-encoding: ['gzip, deflate']
      authorization: [Basic cmVzdGFkbWluOnJlc3RwYXNz]
      content-type: [application/x-www-form-urlencoded]
      user-agent: [GNU Mailman REST client v3.2.0b3]
    method: POST
    uri: http://localhost:9001/3.1/members/find
  response:
    body: {string: '{"entries": [{"address": "http://localhost:9001/3.1/addresses/mod@example.com",
        "delivery_mode": "regular", "display_name": "None", "email": "mod@example.com",
        "http_etag": "\"1124e4d8b4d6b30aacc5f50453d185fba8f9ddc8\"", "list_id": "foo.example.com",
        "member_id": "00000000000000000000000000000097", "moderation_action": "accept",
        "role": "moderator", "self_link": "http://localhost:9001/3.1/members/00000000000000000000000000000097",
        "user": "http://localhost:9001/3.1/users/00000000000000000000000000000081"}],
        "http_etag": "\"d1062745f1c758e8aacb6d9cb35c7c852763132f\"", "start": 0, "total_size":
        1}'}
    headers:
      Date: ['Wed, 16 May 2018 01:05:59 GMT']
      Server: [WSGIServer/0.2 CPython/3.6.4+]
      content-length: ['602']
      content-type: [application/json; charset=UTF-8]
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      authorization: [Basic cmVzdGFkbWluOnJlc3RwYXNz]
      user-agent: [GNU Mailman REST client v3.2.0b3]
    method: DELETE
    uri: http://localhost:9001/3.1/domains/example.com
  response:
    body: {string: ''}
    headers:
      Content-Length: ['0']
      Date: ['Wed, 16 May 2018 01:05:59 GMT']
      Server: [WSGIServer/0.2 CPython/3.6.4+]
    status: {code: 204, message: No Content}
version: 1
