Newer
Older
postorius / src / postorius / tests / fixtures / vcr_cassettes / test_list_subscription.yaml
@Florian Fuchs Florian Fuchs on 17 Apr 2015 13 KB rerecorded http test files
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: ['Fri, 17 Apr 2015 21:06:29 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.0b2']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/domains/example.com
  response:
    body: {string: !!python/unicode '{"mail_host": "example.com", "description": null,
        "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"",
        "self_link": "http://localhost:9001/3.0/domains/example.com", "url_host":
        "example.com"}'}
    headers:
      content-length: ['233']
      content-type: [application/json; charset=utf-8]
      date: ['Fri, 17 Apr 2015 21:06:29 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.0b2']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/domains/example.com
  response:
    body: {string: !!python/unicode '{"mail_host": "example.com", "description": null,
        "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"",
        "self_link": "http://localhost:9001/3.0/domains/example.com", "url_host":
        "example.com"}'}
    headers:
      content-length: ['233']
      content-type: [application/json; charset=utf-8]
      date: ['Fri, 17 Apr 2015 21:06:29 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    status: {code: 200, message: OK}
- request:
    body: fqdn_listname=open_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: ['Fri, 17 Apr 2015 21:06:29 GMT']
      location: ['http://localhost:9001/3.0/lists/open_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.0b2']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/lists/open_list.example.com
  response:
    body: {string: !!python/unicode '{"list_name": "open_list", "volume": 1, "list_id":
        "open_list.example.com", "self_link": "http://localhost:9001/3.0/lists/open_list.example.com",
        "fqdn_listname": "open_list@example.com", "mail_host": "example.com", "member_count":
        0, "display_name": "Open_list", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\""}'}
    headers:
      content-length: ['324']
      content-type: [application/json; charset=utf-8]
      date: ['Fri, 17 Apr 2015 21:06:29 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.0b2']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/lists/open_list@example.com/config
  response:
    body: {string: !!python/unicode '{"list_name": "open_list", "default_member_action":
        "defer", "anonymous_list": false, "autorespond_postings": "none", "advertised":
        true, "reply_to_address": "", "send_welcome_message": true, "autorespond_owner":
        "none", "autoresponse_request_text": "", "web_host": "example.com", "autoresponse_grace_period":
        "90d", "volume": 1, "digest_size_threshold": 30.0, "request_address": "open_list-request@example.com",
        "posting_address": "open_list@example.com", "first_strip_reply_to": false,
        "http_etag": "\"4949c883ec5b6f02d74c3bdb9e8d491c964eb20a\"", "administrivia":
        true, "mail_host": "example.com", "include_rfc2369_headers": true, "admin_immed_notify":
        true, "posting_pipeline": "default-posting-pipeline", "collapse_alternatives":
        true, "autoresponse_postings_text": "", "admin_notify_mchanges": false, "last_post_at":
        null, "filter_content": false, "autoresponse_owner_text": "", "join_address":
        "open_list-join@example.com", "scheme": "http", "subscription_policy": "confirm",
        "welcome_message_uri": "mailman:///welcome.txt", "post_id": 1, "fqdn_listname":
        "open_list@example.com", "allow_list_posts": true, "subject_prefix": "[Open_list]
        ", "owner_address": "open_list-owner@example.com", "archive_policy": "public",
        "leave_address": "open_list-leave@example.com", "description": "", "acceptable_aliases":
        [], "bounces_address": "open_list-bounces@example.com", "next_digest_number":
        1, "default_nonmember_action": "hold", "reply_goes_to_list": "no_munging",
        "created_at": "2015-04-17T21:06:29.676463", "convert_html_to_plaintext": false,
        "display_name": "Open_list", "autorespond_requests": "none", "no_reply_address":
        "noreply@example.com", "digest_last_sent_at": null}'}
    headers:
      content-length: ['1677']
      content-type: [application/json; charset=utf-8]
      date: ['Fri, 17 Apr 2015 21:06:29 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    status: {code: 200, message: OK}
- request:
    body: advertised=True&administrivia=True&subscription_policy=open&collapse_alternatives=True&admin_immed_notify=True&first_strip_reply_to=False&autoresponse_owner_text=&posting_pipeline=default-posting-pipeline&digest_size_threshold=30.0&allow_list_posts=True&autoresponse_request_text=&archive_policy=public&autorespond_postings=none&autoresponse_grace_period=90d&autorespond_owner=none&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&autorespond_requests=none&default_nonmember_action=hold&subject_prefix=%5BOpen_list%5D+&admin_notify_mchanges=False&include_rfc2369_headers=True&description=&reply_to_address=&anonymous_list=False&autoresponse_postings_text=&send_welcome_message=True&convert_html_to_plaintext=False&filter_content=False&default_member_action=defer&reply_goes_to_list=no_munging&display_name=Open_list
    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/open_list@example.com/config
  response:
    body: {string: !!python/unicode ''}
    headers:
      content-length: ['0']
      date: ['Fri, 17 Apr 2015 21:06:29 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.0b2']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/lists/open_list.example.com
  response:
    body: {string: !!python/unicode '{"list_name": "open_list", "volume": 1, "list_id":
        "open_list.example.com", "self_link": "http://localhost:9001/3.0/lists/open_list.example.com",
        "fqdn_listname": "open_list@example.com", "mail_host": "example.com", "member_count":
        0, "display_name": "Open_list", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\""}'}
    headers:
      content-length: ['324']
      content-type: [application/json; charset=utf-8]
      date: ['Fri, 17 Apr 2015 21:06:29 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.0b2']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/owner
  response:
    body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
        "total_size": 0, "start": 0}'}
    headers:
      content-length: ['90']
      content-type: [application/json; charset=utf-8]
      date: ['Fri, 17 Apr 2015 21:06:29 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.0b2']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/moderator
  response:
    body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
        "total_size": 0, "start": 0}'}
    headers:
      content-length: ['90']
      content-type: [application/json; charset=utf-8]
      date: ['Fri, 17 Apr 2015 21:06:29 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    status: {code: 200, message: OK}
- request:
    body: pre_verified=True&list_id=open_list.example.com&display_name=None&pre_confirmed=True&subscriber=fritz%40example.org
    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: ['Fri, 17 Apr 2015 21:06:30 GMT']
      location: ['http://localhost:9001/3.0/members/219379763871340832809046435098342039931']
      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.0b2']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/lists/open_list@example.com/roster/member
  response:
    body: {string: !!python/unicode '{"http_etag": "\"2bcb03c8560a7d7b0de36a5573530e7b34734f6a\"",
        "total_size": 1, "entries": [{"delivery_mode": "regular", "role": "member",
        "email": "fritz@example.org", "address": "http://localhost:9001/3.0/addresses/fritz@example.org",
        "list_id": "open_list.example.com", "http_etag": "\"487ae31099afaa824f32e8272c026094cff7f856\"",
        "member_id": 219379763871340832809046435098342039931, "user": "http://localhost:9001/3.0/users/45245778716836160890668793583968810730",
        "self_link": "http://localhost:9001/3.0/members/219379763871340832809046435098342039931"}],
        "start": 0}'}
    headers:
      content-length: ['572']
      content-type: [application/json; charset=utf-8]
      date: ['Fri, 17 Apr 2015 21:06:30 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.0b2']
    method: !!python/unicode 'GET'
    uri: http://localhost:9001/3.0/lists/open_list@example.com/requests
  response:
    body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
        "total_size": 0, "start": 0}'}
    headers:
      content-length: ['90']
      content-type: [application/json; charset=utf-8]
      date: ['Fri, 17 Apr 2015 21:06:30 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.0b2']
    method: !!python/unicode 'DELETE'
    uri: http://localhost:9001/3.0/lists/open_list@example.com
  response:
    body: {string: !!python/unicode ''}
    headers:
      content-length: ['0']
      date: ['Fri, 17 Apr 2015 21:06:30 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    status: {code: 204, message: No Content}
version: 1