Newer
Older
postorius / src / postorius / tests / fixtures / vcr_cassettes / test_list_creation.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 22:14:51 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 '{"base_url": "http://example.com", "mail_host":
        "example.com", "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\"",
        "contact_address": "postmaster@example.com", "description": null, "url_host":
        "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'}
    headers:
      content-length: ['278']
      content-type: [application/json; charset=utf-8]
      date: ['Mon, 09 Feb 2015 22:14:51 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
  response:
    body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com",
        "mail_host": "example.com", "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\"",
        "contact_address": "postmaster@example.com", "description": null, "url_host":
        "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}],
        "start": 0, "http_etag": "\"b4ea7109190ac24defea706a8fc8807090dabba4\"", "total_size":
        1}'}
    headers:
      content-length: ['383']
      content-type: [application/json; charset=utf-8]
      date: ['Mon, 09 Feb 2015 22:14:51 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 '{"base_url": "http://example.com", "mail_host":
        "example.com", "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\"",
        "contact_address": "postmaster@example.com", "description": null, "url_host":
        "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'}
    headers:
      content-length: ['278']
      content-type: [application/json; charset=utf-8]
      date: ['Mon, 09 Feb 2015 22:14:51 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 '{"base_url": "http://example.com", "mail_host":
        "example.com", "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\"",
        "contact_address": "postmaster@example.com", "description": null, "url_host":
        "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'}
    headers:
      content-length: ['278']
      content-type: [application/json; charset=utf-8]
      date: ['Mon, 09 Feb 2015 22:14:51 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 '{"base_url": "http://example.com", "mail_host":
        "example.com", "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\"",
        "contact_address": "postmaster@example.com", "description": null, "url_host":
        "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'}
    headers:
      content-length: ['278']
      content-type: [application/json; charset=utf-8]
      date: ['Mon, 09 Feb 2015 22:14:51 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    status: {code: 200, message: OK}
- request:
    body: fqdn_listname=a_new_list%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 22:14:51 GMT']
      location: ['http://localhost:9001/3.0/lists/a_new_list.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/a_new_list.example.com
  response:
    body: {string: !!python/unicode '{"fqdn_listname": "a_new_list@example.com", "display_name":
        "A_new_list", "member_count": 0, "list_id": "a_new_list.example.com", "mail_host":
        "example.com", "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com",
        "volume": 1, "list_name": "a_new_list", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\""}'}
    headers:
      content-length: ['329']
      content-type: [application/json; charset=utf-8]
      date: ['Mon, 09 Feb 2015 22:14:51 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    status: {code: 200, message: OK}
- request:
    body: role=owner&subscriber=owner%40example.com&list_id=a_new_list.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 22:14:51 GMT']
      location: ['http://localhost:9001/3.0/members/201301032712111293964645665073540073466']
      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/a_new_list@example.com/config
  response:
    body: {string: !!python/unicode '{"autoresponse_owner_text": "", "include_rfc2369_headers":
        true, "join_address": "a_new_list-join@example.com", "scheme": "http", "last_post_at":
        null, "admin_notify_mchanges": false, "autorespond_postings": "none", "owner_address":
        "a_new_list-owner@example.com", "archive_policy": "public", "mail_host": "example.com",
        "no_reply_address": "noreply@example.com", "created_at": "2015-02-09T22:14:51.714036",
        "posting_pipeline": "default-posting-pipeline", "display_name": "A_new_list",
        "leave_address": "a_new_list-leave@example.com", "fqdn_listname": "a_new_list@example.com",
        "autoresponse_request_text": "", "volume": 1, "web_host": "example.com", "bounces_address":
        "a_new_list-bounces@example.com", "send_welcome_message": true, "http_etag":
        "\"5c317ba46d03974ed3dab2656d0bb5fea8562959\"", "description": "", "welcome_message_uri":
        "mailman:///welcome.txt", "posting_address": "a_new_list@example.com", "acceptable_aliases":
        [], "next_digest_number": 1, "autoresponse_postings_text": "", "default_member_action":
        "defer", "default_nonmember_action": "hold", "reply_to_address": "", "convert_html_to_plaintext":
        false, "list_name": "a_new_list", "autorespond_requests": "none", "advertised":
        true, "post_id": 1, "anonymous_list": false, "reply_goes_to_list": "no_munging",
        "digest_last_sent_at": null, "digest_size_threshold": 30.0, "request_address":
        "a_new_list-request@example.com", "filter_content": false, "subject_prefix":
        "[A_new_list] ", "collapse_alternatives": true, "autoresponse_grace_period":
        "90d", "admin_immed_notify": true, "first_strip_reply_to": false, "administrivia":
        true, "allow_list_posts": true, "autorespond_owner": "none"}'}
    headers:
      content-length: ['1653']
      content-type: [application/json; charset=utf-8]
      date: ['Mon, 09 Feb 2015 22:14:51 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    status: {code: 200, message: OK}
- request:
    body: welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&allow_list_posts=True&autoresponse_owner_text=&default_member_action=defer&archive_policy=public&filter_content=False&default_nonmember_action=hold&anonymous_list=False&subject_prefix=%5BA_new_list%5D+&display_name=A_new_list&include_rfc2369_headers=True&reply_to_address=&digest_size_threshold=30.0&advertised=True&autoresponse_grace_period=90d&collapse_alternatives=True&autorespond_postings=none&convert_html_to_plaintext=False&administrivia=True&autorespond_requests=none&send_welcome_message=True&reply_goes_to_list=no_munging&posting_pipeline=default-posting-pipeline&admin_notify_mchanges=False&autorespond_owner=none&description=A+new+list.&admin_immed_notify=True&autoresponse_postings_text=&first_strip_reply_to=False&autoresponse_request_text=
    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 'PATCH'
    uri: http://localhost:9001/3.0/lists/a_new_list@example.com/config
  response:
    body: {string: !!python/unicode ''}
    headers:
      content-length: ['0']
      date: ['Mon, 09 Feb 2015 22:14:51 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    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.0b1']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/lists/a_new_list@example.com
  response:
    body: {string: !!python/unicode '{"fqdn_listname": "a_new_list@example.com", "display_name":
        "A_new_list", "member_count": 0, "list_id": "a_new_list.example.com", "mail_host":
        "example.com", "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com",
        "volume": 1, "list_name": "a_new_list", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\""}'}
    headers:
      content-length: ['329']
      content-type: [application/json; charset=utf-8]
      date: ['Mon, 09 Feb 2015 22:14:51 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/a_new_list.example.com/roster/owner
  response:
    body: {string: !!python/unicode '{"entries": [{"user": "http://localhost:9001/3.0/users/96573909988922970304746006243506406498",
        "http_etag": "\"e2263065a3d09fdd5e65d7eb5d16decb359151b0\"", "role": "owner",
        "email": "owner@example.com", "delivery_mode": "regular", "list_id": "a_new_list.example.com",
        "address": "http://localhost:9001/3.0/addresses/owner@example.com", "self_link":
        "http://localhost:9001/3.0/members/201301032712111293964645665073540073466"}],
        "start": 0, "http_etag": "\"91bc9108fa92332e76a08e415db23af9c5fd1bfd\"", "total_size":
        1}'}
    headers:
      content-length: ['518']
      content-type: [application/json; charset=utf-8]
      date: ['Mon, 09 Feb 2015 22:14:51 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
  response:
    body: {string: !!python/unicode '{"entries": [{"fqdn_listname": "a_new_list@example.com",
        "display_name": "A_new_list", "member_count": 0, "list_id": "a_new_list.example.com",
        "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com",
        "volume": 1, "list_name": "a_new_list", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\""}],
        "start": 0, "http_etag": "\"dee96dcb9d3f736cc6fa170baeea8f879d7db6f0\"", "total_size":
        1}'}
    headers:
      content-length: ['434']
      content-type: [application/json; charset=utf-8]
      date: ['Mon, 09 Feb 2015 22:14:52 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/a_new_list.example.com
  response:
    body: {string: !!python/unicode '{"fqdn_listname": "a_new_list@example.com", "display_name":
        "A_new_list", "member_count": 0, "list_id": "a_new_list.example.com", "mail_host":
        "example.com", "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com",
        "volume": 1, "list_name": "a_new_list", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\""}'}
    headers:
      content-length: ['329']
      content-type: [application/json; charset=utf-8]
      date: ['Mon, 09 Feb 2015 22:14:52 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 'DELETE'
    uri: http://localhost:9001/3.0/lists/a_new_list@example.com
  response:
    body: {string: !!python/unicode ''}
    headers:
      content-length: ['0']
      date: ['Mon, 09 Feb 2015 22:14:52 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    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.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 22:14:52 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 '{"base_url": "http://example.com", "mail_host":
        "example.com", "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\"",
        "contact_address": "postmaster@example.com", "description": null, "url_host":
        "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'}
    headers:
      content-length: ['278']
      content-type: [application/json; charset=utf-8]
      date: ['Mon, 09 Feb 2015 22:14:52 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
  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 22:14:52 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    status: {code: 200, message: OK}
version: 1