Newer
Older
postorius / src / postorius / tests / fixtures / vcr_cassettes / test_list_creation.yaml
@Abhilash Raj Abhilash Raj on 16 Apr 2015 18 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:52:01 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:52:01 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
  response:
    body: {string: !!python/unicode '{"entries": [{"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"}], "start": 0, "total_size": 1, "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\""}'}
    headers:
      content-length: ['338']
      content-type: [application/json; charset=utf-8]
      date: ['Thu, 16 Apr 2015 01:52:01 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:52:01 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:52:01 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:52:01 GMT']
      server: [WSGIServer/0.2 CPython/3.4.3]
    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.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:52:01 GMT']
      location: ['http://localhost:9001/3.0/lists/a_new_list.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/a_new_list.example.com
  response:
    body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com",
        "mail_host": "example.com", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"",
        "member_count": 0, "volume": 1, "list_id": "a_new_list.example.com", "fqdn_listname":
        "a_new_list@example.com", "list_name": "a_new_list", "display_name": "A_new_list"}'}
    headers:
      content-length: ['329']
      content-type: [application/json; charset=utf-8]
      date: ['Thu, 16 Apr 2015 01:52:02 GMT']
      server: [WSGIServer/0.2 CPython/3.4.3]
    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.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:52:02 GMT']
      location: ['http://localhost:9001/3.0/members/130259220341094412070687693392806297641']
      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/a_new_list@example.com/config
  response:
    body: {string: !!python/unicode '{"reply_to_address": "", "reply_goes_to_list":
        "no_munging", "autoresponse_grace_period": "90d", "scheme": "http", "leave_address":
        "a_new_list-leave@example.com", "posting_address": "a_new_list@example.com",
        "autoresponse_request_text": "", "autoresponse_owner_text": "", "list_name":
        "a_new_list", "display_name": "A_new_list", "convert_html_to_plaintext": false,
        "archive_policy": "public", "no_reply_address": "noreply@example.com", "autoresponse_postings_text":
        "", "http_etag": "\"8d82afe0ef8e8b723083f5283acf1a0073150c46\"", "allow_list_posts":
        true, "posting_pipeline": "default-posting-pipeline", "volume": 1, "autorespond_postings":
        "none", "admin_notify_mchanges": false, "default_member_action": "defer",
        "default_nonmember_action": "hold", "created_at": "2015-04-16T01:52:01.844038",
        "subject_prefix": "[A_new_list] ", "include_rfc2369_headers": true, "post_id":
        1, "advertised": true, "join_address": "a_new_list-join@example.com", "anonymous_list":
        false, "last_post_at": null, "owner_address": "a_new_list-owner@example.com",
        "fqdn_listname": "a_new_list@example.com", "digest_last_sent_at": null, "collapse_alternatives":
        true, "welcome_message_uri": "mailman:///welcome.txt", "first_strip_reply_to":
        false, "admin_immed_notify": true, "filter_content": false, "autorespond_requests":
        "none", "mail_host": "example.com", "digest_size_threshold": 30.0, "send_welcome_message":
        true, "acceptable_aliases": [], "next_digest_number": 1, "description": "",
        "request_address": "a_new_list-request@example.com", "autorespond_owner":
        "none", "administrivia": true, "bounces_address": "a_new_list-bounces@example.com",
        "web_host": "example.com"}'}
    headers:
      content-length: ['1653']
      content-type: [application/json; charset=utf-8]
      date: ['Thu, 16 Apr 2015 01:52:02 GMT']
      server: [WSGIServer/0.2 CPython/3.4.3]
    status: {code: 200, message: OK}
- request:
    body: filter_content=False&first_strip_reply_to=False&autoresponse_postings_text=&digest_size_threshold=30.0&archive_policy=public&autorespond_owner=none&subject_prefix=%5BA_new_list%5D+&administrivia=True&reply_goes_to_list=no_munging&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&default_member_action=defer&reply_to_address=&autorespond_postings=none&advertised=True&default_nonmember_action=hold&send_welcome_message=True&autoresponse_owner_text=&collapse_alternatives=True&autoresponse_grace_period=90d&autorespond_requests=none&anonymous_list=False&description=A+new+list.&admin_immed_notify=True&display_name=A_new_list&posting_pipeline=default-posting-pipeline&admin_notify_mchanges=False&convert_html_to_plaintext=False&autoresponse_request_text=&include_rfc2369_headers=True&allow_list_posts=True
    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 'PATCH'
    uri: http://localhost:9001/3.0/lists/a_new_list@example.com/config
  response:
    body: {string: !!python/unicode ''}
    headers:
      content-length: ['0']
      date: ['Thu, 16 Apr 2015 01:52:02 GMT']
      server: [WSGIServer/0.2 CPython/3.4.3]
    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.0b2']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/lists/a_new_list@example.com
  response:
    body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com",
        "mail_host": "example.com", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"",
        "member_count": 0, "volume": 1, "list_id": "a_new_list.example.com", "fqdn_listname":
        "a_new_list@example.com", "list_name": "a_new_list", "display_name": "A_new_list"}'}
    headers:
      content-length: ['329']
      content-type: [application/json; charset=utf-8]
      date: ['Thu, 16 Apr 2015 01:52:02 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/a_new_list.example.com/roster/owner
  response:
    body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com",
        "self_link": "http://localhost:9001/3.0/members/130259220341094412070687693392806297641",
        "delivery_mode": "regular", "member_id": 130259220341094412070687693392806297641,
        "http_etag": "\"1f149333320b99a08398ad8fb3dd50ebdd75ff69\"", "list_id": "a_new_list.example.com",
        "email": "owner@example.com", "role": "owner", "user": "http://localhost:9001/3.0/users/79430588387616846272767218810898318148"}],
        "start": 0, "total_size": 1, "http_etag": "\"a8a378c3000202b0b61a37d5fbc23a4066ebcf46\""}'}
    headers:
      content-length: ['572']
      content-type: [application/json; charset=utf-8]
      date: ['Thu, 16 Apr 2015 01:52:02 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
  response:
    body: {string: !!python/unicode '{"entries": [{"self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com",
        "mail_host": "example.com", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"",
        "member_count": 0, "volume": 1, "list_id": "a_new_list.example.com", "fqdn_listname":
        "a_new_list@example.com", "list_name": "a_new_list", "display_name": "A_new_list"}],
        "start": 0, "total_size": 1, "http_etag": "\"dee96dcb9d3f736cc6fa170baeea8f879d7db6f0\""}'}
    headers:
      content-length: ['434']
      content-type: [application/json; charset=utf-8]
      date: ['Thu, 16 Apr 2015 01:52:02 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/a_new_list.example.com
  response:
    body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com",
        "mail_host": "example.com", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"",
        "member_count": 0, "volume": 1, "list_id": "a_new_list.example.com", "fqdn_listname":
        "a_new_list@example.com", "list_name": "a_new_list", "display_name": "A_new_list"}'}
    headers:
      content-length: ['329']
      content-type: [application/json; charset=utf-8]
      date: ['Thu, 16 Apr 2015 01:52:02 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/a_new_list@example.com
  response:
    body: {string: !!python/unicode ''}
    headers:
      content-length: ['0']
      date: ['Thu, 16 Apr 2015 01:52:02 GMT']
      server: [WSGIServer/0.2 CPython/3.4.3]
    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.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:52:03 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:52:03 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
  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:52:03 GMT']
      server: [WSGIServer/0.2 CPython/3.4.3]
    status: {code: 200, message: OK}
version: 1