diff --git a/src/postorius/tests/fixtures/vcr_cassettes/archival_options.yaml b/src/postorius/tests/fixtures/vcr_cassettes/archival_options.yaml index 14ef4b5..0acf7b8 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/archival_options.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/archival_options.yaml @@ -3,9 +3,7 @@ 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: @@ -13,132 +11,104 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:22 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"}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/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 '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:22 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: fqdn_listname=test_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: ['Wed, 11 Nov 2015 12:49:22 GMT'] location: ['http://localhost:9001/3.0/lists/test_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/test_list.example.com response: - body: {string: !!python/unicode '{"display_name": "Test_list", "list_id": "test_list.example.com", - "list_name": "test_list", "fqdn_listname": "test_list@example.com", "http_etag": - "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/test_list.example.com", "mail_host": "example.com", + body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": + "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", + "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", "volume": 1}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/test_list.example.com/archivers response: - body: {string: !!python/unicode '{"mhonarc": true, "prototype": false, "http_etag": - "\"dfd159ec866aff2f484eb6399b59057ba112d3e5\"", "mail-archive": true}'} + body: {string: !!python/unicode '{"http_etag": "\"dfd159ec866aff2f484eb6399b59057ba112d3e5\"", + "mail-archive": true, "mhonarc": true, "prototype": false}'} headers: content-length: ['120'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/test_list.example.com response: - body: {string: !!python/unicode '{"display_name": "Test_list", "list_id": "test_list.example.com", - "list_name": "test_list", "fqdn_listname": "test_list@example.com", "http_etag": - "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/test_list.example.com", "mail_host": "example.com", + body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": + "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", + "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", "volume": 1}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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 'DELETE' uri: http://localhost:9001/3.0/lists/test_list@example.com response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:23 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/list_members_access.yaml b/src/postorius/tests/fixtures/vcr_cassettes/list_members_access.yaml index f1ed5e2..a98869c 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/list_members_access.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/list_members_access.yaml @@ -3,9 +3,7 @@ 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: @@ -13,137 +11,107 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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 '{"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 '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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 '{"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 '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:25 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.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:26 GMT'] location: ['http://localhost:9001/3.0/lists/foo.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/foo.example.com response: - body: {string: !!python/unicode '{"display_name": "Foo", "list_id": "foo.example.com", - "list_name": "foo", "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", - "mail_host": "example.com", "volume": 1}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:26 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: role=owner&list_id=foo.example.com&subscriber=owner%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 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:26 GMT'] - location: ['http://localhost:9001/3.0/members/261891266690910004584167411574025850636'] - server: [WSGIServer/0.2 CPython/3.4.2] + location: ['http://localhost:9001/3.0/members/3'] status: {code: 201, message: Created} - request: body: role=moderator&list_id=foo.example.com&subscriber=moderator%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 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:26 GMT'] - location: ['http://localhost:9001/3.0/members/305755491444895031508414095172846809552'] - server: [WSGIServer/0.2 CPython/3.4.2] + location: ['http://localhost:9001/3.0/members/4'] 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 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:27 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: @@ -151,137 +119,107 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:27 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"}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:27 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"}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:27 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.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:27 GMT'] location: ['http://localhost:9001/3.0/lists/foo.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/foo.example.com response: - body: {string: !!python/unicode '{"display_name": "Foo", "list_id": "foo.example.com", - "list_name": "foo", "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", - "mail_host": "example.com", "volume": 1}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:27 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: role=owner&list_id=foo.example.com&subscriber=owner%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 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:27 GMT'] - location: ['http://localhost:9001/3.0/members/243692671647427957757469737170312906392'] - server: [WSGIServer/0.2 CPython/3.4.2] + location: ['http://localhost:9001/3.0/members/5'] status: {code: 201, message: Created} - request: body: role=moderator&list_id=foo.example.com&subscriber=moderator%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 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:27 GMT'] - location: ['http://localhost:9001/3.0/members/49325264141990102049644294991423387451'] - server: [WSGIServer/0.2 CPython/3.4.2] + location: ['http://localhost:9001/3.0/members/6'] 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 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:28 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: @@ -289,137 +227,107 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:28 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"}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/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 '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:28 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.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:29 GMT'] location: ['http://localhost:9001/3.0/lists/foo.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/foo.example.com response: - body: {string: !!python/unicode '{"display_name": "Foo", "list_id": "foo.example.com", - "list_name": "foo", "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", - "mail_host": "example.com", "volume": 1}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:29 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: role=owner&list_id=foo.example.com&subscriber=owner%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 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:29 GMT'] - location: ['http://localhost:9001/3.0/members/15130748568807809724288298666046815183'] - server: [WSGIServer/0.2 CPython/3.4.2] + location: ['http://localhost:9001/3.0/members/7'] status: {code: 201, message: Created} - request: body: role=moderator&list_id=foo.example.com&subscriber=moderator%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 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:29 GMT'] - location: ['http://localhost:9001/3.0/members/277680314256673347159012716206769449394'] - server: [WSGIServer/0.2 CPython/3.4.2] + location: ['http://localhost:9001/3.0/members/8'] 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 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49: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: @@ -427,157 +335,110 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:30 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"}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:30 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.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"}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:30 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.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:30 GMT'] location: ['http://localhost:9001/3.0/lists/foo.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/foo.example.com response: - body: {string: !!python/unicode '{"display_name": "Foo", "list_id": "foo.example.com", - "list_name": "foo", "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", - "mail_host": "example.com", "volume": 1}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:31 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: role=owner&list_id=foo.example.com&subscriber=owner%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 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:31 GMT'] - location: ['http://localhost:9001/3.0/members/159620023615929456754306653256797611603'] - server: [WSGIServer/0.2 CPython/3.4.2] + location: ['http://localhost:9001/3.0/members/9'] status: {code: 201, message: Created} - request: body: role=moderator&list_id=foo.example.com&subscriber=moderator%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 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:31 GMT'] - location: ['http://localhost:9001/3.0/members/67198668730917426003855501650901311247'] - server: [WSGIServer/0.2 CPython/3.4.2] + location: ['http://localhost:9001/3.0/members/10'] 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/foo@example.com response: - body: {string: !!python/unicode '{"display_name": "Foo", "list_id": "foo.example.com", - "list_name": "foo", "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", - "mail_host": "example.com", "volume": 1}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/foo@example.com/roster/member?count=25&page=1 - 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: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/users/test@example.com response: @@ -585,116 +446,57 @@ headers: content-length: ['13'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 08:52: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/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"self_link": "http://localhost:9001/3.0/members/159620023615929456754306653256797611603", - "user": "http://localhost:9001/3.0/users/94218210250211962065145319561376051884", - "http_etag": "\"208316a2c81a60bc8729982e4296e3faf5a73625\"", "list_id": "foo.example.com", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "role": - "owner", "member_id": 159620023615929456754306653256797611603, "delivery_mode": - "regular", "email": "owner@example.com"}], "http_etag": "\"b9d5581015ee3a6a62d5a44b9f50829408a7301c\"", - "total_size": 1, "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"59d5e8296eb69536fce594ae50bfd1665a5ddf5b\"", + "list_id": "foo.example.com", "member_id": 9, "role": "owner", "self_link": + "http://localhost:9001/3.0/members/9", "user": "http://localhost:9001/3.0/users/3"}], + "http_etag": "\"8f28e897cbe50c5a4cc72ed33dbf5c42633a0a75\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['564'] + content-length: ['452'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"entries": [{"self_link": "http://localhost:9001/3.0/members/67198668730917426003855501650901311247", - "user": "http://localhost:9001/3.0/users/94704940159445895320083756410847799181", - "http_etag": "\"99f62c6786aae4b478ac252147020eb87f3629dc\"", "list_id": "foo.example.com", - "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "role": - "moderator", "member_id": 67198668730917426003855501650901311247, "delivery_mode": - "regular", "email": "moderator@example.com"}], "http_etag": "\"bbfb95f8d60ec793b388b68601c62b3408adbe95\"", - "total_size": 1, "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"ceeeb15a5f8a6006ddf4e41e59b4ba3db184dde2\"", "list_id": "foo.example.com", + "member_id": 10, "role": "moderator", "self_link": "http://localhost:9001/3.0/members/10", + "user": "http://localhost:9001/3.0/users/4"}], "http_etag": "\"f52eca4135786bd79c2f8a533b8ca0e17253eaef\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['575'] + content-length: ['466'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/foo@example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "list_id": "foo.example.com", - "list_name": "foo", "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", - "mail_host": "example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/foo.example.com/roster/owner - response: - body: {string: !!python/unicode '{"entries": [{"self_link": "http://localhost:9001/3.0/members/159620023615929456754306653256797611603", - "user": "http://localhost:9001/3.0/users/94218210250211962065145319561376051884", - "http_etag": "\"208316a2c81a60bc8729982e4296e3faf5a73625\"", "list_id": "foo.example.com", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "role": - "owner", "member_id": 159620023615929456754306653256797611603, "delivery_mode": - "regular", "email": "owner@example.com"}], "http_etag": "\"b9d5581015ee3a6a62d5a44b9f50829408a7301c\"", - "total_size": 1, "start": 0}'} - headers: - content-length: ['564'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:32 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/foo@example.com response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:32 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: @@ -702,164 +504,115 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:33 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"}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/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 '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:33 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.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:33 GMT'] location: ['http://localhost:9001/3.0/lists/foo.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/foo.example.com response: - body: {string: !!python/unicode '{"display_name": "Foo", "list_id": "foo.example.com", - "list_name": "foo", "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", - "mail_host": "example.com", "volume": 1}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:33 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: role=owner&list_id=foo.example.com&subscriber=owner%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 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:33 GMT'] - location: ['http://localhost:9001/3.0/members/84833630427549158117516308730546854826'] - server: [WSGIServer/0.2 CPython/3.4.2] + location: ['http://localhost:9001/3.0/members/11'] status: {code: 201, message: Created} - request: body: role=moderator&list_id=foo.example.com&subscriber=moderator%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 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:33 GMT'] - location: ['http://localhost:9001/3.0/members/55558396932485102672109115665297718619'] - server: [WSGIServer/0.2 CPython/3.4.2] + location: ['http://localhost:9001/3.0/members/12'] 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/foo@example.com response: - body: {string: !!python/unicode '{"display_name": "Foo", "list_id": "foo.example.com", - "list_name": "foo", "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", - "mail_host": "example.com", "volume": 1}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/foo@example.com/roster/member?count=25&page=1 - 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: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 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com 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} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/list_members_page.yaml b/src/postorius/tests/fixtures/vcr_cassettes/list_members_page.yaml index b02d46c..ba10623 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/list_members_page.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/list_members_page.yaml @@ -3,487 +3,270 @@ 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/foo@example.com response: - body: {string: !!python/unicode '{"display_name": "Foo", "list_id": "foo.example.com", - "list_name": "foo", "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", - "mail_host": "example.com", "volume": 1}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/foo@example.com/roster/member?count=1&page=1 - 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: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/users/moderator@example.com response: - body: {string: !!python/unicode '{"http_etag": "\"eb9cd59b8fb9ea633982ab974670ec1be0402607\"", - "self_link": "http://localhost:9001/3.0/users/94704940159445895320083756410847799181", - "is_server_owner": false, "user_id": 94704940159445895320083756410847799181, - "created_on": "2015-11-11T08:52:08.898514"}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"c1dcbf16536eb2e2151441f4bce2989ab1dab30b\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/4", "user_id": 4}'} headers: - content-length: ['269'] + content-length: ['188'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 08:52:09 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/94704940159445895320083756410847799181 + uri: http://localhost:9001/3.0/users/4/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"eb9cd59b8fb9ea633982ab974670ec1be0402607\"", - "self_link": "http://localhost:9001/3.0/users/94704940159445895320083756410847799181", - "is_server_owner": false, "user_id": 94704940159445895320083756410847799181, - "created_on": "2015-11-11T08:52:08.898514"}'} + body: {string: !!python/unicode '{"entries": [{"email": "moderator@example.com", + "http_etag": "\"ba611cc4c3b0e81985dd5c0a30f4d1982655080d\"", "original_email": + "moderator@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": + "http://localhost:9001/3.0/addresses/moderator@example.com", "user": "http://localhost:9001/3.0/users/4"}], + "http_etag": "\"e2bc3f4fb43fd53e3a100811566a55c726b03899\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['269'] + content-length: ['402'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 08:52:09 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/94704940159445895320083756410847799181/addresses - response: - body: {string: !!python/unicode '{"total_size": 1, "entries": [{"original_email": - "moderator@example.com", "user": "http://localhost:9001/3.0/users/94704940159445895320083756410847799181", - "http_etag": "\"9a96cbe5ba5df8c76cb87cbc948d261d02565192\"", "self_link": - "http://localhost:9001/3.0/addresses/moderator@example.com", "registered_on": - "2015-11-11T08:52:08.869116", "email": "moderator@example.com"}], "http_etag": - "\"a86a44aaf86663deff50f2972891636e82db9ecd\"", "start": 0}'} - headers: - content-length: ['446'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 08:52:09 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/moderator@example.com response: - body: {string: !!python/unicode '{"original_email": "moderator@example.com", "user": - "http://localhost:9001/3.0/users/94704940159445895320083756410847799181", - "http_etag": "\"9a96cbe5ba5df8c76cb87cbc948d261d02565192\"", "self_link": - "http://localhost:9001/3.0/addresses/moderator@example.com", "registered_on": - "2015-11-11T08:52:08.869116", "email": "moderator@example.com"}'} + body: {string: !!python/unicode '{"email": "moderator@example.com", "http_etag": + "\"ba611cc4c3b0e81985dd5c0a30f4d1982655080d\"", "original_email": "moderator@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/moderator@example.com", + "user": "http://localhost:9001/3.0/users/4"}'} headers: - content-length: ['341'] + content-length: ['297'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 08:52:09 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/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"total_size": 1, "entries": [{"member_id": 261891266690910004584167411574025850636, - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "list_id": - "foo.example.com", "http_etag": "\"ce0fdcf05dd4930cee008fe8157bbf59643748a6\"", - "user": "http://localhost:9001/3.0/users/94218210250211962065145319561376051884", - "email": "owner@example.com", "role": "owner", "self_link": "http://localhost:9001/3.0/members/261891266690910004584167411574025850636", - "delivery_mode": "regular"}], "http_etag": "\"e1588957a20c78be1fcd3fd6235890ed1dab4e37\"", - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"f6d2dffce29565ab02ba58a26b9c649089723455\"", + "list_id": "foo.example.com", "member_id": 3, "role": "owner", "self_link": + "http://localhost:9001/3.0/members/3", "user": "http://localhost:9001/3.0/users/3"}], + "http_etag": "\"05d3104622b0b3cd967b0fa7061ec2d0d52d7705\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['564'] + content-length: ['452'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 08:52:09 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/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"entries": [{"self_link": "http://localhost:9001/3.0/members/305755491444895031508414095172846809552", - "user": "http://localhost:9001/3.0/users/94704940159445895320083756410847799181", - "http_etag": "\"e673064484c25a8ba3b0090ecae57e7f4857ea94\"", "list_id": "foo.example.com", - "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "role": - "moderator", "member_id": 305755491444895031508414095172846809552, "delivery_mode": - "regular", "email": "moderator@example.com"}], "http_etag": "\"23b9a31bec73559d919d5ee5e5dd374c9aae44c5\"", - "total_size": 1, "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"e69aaaa35af65b808b239d8ccaaeff77d8862340\"", "list_id": "foo.example.com", + "member_id": 4, "role": "moderator", "self_link": "http://localhost:9001/3.0/members/4", + "user": "http://localhost:9001/3.0/users/4"}], "http_etag": "\"cd19b172cbfcb5674e685edaca042533f728dfae\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['577'] + content-length: ['464'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/foo@example.com response: - body: {string: !!python/unicode '{"display_name": "Foo", "list_id": "foo.example.com", - "list_name": "foo", "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", - "mail_host": "example.com", "volume": 1}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/foo.example.com/roster/owner - response: - body: {string: !!python/unicode '{"entries": [{"self_link": "http://localhost:9001/3.0/members/261891266690910004584167411574025850636", - "user": "http://localhost:9001/3.0/users/94218210250211962065145319561376051884", - "http_etag": "\"92d38feca8af044bc45d2b8f68d3e37ed4431cc8\"", "list_id": "foo.example.com", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "role": - "owner", "member_id": 261891266690910004584167411574025850636, "delivery_mode": - "regular", "email": "owner@example.com"}], "http_etag": "\"9183ae6d24ff423877969f8a2470de8d81948d92\"", - "total_size": 1, "start": 0}'} - headers: - content-length: ['565'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/foo@example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "list_id": "foo.example.com", - "list_name": "foo", "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", - "mail_host": "example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/foo@example.com/roster/member?count=25&page=1 - response: - body: {string: !!python/unicode '{"total_size": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 08:52:10 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/owner@example.com response: - body: {string: !!python/unicode '{"http_etag": "\"8592c09f671a685907e05a62a28bb0096fa9d998\"", - "self_link": "http://localhost:9001/3.0/users/94218210250211962065145319561376051884", - "is_server_owner": false, "user_id": 94218210250211962065145319561376051884, - "created_on": "2015-11-11T08:52:08.703105"}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"bb1c2e6094a96b17e2d5dbf487291f7667f69f75\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/3", "user_id": 3}'} headers: - content-length: ['267'] + content-length: ['188'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 08:52:10 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/94218210250211962065145319561376051884 + uri: http://localhost:9001/3.0/users/3/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"8592c09f671a685907e05a62a28bb0096fa9d998\"", - "self_link": "http://localhost:9001/3.0/users/94218210250211962065145319561376051884", - "is_server_owner": false, "user_id": 94218210250211962065145319561376051884, - "created_on": "2015-11-11T08:52:08.703105"}'} + body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": + "\"9b7e4ba7721338ab16619f69a74fdf6b7921c289\"", "original_email": "owner@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/owner@example.com", + "user": "http://localhost:9001/3.0/users/3"}], "http_etag": "\"b217d5409fbf8befcb8c31825a74e70470e5f5a2\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['267'] + content-length: ['390'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 08:52:10 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/94218210250211962065145319561376051884/addresses - response: - body: {string: !!python/unicode '{"total_size": 1, "entries": [{"original_email": - "owner@example.com", "user": "http://localhost:9001/3.0/users/94218210250211962065145319561376051884", - "http_etag": "\"b5f13df8b7fd88ff94dc60ab2e400c113e630769\"", "self_link": - "http://localhost:9001/3.0/addresses/owner@example.com", "registered_on": - "2015-11-11T08:52:08.674385", "email": "owner@example.com"}], "http_etag": - "\"9e11e7259297a9dd08c71e3e984ccb5f23524673\"", "start": 0}'} - headers: - content-length: ['433'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 08:52:10 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/owner@example.com response: - body: {string: !!python/unicode '{"original_email": "owner@example.com", "user": - "http://localhost:9001/3.0/users/94218210250211962065145319561376051884", "http_etag": - "\"b5f13df8b7fd88ff94dc60ab2e400c113e630769\"", "self_link": "http://localhost:9001/3.0/addresses/owner@example.com", - "registered_on": "2015-11-11T08:52:08.674385", "email": "owner@example.com"}'} + body: {string: !!python/unicode '{"email": "owner@example.com", "http_etag": "\"9b7e4ba7721338ab16619f69a74fdf6b7921c289\"", + "original_email": "owner@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/owner@example.com", "user": + "http://localhost:9001/3.0/users/3"}'} headers: - content-length: ['328'] + content-length: ['285'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 08:52:10 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/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"self_link": "http://localhost:9001/3.0/members/243692671647427957757469737170312906392", - "user": "http://localhost:9001/3.0/users/94218210250211962065145319561376051884", - "http_etag": "\"097e12bccf366f270ae1b43cf90d0dbd7dce0c37\"", "list_id": "foo.example.com", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "role": - "owner", "member_id": 243692671647427957757469737170312906392, "delivery_mode": - "regular", "email": "owner@example.com"}], "http_etag": "\"eba25410a73cc958782c9a966179e3f6cabe6ecd\"", - "total_size": 1, "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"1786fc718a465f2377ceb5cbba78c32b2635ec58\"", + "list_id": "foo.example.com", "member_id": 5, "role": "owner", "self_link": + "http://localhost:9001/3.0/members/5", "user": "http://localhost:9001/3.0/users/3"}], + "http_etag": "\"8c621bcf03467c9ac2bbac2d8fc7c0f0e1fa3815\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['565'] + content-length: ['452'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"entries": [{"self_link": "http://localhost:9001/3.0/members/49325264141990102049644294991423387451", - "user": "http://localhost:9001/3.0/users/94704940159445895320083756410847799181", - "http_etag": "\"96568a90718953b06e55c1a000928d3dd4d516cb\"", "list_id": "foo.example.com", - "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "role": - "moderator", "member_id": 49325264141990102049644294991423387451, "delivery_mode": - "regular", "email": "moderator@example.com"}], "http_etag": "\"95b0588f79f9e9188d0cdbdc02337ff54ab19dd2\"", - "total_size": 1, "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"d925ce139c90b7f55886909ecdd2923ffbc46033\"", "list_id": "foo.example.com", + "member_id": 6, "role": "moderator", "self_link": "http://localhost:9001/3.0/members/6", + "user": "http://localhost:9001/3.0/users/4"}], "http_etag": "\"26e954439f2dc9045d5584731b2f00abb9fab07f\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['575'] + content-length: ['464'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/foo@example.com - response: - body: {string: !!python/unicode '{"list_id": "foo.example.com", "mail_host": "example.com", - "volume": 1, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", - "display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "fqdn_listname": "foo@example.com", "member_count": 0, "list_name": "foo"}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 08:52:10 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/foo.example.com/roster/owner - response: - body: {string: !!python/unicode '{"total_size": 1, "entries": [{"member_id": 243692671647427957757469737170312906392, - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "list_id": - "foo.example.com", "http_etag": "\"b2ed02fece44ad60e9b7c12ff65a29c8f38c1d6c\"", - "user": "http://localhost:9001/3.0/users/94218210250211962065145319561376051884", - "email": "owner@example.com", "role": "owner", "self_link": "http://localhost:9001/3.0/members/243692671647427957757469737170312906392", - "delivery_mode": "regular"}], "http_etag": "\"e51be9822b60b0bd96ccbfd420bd8ab90a0474f3\"", - "start": 0}'} - headers: - content-length: ['564'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 08:52:10 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/foo.example.com/roster/owner - response: - body: {string: !!python/unicode '{"entries": [{"self_link": "http://localhost:9001/3.0/members/243692671647427957757469737170312906392", - "user": "http://localhost:9001/3.0/users/94218210250211962065145319561376051884", - "http_etag": "\"097e12bccf366f270ae1b43cf90d0dbd7dce0c37\"", "list_id": "foo.example.com", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "role": - "owner", "member_id": 243692671647427957757469737170312906392, "delivery_mode": - "regular", "email": "owner@example.com"}], "http_etag": "\"eba25410a73cc958782c9a966179e3f6cabe6ecd\"", - "total_size": 1, "start": 0}'} - headers: - content-length: ['565'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/foo.example.com/roster/moderator - response: - body: {string: !!python/unicode '{"entries": [{"self_link": "http://localhost:9001/3.0/members/49325264141990102049644294991423387451", - "user": "http://localhost:9001/3.0/users/94704940159445895320083756410847799181", - "http_etag": "\"96568a90718953b06e55c1a000928d3dd4d516cb\"", "list_id": "foo.example.com", - "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "role": - "moderator", "member_id": 49325264141990102049644294991423387451, "delivery_mode": - "regular", "email": "moderator@example.com"}], "http_etag": "\"95b0588f79f9e9188d0cdbdc02337ff54ab19dd2\"", - "total_size": 1, "start": 0}'} - headers: - content-length: ['575'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/foo@example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "list_id": "foo.example.com", - "list_name": "foo", "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", - "mail_host": "example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/foo@example.com/roster/member?count=1&page=1 response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/foo@example.com/roster/member?count=25&page=1 + response: + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"1786fc718a465f2377ceb5cbba78c32b2635ec58\"", + "list_id": "foo.example.com", "member_id": 5, "role": "owner", "self_link": + "http://localhost:9001/3.0/members/5", "user": "http://localhost:9001/3.0/users/3"}], + "http_etag": "\"8c621bcf03467c9ac2bbac2d8fc7c0f0e1fa3815\"", "start": 0, "total_size": + 1}'} + headers: + content-length: ['452'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"d925ce139c90b7f55886909ecdd2923ffbc46033\"", "list_id": "foo.example.com", + "member_id": 6, "role": "moderator", "self_link": "http://localhost:9001/3.0/members/6", + "user": "http://localhost:9001/3.0/users/4"}], "http_etag": "\"26e954439f2dc9045d5584731b2f00abb9fab07f\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['464'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users/su@example.com response: @@ -491,95 +274,99 @@ headers: content-length: ['13'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 08:52:12 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/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"self_link": "http://localhost:9001/3.0/members/15130748568807809724288298666046815183", - "user": "http://localhost:9001/3.0/users/94218210250211962065145319561376051884", - "http_etag": "\"0cc8f02c0f5f8dbf94cf3d7718f7e90a45486e98\"", "list_id": "foo.example.com", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "role": - "owner", "member_id": 15130748568807809724288298666046815183, "delivery_mode": - "regular", "email": "owner@example.com"}], "http_etag": "\"080460738249f288714aeb7823f72d9d7559c719\"", - "total_size": 1, "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"c0b03e505d3d6d96c2c01834e83180c13abefadc\"", + "list_id": "foo.example.com", "member_id": 7, "role": "owner", "self_link": + "http://localhost:9001/3.0/members/7", "user": "http://localhost:9001/3.0/users/3"}], + "http_etag": "\"f8b2068bb17c42b3e9544a6fb79e0adf29b93190\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['563'] + content-length: ['452'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"entries": [{"self_link": "http://localhost:9001/3.0/members/277680314256673347159012716206769449394", - "user": "http://localhost:9001/3.0/users/94704940159445895320083756410847799181", - "http_etag": "\"4c39cae99ba557c87987f32e1e201311fdd740ca\"", "list_id": "foo.example.com", - "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "role": - "moderator", "member_id": 277680314256673347159012716206769449394, "delivery_mode": - "regular", "email": "moderator@example.com"}], "http_etag": "\"cb5335b11dfe8da48ac4c1a705fc15394fe15233\"", - "total_size": 1, "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"dc9d6af9c1b062fb008b046269953e387d3cfd0f\"", "list_id": "foo.example.com", + "member_id": 8, "role": "moderator", "self_link": "http://localhost:9001/3.0/members/8", + "user": "http://localhost:9001/3.0/users/4"}], "http_etag": "\"ac4902a25fc1d51f844f1c5844e20c5ab4986294\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['577'] + content-length: ['464'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/foo@example.com/roster/member?count=1&page=1 + response: + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=25&page=1 + response: + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"self_link": "http://localhost:9001/3.0/members/15130748568807809724288298666046815183", - "user": "http://localhost:9001/3.0/users/94218210250211962065145319561376051884", - "http_etag": "\"0cc8f02c0f5f8dbf94cf3d7718f7e90a45486e98\"", "list_id": "foo.example.com", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "role": - "owner", "member_id": 15130748568807809724288298666046815183, "delivery_mode": - "regular", "email": "owner@example.com"}], "http_etag": "\"080460738249f288714aeb7823f72d9d7559c719\"", - "total_size": 1, "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"c0b03e505d3d6d96c2c01834e83180c13abefadc\"", + "list_id": "foo.example.com", "member_id": 7, "role": "owner", "self_link": + "http://localhost:9001/3.0/members/7", "user": "http://localhost:9001/3.0/users/3"}], + "http_etag": "\"f8b2068bb17c42b3e9544a6fb79e0adf29b93190\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['563'] + content-length: ['452'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"entries": [{"self_link": "http://localhost:9001/3.0/members/277680314256673347159012716206769449394", - "user": "http://localhost:9001/3.0/users/94704940159445895320083756410847799181", - "http_etag": "\"4c39cae99ba557c87987f32e1e201311fdd740ca\"", "list_id": "foo.example.com", - "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "role": - "moderator", "member_id": 277680314256673347159012716206769449394, "delivery_mode": - "regular", "email": "moderator@example.com"}], "http_etag": "\"cb5335b11dfe8da48ac4c1a705fc15394fe15233\"", - "total_size": 1, "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"dc9d6af9c1b062fb008b046269953e387d3cfd0f\"", "list_id": "foo.example.com", + "member_id": 8, "role": "moderator", "self_link": "http://localhost:9001/3.0/members/8", + "user": "http://localhost:9001/3.0/users/4"}], "http_etag": "\"ac4902a25fc1d51f844f1c5844e20c5ab4986294\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['577'] + content-length: ['464'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:30 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_change_subscription-2.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_change_subscription-2.yaml index b9149ba..7e34ae9 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_change_subscription-2.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_change_subscription-2.yaml @@ -3,251 +3,178 @@ 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/foo@example.com response: - body: {string: !!python/unicode '{"display_name": "Foo", "list_id": "foo.example.com", - "list_name": "foo", "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", - "mail_host": "example.com", "volume": 1}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:46 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=foo.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": "\"a622058d6b817477cab814a144628de6f6c8bdeb\"", - "token": "6b3835e5e3f1d7928da3f785dce00b966d8e230d", "token_owner": "subscriber"}'} + body: {string: !!python/unicode '{"http_etag": "\"303797ed3a8ac42974b07de6044c1a1368ca2c4f\"", + "token": "084f92b292bd4d5eff20dc24692685852ca66bf2", "token_owner": "subscriber"}'} headers: content-length: ['143'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:46 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/users/test@example.com response: - body: {string: !!python/unicode '{"http_etag": "\"37b41a08d3ada12388d91b9b9bc153f05b3ff730\"", - "is_server_owner": false, "user_id": 175101733981884185786040725666736952966, - "display_name": "None", "self_link": "http://localhost:9001/3.0/users/175101733981884185786040725666736952966", - "created_on": "2015-11-11T12:49:46.231219"}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "display_name": + "None", "http_etag": "\"0b279530a26f451f002e7274f6182ec4f7b10218\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/15", "user_id": 15}'} headers: - content-length: ['295'] + content-length: ['214'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:46 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: email=anotheremail%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/175101733981884185786040725666736952966/addresses + uri: http://localhost:9001/3.0/users/15/addresses response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:46 GMT'] location: ['http://localhost:9001/3.0/addresses/anotheremail@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 'POST' uri: http://localhost:9001/3.0/addresses/anotheremail@example.com/verify response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 08:52:30 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/foo@example.com response: - body: {string: !!python/unicode '{"display_name": "Foo", "list_id": "foo.example.com", - "list_name": "foo", "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", - "mail_host": "example.com", "volume": 1}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:46 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 '{"is_server_owner": false, "http_etag": "\"46c89e4c192af91458b3bc8ca8efd3199d39672e\"", - "user_id": 175101733981884185786040725666736952966, "self_link": "http://localhost:9001/3.0/users/175101733981884185786040725666736952966", - "display_name": "None", "created_on": "2015-11-11T08:52:29.896503"}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "display_name": + "None", "http_etag": "\"0b279530a26f451f002e7274f6182ec4f7b10218\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/15", "user_id": 15}'} headers: - content-length: ['295'] + content-length: ['214'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 08:52:30 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0'] method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/175101733981884185786040725666736952966 + uri: http://localhost:9001/3.0/users/15/addresses response: - body: {string: !!python/unicode '{"is_server_owner": false, "http_etag": "\"46c89e4c192af91458b3bc8ca8efd3199d39672e\"", - "user_id": 175101733981884185786040725666736952966, "self_link": "http://localhost:9001/3.0/users/175101733981884185786040725666736952966", - "display_name": "None", "created_on": "2015-11-11T08:52:29.896503"}'} + body: {string: !!python/unicode '{"entries": [{"email": "anotheremail@example.com", + "http_etag": "\"d652d3593551672385cb4c02a31cf9401c4134e7\"", "original_email": + "anotheremail@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": + "http://localhost:9001/3.0/addresses/anotheremail@example.com", "user": "http://localhost:9001/3.0/users/15", + "verified_on": "2005-08-01T07:49:23"}, {"display_name": "None", "email": "test@example.com", + "http_etag": "\"4eaecf52f78464d20b516333704c6a7950b94d8a\"", "original_email": + "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", + "user": "http://localhost:9001/3.0/users/15"}], "http_etag": "\"9d65f1333e146976f2ffc9a218437cf2eec344a3\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['295'] + content-length: ['759'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 08:52:30 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/175101733981884185786040725666736952966/addresses - response: - body: {string: !!python/unicode '{"total_size": 2, "entries": [{"verified_on": - "2015-11-11T08:52:30.262179", "original_email": "anotheremail@example.com", - "user": "http://localhost:9001/3.0/users/175101733981884185786040725666736952966", - "http_etag": "\"81c4cd219f97c86934e5fcdb7804c920e891bcc8\"", "self_link": - "http://localhost:9001/3.0/addresses/anotheremail@example.com", "registered_on": - "2015-11-11T08:52:30.155031", "email": "anotheremail@example.com"}, {"original_email": - "test@example.com", "user": "http://localhost:9001/3.0/users/175101733981884185786040725666736952966", - "http_etag": "\"dbf31067cb3a34f66b4b7e99d58e8e714923dcba\"", "registered_on": - "2015-11-11T08:52:29.878035", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "display_name": "None", "email": "test@example.com"}], "http_etag": "\"6cd8190baf5403ef8476c864d712db23cafc3bd2\"", - "start": 0}'} - headers: - content-length: ['854'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 08:52:30 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/addresses/anotheremail@example.com response: - body: {string: !!python/unicode '{"verified_on": "2015-11-11T08:52:30.262179", - "original_email": "anotheremail@example.com", "user": "http://localhost:9001/3.0/users/175101733981884185786040725666736952966", - "http_etag": "\"81c4cd219f97c86934e5fcdb7804c920e891bcc8\"", "self_link": - "http://localhost:9001/3.0/addresses/anotheremail@example.com", "registered_on": - "2015-11-11T08:52:30.155031", "email": "anotheremail@example.com"}'} + body: {string: !!python/unicode '{"email": "anotheremail@example.com", "http_etag": + "\"d652d3593551672385cb4c02a31cf9401c4134e7\"", "original_email": "anotheremail@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/anotheremail@example.com", + "user": "http://localhost:9001/3.0/users/15", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['396'] + content-length: ['345'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 08:52:30 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.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", "user": - "http://localhost:9001/3.0/users/175101733981884185786040725666736952966", - "http_etag": "\"dbf31067cb3a34f66b4b7e99d58e8e714923dcba\"", "registered_on": - "2015-11-11T08:52:29.878035", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "display_name": "None", "email": "test@example.com"}'} + body: {string: !!python/unicode '{"display_name": "None", "email": "test@example.com", + "http_etag": "\"4eaecf52f78464d20b516333704c6a7950b94d8a\"", "original_email": + "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", + "user": "http://localhost:9001/3.0/users/15"}'} headers: - content-length: ['351'] + content-length: ['307'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 08:52:30 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"total_size": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 08:52:30 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"total_size": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 08:52:30 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com response: @@ -255,15 +182,11 @@ headers: content-length: ['2'] content-type: [application/json] - date: ['Wed, 11 Nov 2015 08:52:30 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/foo.example.com/member/anotheremail@example.com response: @@ -271,43 +194,36 @@ headers: content-length: ['2'] content-type: [application/json] - date: ['Wed, 11 Nov 2015 08:52:30 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/foo@example.com/config response: - body: {string: !!python/unicode '{"autoresponse_grace_period": "90d", "autorespond_requests": - "none", "display_name": "Foo", "default_member_action": "defer", "no_reply_address": - "noreply@example.com", "autorespond_postings": "none", "admin_notify_mchanges": - false, "fqdn_listname": "foo@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": "foo-owner@example.com", - "welcome_message_uri": "mailman:///welcome.txt", "allow_list_posts": true, - "subscription_policy": "confirm", "list_name": "foo", "admin_immed_notify": - true, "leave_address": "foo-leave@example.com", "autoresponse_request_text": - "", "posting_pipeline": "default-posting-pipeline", "convert_html_to_plaintext": - false, "reply_to_address": "", "request_address": "foo-request@example.com", - "join_address": "foo-join@example.com", "send_welcome_message": true, "archive_policy": - "public", "volume": 1, "first_strip_reply_to": false, "default_nonmember_action": - "hold", "posting_address": "foo@example.com", "http_etag": "\"3fe2bd399e5f3f78501d7b1488956508f363ae19\"", - "bounces_address": "foo-bounces@example.com", "autorespond_owner": "none", - "created_at": "2015-11-11T12:49:45.793478", "digest_size_threshold": 30.0, - "web_host": "example.com", "anonymous_list": false, "scheme": "http", "digest_last_sent_at": - null, "subject_prefix": "[Foo] ", "mail_host": "example.com", "include_rfc2369_headers": - true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_size_threshold": 30.0, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"f24060c0fd5762da0d17009ff8b6f303bee3cd2f\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1617'] + content-length: ['1610'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:46 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_change_subscription.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_change_subscription.yaml index b4e10c9..fe9dfaa 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_change_subscription.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_change_subscription.yaml @@ -3,225 +3,162 @@ 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/foo@example.com response: - body: {string: !!python/unicode '{"display_name": "Foo", "list_id": "foo.example.com", - "list_name": "foo", "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", - "mail_host": "example.com", "volume": 1}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:40 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: pre_confirmed=True&pre_verified=True&display_name=None&subscriber=test%40example.com&list_id=foo.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 ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:40 GMT'] - location: ['http://localhost:9001/3.0/members/30853255152563400446883130236676839375'] - server: [WSGIServer/0.2 CPython/3.4.2] + location: ['http://localhost:9001/3.0/members/15'] 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/foo@example.com response: - body: {string: !!python/unicode '{"display_name": "Foo", "list_id": "foo.example.com", - "list_name": "foo", "fqdn_listname": "foo@example.com", "http_etag": "\"98cc998d4a30293ec17da639bce10617912a6e1e\"", - "member_count": 1, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", - "mail_host": "example.com", "volume": 1}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"98cc998d4a30293ec17da639bce10617912a6e1e\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 1, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:40 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 '{"is_server_owner": false, "http_etag": "\"4e2f73e4586662ff5840f566c7b92ba8fa8f9f71\"", - "user_id": 35258670270330606438959454694878423733, "self_link": "http://localhost:9001/3.0/users/35258670270330606438959454694878423733", - "display_name": "None", "created_on": "2015-11-11T08:52:24.187222"}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "display_name": + "None", "http_etag": "\"7966e6f59bfd84a47cf7558bdc7cda9e70d9bc95\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/10", "user_id": 10}'} headers: - content-length: ['295'] + content-length: ['214'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:40 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/35258670270330606438959454694878423733 + uri: http://localhost:9001/3.0/users/10/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"669fb9a8f3872c7848531cb1757446f1ee3ce2d7\"", - "is_server_owner": false, "user_id": 35258670270330606438959454694878423733, - "display_name": "None", "self_link": "http://localhost:9001/3.0/users/35258670270330606438959454694878423733", - "created_on": "2015-11-11T12:49:40.357464"}'} + body: {string: !!python/unicode '{"entries": [{"display_name": "None", "email": + "test@example.com", "http_etag": "\"8deb0780609569a4e1c32d76b4644572a59b8d40\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/10", "verified_on": "2005-08-01T07:49:23"}], + "http_etag": "\"721f23f3bed1a7bb0089c9b4bd470159d96ad0a2\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['293'] + content-length: ['450'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:40 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/35258670270330606438959454694878423733/addresses - response: - body: {string: !!python/unicode '{"entries": [{"verified_on": "2015-11-11T12:49:40.383168", - "email": "test@example.com", "user": "http://localhost:9001/3.0/users/35258670270330606438959454694878423733", - "display_name": "None", "http_etag": "\"84e08e20533156035d7e2f88c0c8d28637a5da6c\"", - "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "registered_on": - "2015-11-11T12:49:40.339380", "original_email": "test@example.com"}], "http_etag": - "\"d83716e2b12f9a7b8f60ceaff6c61def41d50314\"", "total_size": 1, "start": - 0}'} - headers: - content-length: ['500'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:40 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 '{"verified_on": "2015-11-11T08:52:24.211923", - "original_email": "test@example.com", "user": "http://localhost:9001/3.0/users/35258670270330606438959454694878423733", - "http_etag": "\"36ec1132bcb053f26e9ea61326ee7d785f7c03a6\"", "registered_on": - "2015-11-11T08:52:24.168984", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "display_name": "None", "email": "test@example.com"}'} + body: {string: !!python/unicode '{"display_name": "None", "email": "test@example.com", + "http_etag": "\"8deb0780609569a4e1c32d76b4644572a59b8d40\"", "original_email": + "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", + "user": "http://localhost:9001/3.0/users/10", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['396'] + content-length: ['345'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 08:52: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/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"total_size": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 08:52: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/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"total_size": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 08:52: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/foo.example.com/member/test@example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/members/30853255152563400446883130236676839375", - "user": "http://localhost:9001/3.0/users/35258670270330606438959454694878423733", - "http_etag": "\"58786e522cd6180aee1ce013896de5b47f1c2910\"", "list_id": "foo.example.com", - "address": "http://localhost:9001/3.0/addresses/test@example.com", "role": - "member", "member_id": 30853255152563400446883130236676839375, "delivery_mode": - "regular", "email": "test@example.com"}'} + body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/test@example.com", + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"900f1773b273f5fb79c8ae8aa15e900b46ad236e\"", + "list_id": "foo.example.com", "member_id": 15, "role": "member", "self_link": + "http://localhost:9001/3.0/members/15", "user": "http://localhost:9001/3.0/users/10"}'} headers: - content-length: ['457'] + content-length: ['349'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:40 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/foo@example.com/config response: - body: {string: !!python/unicode '{"autoresponse_grace_period": "90d", "autorespond_requests": - "none", "display_name": "Foo", "default_member_action": "defer", "no_reply_address": - "noreply@example.com", "autorespond_postings": "none", "admin_notify_mchanges": - false, "fqdn_listname": "foo@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": "foo-owner@example.com", - "welcome_message_uri": "mailman:///welcome.txt", "allow_list_posts": true, - "subscription_policy": "confirm", "list_name": "foo", "admin_immed_notify": - true, "leave_address": "foo-leave@example.com", "autoresponse_request_text": - "", "posting_pipeline": "default-posting-pipeline", "convert_html_to_plaintext": - false, "reply_to_address": "", "request_address": "foo-request@example.com", - "join_address": "foo-join@example.com", "send_welcome_message": true, "archive_policy": - "public", "volume": 1, "first_strip_reply_to": false, "default_nonmember_action": - "hold", "posting_address": "foo@example.com", "http_etag": "\"2bb4408444beb1ebff05ce622c977f240da09ddf\"", - "bounces_address": "foo-bounces@example.com", "autorespond_owner": "none", - "created_at": "2015-11-11T12:49:40.131023", "digest_size_threshold": 30.0, - "web_host": "example.com", "anonymous_list": false, "scheme": "http", "digest_last_sent_at": - null, "subject_prefix": "[Foo] ", "mail_host": "example.com", "include_rfc2369_headers": - true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_size_threshold": 30.0, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"f24060c0fd5762da0d17009ff8b6f303bee3cd2f\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1617'] + content-length: ['1610'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:40 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_archival_options.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_archival_options.yaml index 7dfc75d..9d5de35 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_archival_options.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_archival_options.yaml @@ -3,133 +3,104 @@ 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 ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:18 GMT'] location: ['http://localhost:9001/3.0/domains/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/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 '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:18 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: fqdn_listname=test_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: ['Wed, 11 Nov 2015 12:49:18 GMT'] location: ['http://localhost:9001/3.0/lists/test_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/test_list.example.com response: - body: {string: !!python/unicode '{"display_name": "Test_list", "list_id": "test_list.example.com", - "list_name": "test_list", "fqdn_listname": "test_list@example.com", "http_etag": - "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/test_list.example.com", "mail_host": "example.com", + body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": + "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", + "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", "volume": 1}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/test_list.example.com/archivers response: - body: {string: !!python/unicode '{"mhonarc": true, "prototype": false, "http_etag": - "\"dfd159ec866aff2f484eb6399b59057ba112d3e5\"", "mail-archive": true}'} + body: {string: !!python/unicode '{"http_etag": "\"dfd159ec866aff2f484eb6399b59057ba112d3e5\"", + "mail-archive": true, "mhonarc": true, "prototype": false}'} headers: content-length: ['120'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/test_list.example.com response: - body: {string: !!python/unicode '{"display_name": "Test_list", "list_id": "test_list.example.com", - "list_name": "test_list", "fqdn_listname": "test_list@example.com", "http_etag": - "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/test_list.example.com", "mail_host": "example.com", + body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": + "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", + "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", "volume": 1}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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 'DELETE' uri: http://localhost:9001/3.0/lists/test_list@example.com response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:19 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: @@ -137,141 +108,111 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:19 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"}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/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 '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:19 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: fqdn_listname=test_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: ['Wed, 11 Nov 2015 12:49:19 GMT'] location: ['http://localhost:9001/3.0/lists/test_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/test_list.example.com response: - body: {string: !!python/unicode '{"display_name": "Test_list", "list_id": "test_list.example.com", - "list_name": "test_list", "fqdn_listname": "test_list@example.com", "http_etag": - "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/test_list.example.com", "mail_host": "example.com", + body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": + "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", + "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", "volume": 1}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/test_list.example.com/archivers response: - body: {string: !!python/unicode '{"mhonarc": true, "prototype": false, "http_etag": - "\"dfd159ec866aff2f484eb6399b59057ba112d3e5\"", "mail-archive": true}'} + body: {string: !!python/unicode '{"http_etag": "\"dfd159ec866aff2f484eb6399b59057ba112d3e5\"", + "mail-archive": true, "mhonarc": true, "prototype": false}'} headers: content-length: ['120'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/test_list.example.com response: - body: {string: !!python/unicode '{"display_name": "Test_list", "list_id": "test_list.example.com", - "list_name": "test_list", "fqdn_listname": "test_list@example.com", "http_etag": - "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/test_list.example.com", "mail_host": "example.com", + body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": + "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", + "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", "volume": 1}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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 'DELETE' uri: http://localhost:9001/3.0/lists/test_list@example.com response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49: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: @@ -279,112 +220,88 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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 '{"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 '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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 '{"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 '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:20 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: fqdn_listname=test_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: ['Wed, 11 Nov 2015 12:49:20 GMT'] location: ['http://localhost:9001/3.0/lists/test_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/test_list.example.com response: - body: {string: !!python/unicode '{"display_name": "Test_list", "list_id": "test_list.example.com", - "list_name": "test_list", "fqdn_listname": "test_list@example.com", "http_etag": - "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/test_list.example.com", "mail_host": "example.com", + body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": + "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", + "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", "volume": 1}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/test_list.example.com/archivers response: - body: {string: !!python/unicode '{"mhonarc": true, "prototype": false, "http_etag": - "\"dfd159ec866aff2f484eb6399b59057ba112d3e5\"", "mail-archive": true}'} + body: {string: !!python/unicode '{"http_etag": "\"dfd159ec866aff2f484eb6399b59057ba112d3e5\"", + "mail-archive": true, "mhonarc": true, "prototype": false}'} headers: content-length: ['120'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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 'DELETE' uri: http://localhost:9001/3.0/lists/test_list@example.com response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:22 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_archival_options_disable_archiver.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_archival_options_disable_archiver.yaml index 804e4ea..17fc64a 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_archival_options_disable_archiver.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_archival_options_disable_archiver.yaml @@ -3,103 +3,79 @@ 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/test_list.example.com response: - body: {string: !!python/unicode '{"display_name": "Test_list", "list_id": "test_list.example.com", - "list_name": "test_list", "fqdn_listname": "test_list@example.com", "http_etag": - "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/test_list.example.com", "mail_host": "example.com", + body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": + "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", + "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", "volume": 1}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/test_list.example.com/archivers response: - body: {string: !!python/unicode '{"mhonarc": true, "prototype": false, "http_etag": - "\"dfd159ec866aff2f484eb6399b59057ba112d3e5\"", "mail-archive": true}'} + body: {string: !!python/unicode '{"http_etag": "\"dfd159ec866aff2f484eb6399b59057ba112d3e5\"", + "mail-archive": true, "mhonarc": true, "prototype": false}'} headers: content-length: ['120'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:21 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: prototype=True&mail-archive=True&mhonarc=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 'PUT' uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:21 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: body: prototype=True&mail-archive=False&mhonarc=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 'PUT' uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:21 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/test_list.example.com/archivers response: - body: {string: !!python/unicode '{"mhonarc": true, "prototype": false, "http_etag": - "\"95f97f6e3c57d856b8048a96844ddc64a972f96d\"", "mail-archive": false}'} + body: {string: !!python/unicode '{"http_etag": "\"95f97f6e3c57d856b8048a96844ddc64a972f96d\"", + "mail-archive": false, "mhonarc": true, "prototype": false}'} headers: content-length: ['121'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/test_list.example.com/archivers response: - body: {string: !!python/unicode '{"mhonarc": true, "prototype": false, "http_etag": - "\"95f97f6e3c57d856b8048a96844ddc64a972f96d\"", "mail-archive": false}'} + body: {string: !!python/unicode '{"http_etag": "\"95f97f6e3c57d856b8048a96844ddc64a972f96d\"", + "mail-archive": false, "mhonarc": true, "prototype": false}'} headers: content-length: ['121'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:21 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_archival_options_enable_archiver.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_archival_options_enable_archiver.yaml index f2e799c..6c70652 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_archival_options_enable_archiver.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_archival_options_enable_archiver.yaml @@ -3,103 +3,79 @@ 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/test_list.example.com response: - body: {string: !!python/unicode '{"display_name": "Test_list", "list_id": "test_list.example.com", - "list_name": "test_list", "fqdn_listname": "test_list@example.com", "http_etag": - "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/test_list.example.com", "mail_host": "example.com", + body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": + "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", + "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", "volume": 1}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/test_list.example.com/archivers response: - body: {string: !!python/unicode '{"mhonarc": true, "prototype": false, "http_etag": - "\"95f97f6e3c57d856b8048a96844ddc64a972f96d\"", "mail-archive": false}'} + body: {string: !!python/unicode '{"http_etag": "\"95f97f6e3c57d856b8048a96844ddc64a972f96d\"", + "mail-archive": false, "mhonarc": true, "prototype": false}'} headers: content-length: ['121'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:21 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: prototype=False&mail-archive=True&mhonarc=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 'PUT' uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:22 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: body: prototype=False&mail-archive=True&mhonarc=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 'PUT' uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49: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/test_list.example.com/archivers response: - body: {string: !!python/unicode '{"mhonarc": false, "prototype": false, "http_etag": - "\"de68e13c430d856461d2b39a5b5d5286d91528bc\"", "mail-archive": true}'} + body: {string: !!python/unicode '{"http_etag": "\"de68e13c430d856461d2b39a5b5d5286d91528bc\"", + "mail-archive": true, "mhonarc": false, "prototype": false}'} headers: content-length: ['121'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/test_list.example.com/archivers response: - body: {string: !!python/unicode '{"mhonarc": false, "prototype": false, "http_etag": - "\"de68e13c430d856461d2b39a5b5d5286d91528bc\"", "mail-archive": true}'} + body: {string: !!python/unicode '{"http_etag": "\"de68e13c430d856461d2b39a5b5d5286d91528bc\"", + "mail-archive": true, "mhonarc": false, "prototype": false}'} headers: content-length: ['121'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:22 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_creation.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_creation.yaml index d880f4f..006de91 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_creation.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_creation.yaml @@ -3,9 +3,7 @@ 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: @@ -13,292 +11,235 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:51 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"}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:51 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 response: - body: {string: !!python/unicode '{"entries": [{"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"}], "http_etag": - "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", "total_size": 1, "start": - 0}'} + body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", + "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", + "start": 0, "total_size": 1}'} headers: content-length: ['338'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:51 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"}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:51 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"}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:51 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"}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:51 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: fqdn_listname=a_new_list%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.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:51 GMT'] location: ['http://localhost:9001/3.0/lists/a_new_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/a_new_list.example.com response: - body: {string: !!python/unicode '{"display_name": "A_new_list", "list_id": "a_new_list.example.com", - "list_name": "a_new_list", "fqdn_listname": "a_new_list@example.com", "http_etag": - "\"447e005af2b208bfea01f6425b786356f0a374de\"", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/a_new_list.example.com", "mail_host": "example.com", + body: {string: !!python/unicode '{"display_name": "A_new_list", "fqdn_listname": + "a_new_list@example.com", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"", + "list_id": "a_new_list.example.com", "list_name": "a_new_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", "volume": 1}'} headers: content-length: ['329'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:51 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: role=owner&list_id=a_new_list.example.com&subscriber=owner%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 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:52 GMT'] - location: ['http://localhost:9001/3.0/members/267510311704879085945204314637498522087'] - server: [WSGIServer/0.2 CPython/3.4.2] + location: ['http://localhost:9001/3.0/members/20'] 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/a_new_list@example.com/config response: - body: {string: !!python/unicode '{"autoresponse_grace_period": "90d", "autorespond_requests": - "none", "display_name": "A_new_list", "default_member_action": "defer", "no_reply_address": - "noreply@example.com", "autorespond_postings": "none", "admin_notify_mchanges": - false, "fqdn_listname": "a_new_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": "a_new_list-owner@example.com", - "welcome_message_uri": "mailman:///welcome.txt", "allow_list_posts": true, - "subscription_policy": "confirm", "list_name": "a_new_list", "admin_immed_notify": - true, "leave_address": "a_new_list-leave@example.com", "autoresponse_request_text": - "", "posting_pipeline": "default-posting-pipeline", "convert_html_to_plaintext": - false, "reply_to_address": "", "request_address": "a_new_list-request@example.com", - "join_address": "a_new_list-join@example.com", "send_welcome_message": true, - "archive_policy": "public", "volume": 1, "first_strip_reply_to": false, "default_nonmember_action": - "hold", "posting_address": "a_new_list@example.com", "http_etag": "\"1b12018f1c9cdb3651f85c841364d1851b80f361\"", - "bounces_address": "a_new_list-bounces@example.com", "autorespond_owner": - "none", "created_at": "2015-11-11T12:49:51.702314", "digest_size_threshold": - 30.0, "web_host": "example.com", "anonymous_list": false, "scheme": "http", - "digest_last_sent_at": null, "subject_prefix": "[A_new_list] ", "mail_host": - "example.com", "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "a_new_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_size_threshold": 30.0, "display_name": "A_new_list", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "a_new_list@example.com", + "http_etag": "\"f1a53083e187453ab33815d81a812d05dae0b768\"", "include_rfc2369_headers": + true, "join_address": "a_new_list-join@example.com", "last_post_at": null, + "leave_address": "a_new_list-leave@example.com", "list_name": "a_new_list", + "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "a_new_list-owner@example.com", "post_id": 1, "posting_address": + "a_new_list@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "a_new_list-request@example.com", "scheme": "http", "send_welcome_message": + true, "subject_prefix": "[A_new_list] ", "subscription_policy": "confirm", + "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1687'] + content-length: ['1680'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:52 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: - body: autoresponse_postings_text=&admin_notify_mchanges=False&description=A+new+list.&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=confirm&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=%5BA_new_list%5D+&send_welcome_message=True&autoresponse_owner_text=&include_rfc2369_headers=True&autorespond_postings=none&display_name=A_new_list&reply_goes_to_list=no_munging + body: anonymous_list=False&autorespond_postings=none&display_name=A_new_list&admin_immed_notify=True&convert_html_to_plaintext=False&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&default_member_action=defer&digest_size_threshold=30.0&default_nonmember_action=hold&subscription_policy=confirm&first_strip_reply_to=False&collapse_alternatives=True&admin_notify_mchanges=False&autorespond_owner=none&include_rfc2369_headers=True&autoresponse_postings_text=&reply_to_address=&autoresponse_request_text=&autoresponse_grace_period=90d&filter_content=False&description=A+new+list.&administrivia=True&archive_policy=public&posting_pipeline=default-posting-pipeline&autoresponse_owner_text=&reply_goes_to_list=no_munging&subject_prefix=%5BA_new_list%5D+&advertised=True&allow_list_posts=True&autorespond_requests=none&send_welcome_message=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 'PATCH' uri: http://localhost:9001/3.0/lists/a_new_list@example.com/config response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:52 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/a_new_list@example.com response: - body: {string: !!python/unicode '{"display_name": "A_new_list", "list_id": "a_new_list.example.com", - "list_name": "a_new_list", "fqdn_listname": "a_new_list@example.com", "http_etag": - "\"447e005af2b208bfea01f6425b786356f0a374de\"", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/a_new_list.example.com", "mail_host": "example.com", + body: {string: !!python/unicode '{"display_name": "A_new_list", "fqdn_listname": + "a_new_list@example.com", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"", + "list_id": "a_new_list.example.com", "list_name": "a_new_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", "volume": 1}'} headers: content-length: ['329'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:52 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/a_new_list.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"self_link": "http://localhost:9001/3.0/members/267510311704879085945204314637498522087", - "user": "http://localhost:9001/3.0/users/61842873396709218423194145829991419251", - "http_etag": "\"f85b8a3427f6b721f3640f6e1af3e8845a268533\"", "list_id": "a_new_list.example.com", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "role": - "owner", "member_id": 267510311704879085945204314637498522087, "delivery_mode": - "regular", "email": "owner@example.com"}], "http_etag": "\"2ddca8ea20203266662d36d46c138abad145c114\"", - "total_size": 1, "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"f0f6b53233263797d15fac048f7758f2546c3219\"", + "list_id": "a_new_list.example.com", "member_id": 20, "role": "owner", "self_link": + "http://localhost:9001/3.0/members/20", "user": "http://localhost:9001/3.0/users/17"}], + "http_etag": "\"43ba1ca06f474e563470bf17d3d931ac74fff6fa\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['572'] + content-length: ['462'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:52 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 response: - body: {string: !!python/unicode '{"entries": [{"display_name": "A_new_list", "list_id": - "a_new_list.example.com", "list_name": "a_new_list", "fqdn_listname": "a_new_list@example.com", - "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"", "member_count": - 0, "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", - "mail_host": "example.com", "volume": 1}], "http_etag": "\"dee96dcb9d3f736cc6fa170baeea8f879d7db6f0\"", - "total_size": 1, "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"display_name": "A_new_list", "fqdn_listname": + "a_new_list@example.com", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"", + "list_id": "a_new_list.example.com", "list_name": "a_new_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", + "volume": 1}], "http_etag": "\"dee96dcb9d3f736cc6fa170baeea8f879d7db6f0\"", + "start": 0, "total_size": 1}'} headers: content-length: ['434'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:52 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/a_new_list@example.com response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:52 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: @@ -306,42 +247,33 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:52 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"}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:52 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 response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:53 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_index.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_index.yaml index 56cfe4b..0242ada 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_index.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_index.yaml @@ -3,9 +3,7 @@ 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: @@ -13,265 +11,218 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:47 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"}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:47 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"}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:47 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.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:48 GMT'] location: ['http://localhost:9001/3.0/lists/foo.example.com'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 201, message: Created} - request: body: fqdn_listname=bar%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:48 GMT'] location: ['http://localhost:9001/3.0/lists/bar.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 response: - body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "list_id": - "foo.example.com", "list_name": "foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "member_count": - 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "mail_host": - "example.com", "volume": 1}, {"display_name": "Bar", "list_id": "bar.example.com", - "list_name": "bar", "fqdn_listname": "bar@example.com", "http_etag": "\"ca42a69a3bab5619e147cc6cbbfca16115976764\"", - "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/bar.example.com", - "mail_host": "example.com", "volume": 1}], "http_etag": "\"32ddcf601b73aeabdba5c18666c75d062c76eac8\"", - "total_size": 2, "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": + "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_id": "foo.example.com", "list_name": "foo", "mail_host": "example.com", + "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1}, {"display_name": "Bar", "fqdn_listname": "bar@example.com", + "http_etag": "\"ca42a69a3bab5619e147cc6cbbfca16115976764\"", "list_id": "bar.example.com", + "list_name": "bar", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/bar.example.com", "volume": 1}], "http_etag": + "\"32ddcf601b73aeabdba5c18666c75d062c76eac8\"", "start": 0, "total_size": + 2}'} headers: content-length: ['695'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:48 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/foo@example.com/config response: - body: {string: !!python/unicode '{"autoresponse_grace_period": "90d", "autorespond_requests": - "none", "display_name": "Foo", "default_member_action": "defer", "no_reply_address": - "noreply@example.com", "autorespond_postings": "none", "admin_notify_mchanges": - false, "fqdn_listname": "foo@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": "foo-owner@example.com", - "welcome_message_uri": "mailman:///welcome.txt", "allow_list_posts": true, - "subscription_policy": "confirm", "list_name": "foo", "admin_immed_notify": - true, "leave_address": "foo-leave@example.com", "autoresponse_request_text": - "", "posting_pipeline": "default-posting-pipeline", "convert_html_to_plaintext": - false, "reply_to_address": "", "request_address": "foo-request@example.com", - "join_address": "foo-join@example.com", "send_welcome_message": true, "archive_policy": - "public", "volume": 1, "first_strip_reply_to": false, "default_nonmember_action": - "hold", "posting_address": "foo@example.com", "http_etag": "\"2f42c2b40a15628a08cadf49f91b04c15c89f4a4\"", - "bounces_address": "foo-bounces@example.com", "autorespond_owner": "none", - "created_at": "2015-11-11T12:49:47.924380", "digest_size_threshold": 30.0, - "web_host": "example.com", "anonymous_list": false, "scheme": "http", "digest_last_sent_at": - null, "subject_prefix": "[Foo] ", "mail_host": "example.com", "include_rfc2369_headers": - true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_size_threshold": 30.0, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"f24060c0fd5762da0d17009ff8b6f303bee3cd2f\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1617'] + content-length: ['1610'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:48 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/bar@example.com/config response: - body: {string: !!python/unicode '{"autoresponse_grace_period": "90d", "autorespond_requests": - "none", "display_name": "Bar", "default_member_action": "defer", "no_reply_address": - "noreply@example.com", "autorespond_postings": "none", "admin_notify_mchanges": - false, "fqdn_listname": "bar@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": "bar-owner@example.com", - "welcome_message_uri": "mailman:///welcome.txt", "allow_list_posts": true, - "subscription_policy": "confirm", "list_name": "bar", "admin_immed_notify": - true, "leave_address": "bar-leave@example.com", "autoresponse_request_text": - "", "posting_pipeline": "default-posting-pipeline", "convert_html_to_plaintext": - false, "reply_to_address": "", "request_address": "bar-request@example.com", - "join_address": "bar-join@example.com", "send_welcome_message": true, "archive_policy": - "public", "volume": 1, "first_strip_reply_to": false, "default_nonmember_action": - "hold", "posting_address": "bar@example.com", "http_etag": "\"e695789abcb01911a3bb34558b31cc3f85dd2bc9\"", - "bounces_address": "bar-bounces@example.com", "autorespond_owner": "none", - "created_at": "2015-11-11T12:49:48.026054", "digest_size_threshold": 30.0, - "web_host": "example.com", "anonymous_list": false, "scheme": "http", "digest_last_sent_at": - null, "subject_prefix": "[Bar] ", "mail_host": "example.com", "include_rfc2369_headers": - true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "bar-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_size_threshold": 30.0, "display_name": "Bar", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "bar@example.com", + "http_etag": "\"4c6556b7026da17940db6dca9217f700a9dc3afd\"", "include_rfc2369_headers": + true, "join_address": "bar-join@example.com", "last_post_at": null, "leave_address": + "bar-leave@example.com", "list_name": "bar", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "bar-owner@example.com", + "post_id": 1, "posting_address": "bar@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "bar-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Bar] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1617'] + content-length: ['1610'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:48 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 response: - body: {string: !!python/unicode '{"entries": [{"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"}], "http_etag": - "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", "total_size": 1, "start": - 0}'} + body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", + "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", + "start": 0, "total_size": 1}'} headers: content-length: ['338'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:48 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"}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:48 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 response: - body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "list_id": - "foo.example.com", "list_name": "foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "member_count": - 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "mail_host": - "example.com", "volume": 1}, {"display_name": "Bar", "list_id": "bar.example.com", - "list_name": "bar", "fqdn_listname": "bar@example.com", "http_etag": "\"ca42a69a3bab5619e147cc6cbbfca16115976764\"", - "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/bar.example.com", - "mail_host": "example.com", "volume": 1}], "http_etag": "\"32ddcf601b73aeabdba5c18666c75d062c76eac8\"", - "total_size": 2, "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": + "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_id": "foo.example.com", "list_name": "foo", "mail_host": "example.com", + "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1}, {"display_name": "Bar", "fqdn_listname": "bar@example.com", + "http_etag": "\"ca42a69a3bab5619e147cc6cbbfca16115976764\"", "list_id": "bar.example.com", + "list_name": "bar", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/bar.example.com", "volume": 1}], "http_etag": + "\"32ddcf601b73aeabdba5c18666c75d062c76eac8\"", "start": 0, "total_size": + 2}'} headers: content-length: ['695'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:48 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/foo@example.com response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:48 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/bar@example.com response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:48 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_members_add_moderator.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_add_moderator.yaml index db00f50..c5d2fd5 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_add_moderator.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_add_moderator.yaml @@ -3,9 +3,7 @@ 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: @@ -13,121 +11,69 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:23 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"}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/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 '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:23 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.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:23 GMT'] location: ['http://localhost:9001/3.0/lists/foo.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/foo@example.com response: - body: {string: !!python/unicode '{"display_name": "Foo", "list_id": "foo.example.com", - "list_name": "foo", "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", - "mail_host": "example.com", "volume": 1}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/foo@example.com/roster/member?count=1&page=1 - 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: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/foo@example.com/roster/member?count=25&page=1 - 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: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/su@example.com response: @@ -135,153 +81,143 @@ headers: content-length: ['13'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 08:52:06 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/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:23 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: role=moderator&list_id=foo.example.com&subscriber=newmod%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 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:24 GMT'] - location: ['http://localhost:9001/3.0/members/106816629445301528663360148785067575589'] - server: [WSGIServer/0.2 CPython/3.4.2] + location: ['http://localhost:9001/3.0/members/1'] 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/foo@example.com/roster/member?count=1&page=1 + response: + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=25&page=1 + response: + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"entries": [{"self_link": "http://localhost:9001/3.0/members/106816629445301528663360148785067575589", - "user": "http://localhost:9001/3.0/users/116373708801465927618154924572824087703", - "http_etag": "\"44495b2581287f31a8c52ee6df46d5f4d72aa9a9\"", "list_id": "foo.example.com", - "address": "http://localhost:9001/3.0/addresses/newmod@example.com", "role": - "moderator", "member_id": 106816629445301528663360148785067575589, "delivery_mode": - "regular", "email": "newmod@example.com"}], "http_etag": "\"5f5ad3923b356fa84c7977f8be4b828c16e9d40a\"", - "total_size": 1, "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newmod@example.com", + "delivery_mode": "regular", "email": "newmod@example.com", "http_etag": "\"0ac194fc14b8bfc1066b82dc95d43a73f7b044ca\"", + "list_id": "foo.example.com", "member_id": 1, "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/1", "user": "http://localhost:9001/3.0/users/1"}], + "http_etag": "\"b616f26f17d6e33316118a6fdd85848554283784\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['572'] + content-length: ['458'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"entries": [{"self_link": "http://localhost:9001/3.0/members/106816629445301528663360148785067575589", - "user": "http://localhost:9001/3.0/users/116373708801465927618154924572824087703", - "http_etag": "\"44495b2581287f31a8c52ee6df46d5f4d72aa9a9\"", "list_id": "foo.example.com", - "address": "http://localhost:9001/3.0/addresses/newmod@example.com", "role": - "moderator", "member_id": 106816629445301528663360148785067575589, "delivery_mode": - "regular", "email": "newmod@example.com"}], "http_etag": "\"5f5ad3923b356fa84c7977f8be4b828c16e9d40a\"", - "total_size": 1, "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newmod@example.com", + "delivery_mode": "regular", "email": "newmod@example.com", "http_etag": "\"0ac194fc14b8bfc1066b82dc95d43a73f7b044ca\"", + "list_id": "foo.example.com", "member_id": 1, "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/1", "user": "http://localhost:9001/3.0/users/1"}], + "http_etag": "\"b616f26f17d6e33316118a6fdd85848554283784\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['572'] + content-length: ['458'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/foo.example.com response: - body: {string: !!python/unicode '{"display_name": "Foo", "list_id": "foo.example.com", - "list_name": "foo", "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", - "mail_host": "example.com", "volume": 1}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:24 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_members_add_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_add_owner.yaml index 096240f..3241650 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_add_owner.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_add_owner.yaml @@ -3,9 +3,7 @@ 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: @@ -13,121 +11,69 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:24 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"}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/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 '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:24 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.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:24 GMT'] location: ['http://localhost:9001/3.0/lists/foo.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/foo@example.com response: - body: {string: !!python/unicode '{"display_name": "Foo", "list_id": "foo.example.com", - "list_name": "foo", "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", - "mail_host": "example.com", "volume": 1}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/foo@example.com/roster/member?count=1&page=1 - 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: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/foo@example.com/roster/member?count=25&page=1 - 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: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/users/su@example.com response: @@ -135,153 +81,143 @@ headers: content-length: ['13'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 08:52:07 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/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:24 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: role=owner&list_id=foo.example.com&subscriber=newowner%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 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:25 GMT'] - location: ['http://localhost:9001/3.0/members/322630112487881799057132940066893476088'] - server: [WSGIServer/0.2 CPython/3.4.2] + location: ['http://localhost:9001/3.0/members/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/foo.example.com/roster/owner + uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=1&page=1 response: - body: {string: !!python/unicode '{"entries": [{"self_link": "http://localhost:9001/3.0/members/322630112487881799057132940066893476088", - "user": "http://localhost:9001/3.0/users/157359395161973632801276631076644754855", - "http_etag": "\"0cf72d98452f44ded67922d19d435fe95763813d\"", "list_id": "foo.example.com", - "address": "http://localhost:9001/3.0/addresses/newowner@example.com", "role": - "owner", "member_id": 322630112487881799057132940066893476088, "delivery_mode": - "regular", "email": "newowner@example.com"}], "http_etag": "\"3204f3317fc775b5ff8b6e9a7dee36025918729e\"", - "total_size": 1, "start": 0}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} headers: - content-length: ['572'] + content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/foo@example.com/roster/member?count=25&page=1 + response: + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com", + "delivery_mode": "regular", "email": "newowner@example.com", "http_etag": + "\"3cd95533f48bade9cf7cd736dc8610586e170db5\"", "list_id": "foo.example.com", + "member_id": 2, "role": "owner", "self_link": "http://localhost:9001/3.0/members/2", + "user": "http://localhost:9001/3.0/users/2"}], "http_etag": "\"3f55a6e8ce307f1b4eb9244a084bf49b7759e0ef\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['458'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"self_link": "http://localhost:9001/3.0/members/322630112487881799057132940066893476088", - "user": "http://localhost:9001/3.0/users/157359395161973632801276631076644754855", - "http_etag": "\"0cf72d98452f44ded67922d19d435fe95763813d\"", "list_id": "foo.example.com", - "address": "http://localhost:9001/3.0/addresses/newowner@example.com", "role": - "owner", "member_id": 322630112487881799057132940066893476088, "delivery_mode": - "regular", "email": "newowner@example.com"}], "http_etag": "\"3204f3317fc775b5ff8b6e9a7dee36025918729e\"", - "total_size": 1, "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com", + "delivery_mode": "regular", "email": "newowner@example.com", "http_etag": + "\"3cd95533f48bade9cf7cd736dc8610586e170db5\"", "list_id": "foo.example.com", + "member_id": 2, "role": "owner", "self_link": "http://localhost:9001/3.0/members/2", + "user": "http://localhost:9001/3.0/users/2"}], "http_etag": "\"3f55a6e8ce307f1b4eb9244a084bf49b7759e0ef\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['572'] + content-length: ['458'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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/foo.example.com response: - body: {string: !!python/unicode '{"display_name": "Foo", "list_id": "foo.example.com", - "list_name": "foo", "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", - "mail_host": "example.com", "volume": 1}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49: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 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:25 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_members_add_owner_new_owner_added.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_add_owner_new_owner_added.yaml index 6a5ae92..abf1f66 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_add_owner_new_owner_added.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_add_owner_new_owner_added.yaml @@ -3,22 +3,17 @@ 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/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"self_link": "http://localhost:9001/3.0/members/322630112487881799057132940066893476088", - "user": "http://localhost:9001/3.0/users/157359395161973632801276631076644754855", - "http_etag": "\"0cf72d98452f44ded67922d19d435fe95763813d\"", "list_id": "foo.example.com", - "address": "http://localhost:9001/3.0/addresses/newowner@example.com", "role": - "owner", "member_id": 322630112487881799057132940066893476088, "delivery_mode": - "regular", "email": "newowner@example.com"}], "http_etag": "\"3204f3317fc775b5ff8b6e9a7dee36025918729e\"", - "total_size": 1, "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com", + "delivery_mode": "regular", "email": "newowner@example.com", "http_etag": + "\"3cd95533f48bade9cf7cd736dc8610586e170db5\"", "list_id": "foo.example.com", + "member_id": 2, "role": "owner", "self_link": "http://localhost:9001/3.0/members/2", + "user": "http://localhost:9001/3.0/users/2"}], "http_etag": "\"3f55a6e8ce307f1b4eb9244a084bf49b7759e0ef\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['572'] + content-length: ['458'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:25 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_members_new_moderator_added.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_new_moderator_added.yaml index 901a9b5..b051d25 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_new_moderator_added.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_new_moderator_added.yaml @@ -3,22 +3,17 @@ 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/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"entries": [{"self_link": "http://localhost:9001/3.0/members/106816629445301528663360148785067575589", - "user": "http://localhost:9001/3.0/users/116373708801465927618154924572824087703", - "http_etag": "\"44495b2581287f31a8c52ee6df46d5f4d72aa9a9\"", "list_id": "foo.example.com", - "address": "http://localhost:9001/3.0/addresses/newmod@example.com", "role": - "moderator", "member_id": 106816629445301528663360148785067575589, "delivery_mode": - "regular", "email": "newmod@example.com"}], "http_etag": "\"5f5ad3923b356fa84c7977f8be4b828c16e9d40a\"", - "total_size": 1, "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newmod@example.com", + "delivery_mode": "regular", "email": "newmod@example.com", "http_etag": "\"0ac194fc14b8bfc1066b82dc95d43a73f7b044ca\"", + "list_id": "foo.example.com", "member_id": 1, "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/1", "user": "http://localhost:9001/3.0/users/1"}], + "http_etag": "\"b616f26f17d6e33316118a6fdd85848554283784\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['569'] + content-length: ['458'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:24 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_metrics.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_metrics.yaml index 18bd031..5fa7329 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_metrics.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_metrics.yaml @@ -3,98 +3,77 @@ body: mail_host=example.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/domains response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:38 GMT'] location: ['http://localhost:9001/3.0/domains/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 'GET' uri: http://localhost:9001/3.0/domains/example.org response: - body: {string: !!python/unicode '{"http_etag": "\"f8247f55d4a0a1d987c89cc238bb0dbc2c0e1089\"", - "description": null, "url_host": "example.org", "self_link": "http://localhost:9001/3.0/domains/example.org", - "base_url": "http://example.org", "mail_host": "example.org"}'} + body: {string: !!python/unicode '{"base_url": "http://example.org", "description": + null, "http_etag": "\"f8247f55d4a0a1d987c89cc238bb0dbc2c0e1089\"", "mail_host": + "example.org", "self_link": "http://localhost:9001/3.0/domains/example.org", + "url_host": "example.org"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:38 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: fqdn_listname=test%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/lists response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:38 GMT'] location: ['http://localhost:9001/3.0/lists/test.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 'GET' uri: http://localhost:9001/3.0/lists/test@example.org response: - body: {string: !!python/unicode '{"display_name": "Test", "list_id": "test.example.org", - "list_name": "test", "fqdn_listname": "test@example.org", "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\"", - "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test.example.org", - "mail_host": "example.org", "volume": 1}'} + body: {string: !!python/unicode '{"display_name": "Test", "fqdn_listname": "test@example.org", + "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\"", "list_id": "test.example.org", + "list_name": "test", "mail_host": "example.org", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/test.example.org", "volume": 1}'} headers: content-length: ['299'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:38 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/test@example.org response: - body: {string: !!python/unicode '{"display_name": "Test", "list_id": "test.example.org", - "list_name": "test", "fqdn_listname": "test@example.org", "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\"", - "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test.example.org", - "mail_host": "example.org", "volume": 1}'} + body: {string: !!python/unicode '{"display_name": "Test", "fqdn_listname": "test@example.org", + "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\"", "list_id": "test.example.org", + "list_name": "test", "mail_host": "example.org", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/test.example.org", "volume": 1}'} headers: content-length: ['299'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:38 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/su@example.com response: @@ -102,226 +81,178 @@ headers: content-length: ['13'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:38 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/test.example.org/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:38 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/test.example.org/roster/moderator response: - body: {string: !!python/unicode '{"total_size": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 08:52: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/test@example.org/config response: - body: {string: !!python/unicode '{"autorespond_postings": "none", "subject_prefix": - "[Test] ", "reply_to_address": "", "autoresponse_request_text": "", "volume": - 1, "display_name": "Test", "subscription_policy": "confirm", "leave_address": - "test-leave@example.org", "last_post_at": null, "convert_html_to_plaintext": - false, "posting_pipeline": "default-posting-pipeline", "admin_notify_mchanges": - false, "posting_address": "test@example.org", "post_id": 1, "reply_goes_to_list": - "no_munging", "anonymous_list": false, "default_member_action": "defer", "scheme": - "http", "list_name": "test", "archive_policy": "public", "collapse_alternatives": - true, "autoresponse_owner_text": "", "request_address": "test-request@example.org", - "acceptable_aliases": [], "include_rfc2369_headers": true, "default_nonmember_action": - "hold", "description": "", "no_reply_address": "noreply@example.org", "welcome_message_uri": - "mailman:///welcome.txt", "advertised": true, "mail_host": "example.org", - "bounces_address": "test-bounces@example.org", "autorespond_owner": "none", - "created_at": "2015-11-11T08:52:21.804288", "autoresponse_grace_period": "90d", - "http_etag": "\"2231d4e997010bb6438b563d2948fac3695a7232\"", "administrivia": - true, "fqdn_listname": "test@example.org", "send_welcome_message": true, "autoresponse_postings_text": - "", "allow_list_posts": true, "digest_size_threshold": 30.0, "admin_immed_notify": - true, "digest_last_sent_at": null, "web_host": "example.org", "first_strip_reply_to": - false, "filter_content": false, "join_address": "test-join@example.org", "next_digest_number": - 1, "owner_address": "test-owner@example.org", "autorespond_requests": "none"}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "test-bounces@example.org", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_size_threshold": 30.0, "display_name": "Test", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "test@example.org", + "http_etag": "\"6569a8f462dabe7d7366ed8075432b5c25aeb0c7\"", "include_rfc2369_headers": + true, "join_address": "test-join@example.org", "last_post_at": null, "leave_address": + "test-leave@example.org", "list_name": "test", "mail_host": "example.org", + "next_digest_number": 1, "no_reply_address": "noreply@example.org", "owner_address": + "test-owner@example.org", "post_id": 1, "posting_address": "test@example.org", + "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": "no_munging", + "reply_to_address": "", "request_address": "test-request@example.org", "scheme": + "http", "send_welcome_message": true, "subject_prefix": "[Test] ", "subscription_policy": + "confirm", "volume": 1, "web_host": "example.org", "welcome_message_uri": + "mailman:///welcome.txt"}'} headers: - content-length: ['1627'] + content-length: ['1620'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 08:52: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 'DELETE' uri: http://localhost:9001/3.0/lists/test@example.org response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:38 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/domains/example.org response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:38 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: body: mail_host=example.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/domains response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:39 GMT'] location: ['http://localhost:9001/3.0/domains/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 'GET' uri: http://localhost:9001/3.0/domains/example.org response: - body: {string: !!python/unicode '{"http_etag": "\"f8247f55d4a0a1d987c89cc238bb0dbc2c0e1089\"", - "description": null, "url_host": "example.org", "self_link": "http://localhost:9001/3.0/domains/example.org", - "base_url": "http://example.org", "mail_host": "example.org"}'} + body: {string: !!python/unicode '{"base_url": "http://example.org", "description": + null, "http_etag": "\"f8247f55d4a0a1d987c89cc238bb0dbc2c0e1089\"", "mail_host": + "example.org", "self_link": "http://localhost:9001/3.0/domains/example.org", + "url_host": "example.org"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:39 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: fqdn_listname=test%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/lists response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:39 GMT'] location: ['http://localhost:9001/3.0/lists/test.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 'GET' uri: http://localhost:9001/3.0/lists/test@example.org response: - body: {string: !!python/unicode '{"display_name": "Test", "list_id": "test.example.org", - "list_name": "test", "fqdn_listname": "test@example.org", "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\"", - "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test.example.org", - "mail_host": "example.org", "volume": 1}'} + body: {string: !!python/unicode '{"display_name": "Test", "fqdn_listname": "test@example.org", + "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\"", "list_id": "test.example.org", + "list_name": "test", "mail_host": "example.org", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/test.example.org", "volume": 1}'} headers: content-length: ['299'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:39 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/test@example.org response: - body: {string: !!python/unicode '{"display_name": "Test", "list_id": "test.example.org", - "list_name": "test", "fqdn_listname": "test@example.org", "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\"", - "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test.example.org", - "mail_host": "example.org", "volume": 1}'} + body: {string: !!python/unicode '{"display_name": "Test", "fqdn_listname": "test@example.org", + "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\"", "list_id": "test.example.org", + "list_name": "test", "mail_host": "example.org", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/test.example.org", "volume": 1}'} headers: content-length: ['299'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:39 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0'] method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/test@example.org response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:39 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/domains/example.org response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:39 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.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription.yaml index fc8a64e..3fcfcc0 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription.yaml @@ -3,9 +3,7 @@ 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: @@ -13,376 +11,299 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Thu, 12 Nov 2015 20:10:12 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\""}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Thu, 12 Nov 2015 20:10:12 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\""}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Thu, 12 Nov 2015 20:10:12 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: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} - 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"}'} + body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": + "open_list@example.com", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", + "list_id": "open_list.example.com", "list_name": "open_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", + "volume": 1}'} headers: content-length: ['324'] 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: 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": "\"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"}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "open_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_size_threshold": 30.0, "display_name": "Open_list", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", + "http_etag": "\"2bde68eb63d937c0756c16b54af67529ad981268\"", "include_rfc2369_headers": + true, "join_address": "open_list-join@example.com", "last_post_at": null, + "leave_address": "open_list-leave@example.com", "list_name": "open_list", + "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "open_list-owner@example.com", "post_id": 1, "posting_address": + "open_list@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "open_list-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Open_list] + ", "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1677'] + content-length: ['1670'] 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=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 + body: anonymous_list=False&autorespond_postings=none&display_name=Open_list&admin_immed_notify=True&convert_html_to_plaintext=False&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&default_member_action=defer&digest_size_threshold=30.0&default_nonmember_action=hold&subscription_policy=open&first_strip_reply_to=False&collapse_alternatives=True&admin_notify_mchanges=False&autorespond_owner=none&include_rfc2369_headers=True&autoresponse_postings_text=&reply_to_address=&autoresponse_request_text=&autoresponse_grace_period=90d&filter_content=False&description=&administrivia=True&archive_policy=public&posting_pipeline=default-posting-pipeline&autoresponse_owner_text=&reply_goes_to_list=no_munging&subject_prefix=%5BOpen_list%5D+&advertised=True&allow_list_posts=True&autorespond_requests=none&send_welcome_message=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 '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:13 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: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: 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"}'} + body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": + "moderate_subs@example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", + "list_id": "moderate_subs.example.com", "list_name": "moderate_subs", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", + "volume": 1}'} headers: content-length: ['344'] 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: 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": "\"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"}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "moderate_subs-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_size_threshold": 30.0, "display_name": "Moderate_subs", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", + "http_etag": "\"aa85d534bd36628a1266c50632dec84d5cdad0d6\"", "include_rfc2369_headers": + true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, + "leave_address": "moderate_subs-leave@example.com", "list_name": "moderate_subs", + "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": + "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "moderate_subs-request@example.com", "scheme": "http", "send_welcome_message": + true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": "confirm", + "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1717'] + content-length: ['1710'] 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 + body: anonymous_list=False&autorespond_postings=none&display_name=Moderate_subs&admin_immed_notify=True&convert_html_to_plaintext=False&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&default_member_action=defer&digest_size_threshold=30.0&default_nonmember_action=hold&subscription_policy=moderate&first_strip_reply_to=False&collapse_alternatives=True&admin_notify_mchanges=False&autorespond_owner=none&include_rfc2369_headers=True&autoresponse_postings_text=&reply_to_address=&autoresponse_request_text=&autoresponse_grace_period=90d&filter_content=False&description=&administrivia=True&archive_policy=public&posting_pipeline=default-posting-pipeline&autoresponse_owner_text=&reply_goes_to_list=no_munging&subject_prefix=%5BModerate_subs%5D+&advertised=True&allow_list_posts=True&autorespond_requests=none&send_welcome_message=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 '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] + location: ['http://localhost:9001/3.0/users/5'] 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 + uri: http://localhost:9001/3.0/users/5/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\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 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"}]}'} + body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "fritz@example.org", + "http_etag": "\"aa0a3a60758fb587bd9b698839c58d23b5dbeac1\"", "list_id": "moderate_subs.example.com", + "token": "44cc7158fa32f05de01a09e1140a4b437f28b01f", "token_owner": "moderator", + "when": "2005-08-01T07:49:23"}], "http_etag": "\"b6655624de25438f74064513e16b91ee8e74d5b4\"", + "start": 0, "total_size": 1}'} 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 + uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/requests/44cc7158fa32f05de01a09e1140a4b437f28b01f 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 + uri: http://localhost:9001/3.0/users/5 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: @@ -390,357 +311,284 @@ 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\""}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['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\""}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['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"}'} + body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": + "open_list@example.com", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", + "list_id": "open_list.example.com", "list_name": "open_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", + "volume": 1}'} 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"}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "open_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_size_threshold": 30.0, "display_name": "Open_list", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", + "http_etag": "\"2bde68eb63d937c0756c16b54af67529ad981268\"", "include_rfc2369_headers": + true, "join_address": "open_list-join@example.com", "last_post_at": null, + "leave_address": "open_list-leave@example.com", "list_name": "open_list", + "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "open_list-owner@example.com", "post_id": 1, "posting_address": + "open_list@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "open_list-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Open_list] + ", "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1677'] + content-length: ['1670'] 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 + body: anonymous_list=False&autorespond_postings=none&display_name=Open_list&admin_immed_notify=True&convert_html_to_plaintext=False&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&default_member_action=defer&digest_size_threshold=30.0&default_nonmember_action=hold&subscription_policy=open&first_strip_reply_to=False&collapse_alternatives=True&admin_notify_mchanges=False&autorespond_owner=none&include_rfc2369_headers=True&autoresponse_postings_text=&reply_to_address=&autoresponse_request_text=&autoresponse_grace_period=90d&filter_content=False&description=&administrivia=True&archive_policy=public&posting_pipeline=default-posting-pipeline&autoresponse_owner_text=&reply_goes_to_list=no_munging&subject_prefix=%5BOpen_list%5D+&advertised=True&allow_list_posts=True&autorespond_requests=none&send_welcome_message=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 '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"}'} + body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": + "moderate_subs@example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", + "list_id": "moderate_subs.example.com", "list_name": "moderate_subs", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", + "volume": 1}'} 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"}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "moderate_subs-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_size_threshold": 30.0, "display_name": "Moderate_subs", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", + "http_etag": "\"aa85d534bd36628a1266c50632dec84d5cdad0d6\"", "include_rfc2369_headers": + true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, + "leave_address": "moderate_subs-leave@example.com", "list_name": "moderate_subs", + "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": + "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "moderate_subs-request@example.com", "scheme": "http", "send_welcome_message": + true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": "confirm", + "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1717'] + content-length: ['1710'] 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 + body: anonymous_list=False&autorespond_postings=none&display_name=Moderate_subs&admin_immed_notify=True&convert_html_to_plaintext=False&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&default_member_action=defer&digest_size_threshold=30.0&default_nonmember_action=hold&subscription_policy=moderate&first_strip_reply_to=False&collapse_alternatives=True&admin_notify_mchanges=False&autorespond_owner=none&include_rfc2369_headers=True&autoresponse_postings_text=&reply_to_address=&autoresponse_request_text=&autoresponse_grace_period=90d&filter_content=False&description=&administrivia=True&archive_policy=public&posting_pipeline=default-posting-pipeline&autoresponse_owner_text=&reply_goes_to_list=no_munging&subject_prefix=%5BModerate_subs%5D+&advertised=True&allow_list_posts=True&autorespond_requests=none&send_welcome_message=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 '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] + location: ['http://localhost:9001/3.0/users/6'] 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 + uri: http://localhost:9001/3.0/users/6/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}'} + "start": 0, "total_size": 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}'} + "start": 0, "total_size": 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 '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: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 + uri: http://localhost:9001/3.0/users/6 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: @@ -748,376 +596,299 @@ 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\""}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['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\""}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['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"}'} + body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": + "open_list@example.com", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", + "list_id": "open_list.example.com", "list_name": "open_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", + "volume": 1}'} 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"}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "open_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_size_threshold": 30.0, "display_name": "Open_list", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", + "http_etag": "\"2bde68eb63d937c0756c16b54af67529ad981268\"", "include_rfc2369_headers": + true, "join_address": "open_list-join@example.com", "last_post_at": null, + "leave_address": "open_list-leave@example.com", "list_name": "open_list", + "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "open_list-owner@example.com", "post_id": 1, "posting_address": + "open_list@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "open_list-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Open_list] + ", "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1677'] + content-length: ['1670'] 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 + body: anonymous_list=False&autorespond_postings=none&display_name=Open_list&admin_immed_notify=True&convert_html_to_plaintext=False&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&default_member_action=defer&digest_size_threshold=30.0&default_nonmember_action=hold&subscription_policy=open&first_strip_reply_to=False&collapse_alternatives=True&admin_notify_mchanges=False&autorespond_owner=none&include_rfc2369_headers=True&autoresponse_postings_text=&reply_to_address=&autoresponse_request_text=&autoresponse_grace_period=90d&filter_content=False&description=&administrivia=True&archive_policy=public&posting_pipeline=default-posting-pipeline&autoresponse_owner_text=&reply_goes_to_list=no_munging&subject_prefix=%5BOpen_list%5D+&advertised=True&allow_list_posts=True&autorespond_requests=none&send_welcome_message=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 '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"}'} + body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": + "moderate_subs@example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", + "list_id": "moderate_subs.example.com", "list_name": "moderate_subs", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", + "volume": 1}'} 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"}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "moderate_subs-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_size_threshold": 30.0, "display_name": "Moderate_subs", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", + "http_etag": "\"aa85d534bd36628a1266c50632dec84d5cdad0d6\"", "include_rfc2369_headers": + true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, + "leave_address": "moderate_subs-leave@example.com", "list_name": "moderate_subs", + "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": + "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "moderate_subs-request@example.com", "scheme": "http", "send_welcome_message": + true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": "confirm", + "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1717'] + content-length: ['1710'] 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 + body: anonymous_list=False&autorespond_postings=none&display_name=Moderate_subs&admin_immed_notify=True&convert_html_to_plaintext=False&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&default_member_action=defer&digest_size_threshold=30.0&default_nonmember_action=hold&subscription_policy=moderate&first_strip_reply_to=False&collapse_alternatives=True&admin_notify_mchanges=False&autorespond_owner=none&include_rfc2369_headers=True&autoresponse_postings_text=&reply_to_address=&autoresponse_request_text=&autoresponse_grace_period=90d&filter_content=False&description=&administrivia=True&archive_policy=public&posting_pipeline=default-posting-pipeline&autoresponse_owner_text=&reply_goes_to_list=no_munging&subject_prefix=%5BModerate_subs%5D+&advertised=True&allow_list_posts=True&autorespond_requests=none&send_welcome_message=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 '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] + location: ['http://localhost:9001/3.0/users/7'] 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 + uri: http://localhost:9001/3.0/users/7/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}'} + "start": 0, "total_size": 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"}]}'} + body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "test@example.com", + "http_etag": "\"dc4929d089922ed834b6ca55db444af35b0c55ee\"", "list_id": "moderate_subs.example.com", + "token": "6a911c419c74c6d5b4721505351f49080650bf18", "token_owner": "moderator", + "when": "2005-08-01T07:49:23"}], "http_etag": "\"c72c9da6f9f5fce71fac30dd2722c5810d64e891\"", + "start": 0, "total_size": 1}'} 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 + uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/requests/6a911c419c74c6d5b4721505351f49080650bf18 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 + uri: http://localhost:9001/3.0/users/7 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: @@ -1125,357 +896,284 @@ 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\""}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['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\""}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['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"}'} + body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": + "open_list@example.com", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", + "list_id": "open_list.example.com", "list_name": "open_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", + "volume": 1}'} 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"}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "open_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_size_threshold": 30.0, "display_name": "Open_list", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", + "http_etag": "\"2bde68eb63d937c0756c16b54af67529ad981268\"", "include_rfc2369_headers": + true, "join_address": "open_list-join@example.com", "last_post_at": null, + "leave_address": "open_list-leave@example.com", "list_name": "open_list", + "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "open_list-owner@example.com", "post_id": 1, "posting_address": + "open_list@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "open_list-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Open_list] + ", "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1677'] + content-length: ['1670'] 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 + body: anonymous_list=False&autorespond_postings=none&display_name=Open_list&admin_immed_notify=True&convert_html_to_plaintext=False&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&default_member_action=defer&digest_size_threshold=30.0&default_nonmember_action=hold&subscription_policy=open&first_strip_reply_to=False&collapse_alternatives=True&admin_notify_mchanges=False&autorespond_owner=none&include_rfc2369_headers=True&autoresponse_postings_text=&reply_to_address=&autoresponse_request_text=&autoresponse_grace_period=90d&filter_content=False&description=&administrivia=True&archive_policy=public&posting_pipeline=default-posting-pipeline&autoresponse_owner_text=&reply_goes_to_list=no_munging&subject_prefix=%5BOpen_list%5D+&advertised=True&allow_list_posts=True&autorespond_requests=none&send_welcome_message=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 '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"}'} + body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": + "moderate_subs@example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", + "list_id": "moderate_subs.example.com", "list_name": "moderate_subs", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", + "volume": 1}'} 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"}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "moderate_subs-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_size_threshold": 30.0, "display_name": "Moderate_subs", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", + "http_etag": "\"aa85d534bd36628a1266c50632dec84d5cdad0d6\"", "include_rfc2369_headers": + true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, + "leave_address": "moderate_subs-leave@example.com", "list_name": "moderate_subs", + "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": + "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "moderate_subs-request@example.com", "scheme": "http", "send_welcome_message": + true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": "confirm", + "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1717'] + content-length: ['1710'] 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 + body: anonymous_list=False&autorespond_postings=none&display_name=Moderate_subs&admin_immed_notify=True&convert_html_to_plaintext=False&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&default_member_action=defer&digest_size_threshold=30.0&default_nonmember_action=hold&subscription_policy=moderate&first_strip_reply_to=False&collapse_alternatives=True&admin_notify_mchanges=False&autorespond_owner=none&include_rfc2369_headers=True&autoresponse_postings_text=&reply_to_address=&autoresponse_request_text=&autoresponse_grace_period=90d&filter_content=False&description=&administrivia=True&archive_policy=public&posting_pipeline=default-posting-pipeline&autoresponse_owner_text=&reply_goes_to_list=no_munging&subject_prefix=%5BModerate_subs%5D+&advertised=True&allow_list_posts=True&autorespond_requests=none&send_welcome_message=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 '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] + location: ['http://localhost:9001/3.0/users/8'] 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 + uri: http://localhost:9001/3.0/users/8/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}'} + "start": 0, "total_size": 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}'} + "start": 0, "total_size": 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 + uri: http://localhost:9001/3.0/users/8 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: @@ -1483,348 +1181,277 @@ 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\""}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['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\""}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['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"}'} + body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": + "open_list@example.com", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", + "list_id": "open_list.example.com", "list_name": "open_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", + "volume": 1}'} 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"}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "open_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_size_threshold": 30.0, "display_name": "Open_list", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", + "http_etag": "\"2bde68eb63d937c0756c16b54af67529ad981268\"", "include_rfc2369_headers": + true, "join_address": "open_list-join@example.com", "last_post_at": null, + "leave_address": "open_list-leave@example.com", "list_name": "open_list", + "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "open_list-owner@example.com", "post_id": 1, "posting_address": + "open_list@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "open_list-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Open_list] + ", "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1677'] + content-length: ['1670'] 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 + body: anonymous_list=False&autorespond_postings=none&display_name=Open_list&admin_immed_notify=True&convert_html_to_plaintext=False&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&default_member_action=defer&digest_size_threshold=30.0&default_nonmember_action=hold&subscription_policy=open&first_strip_reply_to=False&collapse_alternatives=True&admin_notify_mchanges=False&autorespond_owner=none&include_rfc2369_headers=True&autoresponse_postings_text=&reply_to_address=&autoresponse_request_text=&autoresponse_grace_period=90d&filter_content=False&description=&administrivia=True&archive_policy=public&posting_pipeline=default-posting-pipeline&autoresponse_owner_text=&reply_goes_to_list=no_munging&subject_prefix=%5BOpen_list%5D+&advertised=True&allow_list_posts=True&autorespond_requests=none&send_welcome_message=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 '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"}'} + body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": + "moderate_subs@example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", + "list_id": "moderate_subs.example.com", "list_name": "moderate_subs", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", + "volume": 1}'} 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"}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "moderate_subs-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_size_threshold": 30.0, "display_name": "Moderate_subs", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", + "http_etag": "\"aa85d534bd36628a1266c50632dec84d5cdad0d6\"", "include_rfc2369_headers": + true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, + "leave_address": "moderate_subs-leave@example.com", "list_name": "moderate_subs", + "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": + "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "moderate_subs-request@example.com", "scheme": "http", "send_welcome_message": + true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": "confirm", + "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1717'] + content-length: ['1710'] 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 + body: anonymous_list=False&autorespond_postings=none&display_name=Moderate_subs&admin_immed_notify=True&convert_html_to_plaintext=False&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&default_member_action=defer&digest_size_threshold=30.0&default_nonmember_action=hold&subscription_policy=moderate&first_strip_reply_to=False&collapse_alternatives=True&admin_notify_mchanges=False&autorespond_owner=none&include_rfc2369_headers=True&autoresponse_postings_text=&reply_to_address=&autoresponse_request_text=&autoresponse_grace_period=90d&filter_content=False&description=&administrivia=True&archive_policy=public&posting_pipeline=default-posting-pipeline&autoresponse_owner_text=&reply_goes_to_list=no_munging&subject_prefix=%5BModerate_subs%5D+&advertised=True&allow_list_posts=True&autorespond_requests=none&send_welcome_message=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 '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] + location: ['http://localhost:9001/3.0/users/9'] 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 + uri: http://localhost:9001/3.0/users/9/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}'} + "start": 0, "total_size": 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}'} + "start": 0, "total_size": 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 + uri: http://localhost:9001/3.0/users/9 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 index cd201b1..f7916a9 100644 --- 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 @@ -3,341 +3,264 @@ 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"}'} + body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": + "moderate_subs@example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", + "list_id": "moderate_subs.example.com", "list_name": "moderate_subs", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", + "volume": 1}'} 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}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"826a7dbc854ad57b21be295fd53815e8c656fc3d\"", "is_server_owner": false, + "password": "$6$rounds=607175$SG9Aj8e6kBvnczxa$DV5kVd4WjInjsQFcqTsGvZz5jpiRyn52Eb0JN8yR4EiCW99fzxjOmCf73vKwCp6IYu/AiZCQ0VdtvVJzvnXip0", + "self_link": "http://localhost:9001/3.0/users/7", "user_id": 7}'} headers: - content-length: ['407'] + content-length: ['324'] 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 + uri: http://localhost:9001/3.0/users/7/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"}]}'} + body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": + "\"544d5d4924c00a67b82f8d7cddaa5d2ccfd25bb9\"", "original_email": "fritz@example.org", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", + "user": "http://localhost:9001/3.0/users/7", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"deab7596aa4fed8d7db92cd9fc477a4e0fa412f6\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/7"}], "http_etag": "\"6b96ef3d16bab5a374e8964c90fc1f34ca35f3e7\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['809'] + content-length: ['712'] 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"}'} + body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"544d5d4924c00a67b82f8d7cddaa5d2ccfd25bb9\"", + "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "user": + "http://localhost:9001/3.0/users/7", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['375'] + content-length: ['323'] 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"}'} + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"deab7596aa4fed8d7db92cd9fc477a4e0fa412f6\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/7"}'} headers: - content-length: ['327'] + content-length: ['282'] 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}'} + "start": 0, "total_size": 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}'} + "start": 0, "total_size": 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 + body: pre_confirmed=True&pre_verified=True&display_name=None&subscriber=test%40example.com&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": "\"43764d5b3dd3ec545af9728b1b5758e594a07a17\"", - "token_owner": "moderator", "token": "595ef1977cc284df4dbbdfae5a473be5696dee62"}'} + body: {string: !!python/unicode '{"http_etag": "\"173e8f13bfe80fc48e51e982ee1abd295ddcd930\"", + "token": "6a911c419c74c6d5b4721505351f49080650bf18", "token_owner": "moderator"}'} 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}'} + "start": 0, "total_size": 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"}]}'} + body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "test@example.com", + "http_etag": "\"dc4929d089922ed834b6ca55db444af35b0c55ee\"", "list_id": "moderate_subs.example.com", + "token": "6a911c419c74c6d5b4721505351f49080650bf18", "token_owner": "moderator", + "when": "2005-08-01T07:49:23"}], "http_etag": "\"c72c9da6f9f5fce71fac30dd2722c5810d64e891\"", + "start": 0, "total_size": 1}'} 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"}'} + body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": + "moderate_subs@example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", + "list_id": "moderate_subs.example.com", "list_name": "moderate_subs", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", + "volume": 1}'} 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}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"826a7dbc854ad57b21be295fd53815e8c656fc3d\"", "is_server_owner": false, + "password": "$6$rounds=607175$SG9Aj8e6kBvnczxa$DV5kVd4WjInjsQFcqTsGvZz5jpiRyn52Eb0JN8yR4EiCW99fzxjOmCf73vKwCp6IYu/AiZCQ0VdtvVJzvnXip0", + "self_link": "http://localhost:9001/3.0/users/7", "user_id": 7}'} headers: - content-length: ['407'] + content-length: ['324'] 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 + uri: http://localhost:9001/3.0/users/7/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"}]}'} + body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": + "\"544d5d4924c00a67b82f8d7cddaa5d2ccfd25bb9\"", "original_email": "fritz@example.org", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", + "user": "http://localhost:9001/3.0/users/7", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"61b7b0e8ffc236d34de50c013b09c99eb7ee6f64\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/7", "verified_on": "2005-08-01T07:49:23"}], + "http_etag": "\"cd7965a44a60e1c43b736a4c2bf90265059a6283\"", "start": 0, "total_size": + 2}'} headers: - content-length: ['854'] + content-length: ['750'] 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"}'} + body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"544d5d4924c00a67b82f8d7cddaa5d2ccfd25bb9\"", + "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "user": + "http://localhost:9001/3.0/users/7", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['375'] + content-length: ['323'] 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"}'} + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"61b7b0e8ffc236d34de50c013b09c99eb7ee6f64\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/7", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['372'] + content-length: ['320'] 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}'} + "start": 0, "total_size": 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}'} + "start": 0, "total_size": 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: @@ -345,15 +268,11 @@ 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: @@ -361,43 +280,37 @@ 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"}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "moderate_subs-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_size_threshold": 30.0, "display_name": "Moderate_subs", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", + "http_etag": "\"30b3d82df7a0440cdccf5a11cf2f54175da65805\"", "include_rfc2369_headers": + true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, + "leave_address": "moderate_subs-leave@example.com", "list_name": "moderate_subs", + "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": + "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "moderate_subs-request@example.com", "scheme": "http", "send_welcome_message": + true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": "moderate", + "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1718'] + content-length: ['1711'] 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 index 2bdc1c6..d3f04e0 100644 --- 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 @@ -3,341 +3,263 @@ 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"}'} + body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": + "moderate_subs@example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", + "list_id": "moderate_subs.example.com", "list_name": "moderate_subs", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", + "volume": 1}'} 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}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"e4109490476eda2334028e7b5ebd0922ea91bacb\"", "is_server_owner": false, + "password": "$6$rounds=653979$/McqqMA7jakWaySi$282XS1AM4wcHWJRLCcVdEadqwSe6JMSfpPrXzeCX53oe1If3ru93AYLL.Dyx1wKTQYz1JIVoCxgLGOiiIG8DN0", + "self_link": "http://localhost:9001/3.0/users/5", "user_id": 5}'} headers: - content-length: ['407'] + content-length: ['324'] 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 + uri: http://localhost:9001/3.0/users/5/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"}]}'} + body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": + "\"543b42cc5a515857d1b11ec1b3152411d9e8724e\"", "original_email": "fritz@example.org", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", + "user": "http://localhost:9001/3.0/users/5", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"ab97396c1c0303d5a821163e7610952e207ae1fc\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/5"}], "http_etag": "\"492e6d34d9256576addb94a7321c75dd1329a7a8\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['809'] + content-length: ['712'] 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"}'} + body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"543b42cc5a515857d1b11ec1b3152411d9e8724e\"", + "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "user": + "http://localhost:9001/3.0/users/5", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['375'] + content-length: ['323'] 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"}'} + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"ab97396c1c0303d5a821163e7610952e207ae1fc\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/5"}'} headers: - content-length: ['327'] + content-length: ['282'] 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}'} + "start": 0, "total_size": 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}'} + "start": 0, "total_size": 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 + 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": "\"68940d762952499359d7bbbc30514e2930463d9a\"", - "token_owner": "moderator", "token": "4949554df3e666e9fa813d15ea44d8e3cf7de13d"}'} + body: {string: !!python/unicode '{"http_etag": "\"ebaab40a197ee4cebc1948841d06fd20b6ccf7c6\"", + "token": "44cc7158fa32f05de01a09e1140a4b437f28b01f", "token_owner": "moderator"}'} 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}'} + "start": 0, "total_size": 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"}]}'} + body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "fritz@example.org", + "http_etag": "\"aa0a3a60758fb587bd9b698839c58d23b5dbeac1\"", "list_id": "moderate_subs.example.com", + "token": "44cc7158fa32f05de01a09e1140a4b437f28b01f", "token_owner": "moderator", + "when": "2005-08-01T07:49:23"}], "http_etag": "\"b6655624de25438f74064513e16b91ee8e74d5b4\"", + "start": 0, "total_size": 1}'} 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"}'} + body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": + "moderate_subs@example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", + "list_id": "moderate_subs.example.com", "list_name": "moderate_subs", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", + "volume": 1}'} 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}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"e4109490476eda2334028e7b5ebd0922ea91bacb\"", "is_server_owner": false, + "password": "$6$rounds=653979$/McqqMA7jakWaySi$282XS1AM4wcHWJRLCcVdEadqwSe6JMSfpPrXzeCX53oe1If3ru93AYLL.Dyx1wKTQYz1JIVoCxgLGOiiIG8DN0", + "self_link": "http://localhost:9001/3.0/users/5", "user_id": 5}'} headers: - content-length: ['407'] + content-length: ['324'] 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 + uri: http://localhost:9001/3.0/users/5/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"}]}'} + body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": + "\"543b42cc5a515857d1b11ec1b3152411d9e8724e\"", "original_email": "fritz@example.org", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", + "user": "http://localhost:9001/3.0/users/5", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"ab97396c1c0303d5a821163e7610952e207ae1fc\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/5"}], "http_etag": "\"492e6d34d9256576addb94a7321c75dd1329a7a8\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['809'] + content-length: ['712'] 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"}'} + body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"543b42cc5a515857d1b11ec1b3152411d9e8724e\"", + "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "user": + "http://localhost:9001/3.0/users/5", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['375'] + content-length: ['323'] 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"}'} + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"ab97396c1c0303d5a821163e7610952e207ae1fc\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/5"}'} headers: - content-length: ['327'] + content-length: ['282'] 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}'} + "start": 0, "total_size": 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}'} + "start": 0, "total_size": 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: @@ -345,15 +267,11 @@ 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: @@ -361,43 +279,37 @@ 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"}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "moderate_subs-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_size_threshold": 30.0, "display_name": "Moderate_subs", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", + "http_etag": "\"30b3d82df7a0440cdccf5a11cf2f54175da65805\"", "include_rfc2369_headers": + true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, + "leave_address": "moderate_subs-leave@example.com", "list_name": "moderate_subs", + "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": + "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "moderate_subs-request@example.com", "scheme": "http", "send_welcome_message": + true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": "moderate", + "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1718'] + content-length: ['1711'] 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_open_primary.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_open_primary.yaml index 593cfe9..3b1a535 100644 --- 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 @@ -3,388 +3,305 @@ 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"}'} + body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": + "open_list@example.com", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", + "list_id": "open_list.example.com", "list_name": "open_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", + "volume": 1}'} 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}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"5069210111f0bea3d480abba552bd68c7addf54f\"", "is_server_owner": false, + "password": "$6$rounds=617756$iLhNGRBEKtnGdij4$g/CDqV51YF02gVAM6ExGDAkr1tRfe.EdUlzv/nxS9JwsSnFfc4.OpFDJXhfKTjCeRmiD1dx91v9PeOa6//rzT0", + "self_link": "http://localhost:9001/3.0/users/8", "user_id": 8}'} headers: - content-length: ['403'] + 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/2132721265292240516692920550729841030/addresses + uri: http://localhost:9001/3.0/users/8/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"}]}'} + body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": + "\"daa00b2c01031e3acab906927ca2edd5b5557399\"", "original_email": "fritz@example.org", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", + "user": "http://localhost:9001/3.0/users/8", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"ddda9833ea38cea61dbf611f3cf46fd118cba777\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/8"}], "http_etag": "\"9e159c2ae2863bc8ff50f8475e6cb154967eba0c\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['805'] + content-length: ['712'] 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"}'} + body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"daa00b2c01031e3acab906927ca2edd5b5557399\"", + "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "user": + "http://localhost:9001/3.0/users/8", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['373'] + content-length: ['323'] 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"}'} + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"ddda9833ea38cea61dbf611f3cf46fd118cba777\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/8"}'} headers: - content-length: ['325'] + content-length: ['282'] 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}'} + "start": 0, "total_size": 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}'} + "start": 0, "total_size": 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 + body: pre_confirmed=True&pre_verified=True&display_name=None&subscriber=test%40example.com&list_id=open_list.example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.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] + location: ['http://localhost:9001/3.0/members/14'] 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\""}]}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/test@example.com", + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"bd30b866d76909a27b30d69385955ef32ab5b4d9\"", + "list_id": "open_list.example.com", "member_id": 14, "role": "member", "self_link": + "http://localhost:9001/3.0/members/14", "user": "http://localhost:9001/3.0/users/8"}], + "http_etag": "\"8742e38a8a5ef2d2a7d43a36c238a305c782c593\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['569'] + content-length: ['459'] 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}'} + "start": 0, "total_size": 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"}'} + body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": + "open_list@example.com", "http_etag": "\"f19d0b7ddb1b51b8c81a873365571fd6aeb6162d\"", + "list_id": "open_list.example.com", "list_name": "open_list", "mail_host": + "example.com", "member_count": 1, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", + "volume": 1}'} 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}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"5069210111f0bea3d480abba552bd68c7addf54f\"", "is_server_owner": false, + "password": "$6$rounds=617756$iLhNGRBEKtnGdij4$g/CDqV51YF02gVAM6ExGDAkr1tRfe.EdUlzv/nxS9JwsSnFfc4.OpFDJXhfKTjCeRmiD1dx91v9PeOa6//rzT0", + "self_link": "http://localhost:9001/3.0/users/8", "user_id": 8}'} headers: - content-length: ['403'] + 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/2132721265292240516692920550729841030/addresses + uri: http://localhost:9001/3.0/users/8/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"}]}'} + body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": + "\"daa00b2c01031e3acab906927ca2edd5b5557399\"", "original_email": "fritz@example.org", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", + "user": "http://localhost:9001/3.0/users/8", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"9f73a0586e712ffb6e4a59c53090f38aba156bcb\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/8", "verified_on": "2005-08-01T07:49:23"}], + "http_etag": "\"0ef0000948f82250eb9d26b515749037d580cfca\"", "start": 0, "total_size": + 2}'} headers: - content-length: ['850'] + content-length: ['750'] 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"}'} + body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"daa00b2c01031e3acab906927ca2edd5b5557399\"", + "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "user": + "http://localhost:9001/3.0/users/8", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['373'] + content-length: ['323'] 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"}'} + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"9f73a0586e712ffb6e4a59c53090f38aba156bcb\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/8", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['370'] + content-length: ['320'] 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}'} + "start": 0, "total_size": 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}'} + "start": 0, "total_size": 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\""}'} + body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/test@example.com", + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"bd30b866d76909a27b30d69385955ef32ab5b4d9\"", + "list_id": "open_list.example.com", "member_id": 14, "role": "member", "self_link": + "http://localhost:9001/3.0/members/14", "user": "http://localhost:9001/3.0/users/8"}'} headers: - content-length: ['464'] + content-length: ['354'] 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"}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "open_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_size_threshold": 30.0, "display_name": "Open_list", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", + "http_etag": "\"a740af21268a8ea9831a971aa83ab61bc3768cc1\"", "include_rfc2369_headers": + true, "join_address": "open_list-join@example.com", "last_post_at": null, + "leave_address": "open_list-leave@example.com", "list_name": "open_list", + "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "open_list-owner@example.com", "post_id": 1, "posting_address": + "open_list@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "open_list-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Open_list] + ", "subscription_policy": "open", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1674'] + content-length: ['1667'] 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 index ef30e03..b53dfcd 100644 --- 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 @@ -3,340 +3,263 @@ 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"}'} + body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": + "open_list@example.com", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", + "list_id": "open_list.example.com", "list_name": "open_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", + "volume": 1}'} 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}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"b4eff18912cd37407623c7d90cfea428c6d59b8e\"", "is_server_owner": false, + "password": "$6$rounds=663182$jW7EPq.JfwahwWPy$l8rZ1Wp8ABUiF/rPaM9vGZ.w3VGWb6i9rrgGHgFn5VDmH8ShNBtGL82SaaYt65aGjgfF5ZI3kT2AmIXzZJh/c/", + "self_link": "http://localhost:9001/3.0/users/6", "user_id": 6}'} headers: - content-length: ['407'] + 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/325231961282814726929218872744044864330/addresses + uri: http://localhost:9001/3.0/users/6/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"}]}'} + body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": + "\"d19795a66bdb062d4cadc434145e217d9bcc0108\"", "original_email": "fritz@example.org", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", + "user": "http://localhost:9001/3.0/users/6", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"d5238d960c86cf84782d10c3459a0ac7c33de01f\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/6"}], "http_etag": "\"8a15df442b74561ee9a7242c013b0c8b0d474146\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['809'] + content-length: ['712'] 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"}'} + body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"d19795a66bdb062d4cadc434145e217d9bcc0108\"", + "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "user": + "http://localhost:9001/3.0/users/6", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['375'] + content-length: ['323'] 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"}'} + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"d5238d960c86cf84782d10c3459a0ac7c33de01f\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/6"}'} headers: - content-length: ['327'] + content-length: ['282'] 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}'} + "start": 0, "total_size": 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}'} + "start": 0, "total_size": 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 + body: pre_confirmed=True&pre_verified=True&display_name=None&subscriber=fritz%40example.org&list_id=open_list.example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.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] + location: ['http://localhost:9001/3.0/members/13'] 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\""}]}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/fritz@example.org", + "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"523eb2649ddf50ad7c40b29179e5fc8e4fe2c8f1\"", + "list_id": "open_list.example.com", "member_id": 13, "role": "member", "self_link": + "http://localhost:9001/3.0/members/13", "user": "http://localhost:9001/3.0/users/6"}], + "http_etag": "\"992ff0a27ac7aebb741cb8b256fb5d4e5a78ad31\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['573'] + content-length: ['461'] 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}'} + "start": 0, "total_size": 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"}'} + body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": + "open_list@example.com", "http_etag": "\"f19d0b7ddb1b51b8c81a873365571fd6aeb6162d\"", + "list_id": "open_list.example.com", "list_name": "open_list", "mail_host": + "example.com", "member_count": 1, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", + "volume": 1}'} 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}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"b4eff18912cd37407623c7d90cfea428c6d59b8e\"", "is_server_owner": false, + "password": "$6$rounds=663182$jW7EPq.JfwahwWPy$l8rZ1Wp8ABUiF/rPaM9vGZ.w3VGWb6i9rrgGHgFn5VDmH8ShNBtGL82SaaYt65aGjgfF5ZI3kT2AmIXzZJh/c/", + "self_link": "http://localhost:9001/3.0/users/6", "user_id": 6}'} headers: - content-length: ['407'] + 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/325231961282814726929218872744044864330/addresses + uri: http://localhost:9001/3.0/users/6/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"}]}'} + body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": + "\"d19795a66bdb062d4cadc434145e217d9bcc0108\"", "original_email": "fritz@example.org", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", + "user": "http://localhost:9001/3.0/users/6", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"d5238d960c86cf84782d10c3459a0ac7c33de01f\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/6"}], "http_etag": "\"8a15df442b74561ee9a7242c013b0c8b0d474146\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['809'] + content-length: ['712'] 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"}'} + body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"d19795a66bdb062d4cadc434145e217d9bcc0108\"", + "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "user": + "http://localhost:9001/3.0/users/6", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['375'] + content-length: ['323'] 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"}'} + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"d5238d960c86cf84782d10c3459a0ac7c33de01f\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/6"}'} headers: - content-length: ['327'] + content-length: ['282'] 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}'} + "start": 0, "total_size": 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}'} + "start": 0, "total_size": 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: @@ -344,63 +267,52 @@ 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\""}'} + body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/fritz@example.org", + "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"523eb2649ddf50ad7c40b29179e5fc8e4fe2c8f1\"", + "list_id": "open_list.example.com", "member_id": 13, "role": "member", "self_link": + "http://localhost:9001/3.0/members/13", "user": "http://localhost:9001/3.0/users/6"}'} headers: - content-length: ['468'] + content-length: ['356'] 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"}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "open_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_size_threshold": 30.0, "display_name": "Open_list", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", + "http_etag": "\"a740af21268a8ea9831a971aa83ab61bc3768cc1\"", "include_rfc2369_headers": + true, "join_address": "open_list-join@example.com", "last_post_at": null, + "leave_address": "open_list-leave@example.com", "list_name": "open_list", + "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "open_list-owner@example.com", "post_id": 1, "posting_address": + "open_list@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "open_list-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Open_list] + ", "subscription_policy": "open", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1674'] + content-length: ['1667'] 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 index f222044..005a926 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_unknown.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_unknown.yaml @@ -3,318 +3,246 @@ 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"}'} + body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": + "open_list@example.com", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", + "list_id": "open_list.example.com", "list_name": "open_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", + "volume": 1}'} 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}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"95cd787b4b5d16c0ab83ba757b3c83a1f4ffaeae\"", "is_server_owner": false, + "password": "$6$rounds=661971$qUQfwiJS826sAD4m$ScmKYNkPXPW9wQUu6yxCIhaUU/phNE2Q08tbYZqw8xomvg./xF8fdIn4GZ.sML.M8DOiJYUuhAlPdzani0HPU0", + "self_link": "http://localhost:9001/3.0/users/9", "user_id": 9}'} headers: - content-length: ['407'] + 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/239668863806269665286378136823089641863/addresses + uri: http://localhost:9001/3.0/users/9/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"}]}'} + body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": + "\"8d3a06e7ab49e4715967bd3b56099967748b6868\"", "original_email": "fritz@example.org", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", + "user": "http://localhost:9001/3.0/users/9", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"83c6dfb813c2b4484f0c15eb434e104521bb2409\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/9"}], "http_etag": "\"f936e2df1794def099840486f4b0cf7a24e838c8\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['809'] + content-length: ['712'] 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"}'} + body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"8d3a06e7ab49e4715967bd3b56099967748b6868\"", + "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "user": + "http://localhost:9001/3.0/users/9", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['375'] + content-length: ['323'] 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"}'} + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"83c6dfb813c2b4484f0c15eb434e104521bb2409\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/9"}'} headers: - content-length: ['327'] + content-length: ['282'] 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}'} + "start": 0, "total_size": 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}'} + "start": 0, "total_size": 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}'} + "start": 0, "total_size": 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}'} + "start": 0, "total_size": 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"}'} + body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": + "open_list@example.com", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", + "list_id": "open_list.example.com", "list_name": "open_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", + "volume": 1}'} 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}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"95cd787b4b5d16c0ab83ba757b3c83a1f4ffaeae\"", "is_server_owner": false, + "password": "$6$rounds=661971$qUQfwiJS826sAD4m$ScmKYNkPXPW9wQUu6yxCIhaUU/phNE2Q08tbYZqw8xomvg./xF8fdIn4GZ.sML.M8DOiJYUuhAlPdzani0HPU0", + "self_link": "http://localhost:9001/3.0/users/9", "user_id": 9}'} headers: - content-length: ['407'] + 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/239668863806269665286378136823089641863/addresses + uri: http://localhost:9001/3.0/users/9/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"}]}'} + body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": + "\"8d3a06e7ab49e4715967bd3b56099967748b6868\"", "original_email": "fritz@example.org", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", + "user": "http://localhost:9001/3.0/users/9", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"83c6dfb813c2b4484f0c15eb434e104521bb2409\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/9"}], "http_etag": "\"f936e2df1794def099840486f4b0cf7a24e838c8\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['809'] + content-length: ['712'] 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"}'} + body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"8d3a06e7ab49e4715967bd3b56099967748b6868\"", + "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "user": + "http://localhost:9001/3.0/users/9", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['375'] + content-length: ['323'] 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"}'} + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"83c6dfb813c2b4484f0c15eb434e104521bb2409\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/9"}'} headers: - content-length: ['327'] + content-length: ['282'] 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}'} + "start": 0, "total_size": 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}'} + "start": 0, "total_size": 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: @@ -322,15 +250,11 @@ 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: @@ -338,43 +262,37 @@ 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"}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "open_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_size_threshold": 30.0, "display_name": "Open_list", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", + "http_etag": "\"a740af21268a8ea9831a971aa83ab61bc3768cc1\"", "include_rfc2369_headers": + true, "join_address": "open_list-join@example.com", "last_post_at": null, + "leave_address": "open_list-leave@example.com", "list_name": "open_list", + "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "open_list-owner@example.com", "post_id": 1, "posting_address": + "open_list@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "open_list-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Open_list] + ", "subscription_policy": "open", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1674'] + content-length: ['1667'] 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/fixtures/vcr_cassettes/test_list_summary.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary.yaml index f507dc7..f326f90 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary.yaml @@ -3,9 +3,7 @@ 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: @@ -13,230 +11,163 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:40 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"}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:40 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"}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:40 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.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:40 GMT'] location: ['http://localhost:9001/3.0/lists/foo.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 response: - body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "list_id": - "foo.example.com", "list_name": "foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"98cc998d4a30293ec17da639bce10617912a6e1e\"", "member_count": - 1, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "mail_host": - "example.com", "volume": 1}], "http_etag": "\"89bf5f8f6c4414c38432c355907ddf9f419ef53b\"", - "total_size": 1, "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": + "foo@example.com", "http_etag": "\"98cc998d4a30293ec17da639bce10617912a6e1e\"", + "list_id": "foo.example.com", "list_name": "foo", "mail_host": "example.com", + "member_count": 1, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1}], "http_etag": "\"89bf5f8f6c4414c38432c355907ddf9f419ef53b\"", + "start": 0, "total_size": 1}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:41 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/foo@example.com response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:41 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/users response: - body: {string: !!python/unicode '{"entries": [{"self_link": "http://localhost:9001/3.0/users/116373708801465927618154924572824087703", - "user_id": 116373708801465927618154924572824087703, "is_server_owner": false, - "created_on": "2015-11-11T12:49:23.964025", "http_etag": "\"403ad459e5b2aeaf4d5c3ba75668be87e17eb7fb\""}, - {"self_link": "http://localhost:9001/3.0/users/157359395161973632801276631076644754855", - "user_id": 157359395161973632801276631076644754855, "is_server_owner": false, - "created_on": "2015-11-11T12:49:25.060472", "http_etag": "\"c7ec47c2943127f7a2481f2eeb3617561ee9e77e\""}, - {"self_link": "http://localhost:9001/3.0/users/94218210250211962065145319561376051884", - "user_id": 94218210250211962065145319561376051884, "is_server_owner": false, - "created_on": "2015-11-11T12:49:26.230179", "http_etag": "\"8c3dd979f360e4d1196c62c76669c62945189a57\""}, - {"self_link": "http://localhost:9001/3.0/users/94704940159445895320083756410847799181", - "user_id": 94704940159445895320083756410847799181, "is_server_owner": false, - "created_on": "2015-11-11T12:49:26.408421", "http_etag": "\"e1beaeca38865db541c99a9ba7e9f0472ab1b700\""}, - {"http_etag": "\"e5ef391c762c0bd618848e8005091af8d740a966\"", "is_server_owner": - false, "user_id": 57822417512003885879958503109671419329, "display_name": - "None", "self_link": "http://localhost:9001/3.0/users/57822417512003885879958503109671419329", - "created_on": "2015-11-11T12:49:36.121076"}, {"http_etag": "\"669fb9a8f3872c7848531cb1757446f1ee3ce2d7\"", - "is_server_owner": false, "user_id": 35258670270330606438959454694878423733, - "display_name": "None", "self_link": "http://localhost:9001/3.0/users/35258670270330606438959454694878423733", - "created_on": "2015-11-11T12:49:40.357464"}], "http_etag": "\"061b378180da42fb49946069c69eab32ac676f85\"", - "total_size": 6, "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", + "http_etag": "\"eb591d9720aa0ac944b49315b6af1c950410b54c\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}, {"created_on": + "2005-08-01T07:49:23", "http_etag": "\"b36f8ca1d91d583901c768dc116815282d469c66\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/2", + "user_id": 2}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"bb1c2e6094a96b17e2d5dbf487291f7667f69f75\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3", + "user_id": 3}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"c1dcbf16536eb2e2151441f4bce2989ab1dab30b\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/4", + "user_id": 4}, {"created_on": "2005-08-01T07:49:23", "display_name": "None", + "http_etag": "\"7966e6f59bfd84a47cf7558bdc7cda9e70d9bc95\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/10", "user_id": 10}], + "http_etag": "\"67f2892d700936a58f23b8d8063126762186ddc5\"", "start": 0, "total_size": + 5}'} headers: - content-length: ['1781'] + content-length: ['1079'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:41 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/users/116373708801465927618154924572824087703 + uri: http://localhost:9001/3.0/users/1 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:41 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/157359395161973632801276631076644754855 + uri: http://localhost:9001/3.0/users/10 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:41 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/35258670270330606438959454694878423733 + uri: http://localhost:9001/3.0/users/2 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:41 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/57822417512003885879958503109671419329 + uri: http://localhost:9001/3.0/users/3 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:42 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/94218210250211962065145319561376051884 + uri: http://localhost:9001/3.0/users/4 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:42 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/94704940159445895320083756410847799181 - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:42 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: @@ -244,87 +175,293 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:42 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"}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:42 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"}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:42 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.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:42 GMT'] location: ['http://localhost:9001/3.0/lists/foo.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/foo@example.com + uri: http://localhost:9001/3.0/lists response: - body: {string: !!python/unicode '{"display_name": "Foo", "list_id": "foo.example.com", - "list_name": "foo", "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": + "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_id": "foo.example.com", "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", - "mail_host": "example.com", "volume": 1}'} + "volume": 1}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['294'] + content-length: ['399'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:43 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/foo@example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users + response: + body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", + "http_etag": "\"81a6a45c37a5fd98d7d20f54ffaa80eb536ec875\"", "is_server_owner": + false, "password": "$6$rounds=635766$arI5HaMYUcUkT4mt$1KV3LyoedGaGwduG6o5wPhjIx2T8iL0eID9euHLDYRfq0PvSOIt2pHZu7M2kW9XrnT/3M5U.l5vHFFX6NxeEC/", + "self_link": "http://localhost:9001/3.0/users/11", "user_id": 11}], "http_etag": + "\"fae45dfa2ce00eb292fdbcda163b71ed4c95ed74\"", "start": 0, "total_size": + 1}'} + headers: + content-length: ['431'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/11 + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + 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] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} + headers: + content-length: ['233'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} + headers: + content-length: ['233'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=foo%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/lists/foo.example.com'] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": + "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_id": "foo.example.com", "list_name": "foo", "mail_host": "example.com", + "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['399'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users + response: + body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", + "http_etag": "\"676ed6cf948f851553a68e939da0b4d1294d0ad5\"", "is_server_owner": + false, "password": "$6$rounds=719066$phL55NILdqpgTC1n$Z6.akbtmAVREHNP9iu1ziGTr8/75x/B5UBdTAAbEixvlRlpqovk.zFAEB1noEpK0p.OyiMcm7yP60LtYRRQJo0", + "self_link": "http://localhost:9001/3.0/users/12", "user_id": 12}], "http_etag": + "\"89b0f8ccd3d005ca3e312865adb795f141ed8aa7\"", "start": 0, "total_size": + 1}'} + headers: + content-length: ['431'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/12 + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + 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] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} + headers: + content-length: ['233'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} + headers: + content-length: ['233'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=foo%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/lists/foo.example.com'] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users/test@example.com response: @@ -332,49 +469,37 @@ headers: content-length: ['13'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:43 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/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:43 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/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"total_size": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 08:52: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/foo.example.com/member/test@example.com response: @@ -382,105 +507,84 @@ headers: content-length: ['2'] content-type: [application/json] - date: ['Wed, 11 Nov 2015 12:49:43 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/foo@example.com/config response: - body: {string: !!python/unicode '{"autoresponse_grace_period": "90d", "autorespond_requests": - "none", "display_name": "Foo", "default_member_action": "defer", "no_reply_address": - "noreply@example.com", "autorespond_postings": "none", "admin_notify_mchanges": - false, "fqdn_listname": "foo@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": "foo-owner@example.com", - "welcome_message_uri": "mailman:///welcome.txt", "allow_list_posts": true, - "subscription_policy": "confirm", "list_name": "foo", "admin_immed_notify": - true, "leave_address": "foo-leave@example.com", "autoresponse_request_text": - "", "posting_pipeline": "default-posting-pipeline", "convert_html_to_plaintext": - false, "reply_to_address": "", "request_address": "foo-request@example.com", - "join_address": "foo-join@example.com", "send_welcome_message": true, "archive_policy": - "public", "volume": 1, "first_strip_reply_to": false, "default_nonmember_action": - "hold", "posting_address": "foo@example.com", "http_etag": "\"64828c9eaac4089fc1e61699ff3891c972325b0d\"", - "bounces_address": "foo-bounces@example.com", "autorespond_owner": "none", - "created_at": "2015-11-11T12:49:42.511749", "digest_size_threshold": 30.0, - "web_host": "example.com", "anonymous_list": false, "scheme": "http", "digest_last_sent_at": - null, "subject_prefix": "[Foo] ", "mail_host": "example.com", "include_rfc2369_headers": - true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_size_threshold": 30.0, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"f24060c0fd5762da0d17009ff8b6f303bee3cd2f\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1617'] + content-length: ['1610'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:43 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 response: - body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "list_id": - "foo.example.com", "list_name": "foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "member_count": - 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "mail_host": - "example.com", "volume": 1}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", - "total_size": 1, "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": + "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_id": "foo.example.com", "list_name": "foo", "mail_host": "example.com", + "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "start": 0, "total_size": 1}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:43 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/foo@example.com response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:43 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/users response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:43 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - 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: @@ -488,141 +592,142 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:43 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"}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:44 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"}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:44 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.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:44 GMT'] location: ['http://localhost:9001/3.0/lists/foo.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/foo@example.com response: - body: {string: !!python/unicode '{"display_name": "Foo", "list_id": "foo.example.com", - "list_name": "foo", "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", - "mail_host": "example.com", "volume": 1}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:44 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/foo@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_size_threshold": 30.0, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"f24060c0fd5762da0d17009ff8b6f303bee3cd2f\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + headers: + content-length: ['1610'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists response: - body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "list_id": - "foo.example.com", "list_name": "foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "member_count": - 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "mail_host": - "example.com", "volume": 1}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", - "total_size": 1, "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": + "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_id": "foo.example.com", "list_name": "foo", "mail_host": "example.com", + "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "start": 0, "total_size": 1}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:45 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/foo@example.com response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:45 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/users response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:45 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - 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: @@ -630,131 +735,327 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:45 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"}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:45 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"}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:45 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.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:45 GMT'] location: ['http://localhost:9001/3.0/lists/foo.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 response: - body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "list_id": - "foo.example.com", "list_name": "foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "member_count": - 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "mail_host": - "example.com", "volume": 1}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", - "total_size": 1, "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": + "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_id": "foo.example.com", "list_name": "foo", "mail_host": "example.com", + "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "start": 0, "total_size": 1}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:47 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/foo@example.com response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:47 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/users response: - body: {string: !!python/unicode '{"entries": [{"http_etag": "\"37b41a08d3ada12388d91b9b9bc153f05b3ff730\"", - "is_server_owner": false, "user_id": 175101733981884185786040725666736952966, - "display_name": "None", "self_link": "http://localhost:9001/3.0/users/175101733981884185786040725666736952966", - "created_on": "2015-11-11T12:49:46.231219"}], "http_etag": "\"92a1fbc7cdb9025d4a984f001a1096202ec6393a\"", - "total_size": 1, "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", + "http_etag": "\"a7a3c57597447c2443ed1101f1097bb2ec2b4110\"", "is_server_owner": + false, "password": "$6$rounds=604483$BkDgwrJ0Z7pthTXV$ObkFQ/SKljM0MSbFzcJAelWxC67ZHSh0U2gi9HPQrLq3OWe..g3Gz4GCI0J25KYfnjGzPTvtJ9eIvdUoXp.G61", + "self_link": "http://localhost:9001/3.0/users/13", "user_id": 13}], "http_etag": + "\"1ea35eb2e9d3b5d4c0a5c49985c1e5b17979cb01\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['400'] + content-length: ['431'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:47 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/users/175101733981884185786040725666736952966 + uri: http://localhost:9001/3.0/users/13 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:47 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 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + 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] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} + headers: + content-length: ['233'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} + headers: + content-length: ['233'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=foo%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/lists/foo.example.com'] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": + "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_id": "foo.example.com", "list_name": "foo", "mail_host": "example.com", + "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['399'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users + response: + body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", + "http_etag": "\"caa019711dcaafe68735a01a212f4fc3244f0183\"", "is_server_owner": + false, "password": "$6$rounds=646646$c5qqiWUJsSZgDbRE$Bal1PTO/T/WjfBR2ctnYQcpdw19PH/ZHi1gfeup9Ktb2kvvbjjEYIL02B3wuPVebgVnt18dBELIQk4Ndr9tCV1", + "self_link": "http://localhost:9001/3.0/users/14", "user_id": 14}], "http_etag": + "\"9653c3d39b89ce38d1c9d9e726f421a94c959f49\"", "start": 0, "total_size": + 1}'} + headers: + content-length: ['431'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/14 + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + 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] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} + headers: + content-length: ['233'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} + headers: + content-length: ['233'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=foo%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/lists/foo.example.com'] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": + "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_id": "foo.example.com", "list_name": "foo", "mail_host": "example.com", + "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['399'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users + response: + body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", + "display_name": "None", "http_etag": "\"0b279530a26f451f002e7274f6182ec4f7b10218\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/15", + "user_id": 15}], "http_etag": "\"a8eee06b197fc6dabec80d515fdc8c0d06a3c15f\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['319'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/15 + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] status: {code: 204, message: No Content} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_moderator.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_moderator.yaml index a28f87c..8862a81 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_moderator.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_moderator.yaml @@ -3,195 +3,138 @@ body: password=None&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: ['Wed, 11 Nov 2015 10:06:26 GMT'] - location: ['http://localhost:9001/3.0/users/219398410233519692238726820042175099070'] - server: [WSGIServer/0.2 CPython/3.4.2] + location: ['http://localhost:9001/3.0/users/13'] 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/foo@example.com response: - body: {string: !!python/unicode '{"mail_host": "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "list_id": "foo.example.com", "member_count": 0, "fqdn_listname": "foo@example.com", - "display_name": "Foo", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", - "list_name": "foo", "volume": 1}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 10:06:26 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: role=moderator&list_id=foo.example.com&subscriber=test%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 10:06:26 GMT'] - location: ['http://localhost:9001/3.0/members/64253964043771654525484196513363995267'] - server: [WSGIServer/0.2 CPython/3.4.2] + location: ['http://localhost:9001/3.0/members/18'] 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/foo@example.com response: - body: {string: !!python/unicode '{"mail_host": "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "list_id": "foo.example.com", "member_count": 0, "fqdn_listname": "foo@example.com", - "display_name": "Foo", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", - "list_name": "foo", "volume": 1}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 10:06: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/users/test@example.com response: - body: {string: !!python/unicode '{"http_etag": "\"274fc089dca364b6af119eb65e97777f63ad4908\"", - "is_server_owner": false, "created_on": "2015-11-11T10:06:25.323662", "user_id": - 219398410233519692238726820042175099070, "password": "$6$rounds=657737$ktLxC73H3fn7.9kS$1WWJHj/3p0.DS6nI7p.m8kNMC8CgoKZa5QpTcnmTFNkifNHtZAWLuYxgs3xW1gpytVtbf6k3feinGo9QHiGXi.", - "self_link": "http://localhost:9001/3.0/users/219398410233519692238726820042175099070"}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"a7a3c57597447c2443ed1101f1097bb2ec2b4110\"", "is_server_owner": false, + "password": "$6$rounds=604483$BkDgwrJ0Z7pthTXV$ObkFQ/SKljM0MSbFzcJAelWxC67ZHSh0U2gi9HPQrLq3OWe..g3Gz4GCI0J25KYfnjGzPTvtJ9eIvdUoXp.G61", + "self_link": "http://localhost:9001/3.0/users/13", "user_id": 13}'} headers: - content-length: ['407'] + content-length: ['326'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 10:06: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/users/219398410233519692238726820042175099070 + uri: http://localhost:9001/3.0/users/13/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"274fc089dca364b6af119eb65e97777f63ad4908\"", - "is_server_owner": false, "created_on": "2015-11-11T10:06:25.323662", "user_id": - 219398410233519692238726820042175099070, "password": "$6$rounds=657737$ktLxC73H3fn7.9kS$1WWJHj/3p0.DS6nI7p.m8kNMC8CgoKZa5QpTcnmTFNkifNHtZAWLuYxgs3xW1gpytVtbf6k3feinGo9QHiGXi.", - "self_link": "http://localhost:9001/3.0/users/219398410233519692238726820042175099070"}'} + body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag": + "\"183bd2070dec2c1087e072dede15f46d64ad4c23\"", "original_email": "test@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", + "user": "http://localhost:9001/3.0/users/13"}], "http_etag": "\"b92fe879e91887ed2a5e9d8fbbfa1d827c984395\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['407'] + content-length: ['388'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 10:06: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/users/219398410233519692238726820042175099070/addresses - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"285b48da1d7487a7338bcd1bc4b9783d9840e261\"", - "total_size": 1, "entries": [{"user": "http://localhost:9001/3.0/users/219398410233519692238726820042175099070", - "http_etag": "\"9d7b8de3c859b9e7d75fc9ec0c357b6667e45198\"", "original_email": - "test@example.com", "registered_on": "2015-11-11T10:06:25.323295", "self_link": - "http://localhost:9001/3.0/addresses/test@example.com", "email": "test@example.com"}]}'} - headers: - content-length: ['432'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 10:06: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/addresses/test@example.com response: - body: {string: !!python/unicode '{"user": "http://localhost:9001/3.0/users/219398410233519692238726820042175099070", - "http_etag": "\"9d7b8de3c859b9e7d75fc9ec0c357b6667e45198\"", "original_email": - "test@example.com", "registered_on": "2015-11-11T10:06:25.323295", "self_link": - "http://localhost:9001/3.0/addresses/test@example.com", "email": "test@example.com"}'} + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"183bd2070dec2c1087e072dede15f46d64ad4c23\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/13"}'} headers: - content-length: ['327'] + content-length: ['283'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 10:06: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/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 10:06: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/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"4714ac01bafe8574d550a1583d85d4131856aecb\"", - "total_size": 1, "entries": [{"user": "http://localhost:9001/3.0/users/219398410233519692238726820042175099070", - "http_etag": "\"53753a482a264202d6d0189bb7873d7122201646\"", "member_id": - 64253964043771654525484196513363995267, "email": "test@example.com", "delivery_mode": - "regular", "address": "http://localhost:9001/3.0/addresses/test@example.com", - "role": "moderator", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/64253964043771654525484196513363995267"}]}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/test@example.com", + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"7a5e82df811d3d28574261af1543548066ce3fe8\"", + "list_id": "foo.example.com", "member_id": 18, "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/18", "user": "http://localhost:9001/3.0/users/13"}], + "http_etag": "\"9dfa5492b331f6e004d14603252957862de41666\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['566'] + content-length: ['457'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 10:06: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/foo.example.com/member/test@example.com response: @@ -199,43 +142,36 @@ headers: content-length: ['2'] content-type: [application/json] - date: ['Wed, 11 Nov 2015 10:06:26 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/foo@example.com/config response: - body: {string: !!python/unicode '{"digest_size_threshold": 30.0, "mail_host": - "example.com", "http_etag": "\"8d8e1c058abe7a8b30d33e6be7f82d13150b48cc\"", - "fqdn_listname": "foo@example.com", "reply_goes_to_list": "no_munging", "filter_content": - false, "created_at": "2015-11-11T10:06:24.661601", "web_host": "example.com", - "autorespond_owner": "none", "archive_policy": "public", "join_address": "foo-join@example.com", - "autoresponse_request_text": "", "reply_to_address": "", "posting_address": - "foo@example.com", "post_id": 1, "volume": 1, "admin_notify_mchanges": false, - "autoresponse_grace_period": "90d", "advertised": true, "subject_prefix": - "[Foo] ", "bounces_address": "foo-bounces@example.com", "include_rfc2369_headers": - true, "display_name": "Foo", "send_welcome_message": true, "administrivia": - true, "default_nonmember_action": "hold", "allow_list_posts": true, "description": - "", "next_digest_number": 1, "default_member_action": "defer", "first_strip_reply_to": - false, "subscription_policy": "confirm", "admin_immed_notify": true, "anonymous_list": - false, "autorespond_requests": "none", "list_name": "foo", "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "convert_html_to_plaintext": - false, "autoresponse_owner_text": "", "no_reply_address": "noreply@example.com", - "request_address": "foo-request@example.com", "scheme": "http", "owner_address": - "foo-owner@example.com", "autorespond_postings": "none", "digest_last_sent_at": - null, "collapse_alternatives": true, "acceptable_aliases": [], "posting_pipeline": - "default-posting-pipeline", "autoresponse_postings_text": "", "leave_address": - "foo-leave@example.com"}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_size_threshold": 30.0, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"f24060c0fd5762da0d17009ff8b6f303bee3cd2f\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1617'] + content-length: ['1610'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 10:06:26 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_summary_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_owner.yaml index 80c7c31..0af05b2 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_owner.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_owner.yaml @@ -3,195 +3,138 @@ body: password=None&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: ['Wed, 11 Nov 2015 10:06:26 GMT'] - location: ['http://localhost:9001/3.0/users/219398410233519692238726820042175099070'] - server: [WSGIServer/0.2 CPython/3.4.2] + location: ['http://localhost:9001/3.0/users/14'] 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/foo@example.com response: - body: {string: !!python/unicode '{"mail_host": "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "list_id": "foo.example.com", "member_count": 0, "fqdn_listname": "foo@example.com", - "display_name": "Foo", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", - "list_name": "foo", "volume": 1}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 10:06:26 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: role=owner&list_id=foo.example.com&subscriber=test%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 10:06:26 GMT'] - location: ['http://localhost:9001/3.0/members/64253964043771654525484196513363995267'] - server: [WSGIServer/0.2 CPython/3.4.2] + location: ['http://localhost:9001/3.0/members/19'] 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/foo@example.com response: - body: {string: !!python/unicode '{"mail_host": "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "list_id": "foo.example.com", "member_count": 0, "fqdn_listname": "foo@example.com", - "display_name": "Foo", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", - "list_name": "foo", "volume": 1}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 10:06: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/users/test@example.com response: - body: {string: !!python/unicode '{"http_etag": "\"274fc089dca364b6af119eb65e97777f63ad4908\"", - "is_server_owner": false, "created_on": "2015-11-11T10:06:25.323662", "user_id": - 219398410233519692238726820042175099070, "password": "$6$rounds=657737$ktLxC73H3fn7.9kS$1WWJHj/3p0.DS6nI7p.m8kNMC8CgoKZa5QpTcnmTFNkifNHtZAWLuYxgs3xW1gpytVtbf6k3feinGo9QHiGXi.", - "self_link": "http://localhost:9001/3.0/users/219398410233519692238726820042175099070"}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"caa019711dcaafe68735a01a212f4fc3244f0183\"", "is_server_owner": false, + "password": "$6$rounds=646646$c5qqiWUJsSZgDbRE$Bal1PTO/T/WjfBR2ctnYQcpdw19PH/ZHi1gfeup9Ktb2kvvbjjEYIL02B3wuPVebgVnt18dBELIQk4Ndr9tCV1", + "self_link": "http://localhost:9001/3.0/users/14", "user_id": 14}'} headers: - content-length: ['407'] + content-length: ['326'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 10:06: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/users/219398410233519692238726820042175099070 + uri: http://localhost:9001/3.0/users/14/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"274fc089dca364b6af119eb65e97777f63ad4908\"", - "is_server_owner": false, "created_on": "2015-11-11T10:06:25.323662", "user_id": - 219398410233519692238726820042175099070, "password": "$6$rounds=657737$ktLxC73H3fn7.9kS$1WWJHj/3p0.DS6nI7p.m8kNMC8CgoKZa5QpTcnmTFNkifNHtZAWLuYxgs3xW1gpytVtbf6k3feinGo9QHiGXi.", - "self_link": "http://localhost:9001/3.0/users/219398410233519692238726820042175099070"}'} + body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag": + "\"6c39fd341eea07279f00e7cd3cd0ecd501bc0cec\"", "original_email": "test@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", + "user": "http://localhost:9001/3.0/users/14"}], "http_etag": "\"90fbccbf73f5e633883d07ed7e6b4f1f1217a341\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['407'] + content-length: ['388'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 10:06: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/users/219398410233519692238726820042175099070/addresses - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"285b48da1d7487a7338bcd1bc4b9783d9840e261\"", - "total_size": 1, "entries": [{"user": "http://localhost:9001/3.0/users/219398410233519692238726820042175099070", - "http_etag": "\"9d7b8de3c859b9e7d75fc9ec0c357b6667e45198\"", "original_email": - "test@example.com", "registered_on": "2015-11-11T10:06:25.323295", "self_link": - "http://localhost:9001/3.0/addresses/test@example.com", "email": "test@example.com"}]}'} - headers: - content-length: ['432'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 10:06: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/addresses/test@example.com response: - body: {string: !!python/unicode '{"user": "http://localhost:9001/3.0/users/219398410233519692238726820042175099070", - "http_etag": "\"9d7b8de3c859b9e7d75fc9ec0c357b6667e45198\"", "original_email": - "test@example.com", "registered_on": "2015-11-11T10:06:25.323295", "self_link": - "http://localhost:9001/3.0/addresses/test@example.com", "email": "test@example.com"}'} + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"6c39fd341eea07279f00e7cd3cd0ecd501bc0cec\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/14"}'} headers: - content-length: ['327'] + content-length: ['283'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 10:06: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/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"4714ac01bafe8574d550a1583d85d4131856aecb\"", - "total_size": 1, "entries": [{"user": "http://localhost:9001/3.0/users/219398410233519692238726820042175099070", - "http_etag": "\"53753a482a264202d6d0189bb7873d7122201646\"", "member_id": - 64253964043771654525484196513363995267, "email": "test@example.com", "delivery_mode": - "regular", "address": "http://localhost:9001/3.0/addresses/test@example.com", - "role": "owner", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/64253964043771654525484196513363995267"}]}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/test@example.com", + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"d77459548aacd98e7e899b0da31054b770f62b7a\"", + "list_id": "foo.example.com", "member_id": 19, "role": "owner", "self_link": + "http://localhost:9001/3.0/members/19", "user": "http://localhost:9001/3.0/users/14"}], + "http_etag": "\"dfd2ca47d1059f55dd52d1bd3ec6d6c2de061024\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['90'] + content-length: ['453'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 10:06: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/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} headers: - content-length: ['566'] + content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 10:06: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/foo.example.com/member/test@example.com response: @@ -199,43 +142,36 @@ headers: content-length: ['2'] content-type: [application/json] - date: ['Wed, 11 Nov 2015 10:06:26 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/foo@example.com/config response: - body: {string: !!python/unicode '{"digest_size_threshold": 30.0, "mail_host": - "example.com", "http_etag": "\"8d8e1c058abe7a8b30d33e6be7f82d13150b48cc\"", - "fqdn_listname": "foo@example.com", "reply_goes_to_list": "no_munging", "filter_content": - false, "created_at": "2015-11-11T10:06:24.661601", "web_host": "example.com", - "autorespond_owner": "none", "archive_policy": "public", "join_address": "foo-join@example.com", - "autoresponse_request_text": "", "reply_to_address": "", "posting_address": - "foo@example.com", "post_id": 1, "volume": 1, "admin_notify_mchanges": false, - "autoresponse_grace_period": "90d", "advertised": true, "subject_prefix": - "[Foo] ", "bounces_address": "foo-bounces@example.com", "include_rfc2369_headers": - true, "display_name": "Foo", "send_welcome_message": true, "administrivia": - true, "default_nonmember_action": "hold", "allow_list_posts": true, "description": - "", "next_digest_number": 1, "default_member_action": "defer", "first_strip_reply_to": - false, "subscription_policy": "confirm", "admin_immed_notify": true, "anonymous_list": - false, "autorespond_requests": "none", "list_name": "foo", "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "convert_html_to_plaintext": - false, "autoresponse_owner_text": "", "no_reply_address": "noreply@example.com", - "request_address": "foo-request@example.com", "scheme": "http", "owner_address": - "foo-owner@example.com", "autorespond_postings": "none", "digest_last_sent_at": - null, "collapse_alternatives": true, "acceptable_aliases": [], "posting_pipeline": - "default-posting-pipeline", "autoresponse_postings_text": "", "leave_address": - "foo-leave@example.com"}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_size_threshold": 30.0, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"f24060c0fd5762da0d17009ff8b6f303bee3cd2f\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1617'] + content-length: ['1610'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 10:06:26 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_summary_secondary_moderator.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_secondary_moderator.yaml index 0e01252..9636ae0 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_secondary_moderator.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_secondary_moderator.yaml @@ -1,254 +1,183 @@ interactions: - request: - body: display_name=&password=None&email=test%40example.com + body: password=None&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: ['Wed, 11 Nov 2015 09:15:54 GMT'] - location: ['http://localhost:9001/3.0/users/270387690459968603267458687775118477393'] - server: [WSGIServer/0.2 CPython/3.4.2] + location: ['http://localhost:9001/3.0/users/11'] status: {code: 201, message: Created} - request: body: email=anotheremail%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/270387690459968603267458687775118477393/addresses + uri: http://localhost:9001/3.0/users/11/addresses response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 09:15:55 GMT'] location: ['http://localhost:9001/3.0/addresses/anotheremail@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 'POST' uri: http://localhost:9001/3.0/addresses/anotheremail@example.com/verify response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 09:15:55 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/foo@example.com response: - body: {string: !!python/unicode '{"list_id": "foo.example.com", "mail_host": "example.com", - "list_name": "foo", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", - "fqdn_listname": "foo@example.com", "volume": 1, "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "display_name": "Foo"}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 09:15:55 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: role=moderator&list_id=foo.example.com&subscriber=anotheremail%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 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 09:15:55 GMT'] - location: ['http://localhost:9001/3.0/members/167810063128386830859080802237709622397'] - server: [WSGIServer/0.2 CPython/3.4.2] + location: ['http://localhost:9001/3.0/members/16'] 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/foo@example.com response: - body: {string: !!python/unicode '{"list_id": "foo.example.com", "mail_host": "example.com", - "list_name": "foo", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", - "fqdn_listname": "foo@example.com", "volume": 1, "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "display_name": "Foo"}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 09:15:55 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 '{"self_link": "http://localhost:9001/3.0/users/270387690459968603267458687775118477393", - "created_on": "2015-11-11T09:15:54.098984", "user_id": 270387690459968603267458687775118477393, - "http_etag": "\"b1f415040c829e111a4cad8afd8efeda7bda929a\"", "password": "$6$rounds=626264$cNtQFSnFZ4S/DTbL$fp.zIYsm6IC34B46G0LugZtfY8E93Oojw.hTmFH7YRcX6k8K/pEk/U4hrIC8DmSCTvtmoCqactE7cS9i6Wns0/", - "is_server_owner": false}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"81a6a45c37a5fd98d7d20f54ffaa80eb536ec875\"", "is_server_owner": false, + "password": "$6$rounds=635766$arI5HaMYUcUkT4mt$1KV3LyoedGaGwduG6o5wPhjIx2T8iL0eID9euHLDYRfq0PvSOIt2pHZu7M2kW9XrnT/3M5U.l5vHFFX6NxeEC/", + "self_link": "http://localhost:9001/3.0/users/11", "user_id": 11}'} headers: - content-length: ['407'] + content-length: ['326'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 09:15:55 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/270387690459968603267458687775118477393 + uri: http://localhost:9001/3.0/users/11/addresses response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/users/270387690459968603267458687775118477393", - "created_on": "2015-11-11T09:15:54.098984", "user_id": 270387690459968603267458687775118477393, - "http_etag": "\"b1f415040c829e111a4cad8afd8efeda7bda929a\"", "password": "$6$rounds=626264$cNtQFSnFZ4S/DTbL$fp.zIYsm6IC34B46G0LugZtfY8E93Oojw.hTmFH7YRcX6k8K/pEk/U4hrIC8DmSCTvtmoCqactE7cS9i6Wns0/", - "is_server_owner": false}'} + body: {string: !!python/unicode '{"entries": [{"email": "anotheremail@example.com", + "http_etag": "\"a4e95a1b0bb38032015c89f7fedebd75e5346b81\"", "original_email": + "anotheremail@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": + "http://localhost:9001/3.0/addresses/anotheremail@example.com", "user": "http://localhost:9001/3.0/users/11", + "verified_on": "2005-08-01T07:49:23"}, {"email": "test@example.com", "http_etag": + "\"c0069cae5d04efb49c7546aef78ce21c4d054047\"", "original_email": "test@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", + "user": "http://localhost:9001/3.0/users/11"}], "http_etag": "\"4474fece478b21913bafd6444eaaf7169027ebab\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['407'] + content-length: ['735'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 09:15:55 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/270387690459968603267458687775118477393/addresses - response: - body: {string: !!python/unicode '{"http_etag": "\"095c886cc2c87267e121d4a1974b495183e6fd93\"", - "start": 0, "total_size": 2, "entries": [{"self_link": "http://localhost:9001/3.0/addresses/anotheremail@example.com", - "registered_on": "2015-11-11T09:15:54.974939", "http_etag": "\"989cb1d30416a8dd9f2f7abf31a94c085af851c6\"", - "user": "http://localhost:9001/3.0/users/270387690459968603267458687775118477393", - "email": "anotheremail@example.com", "verified_on": "2015-11-11T09:15:55.068609", - "original_email": "anotheremail@example.com"}, {"self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "registered_on": "2015-11-11T09:15:54.098549", "http_etag": "\"c95a6da19b8041a3a01d616f8daa2115690badfc\"", - "user": "http://localhost:9001/3.0/users/270387690459968603267458687775118477393", - "email": "test@example.com", "original_email": "test@example.com"}]}'} - headers: - content-length: ['830'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 09:15:55 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/anotheremail@example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/addresses/anotheremail@example.com", - "registered_on": "2015-11-11T09:15:54.974939", "http_etag": "\"989cb1d30416a8dd9f2f7abf31a94c085af851c6\"", - "user": "http://localhost:9001/3.0/users/270387690459968603267458687775118477393", - "email": "anotheremail@example.com", "verified_on": "2015-11-11T09:15:55.068609", - "original_email": "anotheremail@example.com"}'} + body: {string: !!python/unicode '{"email": "anotheremail@example.com", "http_etag": + "\"a4e95a1b0bb38032015c89f7fedebd75e5346b81\"", "original_email": "anotheremail@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/anotheremail@example.com", + "user": "http://localhost:9001/3.0/users/11", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['396'] + content-length: ['345'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 09:15:55 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 '{"self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "registered_on": "2015-11-11T09:15:54.098549", "http_etag": "\"c95a6da19b8041a3a01d616f8daa2115690badfc\"", - "user": "http://localhost:9001/3.0/users/270387690459968603267458687775118477393", - "email": "test@example.com", "original_email": "test@example.com"}'} + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"c0069cae5d04efb49c7546aef78ce21c4d054047\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/11"}'} headers: - content-length: ['327'] + content-length: ['283'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 09:15:55 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/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", "start": 0, "total_size": 0}'} headers: - content-length: ['580'] + content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 09:15:55 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/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"http_etag": "\"4d9619b758f2e0c5bf8f7c65460e199a9a13ad65\"", - "start": 0, "total_size": 1, "entries": [{"self_link": "http://localhost:9001/3.0/members/167810063128386830859080802237709622397", - "member_id": 167810063128386830859080802237709622397, "role": "moderator", "http_etag": - "\"7ffccfad084044c9b107a08e659d827ee46d1500\"", "user": "http://localhost:9001/3.0/users/270387690459968603267458687775118477393", - "address": "http://localhost:9001/3.0/addresses/anotheremail@example.com", - "email": "anotheremail@example.com", "list_id": "foo.example.com", "delivery_mode": - "regular"}]}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/anotheremail@example.com", + "delivery_mode": "regular", "email": "anotheremail@example.com", "http_etag": + "\"5e8ef308ea65a28cf7a6aa38d17668742c04bb62\"", "list_id": "foo.example.com", + "member_id": 16, "role": "moderator", "self_link": "http://localhost:9001/3.0/members/16", + "user": "http://localhost:9001/3.0/users/11"}], "http_etag": "\"703b35e455f307c5b9ceeae4b798274967f82cbf\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['90'] + content-length: ['473'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 09:15:55 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/foo.example.com/member/test@example.com response: @@ -256,15 +185,11 @@ headers: content-length: ['2'] content-type: [application/json] - date: ['Wed, 11 Nov 2015 09:15:55 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/foo.example.com/member/anotheremail@example.com response: @@ -272,42 +197,36 @@ headers: content-length: ['2'] content-type: [application/json] - date: ['Wed, 11 Nov 2015 09:15:55 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/foo@example.com/config response: - body: {string: !!python/unicode '{"filter_content": false, "display_name": "Foo", - "autorespond_postings": "none", "autorespond_requests": "none", "web_host": - "example.com", "volume": 1, "include_rfc2369_headers": true, "subscription_policy": - "confirm", "admin_immed_notify": true, "mail_host": "example.com", "posting_pipeline": - "default-posting-pipeline", "join_address": "foo-join@example.com", "administrivia": - true, "autorespond_owner": "none", "no_reply_address": "noreply@example.com", - "archive_policy": "public", "digest_size_threshold": 30.0, "request_address": - "foo-request@example.com", "admin_notify_mchanges": false, "welcome_message_uri": - "mailman:///welcome.txt", "scheme": "http", "default_nonmember_action": "hold", - "convert_html_to_plaintext": false, "autoresponse_owner_text": "", "description": - "", "list_name": "foo", "bounces_address": "foo-bounces@example.com", "subject_prefix": - "[Foo] ", "posting_address": "foo@example.com", "reply_goes_to_list": "no_munging", - "anonymous_list": false, "autoresponse_postings_text": "", "post_id": 1, "allow_list_posts": - true, "next_digest_number": 1, "created_at": "2015-11-11T09:15:53.622121", - "collapse_alternatives": true, "owner_address": "foo-owner@example.com", "acceptable_aliases": - [], "last_post_at": null, "first_strip_reply_to": false, "reply_to_address": - "", "leave_address": "foo-leave@example.com", "fqdn_listname": "foo@example.com", - "send_welcome_message": true, "default_member_action": "defer", "advertised": - true, "autoresponse_grace_period": "90d", "http_etag": "\"a10382b38c19ab3f96aba0b521660b0a3bec0b5f\"", - "autoresponse_request_text": "", "digest_last_sent_at": null}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_size_threshold": 30.0, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"f24060c0fd5762da0d17009ff8b6f303bee3cd2f\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1617'] + content-length: ['1610'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 09:15:55 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_summary_secondary_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_secondary_owner.yaml index 923c1bf..db82890 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_secondary_owner.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_secondary_owner.yaml @@ -1,237 +1,170 @@ interactions: - request: - body: display_name=&password=None&email=test%40example.com + body: password=None&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: ['Wed, 11 Nov 2015 09:15:54 GMT'] - location: ['http://localhost:9001/3.0/users/270387690459968603267458687775118477393'] - server: [WSGIServer/0.2 CPython/3.4.2] + location: ['http://localhost:9001/3.0/users/12'] status: {code: 201, message: Created} - request: body: email=anotheremail%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/270387690459968603267458687775118477393/addresses + uri: http://localhost:9001/3.0/users/12/addresses response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 09:15:55 GMT'] location: ['http://localhost:9001/3.0/addresses/anotheremail@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 'POST' uri: http://localhost:9001/3.0/addresses/anotheremail@example.com/verify response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 09:15:55 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/foo@example.com response: - body: {string: !!python/unicode '{"list_id": "foo.example.com", "mail_host": "example.com", - "list_name": "foo", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", - "fqdn_listname": "foo@example.com", "volume": 1, "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "display_name": "Foo"}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 09:15:55 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: role=owner&list_id=foo.example.com&subscriber=anotheremail%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 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 09:15:55 GMT'] - location: ['http://localhost:9001/3.0/members/167810063128386830859080802237709622397'] - server: [WSGIServer/0.2 CPython/3.4.2] + location: ['http://localhost:9001/3.0/members/17'] 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/foo@example.com response: - body: {string: !!python/unicode '{"list_id": "foo.example.com", "mail_host": "example.com", - "list_name": "foo", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", - "fqdn_listname": "foo@example.com", "volume": 1, "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "display_name": "Foo"}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 09:15:55 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 '{"self_link": "http://localhost:9001/3.0/users/270387690459968603267458687775118477393", - "created_on": "2015-11-11T09:15:54.098984", "user_id": 270387690459968603267458687775118477393, - "http_etag": "\"b1f415040c829e111a4cad8afd8efeda7bda929a\"", "password": "$6$rounds=626264$cNtQFSnFZ4S/DTbL$fp.zIYsm6IC34B46G0LugZtfY8E93Oojw.hTmFH7YRcX6k8K/pEk/U4hrIC8DmSCTvtmoCqactE7cS9i6Wns0/", - "is_server_owner": false}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"676ed6cf948f851553a68e939da0b4d1294d0ad5\"", "is_server_owner": false, + "password": "$6$rounds=719066$phL55NILdqpgTC1n$Z6.akbtmAVREHNP9iu1ziGTr8/75x/B5UBdTAAbEixvlRlpqovk.zFAEB1noEpK0p.OyiMcm7yP60LtYRRQJo0", + "self_link": "http://localhost:9001/3.0/users/12", "user_id": 12}'} headers: - content-length: ['407'] + content-length: ['326'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 09:15:55 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/270387690459968603267458687775118477393 + uri: http://localhost:9001/3.0/users/12/addresses response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/users/270387690459968603267458687775118477393", - "created_on": "2015-11-11T09:15:54.098984", "user_id": 270387690459968603267458687775118477393, - "http_etag": "\"b1f415040c829e111a4cad8afd8efeda7bda929a\"", "password": "$6$rounds=626264$cNtQFSnFZ4S/DTbL$fp.zIYsm6IC34B46G0LugZtfY8E93Oojw.hTmFH7YRcX6k8K/pEk/U4hrIC8DmSCTvtmoCqactE7cS9i6Wns0/", - "is_server_owner": false}'} + body: {string: !!python/unicode '{"entries": [{"email": "anotheremail@example.com", + "http_etag": "\"87757bcc49341afdc0afe3bd0d36f36e78df20ac\"", "original_email": + "anotheremail@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": + "http://localhost:9001/3.0/addresses/anotheremail@example.com", "user": "http://localhost:9001/3.0/users/12", + "verified_on": "2005-08-01T07:49:23"}, {"email": "test@example.com", "http_etag": + "\"7153fc9edd12dfb866876de2d6ff5b66fbd13574\"", "original_email": "test@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", + "user": "http://localhost:9001/3.0/users/12"}], "http_etag": "\"cbdc9b29a0361770b4d4ef099804fafac8658e9f\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['407'] + content-length: ['735'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 09:15:55 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/270387690459968603267458687775118477393/addresses - response: - body: {string: !!python/unicode '{"http_etag": "\"095c886cc2c87267e121d4a1974b495183e6fd93\"", - "start": 0, "total_size": 2, "entries": [{"self_link": "http://localhost:9001/3.0/addresses/anotheremail@example.com", - "registered_on": "2015-11-11T09:15:54.974939", "http_etag": "\"989cb1d30416a8dd9f2f7abf31a94c085af851c6\"", - "user": "http://localhost:9001/3.0/users/270387690459968603267458687775118477393", - "email": "anotheremail@example.com", "verified_on": "2015-11-11T09:15:55.068609", - "original_email": "anotheremail@example.com"}, {"self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "registered_on": "2015-11-11T09:15:54.098549", "http_etag": "\"c95a6da19b8041a3a01d616f8daa2115690badfc\"", - "user": "http://localhost:9001/3.0/users/270387690459968603267458687775118477393", - "email": "test@example.com", "original_email": "test@example.com"}]}'} - headers: - content-length: ['830'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 09:15:55 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/anotheremail@example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/addresses/anotheremail@example.com", - "registered_on": "2015-11-11T09:15:54.974939", "http_etag": "\"989cb1d30416a8dd9f2f7abf31a94c085af851c6\"", - "user": "http://localhost:9001/3.0/users/270387690459968603267458687775118477393", - "email": "anotheremail@example.com", "verified_on": "2015-11-11T09:15:55.068609", - "original_email": "anotheremail@example.com"}'} + body: {string: !!python/unicode '{"email": "anotheremail@example.com", "http_etag": + "\"87757bcc49341afdc0afe3bd0d36f36e78df20ac\"", "original_email": "anotheremail@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/anotheremail@example.com", + "user": "http://localhost:9001/3.0/users/12", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['396'] + content-length: ['345'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 09:15:55 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 '{"self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "registered_on": "2015-11-11T09:15:54.098549", "http_etag": "\"c95a6da19b8041a3a01d616f8daa2115690badfc\"", - "user": "http://localhost:9001/3.0/users/270387690459968603267458687775118477393", - "email": "test@example.com", "original_email": "test@example.com"}'} + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"7153fc9edd12dfb866876de2d6ff5b66fbd13574\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/12"}'} headers: - content-length: ['327'] + content-length: ['283'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 09:15:55 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/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"4d9619b758f2e0c5bf8f7c65460e199a9a13ad65\"", - "start": 0, "total_size": 1, "entries": [{"self_link": "http://localhost:9001/3.0/members/167810063128386830859080802237709622397", - "member_id": 167810063128386830859080802237709622397, "role": "owner", "http_etag": - "\"7ffccfad084044c9b107a08e659d827ee46d1500\"", "user": "http://localhost:9001/3.0/users/270387690459968603267458687775118477393", - "address": "http://localhost:9001/3.0/addresses/anotheremail@example.com", - "email": "anotheremail@example.com", "list_id": "foo.example.com", "delivery_mode": - "regular"}]}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/anotheremail@example.com", + "delivery_mode": "regular", "email": "anotheremail@example.com", "http_etag": + "\"1dcdea21d162b2b7b661ed38d56abad16aa0f86d\"", "list_id": "foo.example.com", + "member_id": 17, "role": "owner", "self_link": "http://localhost:9001/3.0/members/17", + "user": "http://localhost:9001/3.0/users/12"}], "http_etag": "\"d00c11a75be20062250c88f1f98890c9ba1886cb\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['580'] + content-length: ['469'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 09:15:55 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/foo.example.com/roster/moderator response: @@ -240,15 +173,11 @@ headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 09:15:55 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/foo.example.com/member/test@example.com response: @@ -256,15 +185,11 @@ headers: content-length: ['2'] content-type: [application/json] - date: ['Wed, 11 Nov 2015 09:15:55 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/foo.example.com/member/anotheremail@example.com response: @@ -272,42 +197,36 @@ headers: content-length: ['2'] content-type: [application/json] - date: ['Wed, 11 Nov 2015 09:15:55 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/foo@example.com/config response: - body: {string: !!python/unicode '{"filter_content": false, "display_name": "Foo", - "autorespond_postings": "none", "autorespond_requests": "none", "web_host": - "example.com", "volume": 1, "include_rfc2369_headers": true, "subscription_policy": - "confirm", "admin_immed_notify": true, "mail_host": "example.com", "posting_pipeline": - "default-posting-pipeline", "join_address": "foo-join@example.com", "administrivia": - true, "autorespond_owner": "none", "no_reply_address": "noreply@example.com", - "archive_policy": "public", "digest_size_threshold": 30.0, "request_address": - "foo-request@example.com", "admin_notify_mchanges": false, "welcome_message_uri": - "mailman:///welcome.txt", "scheme": "http", "default_nonmember_action": "hold", - "convert_html_to_plaintext": false, "autoresponse_owner_text": "", "description": - "", "list_name": "foo", "bounces_address": "foo-bounces@example.com", "subject_prefix": - "[Foo] ", "posting_address": "foo@example.com", "reply_goes_to_list": "no_munging", - "anonymous_list": false, "autoresponse_postings_text": "", "post_id": 1, "allow_list_posts": - true, "next_digest_number": 1, "created_at": "2015-11-11T09:15:53.622121", - "collapse_alternatives": true, "owner_address": "foo-owner@example.com", "acceptable_aliases": - [], "last_post_at": null, "first_strip_reply_to": false, "reply_to_address": - "", "leave_address": "foo-leave@example.com", "fqdn_listname": "foo@example.com", - "send_welcome_message": true, "default_member_action": "defer", "advertised": - true, "autoresponse_grace_period": "90d", "http_etag": "\"a10382b38c19ab3f96aba0b521660b0a3bec0b5f\"", - "autoresponse_request_text": "", "digest_last_sent_at": null}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_size_threshold": 30.0, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"f24060c0fd5762da0d17009ff8b6f303bee3cd2f\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1617'] + content-length: ['1610'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 09:15:55 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_model-2.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_model-2.yaml index ac7900c..d8ec665 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_model-2.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_model-2.yaml @@ -3,8 +3,6 @@ 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: @@ -12,7 +10,5 @@ headers: content-length: ['13'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:50 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 404, message: Not Found} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_model.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_model.yaml index c83fabb..09a05ee 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_model.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_model.yaml @@ -3,9 +3,7 @@ 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: @@ -13,220 +11,156 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:48 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"}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:48 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"}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:48 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.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:49 GMT'] location: ['http://localhost:9001/3.0/lists/foo.example.com'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 201, message: Created} - request: body: password=None&display_name=None&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: ['Wed, 11 Nov 2015 12:49:50 GMT'] - location: ['http://localhost:9001/3.0/users/196919457906946625042143214516014924559'] - server: [WSGIServer/0.2 CPython/3.4.2] + location: ['http://localhost:9001/3.0/users/16'] 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/users/test@example.com response: - body: {string: !!python/unicode '{"http_etag": "\"a08d933b261827782d7473a19c83448daf6f93d7\"", - "is_server_owner": false, "user_id": 196919457906946625042143214516014924559, - "display_name": "None", "self_link": "http://localhost:9001/3.0/users/196919457906946625042143214516014924559", - "password": "$6$rounds=610289$vmsZzC7MdOZH7LtV$10GnZnY0YtQGlex9vbmn2Il2rmTbjO2Klyb3wQ9IHFRqiZPvFpy/yUd8bpqSC8sPGmJpaLe9WDI1XweOYajB21", - "created_on": "2015-11-11T12:49:49.201797"}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "display_name": + "None", "http_etag": "\"e93956f9532de05e56a12587aed2ca225c7e6967\"", "is_server_owner": + false, "password": "$6$rounds=620475$U/k4mNqtbM.RfQUG$afK7WjAvMDH6No8.sJFC.gDc9mQiPh2g/AayiJlnWjdh3FVJ9oMCJz8qTG7xVzXFzcKB/ZBhMgSI0XvUmngNZ1", + "self_link": "http://localhost:9001/3.0/users/16", "user_id": 16}'} headers: - content-length: ['431'] + content-length: ['350'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:50 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/196919457906946625042143214516014924559 + uri: http://localhost:9001/3.0/users/16/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"a08d933b261827782d7473a19c83448daf6f93d7\"", - "is_server_owner": false, "user_id": 196919457906946625042143214516014924559, - "display_name": "None", "self_link": "http://localhost:9001/3.0/users/196919457906946625042143214516014924559", - "password": "$6$rounds=610289$vmsZzC7MdOZH7LtV$10GnZnY0YtQGlex9vbmn2Il2rmTbjO2Klyb3wQ9IHFRqiZPvFpy/yUd8bpqSC8sPGmJpaLe9WDI1XweOYajB21", - "created_on": "2015-11-11T12:49:49.201797"}'} + body: {string: !!python/unicode '{"entries": [{"display_name": "None", "email": + "test@example.com", "http_etag": "\"24f2e8b58e4114eaf200d809478de7780bec45d3\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/16"}], "http_etag": "\"a397078704b2ee81925e19d23f3f9a74684b5ac7\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['431'] + content-length: ['412'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:50 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/196919457906946625042143214516014924559/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "user": - "http://localhost:9001/3.0/users/196919457906946625042143214516014924559", - "display_name": "None", "http_etag": "\"a3a7f45f5118b373f3699c261a59a641dd5ce374\"", - "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "registered_on": - "2015-11-11T12:49:49.201417", "original_email": "test@example.com"}], "http_etag": - "\"1b95bfd817603f6a696273653f7a2fb3d544cc3b\"", "total_size": 1, "start": - 0}'} - headers: - content-length: ['456'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:50 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 response: - body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "list_id": - "foo.example.com", "list_name": "foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "member_count": - 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "mail_host": - "example.com", "volume": 1}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", - "total_size": 1, "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": + "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_id": "foo.example.com", "list_name": "foo", "mail_host": "example.com", + "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "start": 0, "total_size": 1}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:50 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/foo@example.com response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:50 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/users response: - body: {string: !!python/unicode '{"entries": [{"http_etag": "\"a08d933b261827782d7473a19c83448daf6f93d7\"", - "is_server_owner": false, "user_id": 196919457906946625042143214516014924559, - "display_name": "None", "self_link": "http://localhost:9001/3.0/users/196919457906946625042143214516014924559", - "password": "$6$rounds=610289$vmsZzC7MdOZH7LtV$10GnZnY0YtQGlex9vbmn2Il2rmTbjO2Klyb3wQ9IHFRqiZPvFpy/yUd8bpqSC8sPGmJpaLe9WDI1XweOYajB21", - "created_on": "2015-11-11T12:49:49.201797"}], "http_etag": "\"b5ee01241663b5af0dde583c54404a0d40e7ff2e\"", - "total_size": 1, "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", + "display_name": "None", "http_etag": "\"e93956f9532de05e56a12587aed2ca225c7e6967\"", + "is_server_owner": false, "password": "$6$rounds=620475$U/k4mNqtbM.RfQUG$afK7WjAvMDH6No8.sJFC.gDc9mQiPh2g/AayiJlnWjdh3FVJ9oMCJz8qTG7xVzXFzcKB/ZBhMgSI0XvUmngNZ1", + "self_link": "http://localhost:9001/3.0/users/16", "user_id": 16}], "http_etag": + "\"c7fffba8116f03e8cbc2aa91d4ce22d33278c70c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['536'] + content-length: ['455'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:50 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/users/196919457906946625042143214516014924559 + uri: http://localhost:9001/3.0/users/16 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:50 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: @@ -234,113 +168,89 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:50 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"}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:50 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"}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:50 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.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:50 GMT'] location: ['http://localhost:9001/3.0/lists/foo.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 response: - body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "list_id": - "foo.example.com", "list_name": "foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "member_count": - 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "mail_host": - "example.com", "volume": 1}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", - "total_size": 1, "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": + "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_id": "foo.example.com", "list_name": "foo", "mail_host": "example.com", + "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "start": 0, "total_size": 1}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:51 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/foo@example.com response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Wed, 11 Nov 2015 12:49:51 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/users response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Wed, 11 Nov 2015 12:49:51 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} version: 1