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 'Duplicate email host: example.com'}
    headers:
      content-length: ['33']
      content-type: [application/json; charset=utf-8]
      date: ['Tue, 14 Apr 2015 14:06: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 '{"description": null, "base_url": "http://example.com",
        "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com",
        "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'}
    headers:
      content-length: ['233']
      content-type: [application/json; charset=utf-8]
      date: ['Tue, 14 Apr 2015 14:06: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/domains
  response:
    body: {string: !!python/unicode '{"entries": [{"description": null, "base_url":
        "http://example.com", "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com",
        "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}],
        "start": 0, "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", "total_size":
        1}'}
    headers:
      content-length: ['338']
      content-type: [application/json; charset=utf-8]
      date: ['Tue, 14 Apr 2015 14:06: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/domains/example.com
  response:
    body: {string: !!python/unicode '{"description": null, "base_url": "http://example.com",
        "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com",
        "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'}
    headers:
      content-length: ['233']
      content-type: [application/json; charset=utf-8]
      date: ['Tue, 14 Apr 2015 14:06: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/domains/example.com
  response:
    body: {string: !!python/unicode '{"description": null, "base_url": "http://example.com",
        "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com",
        "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'}
    headers:
      content-length: ['233']
      content-type: [application/json; charset=utf-8]
      date: ['Tue, 14 Apr 2015 14:06: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/domains/example.com
  response:
    body: {string: !!python/unicode '{"description": null, "base_url": "http://example.com",
        "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com",
        "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'}
    headers:
      content-length: ['233']
      content-type: [application/json; charset=utf-8]
      date: ['Tue, 14 Apr 2015 14:06:52 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: ['Tue, 14 Apr 2015 14:06:52 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 '{"member_count": 0, "list_name": "a_new_list",
        "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", "display_name":
        "A_new_list", "list_id": "a_new_list.example.com", "fqdn_listname": "a_new_list@example.com",
        "volume": 1, "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"",
        "mail_host": "example.com"}'}
    headers:
      content-length: ['329']
      content-type: [application/json; charset=utf-8]
      date: ['Tue, 14 Apr 2015 14:06:52 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: ['Tue, 14 Apr 2015 14:06:52 GMT']
      location: ['http://localhost:9001/3.0/members/62510532662650498796290941282904599479']
      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_grace_period": "90d", "posting_pipeline":
        "default-posting-pipeline", "default_member_action": "defer", "list_name":
        "a_new_list", "send_welcome_message": true, "digest_last_sent_at": null, "mail_host":
        "example.com", "volume": 1, "no_reply_address": "noreply@example.com", "autoresponse_owner_text":
        "", "anonymous_list": false, "admin_immed_notify": true, "reply_to_address":
        "", "join_address": "a_new_list-join@example.com", "request_address": "a_new_list-request@example.com",
        "digest_size_threshold": 30.0, "autorespond_requests": "none", "welcome_message_uri":
        "mailman:///welcome.txt", "acceptable_aliases": [], "leave_address": "a_new_list-leave@example.com",
        "archive_policy": "public", "admin_notify_mchanges": false, "administrivia":
        true, "scheme": "http", "subject_prefix": "[A_new_list] ", "filter_content":
        false, "last_post_at": null, "owner_address": "a_new_list-owner@example.com",
        "http_etag": "\"d56583816b2b023d4db11ba39c82fc4be4e6f9c7\"", "autoresponse_postings_text":
        "", "description": "", "autorespond_owner": "none", "bounces_address": "a_new_list-bounces@example.com",
        "allow_list_posts": true, "include_rfc2369_headers": true, "collapse_alternatives":
        true, "autoresponse_request_text": "", "advertised": true, "web_host": "example.com",
        "display_name": "A_new_list", "fqdn_listname": "a_new_list@example.com", "next_digest_number":
        1, "created_at": "2015-04-14T14:06:52.775442", "autorespond_postings": "none",
        "convert_html_to_plaintext": false, "post_id": 1, "first_strip_reply_to":
        false, "default_nonmember_action": "hold", "reply_goes_to_list": "no_munging",
        "posting_address": "a_new_list@example.com"}'}
    headers:
      content-length: ['1653']
      content-type: [application/json; charset=utf-8]
      date: ['Tue, 14 Apr 2015 14:06:52 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    status: {code: 200, message: OK}
- request:
    body: autorespond_owner=none&default_member_action=defer&first_strip_reply_to=False&allow_list_posts=True&reply_to_address=&default_nonmember_action=hold&convert_html_to_plaintext=False&posting_pipeline=default-posting-pipeline&autoresponse_postings_text=&description=A+new+list.&admin_notify_mchanges=False&administrivia=True&admin_immed_notify=True&archive_policy=public&autoresponse_owner_text=&display_name=A_new_list&autorespond_postings=none&autorespond_requests=none&digest_size_threshold=30.0&advertised=True&autoresponse_grace_period=90d&collapse_alternatives=True&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&reply_goes_to_list=no_munging&subject_prefix=%5BA_new_list%5D+&anonymous_list=False&send_welcome_message=True&autoresponse_request_text=&include_rfc2369_headers=True&filter_content=False
    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: ['Tue, 14 Apr 2015 14:06:52 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 '{"member_count": 0, "list_name": "a_new_list",
        "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", "display_name":
        "A_new_list", "list_id": "a_new_list.example.com", "fqdn_listname": "a_new_list@example.com",
        "volume": 1, "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"",
        "mail_host": "example.com"}'}
    headers:
      content-length: ['329']
      content-type: [application/json; charset=utf-8]
      date: ['Tue, 14 Apr 2015 14:06: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/roster/owner
  response:
    body: {string: !!python/unicode '{"entries": [{"role": "owner", "list_id": "a_new_list.example.com",
        "user": "http://localhost:9001/3.0/users/178875461469610954400218294698080347713",
        "address": "http://localhost:9001/3.0/addresses/owner@example.com", "email":
        "owner@example.com", "self_link": "http://localhost:9001/3.0/members/62510532662650498796290941282904599479",
        "delivery_mode": "regular", "member_id": 62510532662650498796290941282904599479,
        "http_etag": "\"15b28e87a2d11e7d8d923d9a50a349d815730fa0\""}], "start": 0,
        "http_etag": "\"7ad82abf9abd09e5998829f78a4be299096ba8a5\"", "total_size":
        1}'}
    headers:
      content-length: ['571']
      content-type: [application/json; charset=utf-8]
      date: ['Tue, 14 Apr 2015 14:06:53 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": [{"member_count": 0, "list_name":
        "a_new_list", "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com",
        "display_name": "A_new_list", "list_id": "a_new_list.example.com", "fqdn_listname":
        "a_new_list@example.com", "volume": 1, "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"",
        "mail_host": "example.com"}], "start": 0, "http_etag": "\"dee96dcb9d3f736cc6fa170baeea8f879d7db6f0\"",
        "total_size": 1}'}
    headers:
      content-length: ['434']
      content-type: [application/json; charset=utf-8]
      date: ['Tue, 14 Apr 2015 14:06:53 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 '{"member_count": 0, "list_name": "a_new_list",
        "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", "display_name":
        "A_new_list", "list_id": "a_new_list.example.com", "fqdn_listname": "a_new_list@example.com",
        "volume": 1, "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"",
        "mail_host": "example.com"}'}
    headers:
      content-length: ['329']
      content-type: [application/json; charset=utf-8]
      date: ['Tue, 14 Apr 2015 14:06:53 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: ['Tue, 14 Apr 2015 14:06:53 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 'Duplicate email host: example.com'}
    headers:
      content-length: ['33']
      content-type: [application/json; charset=utf-8]
      date: ['Tue, 14 Apr 2015 14:06:53 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, "base_url": "http://example.com",
        "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com",
        "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'}
    headers:
      content-length: ['233']
      content-type: [application/json; charset=utf-8]
      date: ['Tue, 14 Apr 2015 14:06:53 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: ['Tue, 14 Apr 2015 14:06:53 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    status: {code: 200, message: OK}
version: 1