Newer
Older
postorius / src / postorius / tests / fixtures / vcr_cassettes / test_list_index.yaml
@Abhilash Raj Abhilash Raj on 16 Apr 2015 16 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: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/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: 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.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:03 GMT']
      location: ['http://localhost:9001/3.0/lists/foo.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
  response:
    body: {string: !!python/unicode '{"entries": [{"self_link": "http://localhost:9001/3.0/lists/foo.example.com",
        "mail_host": "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"",
        "member_count": 0, "volume": 1, "list_id": "foo.example.com", "fqdn_listname":
        "foo@example.com", "list_name": "foo", "display_name": "Foo"}], "start": 0,
        "total_size": 1, "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\""}'}
    headers:
      content-length: ['399']
      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/foo.example.com
  response:
    body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/lists/foo.example.com",
        "mail_host": "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"",
        "member_count": 0, "volume": 1, "list_id": "foo.example.com", "fqdn_listname":
        "foo@example.com", "list_name": "foo", "display_name": "Foo"}'}
    headers:
      content-length: ['294']
      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/foo@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":
        "foo-leave@example.com", "posting_address": "foo@example.com", "autoresponse_request_text":
        "", "autoresponse_owner_text": "", "list_name": "foo", "display_name": "Foo",
        "convert_html_to_plaintext": false, "archive_policy": "public", "no_reply_address":
        "noreply@example.com", "autoresponse_postings_text": "", "http_etag": "\"39784619b051edf746bdaa0802a6a1640d973e8c\"",
        "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:03.759542", "subject_prefix": "[Foo] ", "include_rfc2369_headers":
        true, "post_id": 1, "advertised": true, "join_address": "foo-join@example.com",
        "anonymous_list": false, "last_post_at": null, "owner_address": "foo-owner@example.com",
        "fqdn_listname": "foo@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": "foo-request@example.com", "autorespond_owner": "none",
        "administrivia": true, "bounces_address": "foo-bounces@example.com", "web_host":
        "example.com"}'}
    headers:
      content-length: ['1583']
      content-type: [application/json; charset=utf-8]
      date: ['Thu, 16 Apr 2015 01:52:04 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:04 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:04 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/foo@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":
        "foo-leave@example.com", "posting_address": "foo@example.com", "autoresponse_request_text":
        "", "autoresponse_owner_text": "", "list_name": "foo", "display_name": "Foo",
        "convert_html_to_plaintext": false, "archive_policy": "public", "no_reply_address":
        "noreply@example.com", "autoresponse_postings_text": "", "http_etag": "\"39784619b051edf746bdaa0802a6a1640d973e8c\"",
        "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:03.759542", "subject_prefix": "[Foo] ", "include_rfc2369_headers":
        true, "post_id": 1, "advertised": true, "join_address": "foo-join@example.com",
        "anonymous_list": false, "last_post_at": null, "owner_address": "foo-owner@example.com",
        "fqdn_listname": "foo@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": "foo-request@example.com", "autorespond_owner": "none",
        "administrivia": true, "bounces_address": "foo-bounces@example.com", "web_host":
        "example.com"}'}
    headers:
      content-length: ['1583']
      content-type: [application/json; charset=utf-8]
      date: ['Thu, 16 Apr 2015 01:52:04 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/foo@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":
        "foo-leave@example.com", "posting_address": "foo@example.com", "autoresponse_request_text":
        "", "autoresponse_owner_text": "", "list_name": "foo", "display_name": "Foo",
        "convert_html_to_plaintext": false, "archive_policy": "public", "no_reply_address":
        "noreply@example.com", "autoresponse_postings_text": "", "http_etag": "\"39784619b051edf746bdaa0802a6a1640d973e8c\"",
        "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:03.759542", "subject_prefix": "[Foo] ", "include_rfc2369_headers":
        true, "post_id": 1, "advertised": true, "join_address": "foo-join@example.com",
        "anonymous_list": false, "last_post_at": null, "owner_address": "foo-owner@example.com",
        "fqdn_listname": "foo@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": "foo-request@example.com", "autorespond_owner": "none",
        "administrivia": true, "bounces_address": "foo-bounces@example.com", "web_host":
        "example.com"}'}
    headers:
      content-length: ['1583']
      content-type: [application/json; charset=utf-8]
      date: ['Thu, 16 Apr 2015 01:52:04 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/foo.example.com",
        "mail_host": "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"",
        "member_count": 0, "volume": 1, "list_id": "foo.example.com", "fqdn_listname":
        "foo@example.com", "list_name": "foo", "display_name": "Foo"}], "start": 0,
        "total_size": 1, "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\""}'}
    headers:
      content-length: ['399']
      content-type: [application/json; charset=utf-8]
      date: ['Thu, 16 Apr 2015 01:52:04 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/foo.example.com
  response:
    body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/lists/foo.example.com",
        "mail_host": "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"",
        "member_count": 0, "volume": 1, "list_id": "foo.example.com", "fqdn_listname":
        "foo@example.com", "list_name": "foo", "display_name": "Foo"}'}
    headers:
      content-length: ['294']
      content-type: [application/json; charset=utf-8]
      date: ['Thu, 16 Apr 2015 01:52:04 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/foo@example.com
  response:
    body: {string: !!python/unicode ''}
    headers:
      content-length: ['0']
      date: ['Thu, 16 Apr 2015 01:52:04 GMT']
      server: [WSGIServer/0.2 CPython/3.4.3]
    status: {code: 204, message: No Content}
version: 1