diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription.yaml
index c904ff7..fc8a64e 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription.yaml
@@ -13,7 +13,7 @@
headers:
content-length: ['33']
content-type: [application/json; charset=utf-8]
- date: ['Wed, 11 Nov 2015 12:49:36 GMT']
+ date: ['Thu, 12 Nov 2015 20:10:12 GMT']
server: [WSGIServer/0.2 CPython/3.4.2]
status: {code: 400, message: Bad Request}
- request:
@@ -25,13 +25,13 @@
method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
- body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"",
- "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com",
- "base_url": "http://example.com", "mail_host": "example.com"}'}
+ body: {string: !!python/unicode '{"url_host": "example.com", "base_url": "http://example.com",
+ "self_link": "http://localhost:9001/3.0/domains/example.com", "description":
+ null, "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'}
headers:
content-length: ['233']
content-type: [application/json; charset=utf-8]
- date: ['Wed, 11 Nov 2015 12:49:36 GMT']
+ date: ['Thu, 12 Nov 2015 20:10:12 GMT']
server: [WSGIServer/0.2 CPython/3.4.2]
status: {code: 200, message: OK}
- request:
@@ -43,13 +43,13 @@
method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
- body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"",
- "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com",
- "base_url": "http://example.com", "mail_host": "example.com"}'}
+ body: {string: !!python/unicode '{"url_host": "example.com", "base_url": "http://example.com",
+ "self_link": "http://localhost:9001/3.0/domains/example.com", "description":
+ null, "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'}
headers:
content-length: ['233']
content-type: [application/json; charset=utf-8]
- date: ['Wed, 11 Nov 2015 12:49:36 GMT']
+ date: ['Thu, 12 Nov 2015 20:10:12 GMT']
server: [WSGIServer/0.2 CPython/3.4.2]
status: {code: 200, message: OK}
- request:
@@ -65,7 +65,7 @@
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
- date: ['Wed, 11 Nov 2015 12:49:36 GMT']
+ date: ['Thu, 12 Nov 2015 20:10:12 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}
@@ -78,15 +78,14 @@
method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/open_list.example.com
response:
- body: {string: !!python/unicode '{"display_name": "Open_list", "list_id": "open_list.example.com",
- "list_name": "open_list", "fqdn_listname": "open_list@example.com", "http_etag":
- "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", "member_count": 0, "self_link":
- "http://localhost:9001/3.0/lists/open_list.example.com", "mail_host": "example.com",
- "volume": 1}'}
+ body: {string: !!python/unicode '{"fqdn_listname": "open_list@example.com", "http_etag":
+ "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", "list_name": "open_list",
+ "volume": 1, "mail_host": "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com",
+ "display_name": "Open_list", "list_id": "open_list.example.com"}'}
headers:
content-length: ['324']
content-type: [application/json; charset=utf-8]
- date: ['Wed, 11 Nov 2015 12:49:37 GMT']
+ date: ['Thu, 12 Nov 2015 20:10:13 GMT']
server: [WSGIServer/0.2 CPython/3.4.2]
status: {code: 200, message: OK}
- request:
@@ -98,35 +97,35 @@
method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/open_list@example.com/config
response:
- body: {string: !!python/unicode '{"autoresponse_grace_period": "90d", "autorespond_requests":
- "none", "display_name": "Open_list", "default_member_action": "defer", "no_reply_address":
- "noreply@example.com", "autorespond_postings": "none", "admin_notify_mchanges":
- false, "fqdn_listname": "open_list@example.com", "autoresponse_postings_text":
- "", "advertised": true, "description": "", "reply_goes_to_list": "no_munging",
- "post_id": 1, "filter_content": false, "last_post_at": null, "next_digest_number":
- 1, "autoresponse_owner_text": "", "acceptable_aliases": [], "administrivia":
- true, "collapse_alternatives": true, "owner_address": "open_list-owner@example.com",
- "welcome_message_uri": "mailman:///welcome.txt", "allow_list_posts": true,
- "subscription_policy": "confirm", "list_name": "open_list", "admin_immed_notify":
- true, "leave_address": "open_list-leave@example.com", "autoresponse_request_text":
- "", "posting_pipeline": "default-posting-pipeline", "convert_html_to_plaintext":
- false, "reply_to_address": "", "request_address": "open_list-request@example.com",
- "join_address": "open_list-join@example.com", "send_welcome_message": true,
- "archive_policy": "public", "volume": 1, "first_strip_reply_to": false, "default_nonmember_action":
- "hold", "posting_address": "open_list@example.com", "http_etag": "\"742d8ca3bcb514573e63d84de1f13020a11120df\"",
- "bounces_address": "open_list-bounces@example.com", "autorespond_owner": "none",
- "created_at": "2015-11-11T12:49:36.914640", "digest_size_threshold": 30.0,
- "web_host": "example.com", "anonymous_list": false, "scheme": "http", "digest_last_sent_at":
- null, "subject_prefix": "[Open_list] ", "mail_host": "example.com", "include_rfc2369_headers":
- true}'}
+ body: {string: !!python/unicode '{"send_welcome_message": true, "http_etag": "\"cb5975fbc306fc41023d1623ef91a6d9aa051fb4\"",
+ "digest_size_threshold": 30.0, "bounces_address": "open_list-bounces@example.com",
+ "subject_prefix": "[Open_list] ", "welcome_message_uri": "mailman:///welcome.txt",
+ "autorespond_owner": "none", "collapse_alternatives": true, "allow_list_posts":
+ true, "description": "", "reply_goes_to_list": "no_munging", "no_reply_address":
+ "noreply@example.com", "advertised": true, "autorespond_requests": "none",
+ "leave_address": "open_list-leave@example.com", "request_address": "open_list-request@example.com",
+ "display_name": "Open_list", "filter_content": false, "web_host": "example.com",
+ "first_strip_reply_to": false, "include_rfc2369_headers": true, "autorespond_postings":
+ "none", "post_id": 1, "owner_address": "open_list-owner@example.com", "list_name":
+ "open_list", "scheme": "http", "volume": 1, "default_nonmember_action": "hold",
+ "admin_immed_notify": true, "posting_pipeline": "default-posting-pipeline",
+ "digest_last_sent_at": null, "reply_to_address": "", "default_member_action":
+ "defer", "autoresponse_request_text": "", "administrivia": true, "fqdn_listname":
+ "open_list@example.com", "subscription_policy": "confirm", "acceptable_aliases":
+ [], "autoresponse_owner_text": "", "join_address": "open_list-join@example.com",
+ "convert_html_to_plaintext": false, "created_at": "2015-11-12T20:10:12.906521",
+ "anonymous_list": false, "admin_notify_mchanges": false, "next_digest_number":
+ 1, "posting_address": "open_list@example.com", "autoresponse_grace_period":
+ "90d", "archive_policy": "public", "autoresponse_postings_text": "", "last_post_at":
+ null, "mail_host": "example.com"}'}
headers:
content-length: ['1677']
content-type: [application/json; charset=utf-8]
- date: ['Wed, 11 Nov 2015 12:49:37 GMT']
+ date: ['Thu, 12 Nov 2015 20:10:13 GMT']
server: [WSGIServer/0.2 CPython/3.4.2]
status: {code: 200, message: OK}
- request:
- body: autoresponse_postings_text=&admin_notify_mchanges=False&description=&default_nonmember_action=hold&reply_to_address=&posting_pipeline=default-posting-pipeline&convert_html_to_plaintext=False&archive_policy=public&administrivia=True&admin_immed_notify=True&autorespond_owner=none&subscription_policy=open&default_member_action=defer&first_strip_reply_to=False&autoresponse_grace_period=90d&allow_list_posts=True&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&collapse_alternatives=True&autorespond_requests=none&advertised=True&digest_size_threshold=30.0&filter_content=False&anonymous_list=False&autoresponse_request_text=&subject_prefix=%5BOpen_list%5D+&send_welcome_message=True&autoresponse_owner_text=&include_rfc2369_headers=True&autorespond_postings=none&display_name=Open_list&reply_goes_to_list=no_munging
+ body: send_welcome_message=True&collapse_alternatives=True&administrivia=True&digest_size_threshold=30.0&include_rfc2369_headers=True&autoresponse_grace_period=90d&posting_pipeline=default-posting-pipeline&allow_list_posts=True&admin_notify_mchanges=False&autoresponse_request_text=&default_nonmember_action=hold&default_member_action=defer&description=&display_name=Open_list&admin_immed_notify=True&subscription_policy=open&autorespond_postings=none&convert_html_to_plaintext=False&filter_content=False&advertised=True&autoresponse_postings_text=&autorespond_owner=none&reply_goes_to_list=no_munging&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&autorespond_requests=none&reply_to_address=&anonymous_list=False&archive_policy=public&subject_prefix=%5BOpen_list%5D+&autoresponse_owner_text=&first_strip_reply_to=False
headers:
accept-encoding: ['gzip, deflate']
!!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
@@ -138,110 +137,24 @@
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
- date: ['Wed, 11 Nov 2015 12:49:37 GMT']
+ date: ['Thu, 12 Nov 2015 20:10:13 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.0']
- method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/open_list.example.com
- response:
- body: {string: !!python/unicode '{"display_name": "Open_list", "list_id": "open_list.example.com",
- "list_name": "open_list", "fqdn_listname": "open_list@example.com", "http_etag":
- "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", "member_count": 0, "self_link":
- "http://localhost:9001/3.0/lists/open_list.example.com", "mail_host": "example.com",
- "volume": 1}'}
- headers:
- content-length: ['324']
- content-type: [application/json; charset=utf-8]
- date: ['Wed, 11 Nov 2015 12:49:37 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.0']
- method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/users/test@example.com
- response:
- body: {string: !!python/unicode '404 Not Found'}
- headers:
- content-length: ['13']
- content-type: [application/json; charset=utf-8]
- date: ['Wed, 11 Nov 2015 08:52:20 GMT']
- server: [WSGIServer/0.2 CPython/3.4.2]
- status: {code: 404, message: Not Found}
-- 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.0']
- 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: ['Wed, 11 Nov 2015 12:49:37 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.0']
- 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: ['Wed, 11 Nov 2015 12:49:37 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.0']
- method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/users/test@example.com
- response:
- body: {string: !!python/unicode '404 Not Found'}
- headers:
- content-length: ['13']
- content-type: [application/json; charset=utf-8]
- date: ['Wed, 11 Nov 2015 12:49:37 GMT']
- server: [WSGIServer/0.2 CPython/3.4.2]
- status: {code: 404, message: Not Found}
-- request:
- body: pre_confirmed=True&pre_verified=True&display_name=None&subscriber=fritz%40example.org&list_id=open_list.example.com
+ body: fqdn_listname=moderate_subs%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.0']
method: !!python/unicode 'POST'
- uri: http://localhost:9001/3.0/members
+ uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
- date: ['Wed, 11 Nov 2015 12:49:37 GMT']
- location: ['http://localhost:9001/3.0/members/174580205485596624207068809202203697664']
+ date: ['Thu, 12 Nov 2015 20:10:13 GMT']
+ location: ['http://localhost:9001/3.0/lists/moderate_subs.example.com']
server: [WSGIServer/0.2 CPython/3.4.2]
status: {code: 201, message: Created}
- request:
@@ -251,19 +164,17 @@
!!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
!!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0']
method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/open_list@example.com/roster/member
+ uri: http://localhost:9001/3.0/lists/moderate_subs.example.com
response:
- body: {string: !!python/unicode '{"entries": [{"self_link": "http://localhost:9001/3.0/members/174580205485596624207068809202203697664",
- "user": "http://localhost:9001/3.0/users/57822417512003885879958503109671419329",
- "http_etag": "\"93e352d32b4b02e1fb21aa45fb0912520cdbe439\"", "list_id": "open_list.example.com",
- "address": "http://localhost:9001/3.0/addresses/fritz@example.org", "role":
- "member", "member_id": 174580205485596624207068809202203697664, "delivery_mode":
- "regular", "email": "fritz@example.org"}], "http_etag": "\"d1f3363a3a19910804909501da9a93738f9a1530\"",
- "total_size": 1, "start": 0}'}
+ body: {string: !!python/unicode '{"fqdn_listname": "moderate_subs@example.com",
+ "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", "list_name":
+ "moderate_subs", "volume": 1, "mail_host": "example.com", "member_count":
+ 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com",
+ "display_name": "Moderate_subs", "list_id": "moderate_subs.example.com"}'}
headers:
- content-length: ['572']
+ content-length: ['344']
content-type: [application/json; charset=utf-8]
- date: ['Wed, 11 Nov 2015 12:49:37 GMT']
+ date: ['Thu, 12 Nov 2015 20:10:13 GMT']
server: [WSGIServer/0.2 CPython/3.4.2]
status: {code: 200, message: OK}
- request:
@@ -273,6 +184,107 @@
!!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz']
!!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0']
method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config
+ response:
+ body: {string: !!python/unicode '{"send_welcome_message": true, "http_etag": "\"d2f3b6d13f7b20ac41930b624fc98c41b4807560\"",
+ "digest_size_threshold": 30.0, "bounces_address": "moderate_subs-bounces@example.com",
+ "subject_prefix": "[Moderate_subs] ", "welcome_message_uri": "mailman:///welcome.txt",
+ "autorespond_owner": "none", "collapse_alternatives": true, "allow_list_posts":
+ true, "description": "", "reply_goes_to_list": "no_munging", "no_reply_address":
+ "noreply@example.com", "advertised": true, "autorespond_requests": "none",
+ "leave_address": "moderate_subs-leave@example.com", "request_address": "moderate_subs-request@example.com",
+ "display_name": "Moderate_subs", "filter_content": false, "web_host": "example.com",
+ "first_strip_reply_to": false, "include_rfc2369_headers": true, "autorespond_postings":
+ "none", "post_id": 1, "owner_address": "moderate_subs-owner@example.com",
+ "list_name": "moderate_subs", "scheme": "http", "volume": 1, "default_nonmember_action":
+ "hold", "admin_immed_notify": true, "posting_pipeline": "default-posting-pipeline",
+ "digest_last_sent_at": null, "reply_to_address": "", "default_member_action":
+ "defer", "autoresponse_request_text": "", "administrivia": true, "fqdn_listname":
+ "moderate_subs@example.com", "subscription_policy": "confirm", "acceptable_aliases":
+ [], "autoresponse_owner_text": "", "join_address": "moderate_subs-join@example.com",
+ "convert_html_to_plaintext": false, "created_at": "2015-11-12T20:10:13.180966",
+ "anonymous_list": false, "admin_notify_mchanges": false, "next_digest_number":
+ 1, "posting_address": "moderate_subs@example.com", "autoresponse_grace_period":
+ "90d", "archive_policy": "public", "autoresponse_postings_text": "", "last_post_at":
+ null, "mail_host": "example.com"}'}
+ headers:
+ content-length: ['1717']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:13 GMT']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 200, message: OK}
+- request:
+ body: send_welcome_message=True&collapse_alternatives=True&administrivia=True&digest_size_threshold=30.0&include_rfc2369_headers=True&autoresponse_grace_period=90d&posting_pipeline=default-posting-pipeline&allow_list_posts=True&admin_notify_mchanges=False&autoresponse_request_text=&default_nonmember_action=hold&default_member_action=defer&description=&display_name=Moderate_subs&admin_immed_notify=True&subscription_policy=moderate&autorespond_postings=none&convert_html_to_plaintext=False&filter_content=False&advertised=True&autoresponse_postings_text=&autorespond_owner=none&reply_goes_to_list=no_munging&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&autorespond_requests=none&reply_to_address=&anonymous_list=False&archive_policy=public&subject_prefix=%5BModerate_subs%5D+&autoresponse_owner_text=&first_strip_reply_to=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.0']
+ method: !!python/unicode 'PATCH'
+ uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:13 GMT']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 204, message: No Content}
+- request:
+ body: password=&display_name=&email=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.0']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/users
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:14 GMT']
+ location: ['http://localhost:9001/3.0/users/264196601193900125668340740806685993150']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 201, message: Created}
+- request:
+ body: email=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.0']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/users/264196601193900125668340740806685993150/addresses
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:14 GMT']
+ location: ['http://localhost:9001/3.0/addresses/fritz@example.org']
+ 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.0']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/addresses/fritz@example.org/verify
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:14 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.0']
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/open_list@example.com/requests
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
@@ -280,7 +292,401 @@
headers:
content-length: ['90']
content-type: [application/json; charset=utf-8]
- date: ['Wed, 11 Nov 2015 12:49:37 GMT']
+ date: ['Thu, 12 Nov 2015 20:10:15 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"b0a1ef5bd888ec870340269a5d7ffafa2c82a7ae\"",
+ "total_size": 1, "start": 0, "entries": [{"when": "2015-11-12T20:10:14", "display_name":
+ "", "token_owner": "moderator", "http_etag": "\"80bcd29604f9a4e0a4b50bf7ca365ba58cee752d\"",
+ "email": "fritz@example.org", "list_id": "moderate_subs.example.com", "token":
+ "4949554df3e666e9fa813d15ea44d8e3cf7de13d"}]}'}
+ headers:
+ content-length: ['368']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:15 GMT']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 200, message: OK}
+- request:
+ body: action=discard
+ 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.0']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/requests/4949554df3e666e9fa813d15ea44d8e3cf7de13d
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:15 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.0']
+ 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: ['Thu, 12 Nov 2015 20:10:15 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.0']
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/lists/moderate_subs@example.com
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:16 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.0']
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/264196601193900125668340740806685993150
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:16 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.0']
+ 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, 12 Nov 2015 20:10:16 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/domains/example.com
+ response:
+ body: {string: !!python/unicode '{"url_host": "example.com", "base_url": "http://example.com",
+ "self_link": "http://localhost:9001/3.0/domains/example.com", "description":
+ null, "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'}
+ headers:
+ content-length: ['233']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:16 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/domains/example.com
+ response:
+ body: {string: !!python/unicode '{"url_host": "example.com", "base_url": "http://example.com",
+ "self_link": "http://localhost:9001/3.0/domains/example.com", "description":
+ null, "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'}
+ headers:
+ content-length: ['233']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:16 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.0']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/lists
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:16 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/open_list.example.com
+ response:
+ body: {string: !!python/unicode '{"fqdn_listname": "open_list@example.com", "http_etag":
+ "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", "list_name": "open_list",
+ "volume": 1, "mail_host": "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com",
+ "display_name": "Open_list", "list_id": "open_list.example.com"}'}
+ headers:
+ content-length: ['324']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:16 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/open_list@example.com/config
+ response:
+ body: {string: !!python/unicode '{"send_welcome_message": true, "http_etag": "\"049a7944998792b9ce722343de30024198eff4ca\"",
+ "digest_size_threshold": 30.0, "bounces_address": "open_list-bounces@example.com",
+ "subject_prefix": "[Open_list] ", "welcome_message_uri": "mailman:///welcome.txt",
+ "autorespond_owner": "none", "collapse_alternatives": true, "allow_list_posts":
+ true, "description": "", "reply_goes_to_list": "no_munging", "no_reply_address":
+ "noreply@example.com", "advertised": true, "autorespond_requests": "none",
+ "leave_address": "open_list-leave@example.com", "request_address": "open_list-request@example.com",
+ "display_name": "Open_list", "filter_content": false, "web_host": "example.com",
+ "first_strip_reply_to": false, "include_rfc2369_headers": true, "autorespond_postings":
+ "none", "post_id": 1, "owner_address": "open_list-owner@example.com", "list_name":
+ "open_list", "scheme": "http", "volume": 1, "default_nonmember_action": "hold",
+ "admin_immed_notify": true, "posting_pipeline": "default-posting-pipeline",
+ "digest_last_sent_at": null, "reply_to_address": "", "default_member_action":
+ "defer", "autoresponse_request_text": "", "administrivia": true, "fqdn_listname":
+ "open_list@example.com", "subscription_policy": "confirm", "acceptable_aliases":
+ [], "autoresponse_owner_text": "", "join_address": "open_list-join@example.com",
+ "convert_html_to_plaintext": false, "created_at": "2015-11-12T20:10:16.629233",
+ "anonymous_list": false, "admin_notify_mchanges": false, "next_digest_number":
+ 1, "posting_address": "open_list@example.com", "autoresponse_grace_period":
+ "90d", "archive_policy": "public", "autoresponse_postings_text": "", "last_post_at":
+ null, "mail_host": "example.com"}'}
+ headers:
+ content-length: ['1677']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:16 GMT']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 200, message: OK}
+- request:
+ body: send_welcome_message=True&collapse_alternatives=True&administrivia=True&digest_size_threshold=30.0&include_rfc2369_headers=True&autoresponse_grace_period=90d&posting_pipeline=default-posting-pipeline&allow_list_posts=True&admin_notify_mchanges=False&autoresponse_request_text=&default_nonmember_action=hold&default_member_action=defer&description=&display_name=Open_list&admin_immed_notify=True&subscription_policy=open&autorespond_postings=none&convert_html_to_plaintext=False&filter_content=False&advertised=True&autoresponse_postings_text=&autorespond_owner=none&reply_goes_to_list=no_munging&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&autorespond_requests=none&reply_to_address=&anonymous_list=False&archive_policy=public&subject_prefix=%5BOpen_list%5D+&autoresponse_owner_text=&first_strip_reply_to=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.0']
+ 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: ['Thu, 12 Nov 2015 20:10:16 GMT']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 204, message: No Content}
+- request:
+ body: fqdn_listname=moderate_subs%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.0']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/lists
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:16 GMT']
+ location: ['http://localhost:9001/3.0/lists/moderate_subs.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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs.example.com
+ response:
+ body: {string: !!python/unicode '{"fqdn_listname": "moderate_subs@example.com",
+ "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", "list_name":
+ "moderate_subs", "volume": 1, "mail_host": "example.com", "member_count":
+ 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com",
+ "display_name": "Moderate_subs", "list_id": "moderate_subs.example.com"}'}
+ headers:
+ content-length: ['344']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:16 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config
+ response:
+ body: {string: !!python/unicode '{"send_welcome_message": true, "http_etag": "\"0358f07bc05b98251e83c3b41620f3464f0cf71f\"",
+ "digest_size_threshold": 30.0, "bounces_address": "moderate_subs-bounces@example.com",
+ "subject_prefix": "[Moderate_subs] ", "welcome_message_uri": "mailman:///welcome.txt",
+ "autorespond_owner": "none", "collapse_alternatives": true, "allow_list_posts":
+ true, "description": "", "reply_goes_to_list": "no_munging", "no_reply_address":
+ "noreply@example.com", "advertised": true, "autorespond_requests": "none",
+ "leave_address": "moderate_subs-leave@example.com", "request_address": "moderate_subs-request@example.com",
+ "display_name": "Moderate_subs", "filter_content": false, "web_host": "example.com",
+ "first_strip_reply_to": false, "include_rfc2369_headers": true, "autorespond_postings":
+ "none", "post_id": 1, "owner_address": "moderate_subs-owner@example.com",
+ "list_name": "moderate_subs", "scheme": "http", "volume": 1, "default_nonmember_action":
+ "hold", "admin_immed_notify": true, "posting_pipeline": "default-posting-pipeline",
+ "digest_last_sent_at": null, "reply_to_address": "", "default_member_action":
+ "defer", "autoresponse_request_text": "", "administrivia": true, "fqdn_listname":
+ "moderate_subs@example.com", "subscription_policy": "confirm", "acceptable_aliases":
+ [], "autoresponse_owner_text": "", "join_address": "moderate_subs-join@example.com",
+ "convert_html_to_plaintext": false, "created_at": "2015-11-12T20:10:16.892767",
+ "anonymous_list": false, "admin_notify_mchanges": false, "next_digest_number":
+ 1, "posting_address": "moderate_subs@example.com", "autoresponse_grace_period":
+ "90d", "archive_policy": "public", "autoresponse_postings_text": "", "last_post_at":
+ null, "mail_host": "example.com"}'}
+ headers:
+ content-length: ['1717']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:17 GMT']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 200, message: OK}
+- request:
+ body: send_welcome_message=True&collapse_alternatives=True&administrivia=True&digest_size_threshold=30.0&include_rfc2369_headers=True&autoresponse_grace_period=90d&posting_pipeline=default-posting-pipeline&allow_list_posts=True&admin_notify_mchanges=False&autoresponse_request_text=&default_nonmember_action=hold&default_member_action=defer&description=&display_name=Moderate_subs&admin_immed_notify=True&subscription_policy=moderate&autorespond_postings=none&convert_html_to_plaintext=False&filter_content=False&advertised=True&autoresponse_postings_text=&autorespond_owner=none&reply_goes_to_list=no_munging&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&autorespond_requests=none&reply_to_address=&anonymous_list=False&archive_policy=public&subject_prefix=%5BModerate_subs%5D+&autoresponse_owner_text=&first_strip_reply_to=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.0']
+ method: !!python/unicode 'PATCH'
+ uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:17 GMT']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 204, message: No Content}
+- request:
+ body: password=&display_name=&email=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.0']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/users
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:18 GMT']
+ location: ['http://localhost:9001/3.0/users/325231961282814726929218872744044864330']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 201, message: Created}
+- request:
+ body: email=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.0']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/users/325231961282814726929218872744044864330/addresses
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:18 GMT']
+ location: ['http://localhost:9001/3.0/addresses/fritz@example.org']
+ 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.0']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/addresses/fritz@example.org/verify
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:18 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.0']
+ 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: ['Thu, 12 Nov 2015 20:10:19 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs@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: ['Thu, 12 Nov 2015 20:10:19 GMT']
server: [WSGIServer/0.2 CPython/3.4.2]
status: {code: 200, message: OK}
- request:
@@ -295,7 +701,1130 @@
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
- date: ['Wed, 11 Nov 2015 12:49:38 GMT']
+ date: ['Thu, 12 Nov 2015 20:10:19 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.0']
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/lists/moderate_subs@example.com
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:19 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.0']
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/325231961282814726929218872744044864330
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:20 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.0']
+ 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, 12 Nov 2015 20:10:20 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/domains/example.com
+ response:
+ body: {string: !!python/unicode '{"url_host": "example.com", "base_url": "http://example.com",
+ "self_link": "http://localhost:9001/3.0/domains/example.com", "description":
+ null, "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'}
+ headers:
+ content-length: ['233']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:20 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/domains/example.com
+ response:
+ body: {string: !!python/unicode '{"url_host": "example.com", "base_url": "http://example.com",
+ "self_link": "http://localhost:9001/3.0/domains/example.com", "description":
+ null, "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'}
+ headers:
+ content-length: ['233']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:20 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.0']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/lists
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:20 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/open_list.example.com
+ response:
+ body: {string: !!python/unicode '{"fqdn_listname": "open_list@example.com", "http_etag":
+ "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", "list_name": "open_list",
+ "volume": 1, "mail_host": "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com",
+ "display_name": "Open_list", "list_id": "open_list.example.com"}'}
+ headers:
+ content-length: ['324']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:20 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/open_list@example.com/config
+ response:
+ body: {string: !!python/unicode '{"send_welcome_message": true, "http_etag": "\"26abd6037469f4b0e944ca67a333d2e531b0ca20\"",
+ "digest_size_threshold": 30.0, "bounces_address": "open_list-bounces@example.com",
+ "subject_prefix": "[Open_list] ", "welcome_message_uri": "mailman:///welcome.txt",
+ "autorespond_owner": "none", "collapse_alternatives": true, "allow_list_posts":
+ true, "description": "", "reply_goes_to_list": "no_munging", "no_reply_address":
+ "noreply@example.com", "advertised": true, "autorespond_requests": "none",
+ "leave_address": "open_list-leave@example.com", "request_address": "open_list-request@example.com",
+ "display_name": "Open_list", "filter_content": false, "web_host": "example.com",
+ "first_strip_reply_to": false, "include_rfc2369_headers": true, "autorespond_postings":
+ "none", "post_id": 1, "owner_address": "open_list-owner@example.com", "list_name":
+ "open_list", "scheme": "http", "volume": 1, "default_nonmember_action": "hold",
+ "admin_immed_notify": true, "posting_pipeline": "default-posting-pipeline",
+ "digest_last_sent_at": null, "reply_to_address": "", "default_member_action":
+ "defer", "autoresponse_request_text": "", "administrivia": true, "fqdn_listname":
+ "open_list@example.com", "subscription_policy": "confirm", "acceptable_aliases":
+ [], "autoresponse_owner_text": "", "join_address": "open_list-join@example.com",
+ "convert_html_to_plaintext": false, "created_at": "2015-11-12T20:10:20.667130",
+ "anonymous_list": false, "admin_notify_mchanges": false, "next_digest_number":
+ 1, "posting_address": "open_list@example.com", "autoresponse_grace_period":
+ "90d", "archive_policy": "public", "autoresponse_postings_text": "", "last_post_at":
+ null, "mail_host": "example.com"}'}
+ headers:
+ content-length: ['1677']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:20 GMT']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 200, message: OK}
+- request:
+ body: send_welcome_message=True&collapse_alternatives=True&administrivia=True&digest_size_threshold=30.0&include_rfc2369_headers=True&autoresponse_grace_period=90d&posting_pipeline=default-posting-pipeline&allow_list_posts=True&admin_notify_mchanges=False&autoresponse_request_text=&default_nonmember_action=hold&default_member_action=defer&description=&display_name=Open_list&admin_immed_notify=True&subscription_policy=open&autorespond_postings=none&convert_html_to_plaintext=False&filter_content=False&advertised=True&autoresponse_postings_text=&autorespond_owner=none&reply_goes_to_list=no_munging&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&autorespond_requests=none&reply_to_address=&anonymous_list=False&archive_policy=public&subject_prefix=%5BOpen_list%5D+&autoresponse_owner_text=&first_strip_reply_to=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.0']
+ 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: ['Thu, 12 Nov 2015 20:10:21 GMT']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 204, message: No Content}
+- request:
+ body: fqdn_listname=moderate_subs%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.0']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/lists
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:21 GMT']
+ location: ['http://localhost:9001/3.0/lists/moderate_subs.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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs.example.com
+ response:
+ body: {string: !!python/unicode '{"fqdn_listname": "moderate_subs@example.com",
+ "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", "list_name":
+ "moderate_subs", "volume": 1, "mail_host": "example.com", "member_count":
+ 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com",
+ "display_name": "Moderate_subs", "list_id": "moderate_subs.example.com"}'}
+ headers:
+ content-length: ['344']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:21 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config
+ response:
+ body: {string: !!python/unicode '{"send_welcome_message": true, "http_etag": "\"6a49a30b9deae725b509a14529cf5628b492d406\"",
+ "digest_size_threshold": 30.0, "bounces_address": "moderate_subs-bounces@example.com",
+ "subject_prefix": "[Moderate_subs] ", "welcome_message_uri": "mailman:///welcome.txt",
+ "autorespond_owner": "none", "collapse_alternatives": true, "allow_list_posts":
+ true, "description": "", "reply_goes_to_list": "no_munging", "no_reply_address":
+ "noreply@example.com", "advertised": true, "autorespond_requests": "none",
+ "leave_address": "moderate_subs-leave@example.com", "request_address": "moderate_subs-request@example.com",
+ "display_name": "Moderate_subs", "filter_content": false, "web_host": "example.com",
+ "first_strip_reply_to": false, "include_rfc2369_headers": true, "autorespond_postings":
+ "none", "post_id": 1, "owner_address": "moderate_subs-owner@example.com",
+ "list_name": "moderate_subs", "scheme": "http", "volume": 1, "default_nonmember_action":
+ "hold", "admin_immed_notify": true, "posting_pipeline": "default-posting-pipeline",
+ "digest_last_sent_at": null, "reply_to_address": "", "default_member_action":
+ "defer", "autoresponse_request_text": "", "administrivia": true, "fqdn_listname":
+ "moderate_subs@example.com", "subscription_policy": "confirm", "acceptable_aliases":
+ [], "autoresponse_owner_text": "", "join_address": "moderate_subs-join@example.com",
+ "convert_html_to_plaintext": false, "created_at": "2015-11-12T20:10:21.036174",
+ "anonymous_list": false, "admin_notify_mchanges": false, "next_digest_number":
+ 1, "posting_address": "moderate_subs@example.com", "autoresponse_grace_period":
+ "90d", "archive_policy": "public", "autoresponse_postings_text": "", "last_post_at":
+ null, "mail_host": "example.com"}'}
+ headers:
+ content-length: ['1717']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:21 GMT']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 200, message: OK}
+- request:
+ body: send_welcome_message=True&collapse_alternatives=True&administrivia=True&digest_size_threshold=30.0&include_rfc2369_headers=True&autoresponse_grace_period=90d&posting_pipeline=default-posting-pipeline&allow_list_posts=True&admin_notify_mchanges=False&autoresponse_request_text=&default_nonmember_action=hold&default_member_action=defer&description=&display_name=Moderate_subs&admin_immed_notify=True&subscription_policy=moderate&autorespond_postings=none&convert_html_to_plaintext=False&filter_content=False&advertised=True&autoresponse_postings_text=&autorespond_owner=none&reply_goes_to_list=no_munging&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&autorespond_requests=none&reply_to_address=&anonymous_list=False&archive_policy=public&subject_prefix=%5BModerate_subs%5D+&autoresponse_owner_text=&first_strip_reply_to=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.0']
+ method: !!python/unicode 'PATCH'
+ uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:21 GMT']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 204, message: No Content}
+- request:
+ body: password=&display_name=&email=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.0']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/users
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:22 GMT']
+ location: ['http://localhost:9001/3.0/users/114244264928177560586593517544856958785']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 201, message: Created}
+- request:
+ body: email=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.0']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/users/114244264928177560586593517544856958785/addresses
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:22 GMT']
+ location: ['http://localhost:9001/3.0/addresses/fritz@example.org']
+ 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.0']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/addresses/fritz@example.org/verify
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:22 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.0']
+ 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: ['Thu, 12 Nov 2015 20:10:24 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"9f1ff031317a700fad928974406404c329bafe2a\"",
+ "total_size": 1, "start": 0, "entries": [{"when": "2015-11-12T20:10:23", "display_name":
+ "", "token_owner": "moderator", "http_etag": "\"ac97afe7a17aeab68db07e6b65cd77af5c813857\"",
+ "email": "test@example.com", "list_id": "moderate_subs.example.com", "token":
+ "595ef1977cc284df4dbbdfae5a473be5696dee62"}]}'}
+ headers:
+ content-length: ['367']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:24 GMT']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 200, message: OK}
+- request:
+ body: action=discard
+ 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.0']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/requests/595ef1977cc284df4dbbdfae5a473be5696dee62
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:24 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.0']
+ 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: ['Thu, 12 Nov 2015 20:10:24 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.0']
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/lists/moderate_subs@example.com
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:24 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.0']
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/114244264928177560586593517544856958785
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:24 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.0']
+ 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, 12 Nov 2015 20:10:25 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/domains/example.com
+ response:
+ body: {string: !!python/unicode '{"url_host": "example.com", "base_url": "http://example.com",
+ "self_link": "http://localhost:9001/3.0/domains/example.com", "description":
+ null, "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'}
+ headers:
+ content-length: ['233']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:25 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/domains/example.com
+ response:
+ body: {string: !!python/unicode '{"url_host": "example.com", "base_url": "http://example.com",
+ "self_link": "http://localhost:9001/3.0/domains/example.com", "description":
+ null, "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'}
+ headers:
+ content-length: ['233']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:25 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.0']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/lists
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:25 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/open_list.example.com
+ response:
+ body: {string: !!python/unicode '{"fqdn_listname": "open_list@example.com", "http_etag":
+ "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", "list_name": "open_list",
+ "volume": 1, "mail_host": "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com",
+ "display_name": "Open_list", "list_id": "open_list.example.com"}'}
+ headers:
+ content-length: ['324']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:25 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/open_list@example.com/config
+ response:
+ body: {string: !!python/unicode '{"send_welcome_message": true, "http_etag": "\"ab1bd9a88ae52bb998ebd3e9ef2f05b55cd0c9b0\"",
+ "digest_size_threshold": 30.0, "bounces_address": "open_list-bounces@example.com",
+ "subject_prefix": "[Open_list] ", "welcome_message_uri": "mailman:///welcome.txt",
+ "autorespond_owner": "none", "collapse_alternatives": true, "allow_list_posts":
+ true, "description": "", "reply_goes_to_list": "no_munging", "no_reply_address":
+ "noreply@example.com", "advertised": true, "autorespond_requests": "none",
+ "leave_address": "open_list-leave@example.com", "request_address": "open_list-request@example.com",
+ "display_name": "Open_list", "filter_content": false, "web_host": "example.com",
+ "first_strip_reply_to": false, "include_rfc2369_headers": true, "autorespond_postings":
+ "none", "post_id": 1, "owner_address": "open_list-owner@example.com", "list_name":
+ "open_list", "scheme": "http", "volume": 1, "default_nonmember_action": "hold",
+ "admin_immed_notify": true, "posting_pipeline": "default-posting-pipeline",
+ "digest_last_sent_at": null, "reply_to_address": "", "default_member_action":
+ "defer", "autoresponse_request_text": "", "administrivia": true, "fqdn_listname":
+ "open_list@example.com", "subscription_policy": "confirm", "acceptable_aliases":
+ [], "autoresponse_owner_text": "", "join_address": "open_list-join@example.com",
+ "convert_html_to_plaintext": false, "created_at": "2015-11-12T20:10:25.691558",
+ "anonymous_list": false, "admin_notify_mchanges": false, "next_digest_number":
+ 1, "posting_address": "open_list@example.com", "autoresponse_grace_period":
+ "90d", "archive_policy": "public", "autoresponse_postings_text": "", "last_post_at":
+ null, "mail_host": "example.com"}'}
+ headers:
+ content-length: ['1677']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:25 GMT']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 200, message: OK}
+- request:
+ body: send_welcome_message=True&collapse_alternatives=True&administrivia=True&digest_size_threshold=30.0&include_rfc2369_headers=True&autoresponse_grace_period=90d&posting_pipeline=default-posting-pipeline&allow_list_posts=True&admin_notify_mchanges=False&autoresponse_request_text=&default_nonmember_action=hold&default_member_action=defer&description=&display_name=Open_list&admin_immed_notify=True&subscription_policy=open&autorespond_postings=none&convert_html_to_plaintext=False&filter_content=False&advertised=True&autoresponse_postings_text=&autorespond_owner=none&reply_goes_to_list=no_munging&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&autorespond_requests=none&reply_to_address=&anonymous_list=False&archive_policy=public&subject_prefix=%5BOpen_list%5D+&autoresponse_owner_text=&first_strip_reply_to=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.0']
+ 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: ['Thu, 12 Nov 2015 20:10:25 GMT']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 204, message: No Content}
+- request:
+ body: fqdn_listname=moderate_subs%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.0']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/lists
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:26 GMT']
+ location: ['http://localhost:9001/3.0/lists/moderate_subs.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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs.example.com
+ response:
+ body: {string: !!python/unicode '{"fqdn_listname": "moderate_subs@example.com",
+ "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", "list_name":
+ "moderate_subs", "volume": 1, "mail_host": "example.com", "member_count":
+ 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com",
+ "display_name": "Moderate_subs", "list_id": "moderate_subs.example.com"}'}
+ headers:
+ content-length: ['344']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:26 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config
+ response:
+ body: {string: !!python/unicode '{"send_welcome_message": true, "http_etag": "\"0b520ed685ef2160f78fcdaa293fcb3b0ed02ddf\"",
+ "digest_size_threshold": 30.0, "bounces_address": "moderate_subs-bounces@example.com",
+ "subject_prefix": "[Moderate_subs] ", "welcome_message_uri": "mailman:///welcome.txt",
+ "autorespond_owner": "none", "collapse_alternatives": true, "allow_list_posts":
+ true, "description": "", "reply_goes_to_list": "no_munging", "no_reply_address":
+ "noreply@example.com", "advertised": true, "autorespond_requests": "none",
+ "leave_address": "moderate_subs-leave@example.com", "request_address": "moderate_subs-request@example.com",
+ "display_name": "Moderate_subs", "filter_content": false, "web_host": "example.com",
+ "first_strip_reply_to": false, "include_rfc2369_headers": true, "autorespond_postings":
+ "none", "post_id": 1, "owner_address": "moderate_subs-owner@example.com",
+ "list_name": "moderate_subs", "scheme": "http", "volume": 1, "default_nonmember_action":
+ "hold", "admin_immed_notify": true, "posting_pipeline": "default-posting-pipeline",
+ "digest_last_sent_at": null, "reply_to_address": "", "default_member_action":
+ "defer", "autoresponse_request_text": "", "administrivia": true, "fqdn_listname":
+ "moderate_subs@example.com", "subscription_policy": "confirm", "acceptable_aliases":
+ [], "autoresponse_owner_text": "", "join_address": "moderate_subs-join@example.com",
+ "convert_html_to_plaintext": false, "created_at": "2015-11-12T20:10:25.979364",
+ "anonymous_list": false, "admin_notify_mchanges": false, "next_digest_number":
+ 1, "posting_address": "moderate_subs@example.com", "autoresponse_grace_period":
+ "90d", "archive_policy": "public", "autoresponse_postings_text": "", "last_post_at":
+ null, "mail_host": "example.com"}'}
+ headers:
+ content-length: ['1717']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:26 GMT']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 200, message: OK}
+- request:
+ body: send_welcome_message=True&collapse_alternatives=True&administrivia=True&digest_size_threshold=30.0&include_rfc2369_headers=True&autoresponse_grace_period=90d&posting_pipeline=default-posting-pipeline&allow_list_posts=True&admin_notify_mchanges=False&autoresponse_request_text=&default_nonmember_action=hold&default_member_action=defer&description=&display_name=Moderate_subs&admin_immed_notify=True&subscription_policy=moderate&autorespond_postings=none&convert_html_to_plaintext=False&filter_content=False&advertised=True&autoresponse_postings_text=&autorespond_owner=none&reply_goes_to_list=no_munging&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&autorespond_requests=none&reply_to_address=&anonymous_list=False&archive_policy=public&subject_prefix=%5BModerate_subs%5D+&autoresponse_owner_text=&first_strip_reply_to=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.0']
+ method: !!python/unicode 'PATCH'
+ uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:26 GMT']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 204, message: No Content}
+- request:
+ body: password=&display_name=&email=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.0']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/users
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:27 GMT']
+ location: ['http://localhost:9001/3.0/users/2132721265292240516692920550729841030']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 201, message: Created}
+- request:
+ body: email=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.0']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/users/2132721265292240516692920550729841030/addresses
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:27 GMT']
+ location: ['http://localhost:9001/3.0/addresses/fritz@example.org']
+ 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.0']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/addresses/fritz@example.org/verify
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:27 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.0']
+ 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: ['Thu, 12 Nov 2015 20:10: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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs@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: ['Thu, 12 Nov 2015 20:10: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.0']
+ 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: ['Thu, 12 Nov 2015 20:10: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.0']
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/lists/moderate_subs@example.com
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10: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.0']
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/2132721265292240516692920550729841030
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:30 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.0']
+ 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, 12 Nov 2015 20:10:31 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/domains/example.com
+ response:
+ body: {string: !!python/unicode '{"url_host": "example.com", "base_url": "http://example.com",
+ "self_link": "http://localhost:9001/3.0/domains/example.com", "description":
+ null, "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'}
+ headers:
+ content-length: ['233']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:31 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/domains/example.com
+ response:
+ body: {string: !!python/unicode '{"url_host": "example.com", "base_url": "http://example.com",
+ "self_link": "http://localhost:9001/3.0/domains/example.com", "description":
+ null, "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'}
+ headers:
+ content-length: ['233']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:31 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.0']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/lists
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:31 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/open_list.example.com
+ response:
+ body: {string: !!python/unicode '{"fqdn_listname": "open_list@example.com", "http_etag":
+ "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", "list_name": "open_list",
+ "volume": 1, "mail_host": "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com",
+ "display_name": "Open_list", "list_id": "open_list.example.com"}'}
+ headers:
+ content-length: ['324']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:31 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/open_list@example.com/config
+ response:
+ body: {string: !!python/unicode '{"send_welcome_message": true, "http_etag": "\"cdbf6bb7027499521809887b6b5c1db736359236\"",
+ "digest_size_threshold": 30.0, "bounces_address": "open_list-bounces@example.com",
+ "subject_prefix": "[Open_list] ", "welcome_message_uri": "mailman:///welcome.txt",
+ "autorespond_owner": "none", "collapse_alternatives": true, "allow_list_posts":
+ true, "description": "", "reply_goes_to_list": "no_munging", "no_reply_address":
+ "noreply@example.com", "advertised": true, "autorespond_requests": "none",
+ "leave_address": "open_list-leave@example.com", "request_address": "open_list-request@example.com",
+ "display_name": "Open_list", "filter_content": false, "web_host": "example.com",
+ "first_strip_reply_to": false, "include_rfc2369_headers": true, "autorespond_postings":
+ "none", "post_id": 1, "owner_address": "open_list-owner@example.com", "list_name":
+ "open_list", "scheme": "http", "volume": 1, "default_nonmember_action": "hold",
+ "admin_immed_notify": true, "posting_pipeline": "default-posting-pipeline",
+ "digest_last_sent_at": null, "reply_to_address": "", "default_member_action":
+ "defer", "autoresponse_request_text": "", "administrivia": true, "fqdn_listname":
+ "open_list@example.com", "subscription_policy": "confirm", "acceptable_aliases":
+ [], "autoresponse_owner_text": "", "join_address": "open_list-join@example.com",
+ "convert_html_to_plaintext": false, "created_at": "2015-11-12T20:10:31.343193",
+ "anonymous_list": false, "admin_notify_mchanges": false, "next_digest_number":
+ 1, "posting_address": "open_list@example.com", "autoresponse_grace_period":
+ "90d", "archive_policy": "public", "autoresponse_postings_text": "", "last_post_at":
+ null, "mail_host": "example.com"}'}
+ headers:
+ content-length: ['1677']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:31 GMT']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 200, message: OK}
+- request:
+ body: send_welcome_message=True&collapse_alternatives=True&administrivia=True&digest_size_threshold=30.0&include_rfc2369_headers=True&autoresponse_grace_period=90d&posting_pipeline=default-posting-pipeline&allow_list_posts=True&admin_notify_mchanges=False&autoresponse_request_text=&default_nonmember_action=hold&default_member_action=defer&description=&display_name=Open_list&admin_immed_notify=True&subscription_policy=open&autorespond_postings=none&convert_html_to_plaintext=False&filter_content=False&advertised=True&autoresponse_postings_text=&autorespond_owner=none&reply_goes_to_list=no_munging&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&autorespond_requests=none&reply_to_address=&anonymous_list=False&archive_policy=public&subject_prefix=%5BOpen_list%5D+&autoresponse_owner_text=&first_strip_reply_to=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.0']
+ 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: ['Thu, 12 Nov 2015 20:10:31 GMT']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 204, message: No Content}
+- request:
+ body: fqdn_listname=moderate_subs%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.0']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/lists
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:31 GMT']
+ location: ['http://localhost:9001/3.0/lists/moderate_subs.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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs.example.com
+ response:
+ body: {string: !!python/unicode '{"fqdn_listname": "moderate_subs@example.com",
+ "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", "list_name":
+ "moderate_subs", "volume": 1, "mail_host": "example.com", "member_count":
+ 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com",
+ "display_name": "Moderate_subs", "list_id": "moderate_subs.example.com"}'}
+ headers:
+ content-length: ['344']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:31 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config
+ response:
+ body: {string: !!python/unicode '{"send_welcome_message": true, "http_etag": "\"8ec7d68f80b5440a5ce7261e8ca8b91755461caa\"",
+ "digest_size_threshold": 30.0, "bounces_address": "moderate_subs-bounces@example.com",
+ "subject_prefix": "[Moderate_subs] ", "welcome_message_uri": "mailman:///welcome.txt",
+ "autorespond_owner": "none", "collapse_alternatives": true, "allow_list_posts":
+ true, "description": "", "reply_goes_to_list": "no_munging", "no_reply_address":
+ "noreply@example.com", "advertised": true, "autorespond_requests": "none",
+ "leave_address": "moderate_subs-leave@example.com", "request_address": "moderate_subs-request@example.com",
+ "display_name": "Moderate_subs", "filter_content": false, "web_host": "example.com",
+ "first_strip_reply_to": false, "include_rfc2369_headers": true, "autorespond_postings":
+ "none", "post_id": 1, "owner_address": "moderate_subs-owner@example.com",
+ "list_name": "moderate_subs", "scheme": "http", "volume": 1, "default_nonmember_action":
+ "hold", "admin_immed_notify": true, "posting_pipeline": "default-posting-pipeline",
+ "digest_last_sent_at": null, "reply_to_address": "", "default_member_action":
+ "defer", "autoresponse_request_text": "", "administrivia": true, "fqdn_listname":
+ "moderate_subs@example.com", "subscription_policy": "confirm", "acceptable_aliases":
+ [], "autoresponse_owner_text": "", "join_address": "moderate_subs-join@example.com",
+ "convert_html_to_plaintext": false, "created_at": "2015-11-12T20:10:31.791383",
+ "anonymous_list": false, "admin_notify_mchanges": false, "next_digest_number":
+ 1, "posting_address": "moderate_subs@example.com", "autoresponse_grace_period":
+ "90d", "archive_policy": "public", "autoresponse_postings_text": "", "last_post_at":
+ null, "mail_host": "example.com"}'}
+ headers:
+ content-length: ['1717']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:31 GMT']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 200, message: OK}
+- request:
+ body: send_welcome_message=True&collapse_alternatives=True&administrivia=True&digest_size_threshold=30.0&include_rfc2369_headers=True&autoresponse_grace_period=90d&posting_pipeline=default-posting-pipeline&allow_list_posts=True&admin_notify_mchanges=False&autoresponse_request_text=&default_nonmember_action=hold&default_member_action=defer&description=&display_name=Moderate_subs&admin_immed_notify=True&subscription_policy=moderate&autorespond_postings=none&convert_html_to_plaintext=False&filter_content=False&advertised=True&autoresponse_postings_text=&autorespond_owner=none&reply_goes_to_list=no_munging&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&autorespond_requests=none&reply_to_address=&anonymous_list=False&archive_policy=public&subject_prefix=%5BModerate_subs%5D+&autoresponse_owner_text=&first_strip_reply_to=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.0']
+ method: !!python/unicode 'PATCH'
+ uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:32 GMT']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 204, message: No Content}
+- request:
+ body: password=&display_name=&email=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.0']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/users
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:33 GMT']
+ location: ['http://localhost:9001/3.0/users/239668863806269665286378136823089641863']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 201, message: Created}
+- request:
+ body: email=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.0']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/users/239668863806269665286378136823089641863/addresses
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:33 GMT']
+ location: ['http://localhost:9001/3.0/addresses/fritz@example.org']
+ 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.0']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/addresses/fritz@example.org/verify
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:33 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.0']
+ 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: ['Thu, 12 Nov 2015 20:10:35 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs@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: ['Thu, 12 Nov 2015 20:10:35 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.0']
+ 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: ['Thu, 12 Nov 2015 20:10:35 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.0']
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/lists/moderate_subs@example.com
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:35 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.0']
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/239668863806269665286378136823089641863
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:35 GMT']
server: [WSGIServer/0.2 CPython/3.4.2]
status: {code: 204, message: No Content}
version: 1
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_mod_primary.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_mod_primary.yaml
new file mode 100644
index 0000000..cd201b1
--- /dev/null
+++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_mod_primary.yaml
@@ -0,0 +1,403 @@
+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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs.example.com
+ response:
+ body: {string: !!python/unicode '{"fqdn_listname": "moderate_subs@example.com",
+ "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", "list_name":
+ "moderate_subs", "volume": 1, "mail_host": "example.com", "member_count":
+ 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com",
+ "display_name": "Moderate_subs", "list_id": "moderate_subs.example.com"}'}
+ headers:
+ content-length: ['344']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:22 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/test@example.com
+ response:
+ body: {string: !!python/unicode '{"user_id": 114244264928177560586593517544856958785,
+ "password": "$6$rounds=652394$5DreAtMxuCfc0vPW$.AwpgxX.m0wG1a8OAagQNPlwWVfKVPk0zkXKhpQnDz5gCwjFLR1P6RmLnrFUFHEAE8YwyGEVF7UVFwEACK4kB1",
+ "http_etag": "\"6e1a0cecfb80a877ccf87c1c39ae22e2826c4fe2\"", "created_on":
+ "2015-11-12T20:10:21.324612", "self_link": "http://localhost:9001/3.0/users/114244264928177560586593517544856958785",
+ "is_server_owner": false}'}
+ headers:
+ content-length: ['407']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:22 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/114244264928177560586593517544856958785/addresses
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"ca6e800d65650c5c42905fea4f9554fd78fcb438\"",
+ "total_size": 2, "start": 0, "entries": [{"original_email": "fritz@example.org",
+ "registered_on": "2015-11-12T20:10:22.295952", "http_etag": "\"da8c461057ada5cdb401ed2e6e55f0ccb8d6d026\"",
+ "user": "http://localhost:9001/3.0/users/114244264928177560586593517544856958785",
+ "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "email":
+ "fritz@example.org", "verified_on": "2015-11-12T20:10:22.394627"}, {"original_email":
+ "test@example.com", "registered_on": "2015-11-12T20:10:21.324255", "http_etag":
+ "\"96a4915ee8726cc7a0ee071eb728ce84dca5404d\"", "user": "http://localhost:9001/3.0/users/114244264928177560586593517544856958785",
+ "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "email":
+ "test@example.com"}]}'}
+ headers:
+ content-length: ['809']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:22 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/addresses/fritz@example.org
+ response:
+ body: {string: !!python/unicode '{"original_email": "fritz@example.org", "registered_on":
+ "2015-11-12T20:10:22.295952", "http_etag": "\"da8c461057ada5cdb401ed2e6e55f0ccb8d6d026\"",
+ "user": "http://localhost:9001/3.0/users/114244264928177560586593517544856958785",
+ "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "email":
+ "fritz@example.org", "verified_on": "2015-11-12T20:10:22.394627"}'}
+ headers:
+ content-length: ['375']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:22 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/addresses/test@example.com
+ response:
+ body: {string: !!python/unicode '{"original_email": "test@example.com", "registered_on":
+ "2015-11-12T20:10:21.324255", "http_etag": "\"96a4915ee8726cc7a0ee071eb728ce84dca5404d\"",
+ "user": "http://localhost:9001/3.0/users/114244264928177560586593517544856958785",
+ "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "email":
+ "test@example.com"}'}
+ headers:
+ content-length: ['327']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:22 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs.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: ['Thu, 12 Nov 2015 20:10:22 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs.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: ['Thu, 12 Nov 2015 20:10:22 GMT']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 200, message: OK}
+- request:
+ body: display_name=None&subscriber=test%40example.com&list_id=moderate_subs.example.com&pre_verified=True&pre_confirmed=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.0']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/members
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"43764d5b3dd3ec545af9728b1b5758e594a07a17\"",
+ "token_owner": "moderator", "token": "595ef1977cc284df4dbbdfae5a473be5696dee62"}'}
+ headers:
+ content-length: ['142']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:23 GMT']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 202, message: Accepted}
+- 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/roster/member
+ 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: ['Thu, 12 Nov 2015 20:10:23 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"9f1ff031317a700fad928974406404c329bafe2a\"",
+ "total_size": 1, "start": 0, "entries": [{"when": "2015-11-12T20:10:23", "display_name":
+ "", "token_owner": "moderator", "http_etag": "\"ac97afe7a17aeab68db07e6b65cd77af5c813857\"",
+ "email": "test@example.com", "list_id": "moderate_subs.example.com", "token":
+ "595ef1977cc284df4dbbdfae5a473be5696dee62"}]}'}
+ headers:
+ content-length: ['367']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:23 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs.example.com
+ response:
+ body: {string: !!python/unicode '{"fqdn_listname": "moderate_subs@example.com",
+ "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", "list_name":
+ "moderate_subs", "volume": 1, "mail_host": "example.com", "member_count":
+ 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com",
+ "display_name": "Moderate_subs", "list_id": "moderate_subs.example.com"}'}
+ headers:
+ content-length: ['344']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:23 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/test@example.com
+ response:
+ body: {string: !!python/unicode '{"user_id": 114244264928177560586593517544856958785,
+ "password": "$6$rounds=652394$5DreAtMxuCfc0vPW$.AwpgxX.m0wG1a8OAagQNPlwWVfKVPk0zkXKhpQnDz5gCwjFLR1P6RmLnrFUFHEAE8YwyGEVF7UVFwEACK4kB1",
+ "http_etag": "\"6e1a0cecfb80a877ccf87c1c39ae22e2826c4fe2\"", "created_on":
+ "2015-11-12T20:10:21.324612", "self_link": "http://localhost:9001/3.0/users/114244264928177560586593517544856958785",
+ "is_server_owner": false}'}
+ headers:
+ content-length: ['407']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:23 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/114244264928177560586593517544856958785/addresses
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"9856ef089b263dda875af23446f9375cb5c74279\"",
+ "total_size": 2, "start": 0, "entries": [{"original_email": "fritz@example.org",
+ "registered_on": "2015-11-12T20:10:22.295952", "http_etag": "\"da8c461057ada5cdb401ed2e6e55f0ccb8d6d026\"",
+ "user": "http://localhost:9001/3.0/users/114244264928177560586593517544856958785",
+ "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "email":
+ "fritz@example.org", "verified_on": "2015-11-12T20:10:22.394627"}, {"original_email":
+ "test@example.com", "registered_on": "2015-11-12T20:10:21.324255", "http_etag":
+ "\"df25c44e175172e093e3087c9631f3f8ae7472b6\"", "user": "http://localhost:9001/3.0/users/114244264928177560586593517544856958785",
+ "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "email":
+ "test@example.com", "verified_on": "2015-11-12T20:10:23.033518"}]}'}
+ headers:
+ content-length: ['854']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:23 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/addresses/fritz@example.org
+ response:
+ body: {string: !!python/unicode '{"original_email": "fritz@example.org", "registered_on":
+ "2015-11-12T20:10:22.295952", "http_etag": "\"da8c461057ada5cdb401ed2e6e55f0ccb8d6d026\"",
+ "user": "http://localhost:9001/3.0/users/114244264928177560586593517544856958785",
+ "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "email":
+ "fritz@example.org", "verified_on": "2015-11-12T20:10:22.394627"}'}
+ headers:
+ content-length: ['375']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:23 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/addresses/test@example.com
+ response:
+ body: {string: !!python/unicode '{"original_email": "test@example.com", "registered_on":
+ "2015-11-12T20:10:21.324255", "http_etag": "\"df25c44e175172e093e3087c9631f3f8ae7472b6\"",
+ "user": "http://localhost:9001/3.0/users/114244264928177560586593517544856958785",
+ "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "email":
+ "test@example.com", "verified_on": "2015-11-12T20:10:23.033518"}'}
+ headers:
+ content-length: ['372']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:23 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs.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: ['Thu, 12 Nov 2015 20:10:23 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs.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: ['Thu, 12 Nov 2015 20:10:23 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/member/test@example.com
+ response:
+ body: {string: !!python/unicode '{}'}
+ headers:
+ content-length: ['2']
+ content-type: [application/json]
+ date: ['Thu, 12 Nov 2015 20:10:23 GMT']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 404, message: Not Found}
+- 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/member/fritz@example.org
+ response:
+ body: {string: !!python/unicode '{}'}
+ headers:
+ content-length: ['2']
+ content-type: [application/json]
+ date: ['Thu, 12 Nov 2015 20:10:23 GMT']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 404, message: Not Found}
+- 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config
+ response:
+ body: {string: !!python/unicode '{"send_welcome_message": true, "http_etag": "\"16e7711bc8144133517e2b24634c538464a4f07f\"",
+ "digest_size_threshold": 30.0, "bounces_address": "moderate_subs-bounces@example.com",
+ "subject_prefix": "[Moderate_subs] ", "welcome_message_uri": "mailman:///welcome.txt",
+ "autorespond_owner": "none", "collapse_alternatives": true, "allow_list_posts":
+ true, "description": "", "reply_goes_to_list": "no_munging", "no_reply_address":
+ "noreply@example.com", "advertised": true, "autorespond_requests": "none",
+ "leave_address": "moderate_subs-leave@example.com", "request_address": "moderate_subs-request@example.com",
+ "display_name": "Moderate_subs", "filter_content": false, "web_host": "example.com",
+ "first_strip_reply_to": false, "include_rfc2369_headers": true, "autorespond_postings":
+ "none", "post_id": 1, "owner_address": "moderate_subs-owner@example.com",
+ "list_name": "moderate_subs", "scheme": "http", "volume": 1, "default_nonmember_action":
+ "hold", "admin_immed_notify": true, "posting_pipeline": "default-posting-pipeline",
+ "digest_last_sent_at": null, "reply_to_address": "", "default_member_action":
+ "defer", "autoresponse_request_text": "", "administrivia": true, "fqdn_listname":
+ "moderate_subs@example.com", "subscription_policy": "moderate", "acceptable_aliases":
+ [], "autoresponse_owner_text": "", "join_address": "moderate_subs-join@example.com",
+ "convert_html_to_plaintext": false, "created_at": "2015-11-12T20:10:21.036174",
+ "anonymous_list": false, "admin_notify_mchanges": false, "next_digest_number":
+ 1, "posting_address": "moderate_subs@example.com", "autoresponse_grace_period":
+ "90d", "archive_policy": "public", "autoresponse_postings_text": "", "last_post_at":
+ null, "mail_host": "example.com"}'}
+ headers:
+ content-length: ['1718']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:23 GMT']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 200, message: OK}
+version: 1
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_mod_secondary.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_mod_secondary.yaml
new file mode 100644
index 0000000..2bdc1c6
--- /dev/null
+++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_mod_secondary.yaml
@@ -0,0 +1,403 @@
+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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs.example.com
+ response:
+ body: {string: !!python/unicode '{"fqdn_listname": "moderate_subs@example.com",
+ "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", "list_name":
+ "moderate_subs", "volume": 1, "mail_host": "example.com", "member_count":
+ 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com",
+ "display_name": "Moderate_subs", "list_id": "moderate_subs.example.com"}'}
+ headers:
+ content-length: ['344']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:14 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/test@example.com
+ response:
+ body: {string: !!python/unicode '{"user_id": 264196601193900125668340740806685993150,
+ "password": "$6$rounds=610863$TvSJutvBx/fAv1v2$Ad.KF9IHkEOGcISCXxZpOBJ8a4RvtacEUWedtCqLn0T052x2ZuVq2aYipI1IGvALupTx25EKEE3OtefAShpGB.",
+ "http_etag": "\"792d9eb87e4df6d43e2977f926beb9ab1ff336b0\"", "created_on":
+ "2015-11-12T20:10:13.513732", "self_link": "http://localhost:9001/3.0/users/264196601193900125668340740806685993150",
+ "is_server_owner": false}'}
+ headers:
+ content-length: ['407']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:14 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/264196601193900125668340740806685993150/addresses
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"e275c59eb4f7644092e953f03d89a77aa182a339\"",
+ "total_size": 2, "start": 0, "entries": [{"original_email": "fritz@example.org",
+ "registered_on": "2015-11-12T20:10:14.393496", "http_etag": "\"0040d9b7d50b802f2ed1c78f19edf331ab57ae9c\"",
+ "user": "http://localhost:9001/3.0/users/264196601193900125668340740806685993150",
+ "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "email":
+ "fritz@example.org", "verified_on": "2015-11-12T20:10:14.498602"}, {"original_email":
+ "test@example.com", "registered_on": "2015-11-12T20:10:13.513372", "http_etag":
+ "\"16c8de95db91bb451e3e81fd84290c0f875d86e1\"", "user": "http://localhost:9001/3.0/users/264196601193900125668340740806685993150",
+ "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "email":
+ "test@example.com"}]}'}
+ headers:
+ content-length: ['809']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:14 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/addresses/fritz@example.org
+ response:
+ body: {string: !!python/unicode '{"original_email": "fritz@example.org", "registered_on":
+ "2015-11-12T20:10:14.393496", "http_etag": "\"0040d9b7d50b802f2ed1c78f19edf331ab57ae9c\"",
+ "user": "http://localhost:9001/3.0/users/264196601193900125668340740806685993150",
+ "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "email":
+ "fritz@example.org", "verified_on": "2015-11-12T20:10:14.498602"}'}
+ headers:
+ content-length: ['375']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:14 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/addresses/test@example.com
+ response:
+ body: {string: !!python/unicode '{"original_email": "test@example.com", "registered_on":
+ "2015-11-12T20:10:13.513372", "http_etag": "\"16c8de95db91bb451e3e81fd84290c0f875d86e1\"",
+ "user": "http://localhost:9001/3.0/users/264196601193900125668340740806685993150",
+ "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "email":
+ "test@example.com"}'}
+ headers:
+ content-length: ['327']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:14 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs.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: ['Thu, 12 Nov 2015 20:10:14 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs.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: ['Thu, 12 Nov 2015 20:10:14 GMT']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 200, message: OK}
+- request:
+ body: display_name=None&subscriber=fritz%40example.org&list_id=moderate_subs.example.com&pre_verified=True&pre_confirmed=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.0']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/members
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"68940d762952499359d7bbbc30514e2930463d9a\"",
+ "token_owner": "moderator", "token": "4949554df3e666e9fa813d15ea44d8e3cf7de13d"}'}
+ headers:
+ content-length: ['142']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:15 GMT']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 202, message: Accepted}
+- 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/roster/member
+ 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: ['Thu, 12 Nov 2015 20:10:15 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"b0a1ef5bd888ec870340269a5d7ffafa2c82a7ae\"",
+ "total_size": 1, "start": 0, "entries": [{"when": "2015-11-12T20:10:14", "display_name":
+ "", "token_owner": "moderator", "http_etag": "\"80bcd29604f9a4e0a4b50bf7ca365ba58cee752d\"",
+ "email": "fritz@example.org", "list_id": "moderate_subs.example.com", "token":
+ "4949554df3e666e9fa813d15ea44d8e3cf7de13d"}]}'}
+ headers:
+ content-length: ['368']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:15 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs.example.com
+ response:
+ body: {string: !!python/unicode '{"fqdn_listname": "moderate_subs@example.com",
+ "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", "list_name":
+ "moderate_subs", "volume": 1, "mail_host": "example.com", "member_count":
+ 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com",
+ "display_name": "Moderate_subs", "list_id": "moderate_subs.example.com"}'}
+ headers:
+ content-length: ['344']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:15 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/test@example.com
+ response:
+ body: {string: !!python/unicode '{"user_id": 264196601193900125668340740806685993150,
+ "password": "$6$rounds=610863$TvSJutvBx/fAv1v2$Ad.KF9IHkEOGcISCXxZpOBJ8a4RvtacEUWedtCqLn0T052x2ZuVq2aYipI1IGvALupTx25EKEE3OtefAShpGB.",
+ "http_etag": "\"792d9eb87e4df6d43e2977f926beb9ab1ff336b0\"", "created_on":
+ "2015-11-12T20:10:13.513732", "self_link": "http://localhost:9001/3.0/users/264196601193900125668340740806685993150",
+ "is_server_owner": false}'}
+ headers:
+ content-length: ['407']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:15 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/264196601193900125668340740806685993150/addresses
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"e275c59eb4f7644092e953f03d89a77aa182a339\"",
+ "total_size": 2, "start": 0, "entries": [{"original_email": "fritz@example.org",
+ "registered_on": "2015-11-12T20:10:14.393496", "http_etag": "\"0040d9b7d50b802f2ed1c78f19edf331ab57ae9c\"",
+ "user": "http://localhost:9001/3.0/users/264196601193900125668340740806685993150",
+ "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "email":
+ "fritz@example.org", "verified_on": "2015-11-12T20:10:14.498602"}, {"original_email":
+ "test@example.com", "registered_on": "2015-11-12T20:10:13.513372", "http_etag":
+ "\"16c8de95db91bb451e3e81fd84290c0f875d86e1\"", "user": "http://localhost:9001/3.0/users/264196601193900125668340740806685993150",
+ "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "email":
+ "test@example.com"}]}'}
+ headers:
+ content-length: ['809']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:15 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/addresses/fritz@example.org
+ response:
+ body: {string: !!python/unicode '{"original_email": "fritz@example.org", "registered_on":
+ "2015-11-12T20:10:14.393496", "http_etag": "\"0040d9b7d50b802f2ed1c78f19edf331ab57ae9c\"",
+ "user": "http://localhost:9001/3.0/users/264196601193900125668340740806685993150",
+ "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "email":
+ "fritz@example.org", "verified_on": "2015-11-12T20:10:14.498602"}'}
+ headers:
+ content-length: ['375']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:15 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/addresses/test@example.com
+ response:
+ body: {string: !!python/unicode '{"original_email": "test@example.com", "registered_on":
+ "2015-11-12T20:10:13.513372", "http_etag": "\"16c8de95db91bb451e3e81fd84290c0f875d86e1\"",
+ "user": "http://localhost:9001/3.0/users/264196601193900125668340740806685993150",
+ "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "email":
+ "test@example.com"}'}
+ headers:
+ content-length: ['327']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:15 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs.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: ['Thu, 12 Nov 2015 20:10:15 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs.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: ['Thu, 12 Nov 2015 20:10:15 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/member/test@example.com
+ response:
+ body: {string: !!python/unicode '{}'}
+ headers:
+ content-length: ['2']
+ content-type: [application/json]
+ date: ['Thu, 12 Nov 2015 20:10:15 GMT']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 404, message: Not Found}
+- 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/member/fritz@example.org
+ response:
+ body: {string: !!python/unicode '{}'}
+ headers:
+ content-length: ['2']
+ content-type: [application/json]
+ date: ['Thu, 12 Nov 2015 20:10:15 GMT']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 404, message: Not Found}
+- 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config
+ response:
+ body: {string: !!python/unicode '{"send_welcome_message": true, "http_etag": "\"14a51c2e2c052ed38034f6cc115c5d1f11393f04\"",
+ "digest_size_threshold": 30.0, "bounces_address": "moderate_subs-bounces@example.com",
+ "subject_prefix": "[Moderate_subs] ", "welcome_message_uri": "mailman:///welcome.txt",
+ "autorespond_owner": "none", "collapse_alternatives": true, "allow_list_posts":
+ true, "description": "", "reply_goes_to_list": "no_munging", "no_reply_address":
+ "noreply@example.com", "advertised": true, "autorespond_requests": "none",
+ "leave_address": "moderate_subs-leave@example.com", "request_address": "moderate_subs-request@example.com",
+ "display_name": "Moderate_subs", "filter_content": false, "web_host": "example.com",
+ "first_strip_reply_to": false, "include_rfc2369_headers": true, "autorespond_postings":
+ "none", "post_id": 1, "owner_address": "moderate_subs-owner@example.com",
+ "list_name": "moderate_subs", "scheme": "http", "volume": 1, "default_nonmember_action":
+ "hold", "admin_immed_notify": true, "posting_pipeline": "default-posting-pipeline",
+ "digest_last_sent_at": null, "reply_to_address": "", "default_member_action":
+ "defer", "autoresponse_request_text": "", "administrivia": true, "fqdn_listname":
+ "moderate_subs@example.com", "subscription_policy": "moderate", "acceptable_aliases":
+ [], "autoresponse_owner_text": "", "join_address": "moderate_subs-join@example.com",
+ "convert_html_to_plaintext": false, "created_at": "2015-11-12T20:10:13.180966",
+ "anonymous_list": false, "admin_notify_mchanges": false, "next_digest_number":
+ 1, "posting_address": "moderate_subs@example.com", "autoresponse_grace_period":
+ "90d", "archive_policy": "public", "autoresponse_postings_text": "", "last_post_at":
+ null, "mail_host": "example.com"}'}
+ headers:
+ content-length: ['1718']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:15 GMT']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 200, message: OK}
+version: 1
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_moderate.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_moderate.yaml
deleted file mode 100644
index 24fa436..0000000
--- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_moderate.yaml
+++ /dev/null
@@ -1,301 +0,0 @@
-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.0']
- 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: ['Wed, 11 Nov 2015 12:49:35 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.0']
- method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/domains/example.com
- response:
- body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"",
- "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com",
- "base_url": "http://example.com", "mail_host": "example.com"}'}
- headers:
- content-length: ['233']
- content-type: [application/json; charset=utf-8]
- date: ['Wed, 11 Nov 2015 12:49:35 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.0']
- method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/domains/example.com
- response:
- body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"",
- "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com",
- "base_url": "http://example.com", "mail_host": "example.com"}'}
- headers:
- content-length: ['233']
- content-type: [application/json; charset=utf-8]
- date: ['Wed, 11 Nov 2015 12:49:35 GMT']
- server: [WSGIServer/0.2 CPython/3.4.2]
- status: {code: 200, message: OK}
-- request:
- body: fqdn_listname=moderate_subs%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.0']
- method: !!python/unicode 'POST'
- uri: http://localhost:9001/3.0/lists
- response:
- body: {string: !!python/unicode ''}
- headers:
- content-length: ['0']
- date: ['Wed, 11 Nov 2015 12:49:35 GMT']
- location: ['http://localhost:9001/3.0/lists/moderate_subs.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.0']
- method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/moderate_subs.example.com
- response:
- body: {string: !!python/unicode '{"display_name": "Moderate_subs", "list_id":
- "moderate_subs.example.com", "list_name": "moderate_subs", "fqdn_listname":
- "moderate_subs@example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"",
- "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com",
- "mail_host": "example.com", "volume": 1}'}
- headers:
- content-length: ['344']
- content-type: [application/json; charset=utf-8]
- date: ['Wed, 11 Nov 2015 12:49:35 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.0']
- method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config
- response:
- body: {string: !!python/unicode '{"autoresponse_grace_period": "90d", "autorespond_requests":
- "none", "display_name": "Moderate_subs", "default_member_action": "defer",
- "no_reply_address": "noreply@example.com", "autorespond_postings": "none",
- "admin_notify_mchanges": false, "fqdn_listname": "moderate_subs@example.com",
- "autoresponse_postings_text": "", "advertised": true, "description": "", "reply_goes_to_list":
- "no_munging", "post_id": 1, "filter_content": false, "last_post_at": null,
- "next_digest_number": 1, "autoresponse_owner_text": "", "acceptable_aliases":
- [], "administrivia": true, "collapse_alternatives": true, "owner_address":
- "moderate_subs-owner@example.com", "welcome_message_uri": "mailman:///welcome.txt",
- "allow_list_posts": true, "subscription_policy": "confirm", "list_name": "moderate_subs",
- "admin_immed_notify": true, "leave_address": "moderate_subs-leave@example.com",
- "autoresponse_request_text": "", "posting_pipeline": "default-posting-pipeline",
- "convert_html_to_plaintext": false, "reply_to_address": "", "request_address":
- "moderate_subs-request@example.com", "join_address": "moderate_subs-join@example.com",
- "send_welcome_message": true, "archive_policy": "public", "volume": 1, "first_strip_reply_to":
- false, "default_nonmember_action": "hold", "posting_address": "moderate_subs@example.com",
- "http_etag": "\"b6ec13e94da6d4c6f01c01dec1ad6a0d52941d06\"", "bounces_address":
- "moderate_subs-bounces@example.com", "autorespond_owner": "none", "created_at":
- "2015-11-11T12:49:35.574455", "digest_size_threshold": 30.0, "web_host": "example.com",
- "anonymous_list": false, "scheme": "http", "digest_last_sent_at": null, "subject_prefix":
- "[Moderate_subs] ", "mail_host": "example.com", "include_rfc2369_headers":
- true}'}
- headers:
- content-length: ['1717']
- content-type: [application/json; charset=utf-8]
- date: ['Wed, 11 Nov 2015 12:49:35 GMT']
- server: [WSGIServer/0.2 CPython/3.4.2]
- status: {code: 200, message: OK}
-- request:
- body: autoresponse_postings_text=&admin_notify_mchanges=False&description=&default_nonmember_action=hold&reply_to_address=&posting_pipeline=default-posting-pipeline&convert_html_to_plaintext=False&archive_policy=public&administrivia=True&admin_immed_notify=True&autorespond_owner=none&subscription_policy=moderate&default_member_action=defer&first_strip_reply_to=False&autoresponse_grace_period=90d&allow_list_posts=True&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&collapse_alternatives=True&autorespond_requests=none&advertised=True&digest_size_threshold=30.0&filter_content=False&anonymous_list=False&autoresponse_request_text=&subject_prefix=%5BModerate_subs%5D+&send_welcome_message=True&autoresponse_owner_text=&include_rfc2369_headers=True&autorespond_postings=none&display_name=Moderate_subs&reply_goes_to_list=no_munging
- 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.0']
- method: !!python/unicode 'PATCH'
- uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config
- response:
- body: {string: !!python/unicode ''}
- headers:
- content-length: ['0']
- date: ['Wed, 11 Nov 2015 12:49:35 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.0']
- method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/moderate_subs.example.com
- response:
- body: {string: !!python/unicode '{"display_name": "Moderate_subs", "list_id":
- "moderate_subs.example.com", "list_name": "moderate_subs", "fqdn_listname":
- "moderate_subs@example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"",
- "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com",
- "mail_host": "example.com", "volume": 1}'}
- headers:
- content-length: ['344']
- content-type: [application/json; charset=utf-8]
- date: ['Wed, 11 Nov 2015 12:49:36 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.0']
- method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/users/test@example.com
- response:
- body: {string: !!python/unicode '404 Not Found'}
- headers:
- content-length: ['13']
- content-type: [application/json; charset=utf-8]
- date: ['Wed, 11 Nov 2015 08:52:19 GMT']
- server: [WSGIServer/0.2 CPython/3.4.2]
- status: {code: 404, message: Not Found}
-- 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.0']
- method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/moderate_subs.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: ['Wed, 11 Nov 2015 12:49:36 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.0']
- method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/moderate_subs.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: ['Wed, 11 Nov 2015 12:49:36 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.0']
- method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/users/test@example.com
- response:
- body: {string: !!python/unicode '404 Not Found'}
- headers:
- content-length: ['13']
- content-type: [application/json; charset=utf-8]
- date: ['Wed, 11 Nov 2015 12:49:36 GMT']
- server: [WSGIServer/0.2 CPython/3.4.2]
- status: {code: 404, message: Not Found}
-- request:
- body: pre_confirmed=True&pre_verified=True&display_name=None&subscriber=fritz%40example.org&list_id=moderate_subs.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.0']
- method: !!python/unicode 'POST'
- uri: http://localhost:9001/3.0/members
- response:
- body: {string: !!python/unicode '{"http_etag": "\"26fa06cbf381df67219f4e368f91e36c8bfb5e04\"",
- "token": "8af53fadcb97524aa1aee80323fc5f2ca71b9f2a", "token_owner": "moderator"}'}
- headers:
- content-length: ['142']
- content-type: [application/json; charset=utf-8]
- date: ['Wed, 11 Nov 2015 12:49:36 GMT']
- server: [WSGIServer/0.2 CPython/3.4.2]
- status: {code: 202, message: Accepted}
-- 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.0']
- method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/roster/member
- 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: ['Wed, 11 Nov 2015 12:49:36 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.0']
- method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests
- response:
- body: {string: !!python/unicode '{"entries": [{"http_etag": "\"d74eab868b4ba0c4a0a7b7af77c0f4bff048cdde\"",
- "token": "8af53fadcb97524aa1aee80323fc5f2ca71b9f2a", "token_owner": "moderator",
- "display_name": "None", "list_id": "moderate_subs.example.com", "email": "fritz@example.org",
- "when": "2015-11-11T12:49:36"}], "http_etag": "\"b4fd1f5299e7efca479e6f3015bc401e5022154f\"",
- "total_size": 1, "start": 0}'}
- headers:
- content-length: ['372']
- content-type: [application/json; charset=utf-8]
- date: ['Wed, 11 Nov 2015 12:49:36 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.0']
- method: !!python/unicode 'DELETE'
- uri: http://localhost:9001/3.0/lists/moderate_subs@example.com
- response:
- body: {string: !!python/unicode ''}
- headers:
- content-length: ['0']
- date: ['Wed, 11 Nov 2015 12:49:36 GMT']
- server: [WSGIServer/0.2 CPython/3.4.2]
- status: {code: 204, message: No Content}
-version: 1
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_open_primary.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_open_primary.yaml
new file mode 100644
index 0000000..593cfe9
--- /dev/null
+++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_open_primary.yaml
@@ -0,0 +1,390 @@
+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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/open_list.example.com
+ response:
+ body: {string: !!python/unicode '{"fqdn_listname": "open_list@example.com", "http_etag":
+ "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", "list_name": "open_list",
+ "volume": 1, "mail_host": "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com",
+ "display_name": "Open_list", "list_id": "open_list.example.com"}'}
+ headers:
+ content-length: ['324']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:28 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/test@example.com
+ response:
+ body: {string: !!python/unicode '{"user_id": 2132721265292240516692920550729841030,
+ "password": "$6$rounds=717909$Sxtph0wSFIel.2fj$vnI7dLcusM7D1z3In7GUNVlnTwEG3S82vrDGNgGiPyVTcQPfgkVsWahbyMqFq38Z/B9EVA2Iu5KDF/nGaXo/z1",
+ "http_etag": "\"0b1b81e8964b462e7093e4bafe933df225f378d4\"", "created_on":
+ "2015-11-12T20:10:26.300466", "self_link": "http://localhost:9001/3.0/users/2132721265292240516692920550729841030",
+ "is_server_owner": false}'}
+ headers:
+ content-length: ['403']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:28 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/2132721265292240516692920550729841030/addresses
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"9c90a4d60466aff5b64a1e731e79574aeda69192\"",
+ "total_size": 2, "start": 0, "entries": [{"original_email": "fritz@example.org",
+ "registered_on": "2015-11-12T20:10:27.324952", "http_etag": "\"62dcb5d2589b1350cd012872435054f700073743\"",
+ "user": "http://localhost:9001/3.0/users/2132721265292240516692920550729841030",
+ "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "email":
+ "fritz@example.org", "verified_on": "2015-11-12T20:10:27.434015"}, {"original_email":
+ "test@example.com", "registered_on": "2015-11-12T20:10:26.300109", "http_etag":
+ "\"ef33a0e6c06fdb27953c1cd41b93a03e008ea393\"", "user": "http://localhost:9001/3.0/users/2132721265292240516692920550729841030",
+ "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "email":
+ "test@example.com"}]}'}
+ headers:
+ content-length: ['805']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:28 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/addresses/fritz@example.org
+ response:
+ body: {string: !!python/unicode '{"original_email": "fritz@example.org", "registered_on":
+ "2015-11-12T20:10:27.324952", "http_etag": "\"62dcb5d2589b1350cd012872435054f700073743\"",
+ "user": "http://localhost:9001/3.0/users/2132721265292240516692920550729841030",
+ "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "email":
+ "fritz@example.org", "verified_on": "2015-11-12T20:10:27.434015"}'}
+ headers:
+ content-length: ['373']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:28 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/addresses/test@example.com
+ response:
+ body: {string: !!python/unicode '{"original_email": "test@example.com", "registered_on":
+ "2015-11-12T20:10:26.300109", "http_etag": "\"ef33a0e6c06fdb27953c1cd41b93a03e008ea393\"",
+ "user": "http://localhost:9001/3.0/users/2132721265292240516692920550729841030",
+ "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "email":
+ "test@example.com"}'}
+ headers:
+ content-length: ['325']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:28 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.0']
+ 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: ['Thu, 12 Nov 2015 20:10:28 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.0']
+ 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: ['Thu, 12 Nov 2015 20:10:28 GMT']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 200, message: OK}
+- request:
+ body: display_name=None&subscriber=test%40example.com&list_id=open_list.example.com&pre_verified=True&pre_confirmed=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.0']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/members
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:28 GMT']
+ location: ['http://localhost:9001/3.0/members/330729192115388796531637903487956094413']
+ 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/open_list@example.com/roster/member
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"bbfc59a60bc9e01ed73002f72007c34315884120\"",
+ "total_size": 1, "start": 0, "entries": [{"delivery_mode": "regular", "user":
+ "http://localhost:9001/3.0/users/2132721265292240516692920550729841030", "address":
+ "http://localhost:9001/3.0/addresses/test@example.com", "member_id": 330729192115388796531637903487956094413,
+ "role": "member", "self_link": "http://localhost:9001/3.0/members/330729192115388796531637903487956094413",
+ "email": "test@example.com", "list_id": "open_list.example.com", "http_etag":
+ "\"3cd42a7ef9dfba370238148f81f38a08b0413173\""}]}'}
+ headers:
+ content-length: ['569']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:28 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.0']
+ 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: ['Thu, 12 Nov 2015 20:10:28 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/open_list.example.com
+ response:
+ body: {string: !!python/unicode '{"fqdn_listname": "open_list@example.com", "http_etag":
+ "\"f19d0b7ddb1b51b8c81a873365571fd6aeb6162d\"", "list_name": "open_list",
+ "volume": 1, "mail_host": "example.com", "member_count": 1, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com",
+ "display_name": "Open_list", "list_id": "open_list.example.com"}'}
+ headers:
+ content-length: ['324']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:28 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/test@example.com
+ response:
+ body: {string: !!python/unicode '{"user_id": 2132721265292240516692920550729841030,
+ "password": "$6$rounds=717909$Sxtph0wSFIel.2fj$vnI7dLcusM7D1z3In7GUNVlnTwEG3S82vrDGNgGiPyVTcQPfgkVsWahbyMqFq38Z/B9EVA2Iu5KDF/nGaXo/z1",
+ "http_etag": "\"0b1b81e8964b462e7093e4bafe933df225f378d4\"", "created_on":
+ "2015-11-12T20:10:26.300466", "self_link": "http://localhost:9001/3.0/users/2132721265292240516692920550729841030",
+ "is_server_owner": false}'}
+ headers:
+ content-length: ['403']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:28 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/2132721265292240516692920550729841030/addresses
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"ba730cb5ddf2c01f87bcc5f70a3f85e85ad2e0ab\"",
+ "total_size": 2, "start": 0, "entries": [{"original_email": "fritz@example.org",
+ "registered_on": "2015-11-12T20:10:27.324952", "http_etag": "\"62dcb5d2589b1350cd012872435054f700073743\"",
+ "user": "http://localhost:9001/3.0/users/2132721265292240516692920550729841030",
+ "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "email":
+ "fritz@example.org", "verified_on": "2015-11-12T20:10:27.434015"}, {"original_email":
+ "test@example.com", "registered_on": "2015-11-12T20:10:26.300109", "http_etag":
+ "\"b6b605ceeb854d249e7ae2d041f58a1f51928cec\"", "user": "http://localhost:9001/3.0/users/2132721265292240516692920550729841030",
+ "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "email":
+ "test@example.com", "verified_on": "2015-11-12T20:10:28.203680"}]}'}
+ headers:
+ content-length: ['850']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:28 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/addresses/fritz@example.org
+ response:
+ body: {string: !!python/unicode '{"original_email": "fritz@example.org", "registered_on":
+ "2015-11-12T20:10:27.324952", "http_etag": "\"62dcb5d2589b1350cd012872435054f700073743\"",
+ "user": "http://localhost:9001/3.0/users/2132721265292240516692920550729841030",
+ "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "email":
+ "fritz@example.org", "verified_on": "2015-11-12T20:10:27.434015"}'}
+ headers:
+ content-length: ['373']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:28 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/addresses/test@example.com
+ response:
+ body: {string: !!python/unicode '{"original_email": "test@example.com", "registered_on":
+ "2015-11-12T20:10:26.300109", "http_etag": "\"b6b605ceeb854d249e7ae2d041f58a1f51928cec\"",
+ "user": "http://localhost:9001/3.0/users/2132721265292240516692920550729841030",
+ "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "email":
+ "test@example.com", "verified_on": "2015-11-12T20:10:28.203680"}'}
+ headers:
+ content-length: ['370']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:28 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.0']
+ 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: ['Thu, 12 Nov 2015 20:10:28 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.0']
+ 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: ['Thu, 12 Nov 2015 20:10:28 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/open_list.example.com/member/test@example.com
+ response:
+ body: {string: !!python/unicode '{"delivery_mode": "regular", "user": "http://localhost:9001/3.0/users/2132721265292240516692920550729841030",
+ "address": "http://localhost:9001/3.0/addresses/test@example.com", "member_id":
+ 330729192115388796531637903487956094413, "role": "member", "self_link": "http://localhost:9001/3.0/members/330729192115388796531637903487956094413",
+ "email": "test@example.com", "list_id": "open_list.example.com", "http_etag":
+ "\"3cd42a7ef9dfba370238148f81f38a08b0413173\""}'}
+ headers:
+ content-length: ['464']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:28 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/open_list@example.com/config
+ response:
+ body: {string: !!python/unicode '{"send_welcome_message": true, "http_etag": "\"ee9cc62a0ab20968c93395124f285313099dd059\"",
+ "digest_size_threshold": 30.0, "bounces_address": "open_list-bounces@example.com",
+ "subject_prefix": "[Open_list] ", "welcome_message_uri": "mailman:///welcome.txt",
+ "autorespond_owner": "none", "collapse_alternatives": true, "allow_list_posts":
+ true, "description": "", "reply_goes_to_list": "no_munging", "no_reply_address":
+ "noreply@example.com", "advertised": true, "autorespond_requests": "none",
+ "leave_address": "open_list-leave@example.com", "request_address": "open_list-request@example.com",
+ "display_name": "Open_list", "filter_content": false, "web_host": "example.com",
+ "first_strip_reply_to": false, "include_rfc2369_headers": true, "autorespond_postings":
+ "none", "post_id": 1, "owner_address": "open_list-owner@example.com", "list_name":
+ "open_list", "scheme": "http", "volume": 1, "default_nonmember_action": "hold",
+ "admin_immed_notify": true, "posting_pipeline": "default-posting-pipeline",
+ "digest_last_sent_at": null, "reply_to_address": "", "default_member_action":
+ "defer", "autoresponse_request_text": "", "administrivia": true, "fqdn_listname":
+ "open_list@example.com", "subscription_policy": "open", "acceptable_aliases":
+ [], "autoresponse_owner_text": "", "join_address": "open_list-join@example.com",
+ "convert_html_to_plaintext": false, "created_at": "2015-11-12T20:10:25.691558",
+ "anonymous_list": false, "admin_notify_mchanges": false, "next_digest_number":
+ 1, "posting_address": "open_list@example.com", "autoresponse_grace_period":
+ "90d", "archive_policy": "public", "autoresponse_postings_text": "", "last_post_at":
+ null, "mail_host": "example.com"}'}
+ headers:
+ content-length: ['1674']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:28 GMT']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 200, message: OK}
+version: 1
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_open_secondary.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_open_secondary.yaml
new file mode 100644
index 0000000..ef30e03
--- /dev/null
+++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_open_secondary.yaml
@@ -0,0 +1,406 @@
+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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/open_list.example.com
+ response:
+ body: {string: !!python/unicode '{"fqdn_listname": "open_list@example.com", "http_etag":
+ "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", "list_name": "open_list",
+ "volume": 1, "mail_host": "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com",
+ "display_name": "Open_list", "list_id": "open_list.example.com"}'}
+ headers:
+ content-length: ['324']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:18 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/test@example.com
+ response:
+ body: {string: !!python/unicode '{"user_id": 325231961282814726929218872744044864330,
+ "password": "$6$rounds=619959$3LEqGfcALfdvqy6f$P.Z5OerDXPrL0/RI/D3I95wLLl4KvkhE0t8ZE7qngTFd4.rsLPVnfSFoB9IYtbwChBMP8ObUJonz7kcXkjOtP0",
+ "http_etag": "\"ac5eb5e45a6eacc984d49b54d0808e4b4eb32cb5\"", "created_on":
+ "2015-11-12T20:10:17.172457", "self_link": "http://localhost:9001/3.0/users/325231961282814726929218872744044864330",
+ "is_server_owner": false}'}
+ headers:
+ content-length: ['407']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:18 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/325231961282814726929218872744044864330/addresses
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"f2fcfe57cd60091320795cd79f57ebed5f5b7bc3\"",
+ "total_size": 2, "start": 0, "entries": [{"original_email": "fritz@example.org",
+ "registered_on": "2015-11-12T20:10:18.033529", "http_etag": "\"fbf93586bb9d6d0b651f0d8aad4679d7439a1c40\"",
+ "user": "http://localhost:9001/3.0/users/325231961282814726929218872744044864330",
+ "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "email":
+ "fritz@example.org", "verified_on": "2015-11-12T20:10:18.132411"}, {"original_email":
+ "test@example.com", "registered_on": "2015-11-12T20:10:17.172098", "http_etag":
+ "\"7474628ea0cb69e947dbbdc3f11dc97ea8d0aa32\"", "user": "http://localhost:9001/3.0/users/325231961282814726929218872744044864330",
+ "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "email":
+ "test@example.com"}]}'}
+ headers:
+ content-length: ['809']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:18 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/addresses/fritz@example.org
+ response:
+ body: {string: !!python/unicode '{"original_email": "fritz@example.org", "registered_on":
+ "2015-11-12T20:10:18.033529", "http_etag": "\"fbf93586bb9d6d0b651f0d8aad4679d7439a1c40\"",
+ "user": "http://localhost:9001/3.0/users/325231961282814726929218872744044864330",
+ "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "email":
+ "fritz@example.org", "verified_on": "2015-11-12T20:10:18.132411"}'}
+ headers:
+ content-length: ['375']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:18 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/addresses/test@example.com
+ response:
+ body: {string: !!python/unicode '{"original_email": "test@example.com", "registered_on":
+ "2015-11-12T20:10:17.172098", "http_etag": "\"7474628ea0cb69e947dbbdc3f11dc97ea8d0aa32\"",
+ "user": "http://localhost:9001/3.0/users/325231961282814726929218872744044864330",
+ "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "email":
+ "test@example.com"}'}
+ headers:
+ content-length: ['327']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:18 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.0']
+ 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: ['Thu, 12 Nov 2015 20:10:18 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.0']
+ 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: ['Thu, 12 Nov 2015 20:10:18 GMT']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 200, message: OK}
+- request:
+ body: display_name=None&subscriber=fritz%40example.org&list_id=open_list.example.com&pre_verified=True&pre_confirmed=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.0']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/members
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ date: ['Thu, 12 Nov 2015 20:10:18 GMT']
+ location: ['http://localhost:9001/3.0/members/176918848718749054158695786527962010506']
+ 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/open_list@example.com/roster/member
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"5a5d7e7cc9f14c7710253617f4a68896a0119122\"",
+ "total_size": 1, "start": 0, "entries": [{"delivery_mode": "regular", "user":
+ "http://localhost:9001/3.0/users/325231961282814726929218872744044864330",
+ "address": "http://localhost:9001/3.0/addresses/fritz@example.org", "member_id":
+ 176918848718749054158695786527962010506, "role": "member", "self_link": "http://localhost:9001/3.0/members/176918848718749054158695786527962010506",
+ "email": "fritz@example.org", "list_id": "open_list.example.com", "http_etag":
+ "\"e83c58fae0ad698fc5607d095e0305b6a6d30dc1\""}]}'}
+ headers:
+ content-length: ['573']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:18 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.0']
+ 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: ['Thu, 12 Nov 2015 20:10:18 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/open_list.example.com
+ response:
+ body: {string: !!python/unicode '{"fqdn_listname": "open_list@example.com", "http_etag":
+ "\"f19d0b7ddb1b51b8c81a873365571fd6aeb6162d\"", "list_name": "open_list",
+ "volume": 1, "mail_host": "example.com", "member_count": 1, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com",
+ "display_name": "Open_list", "list_id": "open_list.example.com"}'}
+ headers:
+ content-length: ['324']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:18 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/test@example.com
+ response:
+ body: {string: !!python/unicode '{"user_id": 325231961282814726929218872744044864330,
+ "password": "$6$rounds=619959$3LEqGfcALfdvqy6f$P.Z5OerDXPrL0/RI/D3I95wLLl4KvkhE0t8ZE7qngTFd4.rsLPVnfSFoB9IYtbwChBMP8ObUJonz7kcXkjOtP0",
+ "http_etag": "\"ac5eb5e45a6eacc984d49b54d0808e4b4eb32cb5\"", "created_on":
+ "2015-11-12T20:10:17.172457", "self_link": "http://localhost:9001/3.0/users/325231961282814726929218872744044864330",
+ "is_server_owner": false}'}
+ headers:
+ content-length: ['407']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:18 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/325231961282814726929218872744044864330/addresses
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"f2fcfe57cd60091320795cd79f57ebed5f5b7bc3\"",
+ "total_size": 2, "start": 0, "entries": [{"original_email": "fritz@example.org",
+ "registered_on": "2015-11-12T20:10:18.033529", "http_etag": "\"fbf93586bb9d6d0b651f0d8aad4679d7439a1c40\"",
+ "user": "http://localhost:9001/3.0/users/325231961282814726929218872744044864330",
+ "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "email":
+ "fritz@example.org", "verified_on": "2015-11-12T20:10:18.132411"}, {"original_email":
+ "test@example.com", "registered_on": "2015-11-12T20:10:17.172098", "http_etag":
+ "\"7474628ea0cb69e947dbbdc3f11dc97ea8d0aa32\"", "user": "http://localhost:9001/3.0/users/325231961282814726929218872744044864330",
+ "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "email":
+ "test@example.com"}]}'}
+ headers:
+ content-length: ['809']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:18 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/addresses/fritz@example.org
+ response:
+ body: {string: !!python/unicode '{"original_email": "fritz@example.org", "registered_on":
+ "2015-11-12T20:10:18.033529", "http_etag": "\"fbf93586bb9d6d0b651f0d8aad4679d7439a1c40\"",
+ "user": "http://localhost:9001/3.0/users/325231961282814726929218872744044864330",
+ "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "email":
+ "fritz@example.org", "verified_on": "2015-11-12T20:10:18.132411"}'}
+ headers:
+ content-length: ['375']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:19 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/addresses/test@example.com
+ response:
+ body: {string: !!python/unicode '{"original_email": "test@example.com", "registered_on":
+ "2015-11-12T20:10:17.172098", "http_etag": "\"7474628ea0cb69e947dbbdc3f11dc97ea8d0aa32\"",
+ "user": "http://localhost:9001/3.0/users/325231961282814726929218872744044864330",
+ "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "email":
+ "test@example.com"}'}
+ headers:
+ content-length: ['327']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:19 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.0']
+ 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: ['Thu, 12 Nov 2015 20:10:19 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.0']
+ 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: ['Thu, 12 Nov 2015 20:10:19 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/open_list.example.com/member/test@example.com
+ response:
+ body: {string: !!python/unicode '{}'}
+ headers:
+ content-length: ['2']
+ content-type: [application/json]
+ date: ['Thu, 12 Nov 2015 20:10:19 GMT']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 404, message: Not Found}
+- 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/open_list.example.com/member/fritz@example.org
+ response:
+ body: {string: !!python/unicode '{"delivery_mode": "regular", "user": "http://localhost:9001/3.0/users/325231961282814726929218872744044864330",
+ "address": "http://localhost:9001/3.0/addresses/fritz@example.org", "member_id":
+ 176918848718749054158695786527962010506, "role": "member", "self_link": "http://localhost:9001/3.0/members/176918848718749054158695786527962010506",
+ "email": "fritz@example.org", "list_id": "open_list.example.com", "http_etag":
+ "\"e83c58fae0ad698fc5607d095e0305b6a6d30dc1\""}'}
+ headers:
+ content-length: ['468']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:19 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/open_list@example.com/config
+ response:
+ body: {string: !!python/unicode '{"send_welcome_message": true, "http_etag": "\"50d10a871f61539788799386cf47336b1414cf25\"",
+ "digest_size_threshold": 30.0, "bounces_address": "open_list-bounces@example.com",
+ "subject_prefix": "[Open_list] ", "welcome_message_uri": "mailman:///welcome.txt",
+ "autorespond_owner": "none", "collapse_alternatives": true, "allow_list_posts":
+ true, "description": "", "reply_goes_to_list": "no_munging", "no_reply_address":
+ "noreply@example.com", "advertised": true, "autorespond_requests": "none",
+ "leave_address": "open_list-leave@example.com", "request_address": "open_list-request@example.com",
+ "display_name": "Open_list", "filter_content": false, "web_host": "example.com",
+ "first_strip_reply_to": false, "include_rfc2369_headers": true, "autorespond_postings":
+ "none", "post_id": 1, "owner_address": "open_list-owner@example.com", "list_name":
+ "open_list", "scheme": "http", "volume": 1, "default_nonmember_action": "hold",
+ "admin_immed_notify": true, "posting_pipeline": "default-posting-pipeline",
+ "digest_last_sent_at": null, "reply_to_address": "", "default_member_action":
+ "defer", "autoresponse_request_text": "", "administrivia": true, "fqdn_listname":
+ "open_list@example.com", "subscription_policy": "open", "acceptable_aliases":
+ [], "autoresponse_owner_text": "", "join_address": "open_list-join@example.com",
+ "convert_html_to_plaintext": false, "created_at": "2015-11-12T20:10:16.629233",
+ "anonymous_list": false, "admin_notify_mchanges": false, "next_digest_number":
+ 1, "posting_address": "open_list@example.com", "autoresponse_grace_period":
+ "90d", "archive_policy": "public", "autoresponse_postings_text": "", "last_post_at":
+ null, "mail_host": "example.com"}'}
+ headers:
+ content-length: ['1674']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:19 GMT']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 200, message: OK}
+version: 1
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_unknown.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_unknown.yaml
new file mode 100644
index 0000000..f222044
--- /dev/null
+++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_unknown.yaml
@@ -0,0 +1,380 @@
+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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/open_list.example.com
+ response:
+ body: {string: !!python/unicode '{"fqdn_listname": "open_list@example.com", "http_etag":
+ "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", "list_name": "open_list",
+ "volume": 1, "mail_host": "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com",
+ "display_name": "Open_list", "list_id": "open_list.example.com"}'}
+ headers:
+ content-length: ['324']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:33 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/test@example.com
+ response:
+ body: {string: !!python/unicode '{"user_id": 239668863806269665286378136823089641863,
+ "password": "$6$rounds=639705$L0WW7Yabx5pAghXl$.Oo2fwo6kq0FAD5UgDjQPKX9t0Gwxbs0f.Hv9T4CKh9.TU3b5uo2gfpRmp8nN0U6hFPnAfFMkX05XImZlNGmF/",
+ "http_etag": "\"a9116f4f8d945aaf4e80f4e58ccf64e4a0d9da3b\"", "created_on":
+ "2015-11-12T20:10:32.150550", "self_link": "http://localhost:9001/3.0/users/239668863806269665286378136823089641863",
+ "is_server_owner": false}'}
+ headers:
+ content-length: ['407']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:33 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/239668863806269665286378136823089641863/addresses
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"5bea4f67ff5e8580e560d3dd719619d4c54a0d59\"",
+ "total_size": 2, "start": 0, "entries": [{"original_email": "fritz@example.org",
+ "registered_on": "2015-11-12T20:10:33.165289", "http_etag": "\"51c7e71303b28ae6b9f5fb0578c5fb00f62a9354\"",
+ "user": "http://localhost:9001/3.0/users/239668863806269665286378136823089641863",
+ "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "email":
+ "fritz@example.org", "verified_on": "2015-11-12T20:10:33.275349"}, {"original_email":
+ "test@example.com", "registered_on": "2015-11-12T20:10:32.150183", "http_etag":
+ "\"c5a6fd7cf09f708670abd1be1b9d012e35f4073b\"", "user": "http://localhost:9001/3.0/users/239668863806269665286378136823089641863",
+ "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "email":
+ "test@example.com"}]}'}
+ headers:
+ content-length: ['809']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:34 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/addresses/fritz@example.org
+ response:
+ body: {string: !!python/unicode '{"original_email": "fritz@example.org", "registered_on":
+ "2015-11-12T20:10:33.165289", "http_etag": "\"51c7e71303b28ae6b9f5fb0578c5fb00f62a9354\"",
+ "user": "http://localhost:9001/3.0/users/239668863806269665286378136823089641863",
+ "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "email":
+ "fritz@example.org", "verified_on": "2015-11-12T20:10:33.275349"}'}
+ headers:
+ content-length: ['375']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:34 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/addresses/test@example.com
+ response:
+ body: {string: !!python/unicode '{"original_email": "test@example.com", "registered_on":
+ "2015-11-12T20:10:32.150183", "http_etag": "\"c5a6fd7cf09f708670abd1be1b9d012e35f4073b\"",
+ "user": "http://localhost:9001/3.0/users/239668863806269665286378136823089641863",
+ "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "email":
+ "test@example.com"}'}
+ headers:
+ content-length: ['327']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:34 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.0']
+ 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: ['Thu, 12 Nov 2015 20:10:34 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.0']
+ 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: ['Thu, 12 Nov 2015 20:10:34 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/open_list@example.com/roster/member
+ 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: ['Thu, 12 Nov 2015 20:10:34 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.0']
+ 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: ['Thu, 12 Nov 2015 20:10:34 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/open_list.example.com
+ response:
+ body: {string: !!python/unicode '{"fqdn_listname": "open_list@example.com", "http_etag":
+ "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", "list_name": "open_list",
+ "volume": 1, "mail_host": "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com",
+ "display_name": "Open_list", "list_id": "open_list.example.com"}'}
+ headers:
+ content-length: ['324']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:34 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/test@example.com
+ response:
+ body: {string: !!python/unicode '{"user_id": 239668863806269665286378136823089641863,
+ "password": "$6$rounds=639705$L0WW7Yabx5pAghXl$.Oo2fwo6kq0FAD5UgDjQPKX9t0Gwxbs0f.Hv9T4CKh9.TU3b5uo2gfpRmp8nN0U6hFPnAfFMkX05XImZlNGmF/",
+ "http_etag": "\"a9116f4f8d945aaf4e80f4e58ccf64e4a0d9da3b\"", "created_on":
+ "2015-11-12T20:10:32.150550", "self_link": "http://localhost:9001/3.0/users/239668863806269665286378136823089641863",
+ "is_server_owner": false}'}
+ headers:
+ content-length: ['407']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:34 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/239668863806269665286378136823089641863/addresses
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"5bea4f67ff5e8580e560d3dd719619d4c54a0d59\"",
+ "total_size": 2, "start": 0, "entries": [{"original_email": "fritz@example.org",
+ "registered_on": "2015-11-12T20:10:33.165289", "http_etag": "\"51c7e71303b28ae6b9f5fb0578c5fb00f62a9354\"",
+ "user": "http://localhost:9001/3.0/users/239668863806269665286378136823089641863",
+ "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "email":
+ "fritz@example.org", "verified_on": "2015-11-12T20:10:33.275349"}, {"original_email":
+ "test@example.com", "registered_on": "2015-11-12T20:10:32.150183", "http_etag":
+ "\"c5a6fd7cf09f708670abd1be1b9d012e35f4073b\"", "user": "http://localhost:9001/3.0/users/239668863806269665286378136823089641863",
+ "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "email":
+ "test@example.com"}]}'}
+ headers:
+ content-length: ['809']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:34 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/addresses/fritz@example.org
+ response:
+ body: {string: !!python/unicode '{"original_email": "fritz@example.org", "registered_on":
+ "2015-11-12T20:10:33.165289", "http_etag": "\"51c7e71303b28ae6b9f5fb0578c5fb00f62a9354\"",
+ "user": "http://localhost:9001/3.0/users/239668863806269665286378136823089641863",
+ "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "email":
+ "fritz@example.org", "verified_on": "2015-11-12T20:10:33.275349"}'}
+ headers:
+ content-length: ['375']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:34 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/addresses/test@example.com
+ response:
+ body: {string: !!python/unicode '{"original_email": "test@example.com", "registered_on":
+ "2015-11-12T20:10:32.150183", "http_etag": "\"c5a6fd7cf09f708670abd1be1b9d012e35f4073b\"",
+ "user": "http://localhost:9001/3.0/users/239668863806269665286378136823089641863",
+ "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "email":
+ "test@example.com"}'}
+ headers:
+ content-length: ['327']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:34 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.0']
+ 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: ['Thu, 12 Nov 2015 20:10:34 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.0']
+ 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: ['Thu, 12 Nov 2015 20:10:34 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/open_list.example.com/member/test@example.com
+ response:
+ body: {string: !!python/unicode '{}'}
+ headers:
+ content-length: ['2']
+ content-type: [application/json]
+ date: ['Thu, 12 Nov 2015 20:10:34 GMT']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 404, message: Not Found}
+- 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/open_list.example.com/member/fritz@example.org
+ response:
+ body: {string: !!python/unicode '{}'}
+ headers:
+ content-length: ['2']
+ content-type: [application/json]
+ date: ['Thu, 12 Nov 2015 20:10:34 GMT']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 404, message: Not Found}
+- 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.0']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/open_list@example.com/config
+ response:
+ body: {string: !!python/unicode '{"send_welcome_message": true, "http_etag": "\"43e5b13610eb7c963dbbd5f3e10648f6cb063e1a\"",
+ "digest_size_threshold": 30.0, "bounces_address": "open_list-bounces@example.com",
+ "subject_prefix": "[Open_list] ", "welcome_message_uri": "mailman:///welcome.txt",
+ "autorespond_owner": "none", "collapse_alternatives": true, "allow_list_posts":
+ true, "description": "", "reply_goes_to_list": "no_munging", "no_reply_address":
+ "noreply@example.com", "advertised": true, "autorespond_requests": "none",
+ "leave_address": "open_list-leave@example.com", "request_address": "open_list-request@example.com",
+ "display_name": "Open_list", "filter_content": false, "web_host": "example.com",
+ "first_strip_reply_to": false, "include_rfc2369_headers": true, "autorespond_postings":
+ "none", "post_id": 1, "owner_address": "open_list-owner@example.com", "list_name":
+ "open_list", "scheme": "http", "volume": 1, "default_nonmember_action": "hold",
+ "admin_immed_notify": true, "posting_pipeline": "default-posting-pipeline",
+ "digest_last_sent_at": null, "reply_to_address": "", "default_member_action":
+ "defer", "autoresponse_request_text": "", "administrivia": true, "fqdn_listname":
+ "open_list@example.com", "subscription_policy": "open", "acceptable_aliases":
+ [], "autoresponse_owner_text": "", "join_address": "open_list-join@example.com",
+ "convert_html_to_plaintext": false, "created_at": "2015-11-12T20:10:31.343193",
+ "anonymous_list": false, "admin_notify_mchanges": false, "next_digest_number":
+ 1, "posting_address": "open_list@example.com", "autoresponse_grace_period":
+ "90d", "archive_policy": "public", "autoresponse_postings_text": "", "last_post_at":
+ null, "mail_host": "example.com"}'}
+ headers:
+ content-length: ['1674']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 12 Nov 2015 20:10:34 GMT']
+ server: [WSGIServer/0.2 CPython/3.4.2]
+ status: {code: 200, message: OK}
+version: 1
diff --git a/src/postorius/tests/mailman_api_tests/test_subscriptions.py b/src/postorius/tests/mailman_api_tests/test_subscriptions.py
index 99173d1..60b25a6 100644
--- a/src/postorius/tests/mailman_api_tests/test_subscriptions.py
+++ b/src/postorius/tests/mailman_api_tests/test_subscriptions.py
@@ -16,6 +16,7 @@
# Postorius. If not, see .
import logging
+from django.contrib import messages
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.test import Client, TestCase
@@ -26,6 +27,7 @@
from urllib.error import HTTPError
from postorius.tests import MM_VCR, API_CREDENTIALS
+from postorius.tests.utils import get_flash_messages
from postorius.utils import get_client
@@ -35,83 +37,115 @@
@override_settings(**API_CREDENTIALS)
-class TestSubscriptionPolicyOpen(TestCase):
- """Tests for the list members page.
-
- Tests permissions and creation of list owners and moderators.
- """
+class TestSubscription(TestCase):
+ """Tests subscription to lists"""
@MM_VCR.use_cassette('test_list_subscription.yaml')
def setUp(self):
- self.client = Client()
+ mm_client = get_client()
try:
- self.domain = get_client().create_domain('example.com')
+ self.domain = mm_client.create_domain('example.com')
except HTTPError:
- self.domain = get_client().get_domain('example.com')
- try:
- self.test_list = self.domain.create_list('open_list')
- except HTTPError:
- self.test_list = get_client().get_list('open_list.example.com')
+ self.domain = mm_client.get_domain('example.com')
+ self.open_list = self.domain.create_list('open_list')
# Set subscription policy to open
- settings = self.test_list.settings
+ settings = self.open_list.settings
settings['subscription_policy'] = 'open'
settings.save()
- self.user = User.objects.create_user(
- 'testuser', 'test@example.com', 'pwd')
-
- @MM_VCR.use_cassette('test_list_subscription.yaml')
- def tearDown(self):
- self.test_list.delete()
- self.user.delete()
-
- @MM_VCR.use_cassette('test_list_subscription.yaml')
- def test_subscribing_adds_member(self):
- # The subscription goes straight through.
- self.client.login(username='testuser', password='pwd')
- response = self.client.post(
- reverse('list_subscribe', args=('open_list.example.com', )),
- {'email': 'fritz@example.org'})
- self.assertEqual(len(self.test_list.members), 1)
- self.assertEqual(len(self.test_list.requests), 0)
-
-
-@override_settings(**API_CREDENTIALS)
-class TestSubscriptionPolicyModerate(TestCase):
- """Tests for the list members page.
-
- Tests permissions and creation of list owners and moderators.
- """
-
- @MM_VCR.use_cassette('test_list_subscription_moderate.yaml')
- def setUp(self):
- self.client = Client()
- try:
- self.domain = get_client().create_domain('example.com')
- except HTTPError:
- self.domain = get_client().get_domain('example.com')
- try:
- self.test_list = self.domain.create_list('moderate_subs')
- except HTTPError:
- self.test_list = get_client().get_list('moderate_subs.example.com')
- # Set subscription policy to open
- settings = self.test_list.settings
+ self.mod_list = self.domain.create_list('moderate_subs')
+ # Set subscription policy to moderate
+ settings = self.mod_list.settings
settings['subscription_policy'] = 'moderate'
settings.save()
# Create django user.
self.user = User.objects.create_user(
'testuser', 'test@example.com', 'pwd')
+ # Create Mailman user
+ self.mm_user = get_client().create_user('test@example.com', '')
+ self.mm_user.add_address('fritz@example.org').verify()
- @MM_VCR.use_cassette('test_list_subscription_moderate.yaml')
+ @MM_VCR.use_cassette('test_list_subscription.yaml')
def tearDown(self):
- self.test_list.delete()
- self.user.delete()
+ # Delete all subscription requests
+ for req in self.open_list.requests:
+ self.open_list.moderate_request(req['token'], 'discard')
+ for req in self.mod_list.requests:
+ self.mod_list.moderate_request(req['token'], 'discard')
+ self.open_list.delete()
+ self.mod_list.delete()
+ self.mm_user.delete()
- @MM_VCR.use_cassette('test_list_subscription_moderate.yaml')
- def test_subscribing_adds_member(self):
+ @MM_VCR.use_cassette('test_list_subscription_open_primary.yaml')
+ def test_subscribe_open(self):
+ # The subscription goes straight through.
+ self.client.login(username='testuser', password='pwd')
+ response = self.client.post(
+ reverse('list_subscribe', args=('open_list.example.com', )),
+ {'email': 'test@example.com'})
+ self.assertEqual(len(self.open_list.members), 1)
+ self.assertEqual(len(self.open_list.requests), 0)
+ self.assertRedirects(response,
+ reverse('list_summary', args=('open_list.example.com', )))
+ msgs = get_flash_messages(response)
+ self.assertEqual(len(msgs), 1)
+ self.assertEqual(msgs[0].level, messages.SUCCESS, msgs[0].message)
+
+ @MM_VCR.use_cassette('test_list_subscription_open_secondary.yaml')
+ def test_secondary_open(self):
+ # Subscribe with a secondary email address
+ self.client.login(username='testuser', password='pwd')
+ response = self.client.post(
+ reverse('list_subscribe', args=('open_list.example.com', )),
+ {'email': 'fritz@example.org'})
+ self.assertEqual(len(self.open_list.members), 1)
+ self.assertEqual(len(self.open_list.requests), 0)
+ self.assertRedirects(response,
+ reverse('list_summary', args=('open_list.example.com', )))
+ msgs = get_flash_messages(response)
+ self.assertEqual(len(msgs), 1)
+ self.assertEqual(msgs[0].level, messages.SUCCESS, msgs[0].message)
+
+ @MM_VCR.use_cassette('test_list_subscription_unknown.yaml')
+ def test_unknown_address(self):
+ # Impossible to register with an unknown address
+ self.client.login(username='testuser', password='pwd')
+ response = self.client.post(
+ reverse('list_subscribe', args=('open_list.example.com', )),
+ {'email': 'unknown@example.org'})
+ self.assertEqual(len(self.open_list.members), 0)
+ self.assertEqual(len(self.open_list.requests), 0)
+ self.assertRedirects(response,
+ reverse('list_summary', args=('open_list.example.com', )))
+ msgs = get_flash_messages(response)
+ self.assertEqual(len(msgs), 1)
+ self.assertEqual(msgs[0].level, messages.ERROR, msgs[0].message)
+
+ @MM_VCR.use_cassette('test_list_subscription_mod_primary.yaml')
+ def test_subscribe_mod(self):
# The subscription is held for approval.
self.client.login(username='testuser', password='pwd')
response = self.client.post(
reverse('list_subscribe', args=('moderate_subs.example.com', )),
+ {'email': 'test@example.com'})
+ self.assertEqual(len(self.mod_list.members), 0)
+ self.assertEqual(len(self.mod_list.requests), 1)
+ self.assertRedirects(response,
+ reverse('list_summary', args=('moderate_subs.example.com', )))
+ msgs = get_flash_messages(response)
+ self.assertEqual(len(msgs), 1)
+ self.assertEqual(msgs[0].level, messages.SUCCESS, msgs[0].message)
+
+ @MM_VCR.use_cassette('test_list_subscription_mod_secondary.yaml')
+ def test_secondary_mod(self):
+ # Subscribe with a secondary email address
+ self.client.login(username='testuser', password='pwd')
+ response = self.client.post(
+ reverse('list_subscribe', args=('moderate_subs.example.com', )),
{'email': 'fritz@example.org'})
- self.assertEqual(len(self.test_list.members), 0)
- self.assertEqual(len(self.test_list.requests), 1)
+ self.assertEqual(len(self.mod_list.members), 0)
+ self.assertEqual(len(self.mod_list.requests), 1)
+ self.assertRedirects(response,
+ reverse('list_summary', args=('moderate_subs.example.com', )))
+ msgs = get_flash_messages(response)
+ self.assertEqual(len(msgs), 1)
+ self.assertEqual(msgs[0].level, messages.SUCCESS, msgs[0].message)
diff --git a/src/postorius/tests/utils.py b/src/postorius/tests/utils.py
index c053ac1..c23e59d 100644
--- a/src/postorius/tests/utils.py
+++ b/src/postorius/tests/utils.py
@@ -15,6 +15,8 @@
# You should have received a copy of the GNU General Public License along with
# Postorius. If not, see .
+from django.test import RequestFactory
+from django.contrib.messages.storage.cookie import CookieStorage
from mock import patch, MagicMock
@@ -72,3 +74,12 @@
for key in properties:
setattr(mock_object, key, properties[key])
return mock_object
+
+
+def get_flash_messages(response):
+ if "messages" not in response.cookies:
+ return []
+ dummy_request = RequestFactory().get("/")
+ dummy_request.COOKIES["messages"] = response.cookies["messages"].value
+ return list(CookieStorage(dummy_request))
+get_flash_messages.__test__ = False
diff --git a/src/postorius/views/list.py b/src/postorius/views/list.py
index b94d4e6..b564143 100644
--- a/src/postorius/views/list.py
+++ b/src/postorius/views/list.py
@@ -257,8 +257,6 @@
"""
try:
user_addresses = [request.user.email] + request.user.other_emails
- if not user_addresses:
- user_addresses = [request.POST.get('email')]
form = ListSubscribe(user_addresses, request.POST)
if form.is_valid():
email = request.POST.get('email')