Newer
Older
postorius / src / postorius / tests / fixtures / vcr_cassettes / test_change_subscription.yaml
interactions:
- 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 '{"volume": 1, "mail_host": "example.com", "list_name":
        "foo", "display_name": "Foo", "list_id": "foo.example.com", "member_count":
        0, "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"",
        "self_link": "http://localhost:9001/3.0/lists/foo.example.com"}'}
    headers:
      content-length: ['294']
      content-type: [application/json; charset=utf-8]
      date: ['Fri, 17 Apr 2015 21:49:39 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    status: {code: 200, message: OK}
- request:
    body: pre_confirmed=True&pre_verified=True&display_name=None&list_id=foo.example.com&subscriber=test%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/members
  response:
    body: {string: !!python/unicode ''}
    headers:
      content-length: ['0']
      date: ['Fri, 17 Apr 2015 21:49:39 GMT']
      location: ['http://localhost:9001/3.0/members/292023913651303001152733356954878430707']
      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/foo@example.com
  response:
    body: {string: !!python/unicode '{"volume": 1, "mail_host": "example.com", "list_name":
        "foo", "display_name": "Foo", "list_id": "foo.example.com", "member_count":
        1, "fqdn_listname": "foo@example.com", "http_etag": "\"98cc998d4a30293ec17da639bce10617912a6e1e\"",
        "self_link": "http://localhost:9001/3.0/lists/foo.example.com"}'}
    headers:
      content-length: ['294']
      content-type: [application/json; charset=utf-8]
      date: ['Fri, 17 Apr 2015 21:49:39 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/foo.example.com/roster/owner
  response:
    body: {string: !!python/unicode '{"total_size": 0, "start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\""}'}
    headers:
      content-length: ['90']
      content-type: [application/json; charset=utf-8]
      date: ['Fri, 17 Apr 2015 21:49:39 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/foo.example.com/roster/moderator
  response:
    body: {string: !!python/unicode '{"total_size": 0, "start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\""}'}
    headers:
      content-length: ['90']
      content-type: [application/json; charset=utf-8]
      date: ['Fri, 17 Apr 2015 21:49:39 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/users/test@example.com
  response:
    body: {string: !!python/unicode '{"is_server_owner": false, "created_on": "2015-04-17T21:49:39.641823",
        "http_etag": "\"37779fcd1a46be2b90a29cdb676b73f83115d03b\"", "user_id": 204817555931972815975639382460590167604,
        "display_name": "None", "self_link": "http://localhost:9001/3.0/users/204817555931972815975639382460590167604"}'}
    headers:
      content-length: ['295']
      content-type: [application/json; charset=utf-8]
      date: ['Fri, 17 Apr 2015 21:49:39 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/users/204817555931972815975639382460590167604
  response:
    body: {string: !!python/unicode '{"is_server_owner": false, "created_on": "2015-04-17T21:49:39.641823",
        "http_etag": "\"37779fcd1a46be2b90a29cdb676b73f83115d03b\"", "user_id": 204817555931972815975639382460590167604,
        "display_name": "None", "self_link": "http://localhost:9001/3.0/users/204817555931972815975639382460590167604"}'}
    headers:
      content-length: ['295']
      content-type: [application/json; charset=utf-8]
      date: ['Fri, 17 Apr 2015 21:49:39 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/users/204817555931972815975639382460590167604/addresses
  response:
    body: {string: !!python/unicode '{"total_size": 1, "start": 0, "entries": [{"http_etag":
        "\"d79e620e0f1ba72ef1d9d10b658fe28dfb8e860e\"", "registered_on": "2015-04-17T21:49:39.631542",
        "original_email": "test@example.com", "user": "http://localhost:9001/3.0/users/204817555931972815975639382460590167604",
        "verified_on": "2015-04-17T21:49:39.658421", "display_name": "None", "email":
        "test@example.com", "self_link": "http://localhost:9001/3.0/addresses/test@example.com"}],
        "http_etag": "\"28f0394a39cee45408687ef51ce699d4395ef91f\""}'}
    headers:
      content-length: ['501']
      content-type: [application/json; charset=utf-8]
      date: ['Fri, 17 Apr 2015 21:49:39 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/foo@example.com/roster/member
  response:
    body: {string: !!python/unicode '{"total_size": 1, "start": 0, "entries": [{"role":
        "member", "list_id": "foo.example.com", "delivery_mode": "regular", "address":
        "http://localhost:9001/3.0/addresses/test@example.com", "user": "http://localhost:9001/3.0/users/204817555931972815975639382460590167604",
        "http_etag": "\"1684bdade9ea938bd38e3878afba2ef5508645c4\"", "member_id":
        292023913651303001152733356954878430707, "email": "test@example.com", "self_link":
        "http://localhost:9001/3.0/members/292023913651303001152733356954878430707"}],
        "http_etag": "\"ad978d7879e9efb6a630ad58273d6af958ab3d92\""}'}
    headers:
      content-length: ['565']
      content-type: [application/json; charset=utf-8]
      date: ['Fri, 17 Apr 2015 21:49:39 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/members/292023913651303001152733356954878430707
  response:
    body: {string: !!python/unicode '{"role": "member", "list_id": "foo.example.com",
        "delivery_mode": "regular", "address": "http://localhost:9001/3.0/addresses/test@example.com",
        "user": "http://localhost:9001/3.0/users/204817555931972815975639382460590167604",
        "http_etag": "\"1684bdade9ea938bd38e3878afba2ef5508645c4\"", "member_id":
        292023913651303001152733356954878430707, "email": "test@example.com", "self_link":
        "http://localhost:9001/3.0/members/292023913651303001152733356954878430707"}'}
    headers:
      content-length: ['460']
      content-type: [application/json; charset=utf-8]
      date: ['Fri, 17 Apr 2015 21:49:39 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/foo@example.com/config
  response:
    body: {string: !!python/unicode '{"scheme": "http", "list_name": "foo", "reply_to_address":
        "", "next_digest_number": 1, "post_id": 1, "bounces_address": "foo-bounces@example.com",
        "posting_pipeline": "default-posting-pipeline", "advertised": true, "no_reply_address":
        "noreply@example.com", "autoresponse_owner_text": "", "last_post_at": null,
        "allow_list_posts": true, "join_address": "foo-join@example.com", "acceptable_aliases":
        [], "filter_content": false, "web_host": "example.com", "default_member_action":
        "defer", "anonymous_list": false, "autorespond_postings": "none", "leave_address":
        "foo-leave@example.com", "autoresponse_postings_text": "", "autoresponse_request_text":
        "", "description": "", "admin_immed_notify": true, "collapse_alternatives":
        true, "archive_policy": "public", "send_welcome_message": true, "created_at":
        "2015-04-17T21:49:39.501627", "include_rfc2369_headers": true, "first_strip_reply_to":
        false, "welcome_message_uri": "mailman:///welcome.txt", "administrivia": true,
        "digest_last_sent_at": null, "admin_notify_mchanges": false, "digest_size_threshold":
        30.0, "default_nonmember_action": "hold", "subject_prefix": "[Foo] ", "request_address":
        "foo-request@example.com", "autorespond_requests": "none", "volume": 1, "reply_goes_to_list":
        "no_munging", "mail_host": "example.com", "autoresponse_grace_period": "90d",
        "subscription_policy": "confirm", "display_name": "Foo", "convert_html_to_plaintext":
        false, "owner_address": "foo-owner@example.com", "fqdn_listname": "foo@example.com",
        "posting_address": "foo@example.com", "http_etag": "\"5a8dadbaf2ad92b296df371532b6fc2baf9953b2\"",
        "autorespond_owner": "none"}'}
    headers:
      content-length: ['1617']
      content-type: [application/json; charset=utf-8]
      date: ['Fri, 17 Apr 2015 21:49:39 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/foo@example.com/config
  response:
    body: {string: !!python/unicode '{"scheme": "http", "list_name": "foo", "reply_to_address":
        "", "next_digest_number": 1, "post_id": 1, "bounces_address": "foo-bounces@example.com",
        "posting_pipeline": "default-posting-pipeline", "advertised": true, "no_reply_address":
        "noreply@example.com", "autoresponse_owner_text": "", "last_post_at": null,
        "allow_list_posts": true, "join_address": "foo-join@example.com", "acceptable_aliases":
        [], "filter_content": false, "web_host": "example.com", "default_member_action":
        "defer", "anonymous_list": false, "autorespond_postings": "none", "leave_address":
        "foo-leave@example.com", "autoresponse_postings_text": "", "autoresponse_request_text":
        "", "description": "", "admin_immed_notify": true, "collapse_alternatives":
        true, "archive_policy": "public", "send_welcome_message": true, "created_at":
        "2015-04-17T21:49:39.501627", "include_rfc2369_headers": true, "first_strip_reply_to":
        false, "welcome_message_uri": "mailman:///welcome.txt", "administrivia": true,
        "digest_last_sent_at": null, "admin_notify_mchanges": false, "digest_size_threshold":
        30.0, "default_nonmember_action": "hold", "subject_prefix": "[Foo] ", "request_address":
        "foo-request@example.com", "autorespond_requests": "none", "volume": 1, "reply_goes_to_list":
        "no_munging", "mail_host": "example.com", "autoresponse_grace_period": "90d",
        "subscription_policy": "confirm", "display_name": "Foo", "convert_html_to_plaintext":
        false, "owner_address": "foo-owner@example.com", "fqdn_listname": "foo@example.com",
        "posting_address": "foo@example.com", "http_etag": "\"5a8dadbaf2ad92b296df371532b6fc2baf9953b2\"",
        "autorespond_owner": "none"}'}
    headers:
      content-length: ['1617']
      content-type: [application/json; charset=utf-8]
      date: ['Fri, 17 Apr 2015 21:49:39 GMT']
      server: [WSGIServer/0.2 CPython/3.4.2]
    status: {code: 200, message: OK}
version: 1