diff --git a/src/postorius/tests/fixtures/vcr_cassettes/archival_options.yaml b/src/postorius/tests/fixtures/vcr_cassettes/archival_options.yaml index e426934..14ef4b5 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/archival_options.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/archival_options.yaml @@ -5,7 +5,7 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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,7 +13,7 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:30 GMT'] + date: ['Wed, 11 Nov 2015 12:49:22 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 400, message: Bad Request} - request: @@ -21,17 +21,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:30 GMT'] + date: ['Wed, 11 Nov 2015 12:49:22 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -39,17 +39,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:30 GMT'] + date: ['Wed, 11 Nov 2015 12:49:22 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -58,14 +58,14 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:30 GMT'] + 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} @@ -74,18 +74,19 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"volume": 1, "mail_host": "example.com", "list_name": - "test_list", "display_name": "Test_list", "list_id": "test_list.example.com", - "member_count": 0, "fqdn_listname": "test_list@example.com", "http_etag": - "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com"}'} + 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", + "volume": 1}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:30 GMT'] + date: ['Wed, 11 Nov 2015 12:49:23 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -93,16 +94,16 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"prototype": false, "mhonarc": false, "mail-archive": - true, "http_etag": "\"de68e13c430d856461d2b39a5b5d5286d91528bc\""}'} + body: {string: !!python/unicode '{"mhonarc": true, "prototype": false, "http_etag": + "\"dfd159ec866aff2f484eb6399b59057ba112d3e5\"", "mail-archive": true}'} headers: - content-length: ['121'] + content-length: ['120'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:30 GMT'] + date: ['Wed, 11 Nov 2015 12:49:23 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -110,18 +111,19 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"volume": 1, "mail_host": "example.com", "list_name": - "test_list", "display_name": "Test_list", "list_id": "test_list.example.com", - "member_count": 0, "fqdn_listname": "test_list@example.com", "http_etag": - "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com"}'} + 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", + "volume": 1}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:30 GMT'] + date: ['Wed, 11 Nov 2015 12:49:23 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -129,14 +131,14 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:31 GMT'] + 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 7e39c7d..803aba2 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/list_members_access.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/list_members_access.yaml @@ -5,7 +5,7 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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,7 +13,7 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:33 GMT'] + date: ['Wed, 11 Nov 2015 12:49:25 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 400, message: Bad Request} - request: @@ -21,17 +21,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:33 GMT'] + date: ['Wed, 11 Nov 2015 12:49:25 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -39,17 +39,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:33 GMT'] + date: ['Wed, 11 Nov 2015 12:49:25 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -58,14 +58,14 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:33 GMT'] + 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} @@ -74,52 +74,52 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"volume": 1, "mail_host": "example.com", "list_name": - "foo", "display_name": "Foo", "list_id": "foo.example.com", "member_count": - 0, "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com"}'} + 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: ['Fri, 17 Apr 2015 21:49:33 GMT'] + 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&subscriber=owner%40example.com&list_id=foo.example.com + 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.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:33 GMT'] - location: ['http://localhost:9001/3.0/members/58694139851881328554076579791556559643'] + 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] status: {code: 201, message: Created} - request: - body: role=moderator&subscriber=moderator%40example.com&list_id=foo.example.com + 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.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:34 GMT'] - location: ['http://localhost:9001/3.0/members/301920928048316817504986838317705093446'] + 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] status: {code: 201, message: Created} - request: @@ -127,14 +127,14 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:34 GMT'] + date: ['Wed, 11 Nov 2015 12:49:27 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -143,7 +143,7 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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,7 +151,7 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:34 GMT'] + date: ['Wed, 11 Nov 2015 12:49:27 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 400, message: Bad Request} - request: @@ -159,17 +159,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:34 GMT'] + date: ['Wed, 11 Nov 2015 12:49:27 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -177,17 +177,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:34 GMT'] + date: ['Wed, 11 Nov 2015 12:49:27 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -196,14 +196,14 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:34 GMT'] + 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} @@ -212,52 +212,52 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"volume": 1, "mail_host": "example.com", "list_name": - "foo", "display_name": "Foo", "list_id": "foo.example.com", "member_count": - 0, "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com"}'} + 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: ['Fri, 17 Apr 2015 21:49:34 GMT'] + 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&subscriber=owner%40example.com&list_id=foo.example.com + 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.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:34 GMT'] - location: ['http://localhost:9001/3.0/members/104597404185462268851527227999257447264'] + 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] status: {code: 201, message: Created} - request: - body: role=moderator&subscriber=moderator%40example.com&list_id=foo.example.com + 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.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:34 GMT'] - location: ['http://localhost:9001/3.0/members/125897732057180252325707119635194125341'] + 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] status: {code: 201, message: Created} - request: @@ -265,14 +265,14 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:34 GMT'] + date: ['Wed, 11 Nov 2015 12:49:28 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -281,7 +281,7 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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,7 +289,7 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:35 GMT'] + date: ['Wed, 11 Nov 2015 12:49:28 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 400, message: Bad Request} - request: @@ -297,17 +297,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:35 GMT'] + date: ['Wed, 11 Nov 2015 12:49:28 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -315,17 +315,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:35 GMT'] + date: ['Wed, 11 Nov 2015 12:49:28 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -334,14 +334,14 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:35 GMT'] + 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} @@ -350,52 +350,52 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"volume": 1, "mail_host": "example.com", "list_name": - "foo", "display_name": "Foo", "list_id": "foo.example.com", "member_count": - 0, "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com"}'} + 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: ['Fri, 17 Apr 2015 21:49:35 GMT'] + 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&subscriber=owner%40example.com&list_id=foo.example.com + 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.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:35 GMT'] - location: ['http://localhost:9001/3.0/members/12074168645281219821012097651555517878'] + 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] status: {code: 201, message: Created} - request: - body: role=moderator&subscriber=moderator%40example.com&list_id=foo.example.com + 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.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:35 GMT'] - location: ['http://localhost:9001/3.0/members/94650724485659036062661613518054999504'] + 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] status: {code: 201, message: Created} - request: @@ -403,14 +403,14 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:35 GMT'] + date: ['Wed, 11 Nov 2015 12:49:30 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -419,7 +419,7 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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,7 +427,7 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:36 GMT'] + date: ['Wed, 11 Nov 2015 12:49:30 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 400, message: Bad Request} - request: @@ -435,17 +435,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:36 GMT'] + date: ['Wed, 11 Nov 2015 12:49:30 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -453,17 +453,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:36 GMT'] + date: ['Wed, 11 Nov 2015 12:49:30 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -472,14 +472,14 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:36 GMT'] + 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} @@ -488,52 +488,52 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"volume": 1, "mail_host": "example.com", "list_name": - "foo", "display_name": "Foo", "list_id": "foo.example.com", "member_count": - 0, "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com"}'} + 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: ['Fri, 17 Apr 2015 21:49:36 GMT'] + 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&subscriber=owner%40example.com&list_id=foo.example.com + 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.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:36 GMT'] - location: ['http://localhost:9001/3.0/members/223241540512653506064200078189238573818'] + 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] status: {code: 201, message: Created} - request: - body: role=moderator&subscriber=moderator%40example.com&list_id=foo.example.com + 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.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:36 GMT'] - location: ['http://localhost:9001/3.0/members/233835866298862862372349670001300225520'] + 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] status: {code: 201, message: Created} - request: @@ -541,18 +541,18 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"volume": 1, "mail_host": "example.com", "list_name": - "foo", "display_name": "Foo", "list_id": "foo.example.com", "member_count": - 0, "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com"}'} + 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: ['Fri, 17 Apr 2015 21:49:36 GMT'] + date: ['Wed, 11 Nov 2015 12:49:31 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -560,15 +560,16 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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, "start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\""}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:36 GMT'] + date: ['Wed, 11 Nov 2015 12:49:31 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -576,21 +577,21 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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, "start": 0, "entries": [{"role": - "owner", "list_id": "foo.example.com", "delivery_mode": "regular", "address": - "http://localhost:9001/3.0/addresses/owner@example.com", "user": "http://localhost:9001/3.0/users/57534215827853875099162175535757293119", - "http_etag": "\"7b3da3c765b0408c50bea70374f8e4e01913866e\"", "member_id": - 223241540512653506064200078189238573818, "email": "owner@example.com", "self_link": - "http://localhost:9001/3.0/members/223241540512653506064200078189238573818"}], - "http_etag": "\"1e2b531abe36d9a977bd2aedc683aa318a21e166\""}'} + 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: ['565'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:36 GMT'] + date: ['Wed, 11 Nov 2015 12:49:31 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -598,21 +599,21 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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": 1, "start": 0, "entries": [{"role": - "moderator", "list_id": "foo.example.com", "delivery_mode": "regular", "address": - "http://localhost:9001/3.0/addresses/moderator@example.com", "user": "http://localhost:9001/3.0/users/287867428867435321086730016686195529878", - "http_etag": "\"623b5e1d1f1f7719de9a6c21668d944119c08a23\"", "member_id": - 233835866298862862372349670001300225520, "email": "moderator@example.com", - "self_link": "http://localhost:9001/3.0/members/233835866298862862372349670001300225520"}], - "http_etag": "\"cbf8fdadcbd196fcb561fda13eb3b646f2905d1d\""}'} + 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}'} headers: - content-length: ['578'] + content-length: ['575'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:36 GMT'] + date: ['Wed, 11 Nov 2015 12:49:31 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -620,18 +621,18 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"volume": 1, "mail_host": "example.com", "list_name": - "foo", "display_name": "Foo", "list_id": "foo.example.com", "member_count": - 0, "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com"}'} + 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: ['Fri, 17 Apr 2015 21:49:36 GMT'] + date: ['Wed, 11 Nov 2015 12:49:31 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -639,21 +640,21 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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, "start": 0, "entries": [{"role": - "owner", "list_id": "foo.example.com", "delivery_mode": "regular", "address": - "http://localhost:9001/3.0/addresses/owner@example.com", "user": "http://localhost:9001/3.0/users/57534215827853875099162175535757293119", - "http_etag": "\"7b3da3c765b0408c50bea70374f8e4e01913866e\"", "member_id": - 223241540512653506064200078189238573818, "email": "owner@example.com", "self_link": - "http://localhost:9001/3.0/members/223241540512653506064200078189238573818"}], - "http_etag": "\"1e2b531abe36d9a977bd2aedc683aa318a21e166\""}'} + 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: ['565'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:36 GMT'] + date: ['Wed, 11 Nov 2015 12:49:32 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -661,14 +662,14 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:36 GMT'] + date: ['Wed, 11 Nov 2015 12:49:32 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -677,7 +678,7 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: @@ -685,7 +686,7 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:37 GMT'] + date: ['Wed, 11 Nov 2015 12:49:33 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 400, message: Bad Request} - request: @@ -693,17 +694,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:37 GMT'] + date: ['Wed, 11 Nov 2015 12:49:33 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -711,17 +712,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:37 GMT'] + date: ['Wed, 11 Nov 2015 12:49:33 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -730,14 +731,14 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:37 GMT'] + 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} @@ -746,52 +747,52 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"volume": 1, "mail_host": "example.com", "list_name": - "foo", "display_name": "Foo", "list_id": "foo.example.com", "member_count": - 0, "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com"}'} + 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: ['Fri, 17 Apr 2015 21:49:37 GMT'] + 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&subscriber=owner%40example.com&list_id=foo.example.com + 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.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:37 GMT'] - location: ['http://localhost:9001/3.0/members/243905402299323753448717454607070434360'] + 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] status: {code: 201, message: Created} - request: - body: role=moderator&subscriber=moderator%40example.com&list_id=foo.example.com + 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.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:37 GMT'] - location: ['http://localhost:9001/3.0/members/204683289941882419930096616056113784385'] + 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] status: {code: 201, message: Created} - request: @@ -799,18 +800,18 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"volume": 1, "mail_host": "example.com", "list_name": - "foo", "display_name": "Foo", "list_id": "foo.example.com", "member_count": - 0, "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com"}'} + 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: ['Fri, 17 Apr 2015 21:49:37 GMT'] + date: ['Wed, 11 Nov 2015 12:49:34 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -818,15 +819,16 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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, "start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\""}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:37 GMT'] + date: ['Wed, 11 Nov 2015 12:49:34 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -834,14 +836,14 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:38 GMT'] + 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 ffbfa29..c590bd8 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/list_members_page.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/list_members_page.yaml @@ -4,18 +4,18 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"volume": 1, "mail_host": "example.com", "list_name": - "foo", "display_name": "Foo", "list_id": "foo.example.com", "member_count": - 0, "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com"}'} + 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: ['Fri, 17 Apr 2015 21:49:34 GMT'] + date: ['Wed, 11 Nov 2015 12:49:26 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -23,15 +23,16 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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, "start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\""}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:34 GMT'] + date: ['Wed, 11 Nov 2015 12:49:26 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -39,141 +40,21 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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, "start": 0, "entries": [{"role": - "owner", "list_id": "foo.example.com", "delivery_mode": "regular", "address": - "http://localhost:9001/3.0/addresses/owner@example.com", "user": "http://localhost:9001/3.0/users/57534215827853875099162175535757293119", - "http_etag": "\"6cb59e4c1529107406688065b59dc91dd6984e86\"", "member_id": - 58694139851881328554076579791556559643, "email": "owner@example.com", "self_link": - "http://localhost:9001/3.0/members/58694139851881328554076579791556559643"}], - "http_etag": "\"b5c0583a820a6629e7e035c13b9bab9d7ee49499\""}'} - headers: - content-length: ['563'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21: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.0b2'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator - response: - body: {string: !!python/unicode '{"total_size": 1, "start": 0, "entries": [{"role": - "moderator", "list_id": "foo.example.com", "delivery_mode": "regular", "address": - "http://localhost:9001/3.0/addresses/moderator@example.com", "user": "http://localhost:9001/3.0/users/287867428867435321086730016686195529878", - "http_etag": "\"f488fe4a6045cb560d599910dbfc3260c02b82a7\"", "member_id": - 301920928048316817504986838317705093446, "email": "moderator@example.com", - "self_link": "http://localhost:9001/3.0/members/301920928048316817504986838317705093446"}], - "http_etag": "\"f5290e7c5f531fcaddf4aa6ba75ba04e58b6eb5f\""}'} - headers: - content-length: ['578'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21: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.0b2'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo@example.com - response: - body: {string: !!python/unicode '{"volume": 1, "mail_host": "example.com", "list_name": - "foo", "display_name": "Foo", "list_id": "foo.example.com", "member_count": - 0, "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com"}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49: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.0b2'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner - response: - body: {string: !!python/unicode '{"total_size": 1, "start": 0, "entries": [{"role": - "owner", "list_id": "foo.example.com", "delivery_mode": "regular", "address": - "http://localhost:9001/3.0/addresses/owner@example.com", "user": "http://localhost:9001/3.0/users/57534215827853875099162175535757293119", - "http_etag": "\"6cb59e4c1529107406688065b59dc91dd6984e86\"", "member_id": - 58694139851881328554076579791556559643, "email": "owner@example.com", "self_link": - "http://localhost:9001/3.0/members/58694139851881328554076579791556559643"}], - "http_etag": "\"b5c0583a820a6629e7e035c13b9bab9d7ee49499\""}'} - headers: - content-length: ['563'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21: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.0b2'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo@example.com - response: - body: {string: !!python/unicode '{"volume": 1, "mail_host": "example.com", "list_name": - "foo", "display_name": "Foo", "list_id": "foo.example.com", "member_count": - 0, "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com"}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49: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.0b2'] - 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, "start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\""}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21: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.0b2'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner - response: - body: {string: !!python/unicode '{"total_size": 1, "start": 0, "entries": [{"role": - "owner", "list_id": "foo.example.com", "delivery_mode": "regular", "address": - "http://localhost:9001/3.0/addresses/owner@example.com", "user": "http://localhost:9001/3.0/users/57534215827853875099162175535757293119", - "http_etag": "\"314bbfa7ab67e91ddd50163915a6fc7c8c28215b\"", "member_id": - 104597404185462268851527227999257447264, "email": "owner@example.com", "self_link": - "http://localhost:9001/3.0/members/104597404185462268851527227999257447264"}], - "http_etag": "\"8368053e36b23658a00427499f95d729d6c6230e\""}'} + 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: ['Fri, 17 Apr 2015 21:49:34 GMT'] + date: ['Wed, 11 Nov 2015 12:49:26 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -181,21 +62,21 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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": 1, "start": 0, "entries": [{"role": - "moderator", "list_id": "foo.example.com", "delivery_mode": "regular", "address": - "http://localhost:9001/3.0/addresses/moderator@example.com", "user": "http://localhost:9001/3.0/users/287867428867435321086730016686195529878", - "http_etag": "\"bfdf32d876fcd8dfdfcf11c44e5c545cafdf6aab\"", "member_id": - 125897732057180252325707119635194125341, "email": "moderator@example.com", - "self_link": "http://localhost:9001/3.0/members/125897732057180252325707119635194125341"}], - "http_etag": "\"64b056a01cccdacd878f3bb6d5be2093a5bc6221\""}'} + 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}'} headers: - content-length: ['578'] + content-length: ['577'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:34 GMT'] + date: ['Wed, 11 Nov 2015 12:49:26 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -203,62 +84,18 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner - response: - body: {string: !!python/unicode '{"total_size": 1, "start": 0, "entries": [{"role": - "owner", "list_id": "foo.example.com", "delivery_mode": "regular", "address": - "http://localhost:9001/3.0/addresses/owner@example.com", "user": "http://localhost:9001/3.0/users/57534215827853875099162175535757293119", - "http_etag": "\"314bbfa7ab67e91ddd50163915a6fc7c8c28215b\"", "member_id": - 104597404185462268851527227999257447264, "email": "owner@example.com", "self_link": - "http://localhost:9001/3.0/members/104597404185462268851527227999257447264"}], - "http_etag": "\"8368053e36b23658a00427499f95d729d6c6230e\""}'} - headers: - content-length: ['565'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21: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.0b2'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator - response: - body: {string: !!python/unicode '{"total_size": 1, "start": 0, "entries": [{"role": - "moderator", "list_id": "foo.example.com", "delivery_mode": "regular", "address": - "http://localhost:9001/3.0/addresses/moderator@example.com", "user": "http://localhost:9001/3.0/users/287867428867435321086730016686195529878", - "http_etag": "\"bfdf32d876fcd8dfdfcf11c44e5c545cafdf6aab\"", "member_id": - 125897732057180252325707119635194125341, "email": "moderator@example.com", - "self_link": "http://localhost:9001/3.0/members/125897732057180252325707119635194125341"}], - "http_etag": "\"64b056a01cccdacd878f3bb6d5be2093a5bc6221\""}'} - headers: - content-length: ['578'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21: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.0b2'] + !!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 '{"volume": 1, "mail_host": "example.com", "list_name": - "foo", "display_name": "Foo", "list_id": "foo.example.com", "member_count": - 0, "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com"}'} + 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: ['Fri, 17 Apr 2015 21:49:35 GMT'] + date: ['Wed, 11 Nov 2015 12:49:26 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -266,15 +103,57 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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, "start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\""}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:35 GMT'] + date: ['Wed, 11 Nov 2015 12:49:28 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -282,21 +161,21 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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, "start": 0, "entries": [{"role": - "owner", "list_id": "foo.example.com", "delivery_mode": "regular", "address": - "http://localhost:9001/3.0/addresses/owner@example.com", "user": "http://localhost:9001/3.0/users/57534215827853875099162175535757293119", - "http_etag": "\"b751bd3ee345db5ecfb9dde8fc9f52022fdb92a7\"", "member_id": - 12074168645281219821012097651555517878, "email": "owner@example.com", "self_link": - "http://localhost:9001/3.0/members/12074168645281219821012097651555517878"}], - "http_etag": "\"92b03db40ca85718626f3ff893e4325731e747a8\""}'} + 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: ['563'] + content-length: ['565'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:35 GMT'] + date: ['Wed, 11 Nov 2015 12:49:28 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -304,21 +183,21 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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": 1, "start": 0, "entries": [{"role": - "moderator", "list_id": "foo.example.com", "delivery_mode": "regular", "address": - "http://localhost:9001/3.0/addresses/moderator@example.com", "user": "http://localhost:9001/3.0/users/287867428867435321086730016686195529878", - "http_etag": "\"4bf848b66656a7770c262a16b0b8303a5abd619d\"", "member_id": - 94650724485659036062661613518054999504, "email": "moderator@example.com", - "self_link": "http://localhost:9001/3.0/members/94650724485659036062661613518054999504"}], - "http_etag": "\"1cf74e0e834e424d7f759182f568332fe35519b8\""}'} + 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: ['576'] + content-length: ['575'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:35 GMT'] + date: ['Wed, 11 Nov 2015 12:49:28 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -326,21 +205,21 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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, "start": 0, "entries": [{"role": - "owner", "list_id": "foo.example.com", "delivery_mode": "regular", "address": - "http://localhost:9001/3.0/addresses/owner@example.com", "user": "http://localhost:9001/3.0/users/57534215827853875099162175535757293119", - "http_etag": "\"b751bd3ee345db5ecfb9dde8fc9f52022fdb92a7\"", "member_id": - 12074168645281219821012097651555517878, "email": "owner@example.com", "self_link": - "http://localhost:9001/3.0/members/12074168645281219821012097651555517878"}], - "http_etag": "\"92b03db40ca85718626f3ff893e4325731e747a8\""}'} + 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: ['563'] + content-length: ['565'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:35 GMT'] + date: ['Wed, 11 Nov 2015 12:49:28 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -348,21 +227,145 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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": 1, "start": 0, "entries": [{"role": - "moderator", "list_id": "foo.example.com", "delivery_mode": "regular", "address": - "http://localhost:9001/3.0/addresses/moderator@example.com", "user": "http://localhost:9001/3.0/users/287867428867435321086730016686195529878", - "http_etag": "\"4bf848b66656a7770c262a16b0b8303a5abd619d\"", "member_id": - 94650724485659036062661613518054999504, "email": "moderator@example.com", - "self_link": "http://localhost:9001/3.0/members/94650724485659036062661613518054999504"}], - "http_etag": "\"1cf74e0e834e424d7f759182f568332fe35519b8\""}'} + 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: ['576'] + content-length: ['575'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:35 GMT'] + 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=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: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/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}'} + headers: + content-length: ['563'] + 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}'} + headers: + content-length: ['577'] + 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/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}'} + headers: + content-length: ['563'] + 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}'} + headers: + content-length: ['577'] + 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 e46b643..98c9183 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 @@ -4,37 +4,36 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"volume": 1, "mail_host": "example.com", "list_name": - "foo", "display_name": "Foo", "list_id": "foo.example.com", "member_count": - 0, "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com"}'} + 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: ['Fri, 17 Apr 2015 21:49:42 GMT'] + 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&list_id=foo.example.com&subscriber=test%40example.com + 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.0b2'] + !!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 '{"token": "ca9d7b69aa6be3cca2d4f781903e5527e900a780", - "http_etag": "\"13ed3905bc3a398fa29f6401b9cf3b4166bf5e32\"", "token_owner": - "subscriber"}'} + body: {string: !!python/unicode '{"http_etag": "\"a622058d6b817477cab814a144628de6f6c8bdeb\"", + "token": "6b3835e5e3f1d7928da3f785dce00b966d8e230d", "token_owner": "subscriber"}'} headers: content-length: ['143'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:42 GMT'] + date: ['Wed, 11 Nov 2015 12:49:46 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 202, message: Accepted} - request: @@ -42,17 +41,18 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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, "created_on": "2015-04-17T21:49:42.543677", - "http_etag": "\"9c7db56868280a314f88ebe3617eb470bbc1e12a\"", "user_id": 145884944174755256087575342095483601919, - "display_name": "None", "self_link": "http://localhost:9001/3.0/users/145884944174755256087575342095483601919"}'} + 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"}'} headers: content-length: ['295'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:42 GMT'] + date: ['Wed, 11 Nov 2015 12:49:46 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -61,14 +61,14 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0'] method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/users/145884944174755256087575342095483601919/addresses + uri: http://localhost:9001/3.0/users/175101733981884185786040725666736952966/addresses response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Fri, 17 Apr 2015 21:49:42 GMT'] + 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} @@ -77,18 +77,18 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"volume": 1, "mail_host": "example.com", "list_name": - "foo", "display_name": "Foo", "list_id": "foo.example.com", "member_count": - 0, "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com"}'} + 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: ['Fri, 17 Apr 2015 21:49:42 GMT'] + date: ['Wed, 11 Nov 2015 12:49:46 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -96,15 +96,16 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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, "start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\""}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:42 GMT'] + date: ['Wed, 11 Nov 2015 12:49:46 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -112,15 +113,16 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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, "start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\""}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:42 GMT'] + date: ['Wed, 11 Nov 2015 12:49:46 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -128,17 +130,18 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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, "created_on": "2015-04-17T21:49:42.543677", - "http_etag": "\"9c7db56868280a314f88ebe3617eb470bbc1e12a\"", "user_id": 145884944174755256087575342095483601919, - "display_name": "None", "self_link": "http://localhost:9001/3.0/users/145884944174755256087575342095483601919"}'} + 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"}'} headers: content-length: ['295'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:42 GMT'] + date: ['Wed, 11 Nov 2015 12:49:46 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -146,17 +149,18 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0'] method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/145884944174755256087575342095483601919 + uri: http://localhost:9001/3.0/users/175101733981884185786040725666736952966 response: - body: {string: !!python/unicode '{"is_server_owner": false, "created_on": "2015-04-17T21:49:42.543677", - "http_etag": "\"9c7db56868280a314f88ebe3617eb470bbc1e12a\"", "user_id": 145884944174755256087575342095483601919, - "display_name": "None", "self_link": "http://localhost:9001/3.0/users/145884944174755256087575342095483601919"}'} + 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"}'} headers: content-length: ['295'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:42 GMT'] + date: ['Wed, 11 Nov 2015 12:49:46 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -164,24 +168,25 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0'] method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/145884944174755256087575342095483601919/addresses + uri: http://localhost:9001/3.0/users/175101733981884185786040725666736952966/addresses response: - body: {string: !!python/unicode '{"total_size": 2, "start": 0, "entries": [{"registered_on": - "2015-04-17T21:49:42.657259", "original_email": "anotheremail@example.com", - "user": "http://localhost:9001/3.0/users/145884944174755256087575342095483601919", - "http_etag": "\"248ed9ea7953084bc4d663ae5664fd356fdb5f17\"", "email": "anotheremail@example.com", - "self_link": "http://localhost:9001/3.0/addresses/anotheremail@example.com"}, - {"registered_on": "2015-04-17T21:49:42.533835", "original_email": "test@example.com", - "user": "http://localhost:9001/3.0/users/145884944174755256087575342095483601919", - "http_etag": "\"e50cdd0055f747a7471ce09a805b5f6ef2042a5f\"", "display_name": - "None", "email": "test@example.com", "self_link": "http://localhost:9001/3.0/addresses/test@example.com"}], - "http_etag": "\"00d92d9353dc6c04d46a655bacf8f841e944c062\""}'} + body: {string: !!python/unicode '{"entries": [{"email": "anotheremail@example.com", + "user": "http://localhost:9001/3.0/users/175101733981884185786040725666736952966", + "http_etag": "\"f426bc970d106dbe0b97a94d2a1cb7d4841c7426\"", "self_link": + "http://localhost:9001/3.0/addresses/anotheremail@example.com", "registered_on": + "2015-11-11T12:49:46.474206", "original_email": "anotheremail@example.com"}, + {"email": "test@example.com", "user": "http://localhost:9001/3.0/users/175101733981884185786040725666736952966", + "display_name": "None", "http_etag": "\"ff99ece0c664fbdc7c31e598be6fff735098d6e8\"", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "registered_on": + "2015-11-11T12:49:46.213354", "original_email": "test@example.com"}], "http_etag": + "\"f2c8e9b9e18b8429f7f55962f7ec73bd670fb7f4\"", "total_size": 2, "start": + 0}'} headers: content-length: ['809'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:42 GMT'] + date: ['Wed, 11 Nov 2015 12:49:46 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -189,101 +194,67 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 + uri: http://localhost:9001/3.0/lists/foo.example.com/member/anotheremail@example.com response: - body: {string: !!python/unicode '{"total_size": 0, "start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\""}'} + body: {string: !!python/unicode '{}'} headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:42 GMT'] + content-length: ['2'] + content-type: [application/json] + date: ['Wed, 11 Nov 2015 12:49:46 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} + 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.0b2'] + !!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 + uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com response: - body: {string: !!python/unicode '{"total_size": 0, "start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\""}'} + body: {string: !!python/unicode '{}'} headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:42 GMT'] + content-length: ['2'] + content-type: [application/json] + date: ['Wed, 11 Nov 2015 12:49:46 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} + 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.0b2'] + !!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 '{"scheme": "http", "list_name": "foo", "reply_to_address": - "", "next_digest_number": 1, "post_id": 1, "bounces_address": "foo-bounces@example.com", - "posting_pipeline": "default-posting-pipeline", "advertised": true, "no_reply_address": - "noreply@example.com", "autoresponse_owner_text": "", "last_post_at": null, - "allow_list_posts": true, "join_address": "foo-join@example.com", "acceptable_aliases": - [], "filter_content": false, "web_host": "example.com", "default_member_action": - "defer", "anonymous_list": false, "autorespond_postings": "none", "leave_address": - "foo-leave@example.com", "autoresponse_postings_text": "", "autoresponse_request_text": - "", "description": "", "admin_immed_notify": true, "collapse_alternatives": - true, "archive_policy": "public", "send_welcome_message": true, "created_at": - "2015-04-17T21:49:42.343674", "include_rfc2369_headers": true, "first_strip_reply_to": - false, "welcome_message_uri": "mailman:///welcome.txt", "administrivia": true, - "digest_last_sent_at": null, "admin_notify_mchanges": false, "digest_size_threshold": - 30.0, "default_nonmember_action": "hold", "subject_prefix": "[Foo] ", "request_address": - "foo-request@example.com", "autorespond_requests": "none", "volume": 1, "reply_goes_to_list": - "no_munging", "mail_host": "example.com", "autoresponse_grace_period": "90d", - "subscription_policy": "confirm", "display_name": "Foo", "convert_html_to_plaintext": - false, "owner_address": "foo-owner@example.com", "fqdn_listname": "foo@example.com", - "posting_address": "foo@example.com", "http_etag": "\"767846dab52231da82d6bdef561038a43dfe6fb5\"", - "autorespond_owner": "none"}'} + 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}'} headers: content-length: ['1617'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21: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.0b2'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo@example.com/config - response: - body: {string: !!python/unicode '{"scheme": "http", "list_name": "foo", "reply_to_address": - "", "next_digest_number": 1, "post_id": 1, "bounces_address": "foo-bounces@example.com", - "posting_pipeline": "default-posting-pipeline", "advertised": true, "no_reply_address": - "noreply@example.com", "autoresponse_owner_text": "", "last_post_at": null, - "allow_list_posts": true, "join_address": "foo-join@example.com", "acceptable_aliases": - [], "filter_content": false, "web_host": "example.com", "default_member_action": - "defer", "anonymous_list": false, "autorespond_postings": "none", "leave_address": - "foo-leave@example.com", "autoresponse_postings_text": "", "autoresponse_request_text": - "", "description": "", "admin_immed_notify": true, "collapse_alternatives": - true, "archive_policy": "public", "send_welcome_message": true, "created_at": - "2015-04-17T21:49:42.343674", "include_rfc2369_headers": true, "first_strip_reply_to": - false, "welcome_message_uri": "mailman:///welcome.txt", "administrivia": true, - "digest_last_sent_at": null, "admin_notify_mchanges": false, "digest_size_threshold": - 30.0, "default_nonmember_action": "hold", "subject_prefix": "[Foo] ", "request_address": - "foo-request@example.com", "autorespond_requests": "none", "volume": 1, "reply_goes_to_list": - "no_munging", "mail_host": "example.com", "autoresponse_grace_period": "90d", - "subscription_policy": "confirm", "display_name": "Foo", "convert_html_to_plaintext": - false, "owner_address": "foo-owner@example.com", "fqdn_listname": "foo@example.com", - "posting_address": "foo@example.com", "http_etag": "\"767846dab52231da82d6bdef561038a43dfe6fb5\"", - "autorespond_owner": "none"}'} - headers: - content-length: ['1617'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:42 GMT'] + 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 c9ce63c..12dfe26 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_change_subscription.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_change_subscription.yaml @@ -4,35 +4,35 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"volume": 1, "mail_host": "example.com", "list_name": - "foo", "display_name": "Foo", "list_id": "foo.example.com", "member_count": - 0, "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com"}'} + 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: ['Fri, 17 Apr 2015 21:49:39 GMT'] + 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&list_id=foo.example.com&subscriber=test%40example.com + 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.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:39 GMT'] - location: ['http://localhost:9001/3.0/members/292023913651303001152733356954878430707'] + 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] status: {code: 201, message: Created} - request: @@ -40,18 +40,18 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"volume": 1, "mail_host": "example.com", "list_name": - "foo", "display_name": "Foo", "list_id": "foo.example.com", "member_count": - 1, "fqdn_listname": "foo@example.com", "http_etag": "\"98cc998d4a30293ec17da639bce10617912a6e1e\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com"}'} + 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}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:39 GMT'] + date: ['Wed, 11 Nov 2015 12:49:40 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -59,15 +59,16 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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, "start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\""}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:39 GMT'] + date: ['Wed, 11 Nov 2015 12:49:40 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -75,15 +76,16 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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, "start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\""}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:39 GMT'] + date: ['Wed, 11 Nov 2015 12:49:40 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -91,17 +93,18 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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, "created_on": "2015-04-17T21:49:39.641823", - "http_etag": "\"37779fcd1a46be2b90a29cdb676b73f83115d03b\"", "user_id": 204817555931972815975639382460590167604, - "display_name": "None", "self_link": "http://localhost:9001/3.0/users/204817555931972815975639382460590167604"}'} + 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"}'} headers: - content-length: ['295'] + content-length: ['293'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:39 GMT'] + date: ['Wed, 11 Nov 2015 12:49:40 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -109,17 +112,18 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0'] method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/204817555931972815975639382460590167604 + uri: http://localhost:9001/3.0/users/35258670270330606438959454694878423733 response: - body: {string: !!python/unicode '{"is_server_owner": false, "created_on": "2015-04-17T21:49:39.641823", - "http_etag": "\"37779fcd1a46be2b90a29cdb676b73f83115d03b\"", "user_id": 204817555931972815975639382460590167604, - "display_name": "None", "self_link": "http://localhost:9001/3.0/users/204817555931972815975639382460590167604"}'} + 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"}'} headers: - content-length: ['295'] + content-length: ['293'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:39 GMT'] + date: ['Wed, 11 Nov 2015 12:49:40 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -127,20 +131,21 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0'] method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/204817555931972815975639382460590167604/addresses + uri: http://localhost:9001/3.0/users/35258670270330606438959454694878423733/addresses response: - body: {string: !!python/unicode '{"total_size": 1, "start": 0, "entries": [{"http_etag": - "\"d79e620e0f1ba72ef1d9d10b658fe28dfb8e860e\"", "registered_on": "2015-04-17T21:49:39.631542", - "original_email": "test@example.com", "user": "http://localhost:9001/3.0/users/204817555931972815975639382460590167604", - "verified_on": "2015-04-17T21:49:39.658421", "display_name": "None", "email": - "test@example.com", "self_link": "http://localhost:9001/3.0/addresses/test@example.com"}], - "http_etag": "\"28f0394a39cee45408687ef51ce699d4395ef91f\""}'} + 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: ['501'] + content-length: ['500'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:39 GMT'] + date: ['Wed, 11 Nov 2015 12:49:40 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -148,21 +153,20 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 + uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com response: - body: {string: !!python/unicode '{"total_size": 1, "start": 0, "entries": [{"role": - "member", "list_id": "foo.example.com", "delivery_mode": "regular", "address": - "http://localhost:9001/3.0/addresses/test@example.com", "user": "http://localhost:9001/3.0/users/204817555931972815975639382460590167604", - "http_etag": "\"1684bdade9ea938bd38e3878afba2ef5508645c4\"", "member_id": - 292023913651303001152733356954878430707, "email": "test@example.com", "self_link": - "http://localhost:9001/3.0/members/292023913651303001152733356954878430707"}], - "http_etag": "\"ad978d7879e9efb6a630ad58273d6af958ab3d92\""}'} + 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"}'} headers: - content-length: ['565'] + content-length: ['457'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:39 GMT'] + date: ['Wed, 11 Nov 2015 12:49:40 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -170,90 +174,35 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/members/292023913651303001152733356954878430707 - response: - body: {string: !!python/unicode '{"role": "member", "list_id": "foo.example.com", - "delivery_mode": "regular", "address": "http://localhost:9001/3.0/addresses/test@example.com", - "user": "http://localhost:9001/3.0/users/204817555931972815975639382460590167604", - "http_etag": "\"1684bdade9ea938bd38e3878afba2ef5508645c4\"", "member_id": - 292023913651303001152733356954878430707, "email": "test@example.com", "self_link": - "http://localhost:9001/3.0/members/292023913651303001152733356954878430707"}'} - headers: - content-length: ['460'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:39 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"scheme": "http", "list_name": "foo", "reply_to_address": - "", "next_digest_number": 1, "post_id": 1, "bounces_address": "foo-bounces@example.com", - "posting_pipeline": "default-posting-pipeline", "advertised": true, "no_reply_address": - "noreply@example.com", "autoresponse_owner_text": "", "last_post_at": null, - "allow_list_posts": true, "join_address": "foo-join@example.com", "acceptable_aliases": - [], "filter_content": false, "web_host": "example.com", "default_member_action": - "defer", "anonymous_list": false, "autorespond_postings": "none", "leave_address": - "foo-leave@example.com", "autoresponse_postings_text": "", "autoresponse_request_text": - "", "description": "", "admin_immed_notify": true, "collapse_alternatives": - true, "archive_policy": "public", "send_welcome_message": true, "created_at": - "2015-04-17T21:49:39.501627", "include_rfc2369_headers": true, "first_strip_reply_to": - false, "welcome_message_uri": "mailman:///welcome.txt", "administrivia": true, - "digest_last_sent_at": null, "admin_notify_mchanges": false, "digest_size_threshold": - 30.0, "default_nonmember_action": "hold", "subject_prefix": "[Foo] ", "request_address": - "foo-request@example.com", "autorespond_requests": "none", "volume": 1, "reply_goes_to_list": - "no_munging", "mail_host": "example.com", "autoresponse_grace_period": "90d", - "subscription_policy": "confirm", "display_name": "Foo", "convert_html_to_plaintext": - false, "owner_address": "foo-owner@example.com", "fqdn_listname": "foo@example.com", - "posting_address": "foo@example.com", "http_etag": "\"5a8dadbaf2ad92b296df371532b6fc2baf9953b2\"", - "autorespond_owner": "none"}'} + 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}'} headers: content-length: ['1617'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:39 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo@example.com/config - response: - body: {string: !!python/unicode '{"scheme": "http", "list_name": "foo", "reply_to_address": - "", "next_digest_number": 1, "post_id": 1, "bounces_address": "foo-bounces@example.com", - "posting_pipeline": "default-posting-pipeline", "advertised": true, "no_reply_address": - "noreply@example.com", "autoresponse_owner_text": "", "last_post_at": null, - "allow_list_posts": true, "join_address": "foo-join@example.com", "acceptable_aliases": - [], "filter_content": false, "web_host": "example.com", "default_member_action": - "defer", "anonymous_list": false, "autorespond_postings": "none", "leave_address": - "foo-leave@example.com", "autoresponse_postings_text": "", "autoresponse_request_text": - "", "description": "", "admin_immed_notify": true, "collapse_alternatives": - true, "archive_policy": "public", "send_welcome_message": true, "created_at": - "2015-04-17T21:49:39.501627", "include_rfc2369_headers": true, "first_strip_reply_to": - false, "welcome_message_uri": "mailman:///welcome.txt", "administrivia": true, - "digest_last_sent_at": null, "admin_notify_mchanges": false, "digest_size_threshold": - 30.0, "default_nonmember_action": "hold", "subject_prefix": "[Foo] ", "request_address": - "foo-request@example.com", "autorespond_requests": "none", "volume": 1, "reply_goes_to_list": - "no_munging", "mail_host": "example.com", "autoresponse_grace_period": "90d", - "subscription_policy": "confirm", "display_name": "Foo", "convert_html_to_plaintext": - false, "owner_address": "foo-owner@example.com", "fqdn_listname": "foo@example.com", - "posting_address": "foo@example.com", "http_etag": "\"5a8dadbaf2ad92b296df371532b6fc2baf9953b2\"", - "autorespond_owner": "none"}'} - headers: - content-length: ['1617'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:39 GMT'] + 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 0f8138a..7dfc75d 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 @@ -5,14 +5,14 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:28 GMT'] + 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} @@ -21,17 +21,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:28 GMT'] + date: ['Wed, 11 Nov 2015 12:49:18 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -40,14 +40,14 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:28 GMT'] + 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} @@ -56,18 +56,19 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"volume": 1, "mail_host": "example.com", "list_name": - "test_list", "display_name": "Test_list", "list_id": "test_list.example.com", - "member_count": 0, "fqdn_listname": "test_list@example.com", "http_etag": - "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com"}'} + 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", + "volume": 1}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:28 GMT'] + date: ['Wed, 11 Nov 2015 12:49:18 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -75,16 +76,16 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"prototype": false, "mhonarc": true, "mail-archive": - true, "http_etag": "\"dfd159ec866aff2f484eb6399b59057ba112d3e5\""}'} + body: {string: !!python/unicode '{"mhonarc": true, "prototype": false, "http_etag": + "\"dfd159ec866aff2f484eb6399b59057ba112d3e5\"", "mail-archive": true}'} headers: content-length: ['120'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:29 GMT'] + date: ['Wed, 11 Nov 2015 12:49:19 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -92,18 +93,19 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"volume": 1, "mail_host": "example.com", "list_name": - "test_list", "display_name": "Test_list", "list_id": "test_list.example.com", - "member_count": 0, "fqdn_listname": "test_list@example.com", "http_etag": - "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com"}'} + 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", + "volume": 1}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:29 GMT'] + date: ['Wed, 11 Nov 2015 12:49:19 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -111,14 +113,14 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:29 GMT'] + date: ['Wed, 11 Nov 2015 12:49:19 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -127,7 +129,7 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: @@ -135,7 +137,7 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:29 GMT'] + date: ['Wed, 11 Nov 2015 12:49:19 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 400, message: Bad Request} - request: @@ -143,17 +145,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:29 GMT'] + date: ['Wed, 11 Nov 2015 12:49:19 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -161,17 +163,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:29 GMT'] + date: ['Wed, 11 Nov 2015 12:49:19 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -180,14 +182,14 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:29 GMT'] + 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} @@ -196,18 +198,19 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"volume": 1, "mail_host": "example.com", "list_name": - "test_list", "display_name": "Test_list", "list_id": "test_list.example.com", - "member_count": 0, "fqdn_listname": "test_list@example.com", "http_etag": - "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com"}'} + 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", + "volume": 1}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:29 GMT'] + date: ['Wed, 11 Nov 2015 12:49:19 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -215,16 +218,16 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"prototype": false, "mhonarc": true, "mail-archive": - true, "http_etag": "\"dfd159ec866aff2f484eb6399b59057ba112d3e5\""}'} + body: {string: !!python/unicode '{"mhonarc": true, "prototype": false, "http_etag": + "\"dfd159ec866aff2f484eb6399b59057ba112d3e5\"", "mail-archive": true}'} headers: content-length: ['120'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:29 GMT'] + date: ['Wed, 11 Nov 2015 12:49:20 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -232,18 +235,19 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"volume": 1, "mail_host": "example.com", "list_name": - "test_list", "display_name": "Test_list", "list_id": "test_list.example.com", - "member_count": 0, "fqdn_listname": "test_list@example.com", "http_etag": - "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com"}'} + 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", + "volume": 1}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:29 GMT'] + date: ['Wed, 11 Nov 2015 12:49:20 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -251,14 +255,14 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:29 GMT'] + date: ['Wed, 11 Nov 2015 12:49:20 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -267,7 +271,7 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: @@ -275,7 +279,7 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:29 GMT'] + date: ['Wed, 11 Nov 2015 12:49:20 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 400, message: Bad Request} - request: @@ -283,17 +287,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:29 GMT'] + date: ['Wed, 11 Nov 2015 12:49:20 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -301,17 +305,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:29 GMT'] + date: ['Wed, 11 Nov 2015 12:49:20 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -320,14 +324,14 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:29 GMT'] + 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} @@ -336,18 +340,19 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"volume": 1, "mail_host": "example.com", "list_name": - "test_list", "display_name": "Test_list", "list_id": "test_list.example.com", - "member_count": 0, "fqdn_listname": "test_list@example.com", "http_etag": - "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com"}'} + 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", + "volume": 1}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:29 GMT'] + date: ['Wed, 11 Nov 2015 12:49:21 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -355,16 +360,16 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"prototype": false, "mhonarc": true, "mail-archive": - true, "http_etag": "\"dfd159ec866aff2f484eb6399b59057ba112d3e5\""}'} + body: {string: !!python/unicode '{"mhonarc": true, "prototype": false, "http_etag": + "\"dfd159ec866aff2f484eb6399b59057ba112d3e5\"", "mail-archive": true}'} headers: content-length: ['120'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:29 GMT'] + date: ['Wed, 11 Nov 2015 12:49:21 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -372,14 +377,14 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:30 GMT'] + 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 5db4b07..804e4ea 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 @@ -4,18 +4,19 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"volume": 1, "mail_host": "example.com", "list_name": - "test_list", "display_name": "Test_list", "list_id": "test_list.example.com", - "member_count": 0, "fqdn_listname": "test_list@example.com", "http_etag": - "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com"}'} + 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", + "volume": 1}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:30 GMT'] + date: ['Wed, 11 Nov 2015 12:49:21 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -23,48 +24,48 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"prototype": false, "mhonarc": true, "mail-archive": - true, "http_etag": "\"dfd159ec866aff2f484eb6399b59057ba112d3e5\""}'} + body: {string: !!python/unicode '{"mhonarc": true, "prototype": false, "http_etag": + "\"dfd159ec866aff2f484eb6399b59057ba112d3e5\"", "mail-archive": true}'} headers: content-length: ['120'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:30 GMT'] + date: ['Wed, 11 Nov 2015 12:49:21 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: - body: mail-archive=True&prototype=True&mhonarc=True + 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.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:30 GMT'] + 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: mail-archive=False&prototype=True&mhonarc=True + 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.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:30 GMT'] + date: ['Wed, 11 Nov 2015 12:49:21 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -72,16 +73,16 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"prototype": false, "mhonarc": true, "mail-archive": - false, "http_etag": "\"95f97f6e3c57d856b8048a96844ddc64a972f96d\""}'} + body: {string: !!python/unicode '{"mhonarc": true, "prototype": false, "http_etag": + "\"95f97f6e3c57d856b8048a96844ddc64a972f96d\"", "mail-archive": false}'} headers: content-length: ['121'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:30 GMT'] + date: ['Wed, 11 Nov 2015 12:49:21 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -89,16 +90,16 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"prototype": false, "mhonarc": true, "mail-archive": - false, "http_etag": "\"95f97f6e3c57d856b8048a96844ddc64a972f96d\""}'} + body: {string: !!python/unicode '{"mhonarc": true, "prototype": false, "http_etag": + "\"95f97f6e3c57d856b8048a96844ddc64a972f96d\"", "mail-archive": false}'} headers: content-length: ['121'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:30 GMT'] + 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 84e9235..f2e799c 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 @@ -4,18 +4,19 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"volume": 1, "mail_host": "example.com", "list_name": - "test_list", "display_name": "Test_list", "list_id": "test_list.example.com", - "member_count": 0, "fqdn_listname": "test_list@example.com", "http_etag": - "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com"}'} + 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", + "volume": 1}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:30 GMT'] + date: ['Wed, 11 Nov 2015 12:49:21 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -23,48 +24,48 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"prototype": false, "mhonarc": true, "mail-archive": - false, "http_etag": "\"95f97f6e3c57d856b8048a96844ddc64a972f96d\""}'} + body: {string: !!python/unicode '{"mhonarc": true, "prototype": false, "http_etag": + "\"95f97f6e3c57d856b8048a96844ddc64a972f96d\"", "mail-archive": false}'} headers: content-length: ['121'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:30 GMT'] + date: ['Wed, 11 Nov 2015 12:49:21 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: - body: mail-archive=True&prototype=False&mhonarc=True + 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.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:30 GMT'] + 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: mail-archive=True&prototype=False&mhonarc=False + 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.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:30 GMT'] + date: ['Wed, 11 Nov 2015 12:49:22 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -72,16 +73,16 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"prototype": false, "mhonarc": false, "mail-archive": - true, "http_etag": "\"de68e13c430d856461d2b39a5b5d5286d91528bc\""}'} + body: {string: !!python/unicode '{"mhonarc": false, "prototype": false, "http_etag": + "\"de68e13c430d856461d2b39a5b5d5286d91528bc\"", "mail-archive": true}'} headers: content-length: ['121'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:30 GMT'] + date: ['Wed, 11 Nov 2015 12:49:22 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -89,16 +90,16 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"prototype": false, "mhonarc": false, "mail-archive": - true, "http_etag": "\"de68e13c430d856461d2b39a5b5d5286d91528bc\""}'} + body: {string: !!python/unicode '{"mhonarc": false, "prototype": false, "http_etag": + "\"de68e13c430d856461d2b39a5b5d5286d91528bc\"", "mail-archive": true}'} headers: content-length: ['121'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:30 GMT'] + 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 4efdd70..d880f4f 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_creation.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_creation.yaml @@ -5,7 +5,7 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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,7 +13,7 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:44 GMT'] + date: ['Wed, 11 Nov 2015 12:49:51 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 400, message: Bad Request} - request: @@ -21,17 +21,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:44 GMT'] + date: ['Wed, 11 Nov 2015 12:49:51 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -39,19 +39,19 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"total_size": 1, "start": 0, "entries": [{"base_url": - "http://example.com", "mail_host": "example.com", "description": null, "http_etag": - "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "url_host": "example.com", - "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": - "\"c385b155f8da284bf78dbe075e20f58a30c893ab\""}'} + 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}'} headers: content-length: ['338'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:44 GMT'] + date: ['Wed, 11 Nov 2015 12:49:51 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -59,17 +59,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:44 GMT'] + date: ['Wed, 11 Nov 2015 12:49:51 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -77,17 +77,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:44 GMT'] + date: ['Wed, 11 Nov 2015 12:49:51 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -95,17 +95,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:44 GMT'] + date: ['Wed, 11 Nov 2015 12:49:51 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -114,14 +114,14 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:44 GMT'] + 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} @@ -130,35 +130,36 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"volume": 1, "mail_host": "example.com", "list_name": - "a_new_list", "display_name": "A_new_list", "list_id": "a_new_list.example.com", - "member_count": 0, "fqdn_listname": "a_new_list@example.com", "http_etag": - "\"447e005af2b208bfea01f6425b786356f0a374de\"", "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com"}'} + 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", + "volume": 1}'} headers: content-length: ['329'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:44 GMT'] + 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&subscriber=owner%40example.com&list_id=a_new_list.example.com + 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.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:44 GMT'] - location: ['http://localhost:9001/3.0/members/316848453783539995888912421307166844265'] + 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] status: {code: 201, message: Created} - request: @@ -166,51 +167,51 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"scheme": "http", "list_name": "a_new_list", - "reply_to_address": "", "next_digest_number": 1, "post_id": 1, "bounces_address": - "a_new_list-bounces@example.com", "posting_pipeline": "default-posting-pipeline", - "advertised": true, "no_reply_address": "noreply@example.com", "autoresponse_owner_text": - "", "last_post_at": null, "allow_list_posts": true, "join_address": "a_new_list-join@example.com", - "acceptable_aliases": [], "filter_content": false, "web_host": "example.com", - "default_member_action": "defer", "anonymous_list": false, "autorespond_postings": - "none", "leave_address": "a_new_list-leave@example.com", "autoresponse_postings_text": - "", "autoresponse_request_text": "", "description": "", "admin_immed_notify": - true, "collapse_alternatives": true, "archive_policy": "public", "send_welcome_message": - true, "created_at": "2015-04-17T21:49:44.843356", "include_rfc2369_headers": - true, "first_strip_reply_to": false, "welcome_message_uri": "mailman:///welcome.txt", - "administrivia": true, "digest_last_sent_at": null, "admin_notify_mchanges": - false, "digest_size_threshold": 30.0, "default_nonmember_action": "hold", - "subject_prefix": "[A_new_list] ", "request_address": "a_new_list-request@example.com", - "autorespond_requests": "none", "volume": 1, "reply_goes_to_list": "no_munging", - "mail_host": "example.com", "autoresponse_grace_period": "90d", "subscription_policy": - "confirm", "display_name": "A_new_list", "convert_html_to_plaintext": false, - "owner_address": "a_new_list-owner@example.com", "fqdn_listname": "a_new_list@example.com", - "posting_address": "a_new_list@example.com", "http_etag": "\"364677602cff7bfcbc9138171ad0bbb8966af8ed\"", - "autorespond_owner": "none"}'} + 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}'} headers: content-length: ['1687'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:45 GMT'] + date: ['Wed, 11 Nov 2015 12:49:52 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: - body: description=A+new+list.&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&default_nonmember_action=hold&posting_pipeline=default-posting-pipeline&include_rfc2369_headers=True&autorespond_postings=none&first_strip_reply_to=False&collapse_alternatives=True&allow_list_posts=True&reply_to_address=&display_name=A_new_list&filter_content=False&default_member_action=defer&send_welcome_message=True&autorespond_owner=none&autoresponse_grace_period=90d&admin_notify_mchanges=False&autorespond_requests=none&digest_size_threshold=30.0&administrivia=True&autoresponse_request_text=&anonymous_list=False&subscription_policy=confirm&autoresponse_owner_text=&autoresponse_postings_text=&convert_html_to_plaintext=False&advertised=True&archive_policy=public&reply_goes_to_list=no_munging&subject_prefix=%5BA_new_list%5D+&admin_immed_notify=True + 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 headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:45 GMT'] + date: ['Wed, 11 Nov 2015 12:49:52 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -218,18 +219,19 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"volume": 1, "mail_host": "example.com", "list_name": - "a_new_list", "display_name": "A_new_list", "list_id": "a_new_list.example.com", - "member_count": 0, "fqdn_listname": "a_new_list@example.com", "http_etag": - "\"447e005af2b208bfea01f6425b786356f0a374de\"", "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com"}'} + 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", + "volume": 1}'} headers: content-length: ['329'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:45 GMT'] + date: ['Wed, 11 Nov 2015 12:49:52 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -237,22 +239,21 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"total_size": 1, "start": 0, "entries": [{"role": - "owner", "list_id": "a_new_list.example.com", "delivery_mode": "regular", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "user": - "http://localhost:9001/3.0/users/22808733167350214741010478347477461329", - "http_etag": "\"230d436767bf3b5eeb49341741849a7c425dd1b5\"", "member_id": - 316848453783539995888912421307166844265, "email": "owner@example.com", "self_link": - "http://localhost:9001/3.0/members/316848453783539995888912421307166844265"}], - "http_etag": "\"6b44365e363eb3a4ff7c5fbb1378127c77277476\""}'} + 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}'} headers: content-length: ['572'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:45 GMT'] + date: ['Wed, 11 Nov 2015 12:49:52 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -260,20 +261,20 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"total_size": 1, "start": 0, "entries": [{"volume": - 1, "mail_host": "example.com", "list_name": "a_new_list", "display_name": - "A_new_list", "list_id": "a_new_list.example.com", "member_count": 0, "fqdn_listname": - "a_new_list@example.com", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"", - "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com"}], "http_etag": - "\"dee96dcb9d3f736cc6fa170baeea8f879d7db6f0\""}'} + 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}'} headers: content-length: ['434'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:45 GMT'] + date: ['Wed, 11 Nov 2015 12:49:52 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -281,33 +282,14 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/a_new_list.example.com - response: - body: {string: !!python/unicode '{"volume": 1, "mail_host": "example.com", "list_name": - "a_new_list", "display_name": "A_new_list", "list_id": "a_new_list.example.com", - "member_count": 0, "fqdn_listname": "a_new_list@example.com", "http_etag": - "\"447e005af2b208bfea01f6425b786356f0a374de\"", "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com"}'} - headers: - content-length: ['329'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21: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.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:45 GMT'] + date: ['Wed, 11 Nov 2015 12:49:52 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -316,7 +298,7 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: @@ -324,7 +306,7 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:45 GMT'] + date: ['Wed, 11 Nov 2015 12:49:52 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 400, message: Bad Request} - request: @@ -332,17 +314,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:45 GMT'] + date: ['Wed, 11 Nov 2015 12:49:52 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -350,15 +332,16 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"total_size": 0, "start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\""}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:45 GMT'] + 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 c24eccc..56cfe4b 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_index.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_index.yaml @@ -9,13 +9,13 @@ method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode ''} + body: {string: !!python/unicode 'Duplicate email host: example.com'} headers: - content-length: ['0'] - date: ['Thu, 06 Aug 2015 05:11:52 GMT'] - location: ['http://localhost:9001/3.0/domains/example.com'] + 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: 201, message: Created} + status: {code: 400, message: Bad Request} - request: body: null headers: @@ -25,13 +25,31 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "http_etag": - "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "self_link": "http://localhost:9001/3.0/domains/example.com", - "description": null, "mail_host": "example.com", "url_host": "example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Thu, 06 Aug 2015 05:11:52 GMT'] + 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"}'} + 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: @@ -47,7 +65,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Thu, 06 Aug 2015 05:11:52 GMT'] + 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} @@ -64,7 +82,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Thu, 06 Aug 2015 05:11:52 GMT'] + 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} @@ -77,38 +95,19 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists response: - body: {string: !!python/unicode '{"http_etag": "\"32ddcf601b73aeabdba5c18666c75d062c76eac8\"", - "entries": [{"volume": 1, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", - "list_name": "foo", "display_name": "Foo", "mail_host": "example.com", "http_etag": - "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "member_count": 0, "fqdn_listname": - "foo@example.com", "list_id": "foo.example.com"}, {"volume": 1, "self_link": - "http://localhost:9001/3.0/lists/bar.example.com", "list_name": "bar", "display_name": - "Bar", "mail_host": "example.com", "http_etag": "\"ca42a69a3bab5619e147cc6cbbfca16115976764\"", - "member_count": 0, "fqdn_listname": "bar@example.com", "list_id": "bar.example.com"}], + 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}'} headers: content-length: ['695'] content-type: [application/json; charset=utf-8] - date: ['Thu, 06 Aug 2015 05:11: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/foo.example.com - response: - body: {string: !!python/unicode '{"volume": 1, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", - "list_name": "foo", "display_name": "Foo", "mail_host": "example.com", "http_etag": - "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "member_count": 0, "fqdn_listname": - "foo@example.com", "list_id": "foo.example.com"}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 06 Aug 2015 05:11:52 GMT'] + date: ['Wed, 11 Nov 2015 12:49:48 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -120,50 +119,31 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com/config response: - body: {string: !!python/unicode '{"bounces_address": "foo-bounces@example.com", - "join_address": "foo-join@example.com", "next_digest_number": 1, "volume": - 1, "allow_list_posts": true, "scheme": "http", "reply_to_address": "", "digest_last_sent_at": - null, "no_reply_address": "noreply@example.com", "reply_goes_to_list": "no_munging", - "archive_policy": "public", "default_nonmember_action": "hold", "list_name": - "foo", "leave_address": "foo-leave@example.com", "subscription_policy": "confirm", - "posting_pipeline": "default-posting-pipeline", "first_strip_reply_to": false, - "collapse_alternatives": true, "filter_content": false, "admin_immed_notify": - true, "http_etag": "\"193295c218323732142ae2da3a2767f9ae432ffe\"", "anonymous_list": - false, "include_rfc2369_headers": true, "post_id": 1, "display_name": "Foo", - "autorespond_requests": "none", "welcome_message_uri": "mailman:///welcome.txt", - "convert_html_to_plaintext": false, "advertised": true, "digest_size_threshold": - 30.0, "web_host": "example.com", "posting_address": "foo@example.com", "fqdn_listname": - "foo@example.com", "last_post_at": null, "autoresponse_owner_text": "", "acceptable_aliases": - [], "owner_address": "foo-owner@example.com", "created_at": "2015-08-06T05:11:52.442675", - "request_address": "foo-request@example.com", "subject_prefix": "[Foo] ", - "mail_host": "example.com", "admin_notify_mchanges": false, "administrivia": - true, "default_member_action": "defer", "autoresponse_postings_text": "", - "autoresponse_request_text": "", "send_welcome_message": true, "description": - "", "autorespond_postings": "none", "autoresponse_grace_period": "90d", "autorespond_owner": - "none"}'} + 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}'} headers: content-length: ['1617'] content-type: [application/json; charset=utf-8] - date: ['Thu, 06 Aug 2015 05:11: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/bar.example.com - response: - body: {string: !!python/unicode '{"volume": 1, "self_link": "http://localhost:9001/3.0/lists/bar.example.com", - "list_name": "bar", "display_name": "Bar", "mail_host": "example.com", "http_etag": - "\"ca42a69a3bab5619e147cc6cbbfca16115976764\"", "member_count": 0, "fqdn_listname": - "bar@example.com", "list_id": "bar.example.com"}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 06 Aug 2015 05:11:52 GMT'] + date: ['Wed, 11 Nov 2015 12:49:48 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -175,31 +155,31 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/bar@example.com/config response: - body: {string: !!python/unicode '{"bounces_address": "bar-bounces@example.com", - "join_address": "bar-join@example.com", "next_digest_number": 1, "volume": - 1, "allow_list_posts": true, "scheme": "http", "reply_to_address": "", "digest_last_sent_at": - null, "no_reply_address": "noreply@example.com", "reply_goes_to_list": "no_munging", - "archive_policy": "public", "default_nonmember_action": "hold", "list_name": - "bar", "leave_address": "bar-leave@example.com", "subscription_policy": "confirm", - "posting_pipeline": "default-posting-pipeline", "first_strip_reply_to": false, - "collapse_alternatives": true, "filter_content": false, "admin_immed_notify": - true, "http_etag": "\"9744725b871c949b1c90abc2a6b27ab4e7b918c2\"", "anonymous_list": - false, "include_rfc2369_headers": true, "post_id": 1, "display_name": "Bar", - "autorespond_requests": "none", "welcome_message_uri": "mailman:///welcome.txt", - "convert_html_to_plaintext": false, "advertised": true, "digest_size_threshold": - 30.0, "web_host": "example.com", "posting_address": "bar@example.com", "fqdn_listname": - "bar@example.com", "last_post_at": null, "autoresponse_owner_text": "", "acceptable_aliases": - [], "owner_address": "bar-owner@example.com", "created_at": "2015-08-06T05:11:52.554133", - "request_address": "bar-request@example.com", "subject_prefix": "[Bar] ", - "mail_host": "example.com", "admin_notify_mchanges": false, "administrivia": - true, "default_member_action": "defer", "autoresponse_postings_text": "", - "autoresponse_request_text": "", "send_welcome_message": true, "description": - "", "autorespond_postings": "none", "autoresponse_grace_period": "90d", "autorespond_owner": - "none"}'} + 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}'} headers: content-length: ['1617'] content-type: [application/json; charset=utf-8] - date: ['Thu, 06 Aug 2015 05:11:52 GMT'] + date: ['Wed, 11 Nov 2015 12:49:48 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -211,15 +191,15 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "entries": [{"base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "self_link": "http://localhost:9001/3.0/domains/example.com", "description": - null, "mail_host": "example.com", "url_host": "example.com"}], "total_size": - 1, "start": 0}'} + 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}'} headers: content-length: ['338'] content-type: [application/json; charset=utf-8] - date: ['Thu, 06 Aug 2015 05:11:52 GMT'] + date: ['Wed, 11 Nov 2015 12:49:48 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -231,157 +211,13 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "http_etag": - "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "self_link": "http://localhost:9001/3.0/domains/example.com", - "description": null, "mail_host": "example.com", "url_host": "example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Thu, 06 Aug 2015 05:11: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/bar@example.com/config - response: - body: {string: !!python/unicode '{"bounces_address": "bar-bounces@example.com", - "join_address": "bar-join@example.com", "next_digest_number": 1, "volume": - 1, "allow_list_posts": true, "scheme": "http", "reply_to_address": "", "digest_last_sent_at": - null, "no_reply_address": "noreply@example.com", "reply_goes_to_list": "no_munging", - "archive_policy": "public", "default_nonmember_action": "hold", "list_name": - "bar", "leave_address": "bar-leave@example.com", "subscription_policy": "confirm", - "posting_pipeline": "default-posting-pipeline", "first_strip_reply_to": false, - "collapse_alternatives": true, "filter_content": false, "admin_immed_notify": - true, "http_etag": "\"9744725b871c949b1c90abc2a6b27ab4e7b918c2\"", "anonymous_list": - false, "include_rfc2369_headers": true, "post_id": 1, "display_name": "Bar", - "autorespond_requests": "none", "welcome_message_uri": "mailman:///welcome.txt", - "convert_html_to_plaintext": false, "advertised": true, "digest_size_threshold": - 30.0, "web_host": "example.com", "posting_address": "bar@example.com", "fqdn_listname": - "bar@example.com", "last_post_at": null, "autoresponse_owner_text": "", "acceptable_aliases": - [], "owner_address": "bar-owner@example.com", "created_at": "2015-08-06T05:11:52.554133", - "request_address": "bar-request@example.com", "subject_prefix": "[Bar] ", - "mail_host": "example.com", "admin_notify_mchanges": false, "administrivia": - true, "default_member_action": "defer", "autoresponse_postings_text": "", - "autoresponse_request_text": "", "send_welcome_message": true, "description": - "", "autorespond_postings": "none", "autoresponse_grace_period": "90d", "autorespond_owner": - "none"}'} - headers: - content-length: ['1617'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 06 Aug 2015 05:11:53 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!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 '{"bounces_address": "bar-bounces@example.com", - "join_address": "bar-join@example.com", "next_digest_number": 1, "volume": - 1, "allow_list_posts": true, "scheme": "http", "reply_to_address": "", "digest_last_sent_at": - null, "no_reply_address": "noreply@example.com", "reply_goes_to_list": "no_munging", - "archive_policy": "public", "default_nonmember_action": "hold", "list_name": - "bar", "leave_address": "bar-leave@example.com", "subscription_policy": "confirm", - "posting_pipeline": "default-posting-pipeline", "first_strip_reply_to": false, - "collapse_alternatives": true, "filter_content": false, "admin_immed_notify": - true, "http_etag": "\"9744725b871c949b1c90abc2a6b27ab4e7b918c2\"", "anonymous_list": - false, "include_rfc2369_headers": true, "post_id": 1, "display_name": "Bar", - "autorespond_requests": "none", "welcome_message_uri": "mailman:///welcome.txt", - "convert_html_to_plaintext": false, "advertised": true, "digest_size_threshold": - 30.0, "web_host": "example.com", "posting_address": "bar@example.com", "fqdn_listname": - "bar@example.com", "last_post_at": null, "autoresponse_owner_text": "", "acceptable_aliases": - [], "owner_address": "bar-owner@example.com", "created_at": "2015-08-06T05:11:52.554133", - "request_address": "bar-request@example.com", "subject_prefix": "[Bar] ", - "mail_host": "example.com", "admin_notify_mchanges": false, "administrivia": - true, "default_member_action": "defer", "autoresponse_postings_text": "", - "autoresponse_request_text": "", "send_welcome_message": true, "description": - "", "autorespond_postings": "none", "autoresponse_grace_period": "90d", "autorespond_owner": - "none"}'} - headers: - content-length: ['1617'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 06 Aug 2015 05:11:53 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!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 '{"bounces_address": "foo-bounces@example.com", - "join_address": "foo-join@example.com", "next_digest_number": 1, "volume": - 1, "allow_list_posts": true, "scheme": "http", "reply_to_address": "", "digest_last_sent_at": - null, "no_reply_address": "noreply@example.com", "reply_goes_to_list": "no_munging", - "archive_policy": "public", "default_nonmember_action": "hold", "list_name": - "foo", "leave_address": "foo-leave@example.com", "subscription_policy": "confirm", - "posting_pipeline": "default-posting-pipeline", "first_strip_reply_to": false, - "collapse_alternatives": true, "filter_content": false, "admin_immed_notify": - true, "http_etag": "\"193295c218323732142ae2da3a2767f9ae432ffe\"", "anonymous_list": - false, "include_rfc2369_headers": true, "post_id": 1, "display_name": "Foo", - "autorespond_requests": "none", "welcome_message_uri": "mailman:///welcome.txt", - "convert_html_to_plaintext": false, "advertised": true, "digest_size_threshold": - 30.0, "web_host": "example.com", "posting_address": "foo@example.com", "fqdn_listname": - "foo@example.com", "last_post_at": null, "autoresponse_owner_text": "", "acceptable_aliases": - [], "owner_address": "foo-owner@example.com", "created_at": "2015-08-06T05:11:52.442675", - "request_address": "foo-request@example.com", "subject_prefix": "[Foo] ", - "mail_host": "example.com", "admin_notify_mchanges": false, "administrivia": - true, "default_member_action": "defer", "autoresponse_postings_text": "", - "autoresponse_request_text": "", "send_welcome_message": true, "description": - "", "autorespond_postings": "none", "autoresponse_grace_period": "90d", "autorespond_owner": - "none"}'} - headers: - content-length: ['1617'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 06 Aug 2015 05:11:53 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!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 '{"bounces_address": "foo-bounces@example.com", - "join_address": "foo-join@example.com", "next_digest_number": 1, "volume": - 1, "allow_list_posts": true, "scheme": "http", "reply_to_address": "", "digest_last_sent_at": - null, "no_reply_address": "noreply@example.com", "reply_goes_to_list": "no_munging", - "archive_policy": "public", "default_nonmember_action": "hold", "list_name": - "foo", "leave_address": "foo-leave@example.com", "subscription_policy": "confirm", - "posting_pipeline": "default-posting-pipeline", "first_strip_reply_to": false, - "collapse_alternatives": true, "filter_content": false, "admin_immed_notify": - true, "http_etag": "\"193295c218323732142ae2da3a2767f9ae432ffe\"", "anonymous_list": - false, "include_rfc2369_headers": true, "post_id": 1, "display_name": "Foo", - "autorespond_requests": "none", "welcome_message_uri": "mailman:///welcome.txt", - "convert_html_to_plaintext": false, "advertised": true, "digest_size_threshold": - 30.0, "web_host": "example.com", "posting_address": "foo@example.com", "fqdn_listname": - "foo@example.com", "last_post_at": null, "autoresponse_owner_text": "", "acceptable_aliases": - [], "owner_address": "foo-owner@example.com", "created_at": "2015-08-06T05:11:52.442675", - "request_address": "foo-request@example.com", "subject_prefix": "[Foo] ", - "mail_host": "example.com", "admin_notify_mchanges": false, "administrivia": - true, "default_member_action": "defer", "autoresponse_postings_text": "", - "autoresponse_request_text": "", "send_welcome_message": true, "description": - "", "autorespond_postings": "none", "autoresponse_grace_period": "90d", "autorespond_owner": - "none"}'} - headers: - content-length: ['1617'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 06 Aug 2015 05:11:53 GMT'] + date: ['Wed, 11 Nov 2015 12:49:48 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -393,38 +229,19 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists response: - body: {string: !!python/unicode '{"http_etag": "\"32ddcf601b73aeabdba5c18666c75d062c76eac8\"", - "entries": [{"volume": 1, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", - "list_name": "foo", "display_name": "Foo", "mail_host": "example.com", "http_etag": - "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "member_count": 0, "fqdn_listname": - "foo@example.com", "list_id": "foo.example.com"}, {"volume": 1, "self_link": - "http://localhost:9001/3.0/lists/bar.example.com", "list_name": "bar", "display_name": - "Bar", "mail_host": "example.com", "http_etag": "\"ca42a69a3bab5619e147cc6cbbfca16115976764\"", - "member_count": 0, "fqdn_listname": "bar@example.com", "list_id": "bar.example.com"}], + 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}'} headers: content-length: ['695'] content-type: [application/json; charset=utf-8] - date: ['Thu, 06 Aug 2015 05:11:53 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!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 '{"volume": 1, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", - "list_name": "foo", "display_name": "Foo", "mail_host": "example.com", "http_etag": - "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "member_count": 0, "fqdn_listname": - "foo@example.com", "list_id": "foo.example.com"}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 06 Aug 2015 05:11:53 GMT'] + date: ['Wed, 11 Nov 2015 12:49:48 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -439,7 +256,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Thu, 06 Aug 2015 05:11:53 GMT'] + date: ['Wed, 11 Nov 2015 12:49:48 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -448,32 +265,13 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!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 - response: - body: {string: !!python/unicode '{"volume": 1, "self_link": "http://localhost:9001/3.0/lists/bar.example.com", - "list_name": "bar", "display_name": "Bar", "mail_host": "example.com", "http_etag": - "\"ca42a69a3bab5619e147cc6cbbfca16115976764\"", "member_count": 0, "fqdn_listname": - "bar@example.com", "list_id": "bar.example.com"}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 06 Aug 2015 05:11:53 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, 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: ['Thu, 06 Aug 2015 05:11:53 GMT'] + 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 a3dd8ad..07356f0 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 @@ -5,7 +5,7 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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,7 +13,7 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:32 GMT'] + date: ['Wed, 11 Nov 2015 12:49:23 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 400, message: Bad Request} - request: @@ -21,17 +21,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:32 GMT'] + date: ['Wed, 11 Nov 2015 12:49:23 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -39,17 +39,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:32 GMT'] + date: ['Wed, 11 Nov 2015 12:49:23 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -58,14 +58,14 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:32 GMT'] + 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} @@ -74,18 +74,18 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"volume": 1, "mail_host": "example.com", "list_name": - "foo", "display_name": "Foo", "list_id": "foo.example.com", "member_count": - 0, "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com"}'} + 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: ['Fri, 17 Apr 2015 21:49:32 GMT'] + date: ['Wed, 11 Nov 2015 12:49:23 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -93,15 +93,16 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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, "start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\""}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:32 GMT'] + date: ['Wed, 11 Nov 2015 12:49:23 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -109,15 +110,16 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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, "start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\""}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:32 GMT'] + date: ['Wed, 11 Nov 2015 12:49:23 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -125,32 +127,33 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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, "start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\""}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:32 GMT'] + 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&subscriber=newmod%40example.com&list_id=foo.example.com + 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.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:32 GMT'] - location: ['http://localhost:9001/3.0/members/329829655011474511559429401860720729232'] + 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] status: {code: 201, message: Created} - request: @@ -158,15 +161,16 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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, "start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\""}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:32 GMT'] + date: ['Wed, 11 Nov 2015 12:49:24 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -174,21 +178,21 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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": 1, "start": 0, "entries": [{"role": - "moderator", "list_id": "foo.example.com", "delivery_mode": "regular", "address": - "http://localhost:9001/3.0/addresses/newmod@example.com", "user": "http://localhost:9001/3.0/users/132323735783051238959108775541333078032", - "http_etag": "\"4c3e3aa74124d0a32fd975ee77a56823786d8f11\"", "member_id": - 329829655011474511559429401860720729232, "email": "newmod@example.com", "self_link": - "http://localhost:9001/3.0/members/329829655011474511559429401860720729232"}], - "http_etag": "\"8ff8a8d1797518c87870e4a93547a0e6391ef752\""}'} + 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}'} headers: content-length: ['572'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:32 GMT'] + date: ['Wed, 11 Nov 2015 12:49:24 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -196,21 +200,21 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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": 1, "start": 0, "entries": [{"role": - "moderator", "list_id": "foo.example.com", "delivery_mode": "regular", "address": - "http://localhost:9001/3.0/addresses/newmod@example.com", "user": "http://localhost:9001/3.0/users/132323735783051238959108775541333078032", - "http_etag": "\"4c3e3aa74124d0a32fd975ee77a56823786d8f11\"", "member_id": - 329829655011474511559429401860720729232, "email": "newmod@example.com", "self_link": - "http://localhost:9001/3.0/members/329829655011474511559429401860720729232"}], - "http_etag": "\"8ff8a8d1797518c87870e4a93547a0e6391ef752\""}'} + 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}'} headers: content-length: ['572'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:32 GMT'] + date: ['Wed, 11 Nov 2015 12:49:24 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -218,18 +222,18 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"volume": 1, "mail_host": "example.com", "list_name": - "foo", "display_name": "Foo", "list_id": "foo.example.com", "member_count": - 0, "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com"}'} + 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: ['Fri, 17 Apr 2015 21:49:33 GMT'] + date: ['Wed, 11 Nov 2015 12:49:24 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -237,14 +241,14 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:33 GMT'] + 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 399588c..bac6bdd 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 @@ -5,7 +5,7 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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,7 +13,7 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:33 GMT'] + date: ['Wed, 11 Nov 2015 12:49:24 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 400, message: Bad Request} - request: @@ -21,17 +21,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:33 GMT'] + date: ['Wed, 11 Nov 2015 12:49:24 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -39,17 +39,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:33 GMT'] + date: ['Wed, 11 Nov 2015 12:49:24 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -58,14 +58,14 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:33 GMT'] + 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} @@ -74,18 +74,18 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"volume": 1, "mail_host": "example.com", "list_name": - "foo", "display_name": "Foo", "list_id": "foo.example.com", "member_count": - 0, "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com"}'} + 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: ['Fri, 17 Apr 2015 21:49:33 GMT'] + date: ['Wed, 11 Nov 2015 12:49:24 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -93,15 +93,16 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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, "start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\""}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:33 GMT'] + date: ['Wed, 11 Nov 2015 12:49:24 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -109,15 +110,16 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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, "start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\""}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:33 GMT'] + date: ['Wed, 11 Nov 2015 12:49:24 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -125,32 +127,33 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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, "start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\""}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:33 GMT'] + 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&subscriber=newowner%40example.com&list_id=foo.example.com + 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.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:33 GMT'] - location: ['http://localhost:9001/3.0/members/199077213040643750575866640090489284641'] + 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] status: {code: 201, message: Created} - request: @@ -158,21 +161,21 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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, "start": 0, "entries": [{"role": - "owner", "list_id": "foo.example.com", "delivery_mode": "regular", "address": - "http://localhost:9001/3.0/addresses/newowner@example.com", "user": "http://localhost:9001/3.0/users/244378695232085659502002763818624648484", - "http_etag": "\"26b16e58236be821c8d641c9524a0724f0acb412\"", "member_id": - 199077213040643750575866640090489284641, "email": "newowner@example.com", - "self_link": "http://localhost:9001/3.0/members/199077213040643750575866640090489284641"}], - "http_etag": "\"ea282a57c7d70b159cce136e3af20ac54090c030\""}'} + 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}'} headers: content-length: ['572'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:33 GMT'] + date: ['Wed, 11 Nov 2015 12:49:25 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -180,15 +183,16 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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, "start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\""}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:33 GMT'] + date: ['Wed, 11 Nov 2015 12:49:25 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -196,21 +200,21 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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, "start": 0, "entries": [{"role": - "owner", "list_id": "foo.example.com", "delivery_mode": "regular", "address": - "http://localhost:9001/3.0/addresses/newowner@example.com", "user": "http://localhost:9001/3.0/users/244378695232085659502002763818624648484", - "http_etag": "\"26b16e58236be821c8d641c9524a0724f0acb412\"", "member_id": - 199077213040643750575866640090489284641, "email": "newowner@example.com", - "self_link": "http://localhost:9001/3.0/members/199077213040643750575866640090489284641"}], - "http_etag": "\"ea282a57c7d70b159cce136e3af20ac54090c030\""}'} + 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}'} headers: content-length: ['572'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:33 GMT'] + date: ['Wed, 11 Nov 2015 12:49:25 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -218,18 +222,18 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"volume": 1, "mail_host": "example.com", "list_name": - "foo", "display_name": "Foo", "list_id": "foo.example.com", "member_count": - 0, "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com"}'} + 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: ['Fri, 17 Apr 2015 21:49:33 GMT'] + date: ['Wed, 11 Nov 2015 12:49:25 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -237,14 +241,14 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:33 GMT'] + 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 28f74d9..6a5ae92 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 @@ -4,21 +4,21 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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, "start": 0, "entries": [{"role": - "owner", "list_id": "foo.example.com", "delivery_mode": "regular", "address": - "http://localhost:9001/3.0/addresses/newowner@example.com", "user": "http://localhost:9001/3.0/users/244378695232085659502002763818624648484", - "http_etag": "\"26b16e58236be821c8d641c9524a0724f0acb412\"", "member_id": - 199077213040643750575866640090489284641, "email": "newowner@example.com", - "self_link": "http://localhost:9001/3.0/members/199077213040643750575866640090489284641"}], - "http_etag": "\"ea282a57c7d70b159cce136e3af20ac54090c030\""}'} + 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}'} headers: content-length: ['572'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:33 GMT'] + 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 ab1c6f9..78aa6ab 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 @@ -4,21 +4,21 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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": 1, "start": 0, "entries": [{"role": - "moderator", "list_id": "foo.example.com", "delivery_mode": "regular", "address": - "http://localhost:9001/3.0/addresses/newmod@example.com", "user": "http://localhost:9001/3.0/users/132323735783051238959108775541333078032", - "http_etag": "\"4c3e3aa74124d0a32fd975ee77a56823786d8f11\"", "member_id": - 329829655011474511559429401860720729232, "email": "newmod@example.com", "self_link": - "http://localhost:9001/3.0/members/329829655011474511559429401860720729232"}], - "http_etag": "\"8ff8a8d1797518c87870e4a93547a0e6391ef752\""}'} + 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}'} headers: content-length: ['572'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:32 GMT'] + 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 936ba1f..2b63f3e 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_metrics.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_metrics.yaml @@ -5,14 +5,14 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:38 GMT'] + 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} @@ -21,17 +21,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.org", "mail_host": - "example.org", "description": null, "http_etag": "\"f8247f55d4a0a1d987c89cc238bb0dbc2c0e1089\"", - "url_host": "example.org", "self_link": "http://localhost:9001/3.0/domains/example.org"}'} + 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"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:38 GMT'] + date: ['Wed, 11 Nov 2015 12:49:38 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -40,14 +40,14 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:38 GMT'] + 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} @@ -56,18 +56,18 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"volume": 1, "mail_host": "example.org", "list_name": - "test", "display_name": "Test", "list_id": "test.example.org", "member_count": - 0, "fqdn_listname": "test@example.org", "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\"", - "self_link": "http://localhost:9001/3.0/lists/test.example.org"}'} + 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}'} headers: content-length: ['299'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:38 GMT'] + date: ['Wed, 11 Nov 2015 12:49:38 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -75,18 +75,18 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"volume": 1, "mail_host": "example.org", "list_name": - "test", "display_name": "Test", "list_id": "test.example.org", "member_count": - 0, "fqdn_listname": "test@example.org", "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\"", - "self_link": "http://localhost:9001/3.0/lists/test.example.org"}'} + 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}'} headers: content-length: ['299'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:38 GMT'] + date: ['Wed, 11 Nov 2015 12:49:38 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -94,15 +94,16 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"total_size": 0, "start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\""}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:38 GMT'] + date: ['Wed, 11 Nov 2015 12:49:38 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -110,15 +111,16 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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, "start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\""}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:38 GMT'] + date: ['Wed, 11 Nov 2015 12:49:38 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -126,34 +128,35 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"scheme": "http", "list_name": "test", "reply_to_address": - "", "next_digest_number": 1, "post_id": 1, "bounces_address": "test-bounces@example.org", - "posting_pipeline": "default-posting-pipeline", "advertised": true, "no_reply_address": - "noreply@example.org", "autoresponse_owner_text": "", "last_post_at": null, - "allow_list_posts": true, "join_address": "test-join@example.org", "acceptable_aliases": - [], "filter_content": false, "web_host": "example.org", "default_member_action": - "defer", "anonymous_list": false, "autorespond_postings": "none", "leave_address": - "test-leave@example.org", "autoresponse_postings_text": "", "autoresponse_request_text": - "", "description": "", "admin_immed_notify": true, "collapse_alternatives": - true, "archive_policy": "public", "send_welcome_message": true, "created_at": - "2015-04-17T21:49:38.369752", "include_rfc2369_headers": true, "first_strip_reply_to": - false, "welcome_message_uri": "mailman:///welcome.txt", "administrivia": true, - "digest_last_sent_at": null, "admin_notify_mchanges": false, "digest_size_threshold": - 30.0, "default_nonmember_action": "hold", "subject_prefix": "[Test] ", "request_address": - "test-request@example.org", "autorespond_requests": "none", "volume": 1, "reply_goes_to_list": - "no_munging", "mail_host": "example.org", "autoresponse_grace_period": "90d", - "subscription_policy": "confirm", "display_name": "Test", "convert_html_to_plaintext": - false, "owner_address": "test-owner@example.org", "fqdn_listname": "test@example.org", - "posting_address": "test@example.org", "http_etag": "\"fc7e6717b92d81b34233b33056f426ffe5b27481\"", - "autorespond_owner": "none"}'} + body: {string: !!python/unicode '{"autoresponse_grace_period": "90d", "autorespond_requests": + "none", "display_name": "Test", "default_member_action": "defer", "no_reply_address": + "noreply@example.org", "autorespond_postings": "none", "admin_notify_mchanges": + false, "fqdn_listname": "test@example.org", "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": "test-owner@example.org", + "welcome_message_uri": "mailman:///welcome.txt", "allow_list_posts": true, + "subscription_policy": "confirm", "list_name": "test", "admin_immed_notify": + true, "leave_address": "test-leave@example.org", "autoresponse_request_text": + "", "posting_pipeline": "default-posting-pipeline", "convert_html_to_plaintext": + false, "reply_to_address": "", "request_address": "test-request@example.org", + "join_address": "test-join@example.org", "send_welcome_message": true, "archive_policy": + "public", "volume": 1, "first_strip_reply_to": false, "default_nonmember_action": + "hold", "posting_address": "test@example.org", "http_etag": "\"844dfa3141895bd6e9e2fe0cc3ac2614f6f8104a\"", + "bounces_address": "test-bounces@example.org", "autorespond_owner": "none", + "created_at": "2015-11-11T12:49:38.244516", "digest_size_threshold": 30.0, + "web_host": "example.org", "anonymous_list": false, "scheme": "http", "digest_last_sent_at": + null, "subject_prefix": "[Test] ", "mail_host": "example.org", "include_rfc2369_headers": + true}'} headers: content-length: ['1627'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:38 GMT'] + date: ['Wed, 11 Nov 2015 12:49:38 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -161,119 +164,14 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/test@example.org/config - response: - body: {string: !!python/unicode '{"scheme": "http", "list_name": "test", "reply_to_address": - "", "next_digest_number": 1, "post_id": 1, "bounces_address": "test-bounces@example.org", - "posting_pipeline": "default-posting-pipeline", "advertised": true, "no_reply_address": - "noreply@example.org", "autoresponse_owner_text": "", "last_post_at": null, - "allow_list_posts": true, "join_address": "test-join@example.org", "acceptable_aliases": - [], "filter_content": false, "web_host": "example.org", "default_member_action": - "defer", "anonymous_list": false, "autorespond_postings": "none", "leave_address": - "test-leave@example.org", "autoresponse_postings_text": "", "autoresponse_request_text": - "", "description": "", "admin_immed_notify": true, "collapse_alternatives": - true, "archive_policy": "public", "send_welcome_message": true, "created_at": - "2015-04-17T21:49:38.369752", "include_rfc2369_headers": true, "first_strip_reply_to": - false, "welcome_message_uri": "mailman:///welcome.txt", "administrivia": true, - "digest_last_sent_at": null, "admin_notify_mchanges": false, "digest_size_threshold": - 30.0, "default_nonmember_action": "hold", "subject_prefix": "[Test] ", "request_address": - "test-request@example.org", "autorespond_requests": "none", "volume": 1, "reply_goes_to_list": - "no_munging", "mail_host": "example.org", "autoresponse_grace_period": "90d", - "subscription_policy": "confirm", "display_name": "Test", "convert_html_to_plaintext": - false, "owner_address": "test-owner@example.org", "fqdn_listname": "test@example.org", - "posting_address": "test@example.org", "http_etag": "\"fc7e6717b92d81b34233b33056f426ffe5b27481\"", - "autorespond_owner": "none"}'} - headers: - content-length: ['1627'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21: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.0b2'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/test@example.org/config - response: - body: {string: !!python/unicode '{"scheme": "http", "list_name": "test", "reply_to_address": - "", "next_digest_number": 1, "post_id": 1, "bounces_address": "test-bounces@example.org", - "posting_pipeline": "default-posting-pipeline", "advertised": true, "no_reply_address": - "noreply@example.org", "autoresponse_owner_text": "", "last_post_at": null, - "allow_list_posts": true, "join_address": "test-join@example.org", "acceptable_aliases": - [], "filter_content": false, "web_host": "example.org", "default_member_action": - "defer", "anonymous_list": false, "autorespond_postings": "none", "leave_address": - "test-leave@example.org", "autoresponse_postings_text": "", "autoresponse_request_text": - "", "description": "", "admin_immed_notify": true, "collapse_alternatives": - true, "archive_policy": "public", "send_welcome_message": true, "created_at": - "2015-04-17T21:49:38.369752", "include_rfc2369_headers": true, "first_strip_reply_to": - false, "welcome_message_uri": "mailman:///welcome.txt", "administrivia": true, - "digest_last_sent_at": null, "admin_notify_mchanges": false, "digest_size_threshold": - 30.0, "default_nonmember_action": "hold", "subject_prefix": "[Test] ", "request_address": - "test-request@example.org", "autorespond_requests": "none", "volume": 1, "reply_goes_to_list": - "no_munging", "mail_host": "example.org", "autoresponse_grace_period": "90d", - "subscription_policy": "confirm", "display_name": "Test", "convert_html_to_plaintext": - false, "owner_address": "test-owner@example.org", "fqdn_listname": "test@example.org", - "posting_address": "test@example.org", "http_etag": "\"fc7e6717b92d81b34233b33056f426ffe5b27481\"", - "autorespond_owner": "none"}'} - headers: - content-length: ['1627'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21: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.0b2'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/test@example.org/config - response: - body: {string: !!python/unicode '{"scheme": "http", "list_name": "test", "reply_to_address": - "", "next_digest_number": 1, "post_id": 1, "bounces_address": "test-bounces@example.org", - "posting_pipeline": "default-posting-pipeline", "advertised": true, "no_reply_address": - "noreply@example.org", "autoresponse_owner_text": "", "last_post_at": null, - "allow_list_posts": true, "join_address": "test-join@example.org", "acceptable_aliases": - [], "filter_content": false, "web_host": "example.org", "default_member_action": - "defer", "anonymous_list": false, "autorespond_postings": "none", "leave_address": - "test-leave@example.org", "autoresponse_postings_text": "", "autoresponse_request_text": - "", "description": "", "admin_immed_notify": true, "collapse_alternatives": - true, "archive_policy": "public", "send_welcome_message": true, "created_at": - "2015-04-17T21:49:38.369752", "include_rfc2369_headers": true, "first_strip_reply_to": - false, "welcome_message_uri": "mailman:///welcome.txt", "administrivia": true, - "digest_last_sent_at": null, "admin_notify_mchanges": false, "digest_size_threshold": - 30.0, "default_nonmember_action": "hold", "subject_prefix": "[Test] ", "request_address": - "test-request@example.org", "autorespond_requests": "none", "volume": 1, "reply_goes_to_list": - "no_munging", "mail_host": "example.org", "autoresponse_grace_period": "90d", - "subscription_policy": "confirm", "display_name": "Test", "convert_html_to_plaintext": - false, "owner_address": "test-owner@example.org", "fqdn_listname": "test@example.org", - "posting_address": "test@example.org", "http_etag": "\"fc7e6717b92d81b34233b33056f426ffe5b27481\"", - "autorespond_owner": "none"}'} - headers: - content-length: ['1627'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21: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.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:38 GMT'] + date: ['Wed, 11 Nov 2015 12:49:38 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -281,14 +179,14 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:38 GMT'] + date: ['Wed, 11 Nov 2015 12:49:38 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -297,14 +195,14 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:38 GMT'] + 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} @@ -313,17 +211,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.org", "mail_host": - "example.org", "description": null, "http_etag": "\"f8247f55d4a0a1d987c89cc238bb0dbc2c0e1089\"", - "url_host": "example.org", "self_link": "http://localhost:9001/3.0/domains/example.org"}'} + 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"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:38 GMT'] + date: ['Wed, 11 Nov 2015 12:49:39 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -332,14 +230,14 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:39 GMT'] + 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} @@ -348,18 +246,18 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"volume": 1, "mail_host": "example.org", "list_name": - "test", "display_name": "Test", "list_id": "test.example.org", "member_count": - 0, "fqdn_listname": "test@example.org", "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\"", - "self_link": "http://localhost:9001/3.0/lists/test.example.org"}'} + 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}'} headers: content-length: ['299'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:39 GMT'] + date: ['Wed, 11 Nov 2015 12:49:39 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -367,18 +265,18 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"volume": 1, "mail_host": "example.org", "list_name": - "test", "display_name": "Test", "list_id": "test.example.org", "member_count": - 0, "fqdn_listname": "test@example.org", "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\"", - "self_link": "http://localhost:9001/3.0/lists/test.example.org"}'} + 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}'} headers: content-length: ['299'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:39 GMT'] + date: ['Wed, 11 Nov 2015 12:49:39 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -386,14 +284,14 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:39 GMT'] + date: ['Wed, 11 Nov 2015 12:49:39 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -401,14 +299,14 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:39 GMT'] + 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 cd34126..3dce68a 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription.yaml @@ -5,7 +5,7 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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,7 +13,7 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:31 GMT'] + date: ['Wed, 11 Nov 2015 12:49:36 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 400, message: Bad Request} - request: @@ -21,17 +21,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:31 GMT'] + date: ['Wed, 11 Nov 2015 12:49:36 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -39,17 +39,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:31 GMT'] + date: ['Wed, 11 Nov 2015 12:49:36 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -58,14 +58,14 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:31 GMT'] + date: ['Wed, 11 Nov 2015 12:49:36 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} @@ -74,18 +74,19 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"volume": 1, "mail_host": "example.com", "list_name": - "open_list", "display_name": "Open_list", "list_id": "open_list.example.com", - "member_count": 0, "fqdn_listname": "open_list@example.com", "http_etag": - "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", "self_link": "http://localhost:9001/3.0/lists/open_list.example.com"}'} + body: {string: !!python/unicode '{"display_name": "Open_list", "list_id": "open_list.example.com", + "list_name": "open_list", "fqdn_listname": "open_list@example.com", "http_etag": + "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/open_list.example.com", "mail_host": "example.com", + "volume": 1}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:31 GMT'] + date: ['Wed, 11 Nov 2015 12:49:37 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -93,51 +94,51 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"scheme": "http", "list_name": "open_list", - "reply_to_address": "", "next_digest_number": 1, "post_id": 1, "bounces_address": - "open_list-bounces@example.com", "posting_pipeline": "default-posting-pipeline", - "advertised": true, "no_reply_address": "noreply@example.com", "autoresponse_owner_text": - "", "last_post_at": null, "allow_list_posts": true, "join_address": "open_list-join@example.com", - "acceptable_aliases": [], "filter_content": false, "web_host": "example.com", - "default_member_action": "defer", "anonymous_list": false, "autorespond_postings": - "none", "leave_address": "open_list-leave@example.com", "autoresponse_postings_text": - "", "autoresponse_request_text": "", "description": "", "admin_immed_notify": - true, "collapse_alternatives": true, "archive_policy": "public", "send_welcome_message": - true, "created_at": "2015-04-17T21:49:31.855986", "include_rfc2369_headers": - true, "first_strip_reply_to": false, "welcome_message_uri": "mailman:///welcome.txt", - "administrivia": true, "digest_last_sent_at": null, "admin_notify_mchanges": - false, "digest_size_threshold": 30.0, "default_nonmember_action": "hold", - "subject_prefix": "[Open_list] ", "request_address": "open_list-request@example.com", - "autorespond_requests": "none", "volume": 1, "reply_goes_to_list": "no_munging", - "mail_host": "example.com", "autoresponse_grace_period": "90d", "subscription_policy": - "confirm", "display_name": "Open_list", "convert_html_to_plaintext": false, - "owner_address": "open_list-owner@example.com", "fqdn_listname": "open_list@example.com", - "posting_address": "open_list@example.com", "http_etag": "\"14c8601b64e2e545855b5d52991f5a35d2a26c00\"", - "autorespond_owner": "none"}'} + body: {string: !!python/unicode '{"autoresponse_grace_period": "90d", "autorespond_requests": + "none", "display_name": "Open_list", "default_member_action": "defer", "no_reply_address": + "noreply@example.com", "autorespond_postings": "none", "admin_notify_mchanges": + false, "fqdn_listname": "open_list@example.com", "autoresponse_postings_text": + "", "advertised": true, "description": "", "reply_goes_to_list": "no_munging", + "post_id": 1, "filter_content": false, "last_post_at": null, "next_digest_number": + 1, "autoresponse_owner_text": "", "acceptable_aliases": [], "administrivia": + true, "collapse_alternatives": true, "owner_address": "open_list-owner@example.com", + "welcome_message_uri": "mailman:///welcome.txt", "allow_list_posts": true, + "subscription_policy": "confirm", "list_name": "open_list", "admin_immed_notify": + true, "leave_address": "open_list-leave@example.com", "autoresponse_request_text": + "", "posting_pipeline": "default-posting-pipeline", "convert_html_to_plaintext": + false, "reply_to_address": "", "request_address": "open_list-request@example.com", + "join_address": "open_list-join@example.com", "send_welcome_message": true, + "archive_policy": "public", "volume": 1, "first_strip_reply_to": false, "default_nonmember_action": + "hold", "posting_address": "open_list@example.com", "http_etag": "\"742d8ca3bcb514573e63d84de1f13020a11120df\"", + "bounces_address": "open_list-bounces@example.com", "autorespond_owner": "none", + "created_at": "2015-11-11T12:49:36.914640", "digest_size_threshold": 30.0, + "web_host": "example.com", "anonymous_list": false, "scheme": "http", "digest_last_sent_at": + null, "subject_prefix": "[Open_list] ", "mail_host": "example.com", "include_rfc2369_headers": + true}'} headers: content-length: ['1677'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:31 GMT'] + date: ['Wed, 11 Nov 2015 12:49:37 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: - body: description=&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&default_nonmember_action=hold&posting_pipeline=default-posting-pipeline&include_rfc2369_headers=True&autorespond_postings=none&first_strip_reply_to=False&collapse_alternatives=True&allow_list_posts=True&reply_to_address=&display_name=Open_list&filter_content=False&default_member_action=defer&send_welcome_message=True&autorespond_owner=none&autoresponse_grace_period=90d&admin_notify_mchanges=False&autorespond_requests=none&digest_size_threshold=30.0&administrivia=True&autoresponse_request_text=&anonymous_list=False&subscription_policy=open&autoresponse_owner_text=&autoresponse_postings_text=&convert_html_to_plaintext=False&advertised=True&archive_policy=public&reply_goes_to_list=no_munging&subject_prefix=%5BOpen_list%5D+&admin_immed_notify=True + body: autoresponse_postings_text=&admin_notify_mchanges=False&description=&default_nonmember_action=hold&reply_to_address=&posting_pipeline=default-posting-pipeline&convert_html_to_plaintext=False&archive_policy=public&administrivia=True&admin_immed_notify=True&autorespond_owner=none&subscription_policy=open&default_member_action=defer&first_strip_reply_to=False&autoresponse_grace_period=90d&allow_list_posts=True&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&collapse_alternatives=True&autorespond_requests=none&advertised=True&digest_size_threshold=30.0&filter_content=False&anonymous_list=False&autoresponse_request_text=&subject_prefix=%5BOpen_list%5D+&send_welcome_message=True&autoresponse_owner_text=&include_rfc2369_headers=True&autorespond_postings=none&display_name=Open_list&reply_goes_to_list=no_munging headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:31 GMT'] + date: ['Wed, 11 Nov 2015 12:49:37 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -145,18 +146,19 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"volume": 1, "mail_host": "example.com", "list_name": - "open_list", "display_name": "Open_list", "list_id": "open_list.example.com", - "member_count": 0, "fqdn_listname": "open_list@example.com", "http_etag": - "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", "self_link": "http://localhost:9001/3.0/lists/open_list.example.com"}'} + body: {string: !!python/unicode '{"display_name": "Open_list", "list_id": "open_list.example.com", + "list_name": "open_list", "fqdn_listname": "open_list@example.com", "http_etag": + "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/open_list.example.com", "mail_host": "example.com", + "volume": 1}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:32 GMT'] + date: ['Wed, 11 Nov 2015 12:49:37 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -164,15 +166,16 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"total_size": 0, "start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\""}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:32 GMT'] + date: ['Wed, 11 Nov 2015 12:49:37 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -180,15 +183,16 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"total_size": 0, "start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\""}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:32 GMT'] + date: ['Wed, 11 Nov 2015 12:49:37 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -196,7 +200,7 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: @@ -204,24 +208,24 @@ headers: content-length: ['13'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:32 GMT'] + date: ['Wed, 11 Nov 2015 12:49:37 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 404, message: Not Found} - request: - body: pre_confirmed=True&pre_verified=True&display_name=None&list_id=open_list.example.com&subscriber=fritz%40example.org + 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.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:32 GMT'] - location: ['http://localhost:9001/3.0/members/18081351744234027240302805384361051228'] + date: ['Wed, 11 Nov 2015 12:49:37 GMT'] + location: ['http://localhost:9001/3.0/members/174580205485596624207068809202203697664'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 201, message: Created} - request: @@ -229,22 +233,21 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"total_size": 1, "start": 0, "entries": [{"role": - "member", "list_id": "open_list.example.com", "delivery_mode": "regular", - "address": "http://localhost:9001/3.0/addresses/fritz@example.org", "user": - "http://localhost:9001/3.0/users/73132381270437761542061997858084787124", - "http_etag": "\"5fe0e13160405b8198ff6e9d3db02c78bbf1f8e5\"", "member_id": - 18081351744234027240302805384361051228, "email": "fritz@example.org", "self_link": - "http://localhost:9001/3.0/members/18081351744234027240302805384361051228"}], - "http_etag": "\"b6d537f346e4aa26a84ccc654e59072bc6690e4f\""}'} + body: {string: !!python/unicode '{"entries": [{"self_link": "http://localhost:9001/3.0/members/174580205485596624207068809202203697664", + "user": "http://localhost:9001/3.0/users/57822417512003885879958503109671419329", + "http_etag": "\"93e352d32b4b02e1fb21aa45fb0912520cdbe439\"", "list_id": "open_list.example.com", + "address": "http://localhost:9001/3.0/addresses/fritz@example.org", "role": + "member", "member_id": 174580205485596624207068809202203697664, "delivery_mode": + "regular", "email": "fritz@example.org"}], "http_etag": "\"d1f3363a3a19910804909501da9a93738f9a1530\"", + "total_size": 1, "start": 0}'} headers: - content-length: ['570'] + content-length: ['572'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:32 GMT'] + date: ['Wed, 11 Nov 2015 12:49:37 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -252,15 +255,16 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"total_size": 0, "start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\""}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:32 GMT'] + date: ['Wed, 11 Nov 2015 12:49:37 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -268,14 +272,14 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:32 GMT'] + date: ['Wed, 11 Nov 2015 12:49:38 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_moderate.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_moderate.yaml index e9b2b08..c2e6876 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_moderate.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_moderate.yaml @@ -5,7 +5,7 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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,7 +13,7 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:31 GMT'] + date: ['Wed, 11 Nov 2015 12:49:35 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 400, message: Bad Request} - request: @@ -21,17 +21,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:31 GMT'] + date: ['Wed, 11 Nov 2015 12:49:35 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -39,17 +39,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:31 GMT'] + date: ['Wed, 11 Nov 2015 12:49:35 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -58,14 +58,14 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:31 GMT'] + date: ['Wed, 11 Nov 2015 12:49:35 GMT'] location: ['http://localhost:9001/3.0/lists/moderate_subs.example.com'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 201, message: Created} @@ -74,18 +74,19 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"volume": 1, "mail_host": "example.com", "list_name": - "moderate_subs", "display_name": "Moderate_subs", "list_id": "moderate_subs.example.com", - "member_count": 0, "fqdn_listname": "moderate_subs@example.com", "http_etag": - "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com"}'} + body: {string: !!python/unicode '{"display_name": "Moderate_subs", "list_id": + "moderate_subs.example.com", "list_name": "moderate_subs", "fqdn_listname": + "moderate_subs@example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", + "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", + "mail_host": "example.com", "volume": 1}'} headers: content-length: ['344'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:31 GMT'] + date: ['Wed, 11 Nov 2015 12:49:35 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -93,51 +94,52 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"scheme": "http", "list_name": "moderate_subs", - "reply_to_address": "", "next_digest_number": 1, "post_id": 1, "bounces_address": - "moderate_subs-bounces@example.com", "posting_pipeline": "default-posting-pipeline", - "advertised": true, "no_reply_address": "noreply@example.com", "autoresponse_owner_text": - "", "last_post_at": null, "allow_list_posts": true, "join_address": "moderate_subs-join@example.com", - "acceptable_aliases": [], "filter_content": false, "web_host": "example.com", - "default_member_action": "defer", "anonymous_list": false, "autorespond_postings": - "none", "leave_address": "moderate_subs-leave@example.com", "autoresponse_postings_text": - "", "autoresponse_request_text": "", "description": "", "admin_immed_notify": - true, "collapse_alternatives": true, "archive_policy": "public", "send_welcome_message": - true, "created_at": "2015-04-17T21:49:31.087072", "include_rfc2369_headers": - true, "first_strip_reply_to": false, "welcome_message_uri": "mailman:///welcome.txt", - "administrivia": true, "digest_last_sent_at": null, "admin_notify_mchanges": - false, "digest_size_threshold": 30.0, "default_nonmember_action": "hold", - "subject_prefix": "[Moderate_subs] ", "request_address": "moderate_subs-request@example.com", - "autorespond_requests": "none", "volume": 1, "reply_goes_to_list": "no_munging", - "mail_host": "example.com", "autoresponse_grace_period": "90d", "subscription_policy": - "confirm", "display_name": "Moderate_subs", "convert_html_to_plaintext": false, - "owner_address": "moderate_subs-owner@example.com", "fqdn_listname": "moderate_subs@example.com", - "posting_address": "moderate_subs@example.com", "http_etag": "\"3891fa3ee9d98bf20c634f4bc3c1d4a775e05554\"", - "autorespond_owner": "none"}'} + body: {string: !!python/unicode '{"autoresponse_grace_period": "90d", "autorespond_requests": + "none", "display_name": "Moderate_subs", "default_member_action": "defer", + "no_reply_address": "noreply@example.com", "autorespond_postings": "none", + "admin_notify_mchanges": false, "fqdn_listname": "moderate_subs@example.com", + "autoresponse_postings_text": "", "advertised": true, "description": "", "reply_goes_to_list": + "no_munging", "post_id": 1, "filter_content": false, "last_post_at": null, + "next_digest_number": 1, "autoresponse_owner_text": "", "acceptable_aliases": + [], "administrivia": true, "collapse_alternatives": true, "owner_address": + "moderate_subs-owner@example.com", "welcome_message_uri": "mailman:///welcome.txt", + "allow_list_posts": true, "subscription_policy": "confirm", "list_name": "moderate_subs", + "admin_immed_notify": true, "leave_address": "moderate_subs-leave@example.com", + "autoresponse_request_text": "", "posting_pipeline": "default-posting-pipeline", + "convert_html_to_plaintext": false, "reply_to_address": "", "request_address": + "moderate_subs-request@example.com", "join_address": "moderate_subs-join@example.com", + "send_welcome_message": true, "archive_policy": "public", "volume": 1, "first_strip_reply_to": + false, "default_nonmember_action": "hold", "posting_address": "moderate_subs@example.com", + "http_etag": "\"b6ec13e94da6d4c6f01c01dec1ad6a0d52941d06\"", "bounces_address": + "moderate_subs-bounces@example.com", "autorespond_owner": "none", "created_at": + "2015-11-11T12:49:35.574455", "digest_size_threshold": 30.0, "web_host": "example.com", + "anonymous_list": false, "scheme": "http", "digest_last_sent_at": null, "subject_prefix": + "[Moderate_subs] ", "mail_host": "example.com", "include_rfc2369_headers": + true}'} headers: content-length: ['1717'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:31 GMT'] + date: ['Wed, 11 Nov 2015 12:49:35 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: - body: description=&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&default_nonmember_action=hold&posting_pipeline=default-posting-pipeline&include_rfc2369_headers=True&autorespond_postings=none&first_strip_reply_to=False&collapse_alternatives=True&allow_list_posts=True&reply_to_address=&display_name=Moderate_subs&filter_content=False&default_member_action=defer&send_welcome_message=True&autorespond_owner=none&autoresponse_grace_period=90d&admin_notify_mchanges=False&autorespond_requests=none&digest_size_threshold=30.0&administrivia=True&autoresponse_request_text=&anonymous_list=False&subscription_policy=moderate&autoresponse_owner_text=&autoresponse_postings_text=&convert_html_to_plaintext=False&advertised=True&archive_policy=public&reply_goes_to_list=no_munging&subject_prefix=%5BModerate_subs%5D+&admin_immed_notify=True + body: autoresponse_postings_text=&admin_notify_mchanges=False&description=&default_nonmember_action=hold&reply_to_address=&posting_pipeline=default-posting-pipeline&convert_html_to_plaintext=False&archive_policy=public&administrivia=True&admin_immed_notify=True&autorespond_owner=none&subscription_policy=moderate&default_member_action=defer&first_strip_reply_to=False&autoresponse_grace_period=90d&allow_list_posts=True&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&collapse_alternatives=True&autorespond_requests=none&advertised=True&digest_size_threshold=30.0&filter_content=False&anonymous_list=False&autoresponse_request_text=&subject_prefix=%5BModerate_subs%5D+&send_welcome_message=True&autoresponse_owner_text=&include_rfc2369_headers=True&autorespond_postings=none&display_name=Moderate_subs&reply_goes_to_list=no_munging headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:31 GMT'] + date: ['Wed, 11 Nov 2015 12:49:35 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -145,18 +147,19 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"volume": 1, "mail_host": "example.com", "list_name": - "moderate_subs", "display_name": "Moderate_subs", "list_id": "moderate_subs.example.com", - "member_count": 0, "fqdn_listname": "moderate_subs@example.com", "http_etag": - "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com"}'} + body: {string: !!python/unicode '{"display_name": "Moderate_subs", "list_id": + "moderate_subs.example.com", "list_name": "moderate_subs", "fqdn_listname": + "moderate_subs@example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", + "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", + "mail_host": "example.com", "volume": 1}'} headers: content-length: ['344'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:31 GMT'] + date: ['Wed, 11 Nov 2015 12:49:36 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -164,15 +167,16 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"total_size": 0, "start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\""}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:31 GMT'] + date: ['Wed, 11 Nov 2015 12:49:36 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -180,15 +184,16 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"total_size": 0, "start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\""}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:31 GMT'] + date: ['Wed, 11 Nov 2015 12:49:36 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -196,7 +201,7 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: @@ -204,26 +209,25 @@ headers: content-length: ['13'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:31 GMT'] + date: ['Wed, 11 Nov 2015 12:49:36 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 404, message: Not Found} - request: - body: pre_confirmed=True&pre_verified=True&display_name=None&list_id=moderate_subs.example.com&subscriber=fritz%40example.org + 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.0b2'] + !!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 '{"token": "19525c71ea30da54045e5fa4d691af14aebaef79", - "http_etag": "\"7ab02ea16f8d127d4799a19f45c5a404b19bc48e\"", "token_owner": - "moderator"}'} + body: {string: !!python/unicode '{"http_etag": "\"26fa06cbf381df67219f4e368f91e36c8bfb5e04\"", + "token": "8af53fadcb97524aa1aee80323fc5f2ca71b9f2a", "token_owner": "moderator"}'} headers: content-length: ['142'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:31 GMT'] + date: ['Wed, 11 Nov 2015 12:49:36 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 202, message: Accepted} - request: @@ -231,15 +235,16 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"total_size": 0, "start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\""}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:31 GMT'] + date: ['Wed, 11 Nov 2015 12:49:36 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -247,19 +252,19 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"total_size": 1, "start": 0, "entries": [{"token": - "19525c71ea30da54045e5fa4d691af14aebaef79", "when": "2015-04-17T21:49:31", - "list_id": "moderate_subs.example.com", "token_owner": "moderator", "http_etag": - "\"ded8aafef6e4b383ba4103bcdc31394738b62fbc\"", "display_name": "None", "email": - "fritz@example.org"}], "http_etag": "\"dda7a413f195e045b751c95587624588064d6c6c\""}'} + body: {string: !!python/unicode '{"entries": [{"http_etag": "\"d74eab868b4ba0c4a0a7b7af77c0f4bff048cdde\"", + "token": "8af53fadcb97524aa1aee80323fc5f2ca71b9f2a", "token_owner": "moderator", + "display_name": "None", "list_id": "moderate_subs.example.com", "email": "fritz@example.org", + "when": "2015-11-11T12:49:36"}], "http_etag": "\"b4fd1f5299e7efca479e6f3015bc401e5022154f\"", + "total_size": 1, "start": 0}'} headers: content-length: ['372'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:31 GMT'] + date: ['Wed, 11 Nov 2015 12:49:36 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -267,14 +272,14 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:31 GMT'] + date: ['Wed, 11 Nov 2015 12:49:36 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary.yaml index e3d5876..5bec76d 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary.yaml @@ -5,7 +5,7 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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,7 +13,7 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:39 GMT'] + date: ['Wed, 11 Nov 2015 12:49:40 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 400, message: Bad Request} - request: @@ -21,17 +21,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:39 GMT'] + date: ['Wed, 11 Nov 2015 12:49:40 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -39,17 +39,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:39 GMT'] + date: ['Wed, 11 Nov 2015 12:49:40 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -58,14 +58,14 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:39 GMT'] + 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} @@ -74,19 +74,20 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"total_size": 1, "start": 0, "entries": [{"volume": - 1, "mail_host": "example.com", "list_name": "foo", "display_name": "Foo", - "list_id": "foo.example.com", "member_count": 1, "fqdn_listname": "foo@example.com", - "http_etag": "\"98cc998d4a30293ec17da639bce10617912a6e1e\"", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com"}], "http_etag": "\"89bf5f8f6c4414c38432c355907ddf9f419ef53b\""}'} + 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}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:40 GMT'] + date: ['Wed, 11 Nov 2015 12:49:41 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -94,33 +95,14 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"volume": 1, "mail_host": "example.com", "list_name": - "foo", "display_name": "Foo", "list_id": "foo.example.com", "member_count": - 1, "fqdn_listname": "foo@example.com", "http_etag": "\"98cc998d4a30293ec17da639bce10617912a6e1e\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com"}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49: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.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:40 GMT'] + date: ['Wed, 11 Nov 2015 12:49:41 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -128,34 +110,34 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"total_size": 6, "start": 0, "entries": [{"is_server_owner": - false, "created_on": "2015-04-17T21:49:31.438100", "http_etag": "\"d524fdd8b662872aad1e6969c73fc638065c5409\"", - "user_id": 73132381270437761542061997858084787124, "display_name": "None", - "self_link": "http://localhost:9001/3.0/users/73132381270437761542061997858084787124"}, - {"created_on": "2015-04-17T21:49:32.789798", "http_etag": "\"f4058bcaee5ef777def392ae6088cf8116015765\"", - "user_id": 132323735783051238959108775541333078032, "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/132323735783051238959108775541333078032"}, - {"created_on": "2015-04-17T21:49:33.321029", "http_etag": "\"956cef64116ce5204a8964d197b497e2c1ff72a7\"", - "user_id": 244378695232085659502002763818624648484, "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/244378695232085659502002763818624648484"}, - {"created_on": "2015-04-17T21:49:33.875568", "http_etag": "\"31197509dcfca6f7540b276e4903db73733ad82d\"", - "user_id": 57534215827853875099162175535757293119, "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/57534215827853875099162175535757293119"}, - {"created_on": "2015-04-17T21:49:33.962546", "http_etag": "\"20a55fd68ea8cc47b83312a5d6f508c00684a669\"", - "user_id": 287867428867435321086730016686195529878, "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/287867428867435321086730016686195529878"}, - {"is_server_owner": false, "created_on": "2015-04-17T21:49:39.641823", "http_etag": - "\"37779fcd1a46be2b90a29cdb676b73f83115d03b\"", "user_id": 204817555931972815975639382460590167604, - "display_name": "None", "self_link": "http://localhost:9001/3.0/users/204817555931972815975639382460590167604"}], - "http_etag": "\"32cffdc967b7ef234585d442d9e61c5eb00b3ac8\""}'} + 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}'} headers: - content-length: ['1785'] + content-length: ['1781'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:40 GMT'] + date: ['Wed, 11 Nov 2015 12:49:41 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -163,14 +145,14 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0'] method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/132323735783051238959108775541333078032 + uri: http://localhost:9001/3.0/users/116373708801465927618154924572824087703 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Fri, 17 Apr 2015 21:49:40 GMT'] + date: ['Wed, 11 Nov 2015 12:49:41 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -178,14 +160,14 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0'] method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/204817555931972815975639382460590167604 + uri: http://localhost:9001/3.0/users/157359395161973632801276631076644754855 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Fri, 17 Apr 2015 21:49:40 GMT'] + date: ['Wed, 11 Nov 2015 12:49:41 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -193,14 +175,14 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0'] method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/244378695232085659502002763818624648484 + uri: http://localhost:9001/3.0/users/35258670270330606438959454694878423733 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Fri, 17 Apr 2015 21:49:40 GMT'] + date: ['Wed, 11 Nov 2015 12:49:41 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -208,14 +190,14 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0'] method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/287867428867435321086730016686195529878 + uri: http://localhost:9001/3.0/users/57822417512003885879958503109671419329 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Fri, 17 Apr 2015 21:49:40 GMT'] + date: ['Wed, 11 Nov 2015 12:49:42 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -223,14 +205,14 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0'] method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/57534215827853875099162175535757293119 + uri: http://localhost:9001/3.0/users/94218210250211962065145319561376051884 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Fri, 17 Apr 2015 21:49:40 GMT'] + date: ['Wed, 11 Nov 2015 12:49:42 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -238,14 +220,14 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0'] method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/73132381270437761542061997858084787124 + uri: http://localhost:9001/3.0/users/94704940159445895320083756410847799181 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Fri, 17 Apr 2015 21:49:40 GMT'] + date: ['Wed, 11 Nov 2015 12:49:42 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -254,7 +236,7 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: @@ -262,7 +244,7 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:40 GMT'] + date: ['Wed, 11 Nov 2015 12:49:42 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 400, message: Bad Request} - request: @@ -270,17 +252,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:40 GMT'] + date: ['Wed, 11 Nov 2015 12:49:42 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -288,17 +270,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:40 GMT'] + date: ['Wed, 11 Nov 2015 12:49:42 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -307,14 +289,14 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:40 GMT'] + 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} @@ -323,18 +305,18 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"volume": 1, "mail_host": "example.com", "list_name": - "foo", "display_name": "Foo", "list_id": "foo.example.com", "member_count": - 0, "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com"}'} + 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: ['Fri, 17 Apr 2015 21:49:40 GMT'] + date: ['Wed, 11 Nov 2015 12:49:43 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -342,15 +324,16 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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, "start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\""}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:40 GMT'] + date: ['Wed, 11 Nov 2015 12:49:43 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -358,15 +341,16 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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, "start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\""}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:40 GMT'] + date: ['Wed, 11 Nov 2015 12:49:43 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -374,7 +358,7 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: @@ -382,7 +366,7 @@ headers: content-length: ['13'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:40 GMT'] + date: ['Wed, 11 Nov 2015 12:49:43 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 404, message: Not Found} - request: @@ -390,50 +374,51 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 + uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com response: - body: {string: !!python/unicode '{"total_size": 0, "start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\""}'} + body: {string: !!python/unicode '{}'} headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:40 GMT'] + 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: 200, message: OK} + 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.0b2'] + !!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 '{"scheme": "http", "list_name": "foo", "reply_to_address": - "", "next_digest_number": 1, "post_id": 1, "bounces_address": "foo-bounces@example.com", - "posting_pipeline": "default-posting-pipeline", "advertised": true, "no_reply_address": - "noreply@example.com", "autoresponse_owner_text": "", "last_post_at": null, - "allow_list_posts": true, "join_address": "foo-join@example.com", "acceptable_aliases": - [], "filter_content": false, "web_host": "example.com", "default_member_action": - "defer", "anonymous_list": false, "autorespond_postings": "none", "leave_address": - "foo-leave@example.com", "autoresponse_postings_text": "", "autoresponse_request_text": - "", "description": "", "admin_immed_notify": true, "collapse_alternatives": - true, "archive_policy": "public", "send_welcome_message": true, "created_at": - "2015-04-17T21:49:40.594602", "include_rfc2369_headers": true, "first_strip_reply_to": - false, "welcome_message_uri": "mailman:///welcome.txt", "administrivia": true, - "digest_last_sent_at": null, "admin_notify_mchanges": false, "digest_size_threshold": - 30.0, "default_nonmember_action": "hold", "subject_prefix": "[Foo] ", "request_address": - "foo-request@example.com", "autorespond_requests": "none", "volume": 1, "reply_goes_to_list": - "no_munging", "mail_host": "example.com", "autoresponse_grace_period": "90d", - "subscription_policy": "confirm", "display_name": "Foo", "convert_html_to_plaintext": - false, "owner_address": "foo-owner@example.com", "fqdn_listname": "foo@example.com", - "posting_address": "foo@example.com", "http_etag": "\"b2490f4331de3e2fb48475c691beee672147e95d\"", - "autorespond_owner": "none"}'} + 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}'} headers: content-length: ['1617'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:40 GMT'] + date: ['Wed, 11 Nov 2015 12:49:43 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -441,54 +426,20 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo@example.com/config - response: - body: {string: !!python/unicode '{"scheme": "http", "list_name": "foo", "reply_to_address": - "", "next_digest_number": 1, "post_id": 1, "bounces_address": "foo-bounces@example.com", - "posting_pipeline": "default-posting-pipeline", "advertised": true, "no_reply_address": - "noreply@example.com", "autoresponse_owner_text": "", "last_post_at": null, - "allow_list_posts": true, "join_address": "foo-join@example.com", "acceptable_aliases": - [], "filter_content": false, "web_host": "example.com", "default_member_action": - "defer", "anonymous_list": false, "autorespond_postings": "none", "leave_address": - "foo-leave@example.com", "autoresponse_postings_text": "", "autoresponse_request_text": - "", "description": "", "admin_immed_notify": true, "collapse_alternatives": - true, "archive_policy": "public", "send_welcome_message": true, "created_at": - "2015-04-17T21:49:40.594602", "include_rfc2369_headers": true, "first_strip_reply_to": - false, "welcome_message_uri": "mailman:///welcome.txt", "administrivia": true, - "digest_last_sent_at": null, "admin_notify_mchanges": false, "digest_size_threshold": - 30.0, "default_nonmember_action": "hold", "subject_prefix": "[Foo] ", "request_address": - "foo-request@example.com", "autorespond_requests": "none", "volume": 1, "reply_goes_to_list": - "no_munging", "mail_host": "example.com", "autoresponse_grace_period": "90d", - "subscription_policy": "confirm", "display_name": "Foo", "convert_html_to_plaintext": - false, "owner_address": "foo-owner@example.com", "fqdn_listname": "foo@example.com", - "posting_address": "foo@example.com", "http_etag": "\"b2490f4331de3e2fb48475c691beee672147e95d\"", - "autorespond_owner": "none"}'} - headers: - content-length: ['1617'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21: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.0b2'] + !!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 '{"total_size": 1, "start": 0, "entries": [{"volume": - 1, "mail_host": "example.com", "list_name": "foo", "display_name": "Foo", - "list_id": "foo.example.com", "member_count": 0, "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com"}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\""}'} + 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}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:41 GMT'] + date: ['Wed, 11 Nov 2015 12:49:43 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -496,33 +447,14 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"volume": 1, "mail_host": "example.com", "list_name": - "foo", "display_name": "Foo", "list_id": "foo.example.com", "member_count": - 0, "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com"}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49: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.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:41 GMT'] + date: ['Wed, 11 Nov 2015 12:49:43 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -530,15 +462,16 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"total_size": 0, "start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\""}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:41 GMT'] + date: ['Wed, 11 Nov 2015 12:49:43 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -547,7 +480,7 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: @@ -555,7 +488,7 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:41 GMT'] + date: ['Wed, 11 Nov 2015 12:49:43 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 400, message: Bad Request} - request: @@ -563,17 +496,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:41 GMT'] + date: ['Wed, 11 Nov 2015 12:49:44 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -581,17 +514,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:41 GMT'] + date: ['Wed, 11 Nov 2015 12:49:44 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -600,14 +533,14 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:41 GMT'] + 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} @@ -616,18 +549,18 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"volume": 1, "mail_host": "example.com", "list_name": - "foo", "display_name": "Foo", "list_id": "foo.example.com", "member_count": - 0, "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com"}'} + 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: ['Fri, 17 Apr 2015 21:49:41 GMT'] + date: ['Wed, 11 Nov 2015 12:49:44 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -635,34 +568,35 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"scheme": "http", "list_name": "foo", "reply_to_address": - "", "next_digest_number": 1, "post_id": 1, "bounces_address": "foo-bounces@example.com", - "posting_pipeline": "default-posting-pipeline", "advertised": true, "no_reply_address": - "noreply@example.com", "autoresponse_owner_text": "", "last_post_at": null, - "allow_list_posts": true, "join_address": "foo-join@example.com", "acceptable_aliases": - [], "filter_content": false, "web_host": "example.com", "default_member_action": - "defer", "anonymous_list": false, "autorespond_postings": "none", "leave_address": - "foo-leave@example.com", "autoresponse_postings_text": "", "autoresponse_request_text": - "", "description": "", "admin_immed_notify": true, "collapse_alternatives": - true, "archive_policy": "public", "send_welcome_message": true, "created_at": - "2015-04-17T21:49:41.405630", "include_rfc2369_headers": true, "first_strip_reply_to": - false, "welcome_message_uri": "mailman:///welcome.txt", "administrivia": true, - "digest_last_sent_at": null, "admin_notify_mchanges": false, "digest_size_threshold": - 30.0, "default_nonmember_action": "hold", "subject_prefix": "[Foo] ", "request_address": - "foo-request@example.com", "autorespond_requests": "none", "volume": 1, "reply_goes_to_list": - "no_munging", "mail_host": "example.com", "autoresponse_grace_period": "90d", - "subscription_policy": "confirm", "display_name": "Foo", "convert_html_to_plaintext": - false, "owner_address": "foo-owner@example.com", "fqdn_listname": "foo@example.com", - "posting_address": "foo@example.com", "http_etag": "\"856e1379cf0464f478e57788adda9428078008bd\"", - "autorespond_owner": "none"}'} + 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": "\"06097e71936fc44c4d75a421a3e15230e685359f\"", + "bounces_address": "foo-bounces@example.com", "autorespond_owner": "none", + "created_at": "2015-11-11T12:49:44.045527", "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}'} headers: content-length: ['1617'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:41 GMT'] + date: ['Wed, 11 Nov 2015 12:49:44 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -670,54 +604,20 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo@example.com/config - response: - body: {string: !!python/unicode '{"scheme": "http", "list_name": "foo", "reply_to_address": - "", "next_digest_number": 1, "post_id": 1, "bounces_address": "foo-bounces@example.com", - "posting_pipeline": "default-posting-pipeline", "advertised": true, "no_reply_address": - "noreply@example.com", "autoresponse_owner_text": "", "last_post_at": null, - "allow_list_posts": true, "join_address": "foo-join@example.com", "acceptable_aliases": - [], "filter_content": false, "web_host": "example.com", "default_member_action": - "defer", "anonymous_list": false, "autorespond_postings": "none", "leave_address": - "foo-leave@example.com", "autoresponse_postings_text": "", "autoresponse_request_text": - "", "description": "", "admin_immed_notify": true, "collapse_alternatives": - true, "archive_policy": "public", "send_welcome_message": true, "created_at": - "2015-04-17T21:49:41.405630", "include_rfc2369_headers": true, "first_strip_reply_to": - false, "welcome_message_uri": "mailman:///welcome.txt", "administrivia": true, - "digest_last_sent_at": null, "admin_notify_mchanges": false, "digest_size_threshold": - 30.0, "default_nonmember_action": "hold", "subject_prefix": "[Foo] ", "request_address": - "foo-request@example.com", "autorespond_requests": "none", "volume": 1, "reply_goes_to_list": - "no_munging", "mail_host": "example.com", "autoresponse_grace_period": "90d", - "subscription_policy": "confirm", "display_name": "Foo", "convert_html_to_plaintext": - false, "owner_address": "foo-owner@example.com", "fqdn_listname": "foo@example.com", - "posting_address": "foo@example.com", "http_etag": "\"856e1379cf0464f478e57788adda9428078008bd\"", - "autorespond_owner": "none"}'} - headers: - content-length: ['1617'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21: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.0b2'] + !!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 '{"total_size": 1, "start": 0, "entries": [{"volume": - 1, "mail_host": "example.com", "list_name": "foo", "display_name": "Foo", - "list_id": "foo.example.com", "member_count": 0, "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com"}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\""}'} + 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}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:41 GMT'] + date: ['Wed, 11 Nov 2015 12:49:45 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -725,33 +625,14 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"volume": 1, "mail_host": "example.com", "list_name": - "foo", "display_name": "Foo", "list_id": "foo.example.com", "member_count": - 0, "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com"}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49: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.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:42 GMT'] + date: ['Wed, 11 Nov 2015 12:49:45 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -759,15 +640,16 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"total_size": 0, "start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\""}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:42 GMT'] + date: ['Wed, 11 Nov 2015 12:49:45 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -776,7 +658,7 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: @@ -784,7 +666,7 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:42 GMT'] + date: ['Wed, 11 Nov 2015 12:49:45 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 400, message: Bad Request} - request: @@ -792,17 +674,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:42 GMT'] + date: ['Wed, 11 Nov 2015 12:49:45 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -810,17 +692,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:42 GMT'] + date: ['Wed, 11 Nov 2015 12:49:45 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -829,14 +711,14 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:42 GMT'] + 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} @@ -845,19 +727,20 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"total_size": 1, "start": 0, "entries": [{"volume": - 1, "mail_host": "example.com", "list_name": "foo", "display_name": "Foo", - "list_id": "foo.example.com", "member_count": 0, "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com"}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\""}'} + 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}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:43 GMT'] + date: ['Wed, 11 Nov 2015 12:49:47 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -865,33 +748,14 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"volume": 1, "mail_host": "example.com", "list_name": - "foo", "display_name": "Foo", "list_id": "foo.example.com", "member_count": - 0, "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com"}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49: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.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:43 GMT'] + date: ['Wed, 11 Nov 2015 12:49:47 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -899,19 +763,19 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"total_size": 1, "start": 0, "entries": [{"is_server_owner": - false, "created_on": "2015-04-17T21:49:42.543677", "http_etag": "\"9c7db56868280a314f88ebe3617eb470bbc1e12a\"", - "user_id": 145884944174755256087575342095483601919, "display_name": "None", - "self_link": "http://localhost:9001/3.0/users/145884944174755256087575342095483601919"}], - "http_etag": "\"160941918943181fd1c2b87bb76ad16144253aaf\""}'} + 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}'} headers: content-length: ['400'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:43 GMT'] + date: ['Wed, 11 Nov 2015 12:49:47 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -919,14 +783,14 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0'] method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/145884944174755256087575342095483601919 + uri: http://localhost:9001/3.0/users/175101733981884185786040725666736952966 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Fri, 17 Apr 2015 21:49:43 GMT'] + date: ['Wed, 11 Nov 2015 12:49:47 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_model-2.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_model-2.yaml index 69c4f0d..ac7900c 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_model-2.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_model-2.yaml @@ -4,7 +4,7 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 +12,7 @@ headers: content-length: ['13'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:44 GMT'] + 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 f3c27b6..c83fabb 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_model.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_model.yaml @@ -5,7 +5,7 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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,7 +13,7 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:43 GMT'] + date: ['Wed, 11 Nov 2015 12:49:48 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 400, message: Bad Request} - request: @@ -21,17 +21,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:43 GMT'] + date: ['Wed, 11 Nov 2015 12:49:48 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -39,17 +39,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:43 GMT'] + date: ['Wed, 11 Nov 2015 12:49:48 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -58,32 +58,32 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:43 GMT'] + 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: email=test%40example.com&display_name=None&password=None + 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.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:44 GMT'] - location: ['http://localhost:9001/3.0/users/159257784260397180227533440746559138090'] + 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] status: {code: 201, message: Created} - request: @@ -91,18 +91,19 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"password": "$6$rounds=95855$Rg4wzIH/bNoTgh7/$.ekDh7SDIZs8zvJcR9TfkS0fcfTafl1enwMyu1nDQWWj./URa.2y7SzBtW.uw4J1ga3uLf6VBzpbklkpZW69Q.", - "is_server_owner": false, "created_on": "2015-04-17T21:49:43.933759", "http_etag": - "\"ebacc85424cc5ecbacfdda8cb213e96393a263ae\"", "user_id": 159257784260397180227533440746559138090, - "display_name": "None", "self_link": "http://localhost:9001/3.0/users/159257784260397180227533440746559138090"}'} + 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"}'} headers: - content-length: ['430'] + content-length: ['431'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:44 GMT'] + date: ['Wed, 11 Nov 2015 12:49:50 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -110,18 +111,19 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0'] method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/159257784260397180227533440746559138090 + uri: http://localhost:9001/3.0/users/196919457906946625042143214516014924559 response: - body: {string: !!python/unicode '{"password": "$6$rounds=95855$Rg4wzIH/bNoTgh7/$.ekDh7SDIZs8zvJcR9TfkS0fcfTafl1enwMyu1nDQWWj./URa.2y7SzBtW.uw4J1ga3uLf6VBzpbklkpZW69Q.", - "is_server_owner": false, "created_on": "2015-04-17T21:49:43.933759", "http_etag": - "\"ebacc85424cc5ecbacfdda8cb213e96393a263ae\"", "user_id": 159257784260397180227533440746559138090, - "display_name": "None", "self_link": "http://localhost:9001/3.0/users/159257784260397180227533440746559138090"}'} + 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"}'} headers: - content-length: ['430'] + content-length: ['431'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:44 GMT'] + date: ['Wed, 11 Nov 2015 12:49:50 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -129,20 +131,21 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0'] method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/159257784260397180227533440746559138090/addresses + uri: http://localhost:9001/3.0/users/196919457906946625042143214516014924559/addresses response: - body: {string: !!python/unicode '{"total_size": 1, "start": 0, "entries": [{"registered_on": - "2015-04-17T21:49:43.933557", "original_email": "test@example.com", "user": - "http://localhost:9001/3.0/users/159257784260397180227533440746559138090", - "http_etag": "\"87a72abf2937cee5f0f8b827d209a183d4ca37ef\"", "display_name": - "None", "email": "test@example.com", "self_link": "http://localhost:9001/3.0/addresses/test@example.com"}], - "http_etag": "\"592fabafa101540a1d1ac825b640ed6e1db1338c\""}'} + 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: ['Fri, 17 Apr 2015 21:49:44 GMT'] + date: ['Wed, 11 Nov 2015 12:49:50 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -150,19 +153,20 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"total_size": 1, "start": 0, "entries": [{"volume": - 1, "mail_host": "example.com", "list_name": "foo", "display_name": "Foo", - "list_id": "foo.example.com", "member_count": 0, "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com"}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\""}'} + 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}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:44 GMT'] + date: ['Wed, 11 Nov 2015 12:49:50 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -170,33 +174,14 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"volume": 1, "mail_host": "example.com", "list_name": - "foo", "display_name": "Foo", "list_id": "foo.example.com", "member_count": - 0, "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com"}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49: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.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:44 GMT'] + date: ['Wed, 11 Nov 2015 12:49:50 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -204,20 +189,20 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"total_size": 1, "start": 0, "entries": [{"password": - "$6$rounds=95855$Rg4wzIH/bNoTgh7/$.ekDh7SDIZs8zvJcR9TfkS0fcfTafl1enwMyu1nDQWWj./URa.2y7SzBtW.uw4J1ga3uLf6VBzpbklkpZW69Q.", - "is_server_owner": false, "created_on": "2015-04-17T21:49:43.933759", "http_etag": - "\"ebacc85424cc5ecbacfdda8cb213e96393a263ae\"", "user_id": 159257784260397180227533440746559138090, - "display_name": "None", "self_link": "http://localhost:9001/3.0/users/159257784260397180227533440746559138090"}], - "http_etag": "\"815c44c4f7b30eb6e8a5167e3266d44b4b38aa6e\""}'} + 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}'} headers: - content-length: ['535'] + content-length: ['536'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:44 GMT'] + date: ['Wed, 11 Nov 2015 12:49:50 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -225,14 +210,14 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0'] method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/159257784260397180227533440746559138090 + uri: http://localhost:9001/3.0/users/196919457906946625042143214516014924559 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Fri, 17 Apr 2015 21:49:44 GMT'] + date: ['Wed, 11 Nov 2015 12:49:50 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -241,7 +226,7 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: @@ -249,7 +234,7 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:44 GMT'] + date: ['Wed, 11 Nov 2015 12:49:50 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 400, message: Bad Request} - request: @@ -257,17 +242,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:44 GMT'] + date: ['Wed, 11 Nov 2015 12:49:50 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -275,17 +260,17 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"base_url": "http://example.com", "mail_host": - "example.com", "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + body: {string: !!python/unicode '{"http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "description": null, "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "mail_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:44 GMT'] + date: ['Wed, 11 Nov 2015 12:49:50 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -294,14 +279,14 @@ accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:44 GMT'] + 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} @@ -310,19 +295,20 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"total_size": 1, "start": 0, "entries": [{"volume": - 1, "mail_host": "example.com", "list_name": "foo", "display_name": "Foo", - "list_id": "foo.example.com", "member_count": 0, "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com"}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\""}'} + 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}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:44 GMT'] + date: ['Wed, 11 Nov 2015 12:49:51 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -330,33 +316,14 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"volume": 1, "mail_host": "example.com", "list_name": - "foo", "display_name": "Foo", "list_id": "foo.example.com", "member_count": - 0, "fqdn_listname": "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com"}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49: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.0b2'] + !!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: ['Fri, 17 Apr 2015 21:49:44 GMT'] + date: ['Wed, 11 Nov 2015 12:49:51 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -364,15 +331,16 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + !!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 '{"total_size": 0, "start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\""}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Fri, 17 Apr 2015 21:49:44 GMT'] + date: ['Wed, 11 Nov 2015 12:49:51 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} version: 1