diff --git a/src/postorius/tests/fixtures/vcr_cassettes/archival_options.yaml b/src/postorius/tests/fixtures/vcr_cassettes/archival_options.yaml index 25cd67b..e9f9135 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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: @@ -13,7 +13,7 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:43 GMT'] + date: ['Wed, 15 Apr 2015 20:00: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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "base_url": "http://example.com", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'} + body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "description": null, "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:43 GMT'] + date: ['Wed, 15 Apr 2015 20:00: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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "base_url": "http://example.com", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'} + body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "description": null, "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:43 GMT'] + date: ['Wed, 15 Apr 2015 20:00: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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:43 GMT'] + date: ['Wed, 15 Apr 2015 20:00:40 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,19 +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.0b1'] + !!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_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "test_list", - "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", "display_name": - "Test_list", "list_id": "test_list.example.com", "fqdn_listname": "test_list@example.com", - "volume": 1, "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "mail_host": "example.com"}'} + body: {string: !!python/unicode '{"fqdn_listname": "test_list@example.com", "list_id": + "test_list.example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", + "list_name": "test_list", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", + "volume": 1, "display_name": "Test_list", "mail_host": "example.com", "member_count": + 0}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:44 GMT'] + date: ['Wed, 15 Apr 2015 20:00:40 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -94,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.0b1'] + !!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_list.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": false, "http_etag": "\"de68e13c430d856461d2b39a5b5d5286d91528bc\"", - "mail-archive": true, "mhonarc": false}'} + body: {string: !!python/unicode '{"http_etag": "\"de68e13c430d856461d2b39a5b5d5286d91528bc\"", + "prototype": false, "mail-archive": true, "mhonarc": false}'} headers: content-length: ['121'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:44 GMT'] + date: ['Wed, 15 Apr 2015 20:00:40 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -111,19 +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.0b1'] + !!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_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "test_list", - "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", "display_name": - "Test_list", "list_id": "test_list.example.com", "fqdn_listname": "test_list@example.com", - "volume": 1, "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "mail_host": "example.com"}'} + body: {string: !!python/unicode '{"fqdn_listname": "test_list@example.com", "list_id": + "test_list.example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", + "list_name": "test_list", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", + "volume": 1, "display_name": "Test_list", "mail_host": "example.com", "member_count": + 0}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:44 GMT'] + date: ['Wed, 15 Apr 2015 20:00:40 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -131,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] 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: ['Tue, 14 Apr 2015 14:06:44 GMT'] + date: ['Wed, 15 Apr 2015 20:00:40 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 d89a143..9a2ffd2 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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: @@ -13,7 +13,7 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:45 GMT'] + date: ['Wed, 15 Apr 2015 20:00:41 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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "base_url": "http://example.com", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'} + body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "description": null, "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:45 GMT'] + date: ['Wed, 15 Apr 2015 20:00:41 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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "base_url": "http://example.com", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'} + body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "description": null, "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:45 GMT'] + date: ['Wed, 15 Apr 2015 20:00:41 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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:45 GMT'] + date: ['Wed, 15 Apr 2015 20:00:41 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,53 +74,53 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + !!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 '{"member_count": 0, "list_name": "foo", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "display_name": "Foo", - "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "volume": - 1, "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "mail_host": - "example.com"}'} + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "list_id": + "foo.example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_name": "foo", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1, "display_name": "Foo", "mail_host": "example.com", "member_count": + 0}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:45 GMT'] + date: ['Wed, 15 Apr 2015 20:00:41 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: subscriber=owner%40example.com&list_id=foo.example.com&role=owner 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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:45 GMT'] - location: ['http://localhost:9001/3.0/members/124890213139466760105429918036490469479'] + date: ['Wed, 15 Apr 2015 20:00:41 GMT'] + location: ['http://localhost:9001/3.0/members/65666166344199916015948757016727609115'] 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: subscriber=moderator%40example.com&list_id=foo.example.com&role=moderator 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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:45 GMT'] - location: ['http://localhost:9001/3.0/members/206325990385381910032739802248649985909'] + date: ['Wed, 15 Apr 2015 20:00:41 GMT'] + location: ['http://localhost:9001/3.0/members/142734914141373676799912641898971185828'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 201, message: Created} - request: @@ -128,14 +128,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:45 GMT'] + date: ['Wed, 15 Apr 2015 20:00:42 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -144,7 +144,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: @@ -152,7 +152,7 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:46 GMT'] + date: ['Wed, 15 Apr 2015 20:00:42 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 400, message: Bad Request} - request: @@ -160,17 +160,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "base_url": "http://example.com", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'} + body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "description": null, "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:46 GMT'] + date: ['Wed, 15 Apr 2015 20:00:42 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -178,17 +178,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "base_url": "http://example.com", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'} + body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "description": null, "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:46 GMT'] + date: ['Wed, 15 Apr 2015 20:00:42 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -197,14 +197,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:46 GMT'] + date: ['Wed, 15 Apr 2015 20:00: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} @@ -213,53 +213,53 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + !!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 '{"member_count": 0, "list_name": "foo", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "display_name": "Foo", - "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "volume": - 1, "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "mail_host": - "example.com"}'} + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "list_id": + "foo.example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_name": "foo", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1, "display_name": "Foo", "mail_host": "example.com", "member_count": + 0}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:46 GMT'] + date: ['Wed, 15 Apr 2015 20:00:42 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: subscriber=owner%40example.com&list_id=foo.example.com&role=owner 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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:46 GMT'] - location: ['http://localhost:9001/3.0/members/271197788401890622416968078499546357068'] + date: ['Wed, 15 Apr 2015 20:00:42 GMT'] + location: ['http://localhost:9001/3.0/members/146478159952862640555572319802110037529'] 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: subscriber=moderator%40example.com&list_id=foo.example.com&role=moderator 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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:46 GMT'] - location: ['http://localhost:9001/3.0/members/254395777215768869811410387635804292179'] + date: ['Wed, 15 Apr 2015 20:00:42 GMT'] + location: ['http://localhost:9001/3.0/members/300345844286885579524106623093994765189'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 201, message: Created} - request: @@ -267,14 +267,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:46 GMT'] + date: ['Wed, 15 Apr 2015 20:00:42 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -283,7 +283,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: @@ -291,7 +291,7 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:46 GMT'] + date: ['Wed, 15 Apr 2015 20:00:42 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 400, message: Bad Request} - request: @@ -299,17 +299,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "base_url": "http://example.com", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'} + body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "description": null, "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:46 GMT'] + date: ['Wed, 15 Apr 2015 20:00:42 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -317,17 +317,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "base_url": "http://example.com", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'} + body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "description": null, "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:46 GMT'] + date: ['Wed, 15 Apr 2015 20:00:42 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -336,14 +336,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:46 GMT'] + date: ['Wed, 15 Apr 2015 20:00:43 GMT'] location: ['http://localhost:9001/3.0/lists/foo.example.com'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 201, message: Created} @@ -352,53 +352,53 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + !!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 '{"member_count": 0, "list_name": "foo", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "display_name": "Foo", - "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "volume": - 1, "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "mail_host": - "example.com"}'} + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "list_id": + "foo.example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_name": "foo", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1, "display_name": "Foo", "mail_host": "example.com", "member_count": + 0}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:47 GMT'] + date: ['Wed, 15 Apr 2015 20:00:43 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: subscriber=owner%40example.com&list_id=foo.example.com&role=owner 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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:47 GMT'] - location: ['http://localhost:9001/3.0/members/236410511523409246334469919959663501944'] + date: ['Wed, 15 Apr 2015 20:00:43 GMT'] + location: ['http://localhost:9001/3.0/members/333804327984641227543735764681736417610'] 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: subscriber=moderator%40example.com&list_id=foo.example.com&role=moderator 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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:47 GMT'] - location: ['http://localhost:9001/3.0/members/67261536029514454111362639682498065147'] + date: ['Wed, 15 Apr 2015 20:00:43 GMT'] + location: ['http://localhost:9001/3.0/members/193153637813201025305722262172721795279'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 201, message: Created} - request: @@ -406,14 +406,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:47 GMT'] + date: ['Wed, 15 Apr 2015 20:00:43 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -422,7 +422,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: @@ -430,7 +430,7 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:47 GMT'] + date: ['Wed, 15 Apr 2015 20:00:43 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 400, message: Bad Request} - request: @@ -438,17 +438,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "base_url": "http://example.com", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'} + body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "description": null, "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:47 GMT'] + date: ['Wed, 15 Apr 2015 20:00:43 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -456,17 +456,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "base_url": "http://example.com", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'} + body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "description": null, "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:47 GMT'] + date: ['Wed, 15 Apr 2015 20:00:43 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -475,14 +475,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:47 GMT'] + date: ['Wed, 15 Apr 2015 20:00:43 GMT'] location: ['http://localhost:9001/3.0/lists/foo.example.com'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 201, message: Created} @@ -491,53 +491,53 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + !!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 '{"member_count": 0, "list_name": "foo", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "display_name": "Foo", - "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "volume": - 1, "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "mail_host": - "example.com"}'} + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "list_id": + "foo.example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_name": "foo", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1, "display_name": "Foo", "mail_host": "example.com", "member_count": + 0}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:47 GMT'] + date: ['Wed, 15 Apr 2015 20:00:44 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: subscriber=owner%40example.com&list_id=foo.example.com&role=owner 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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:48 GMT'] - location: ['http://localhost:9001/3.0/members/130260778846721150623463622726543637576'] + date: ['Wed, 15 Apr 2015 20:00:44 GMT'] + location: ['http://localhost:9001/3.0/members/326084107676518818095650670971849152636'] 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: subscriber=moderator%40example.com&list_id=foo.example.com&role=moderator 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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:48 GMT'] - location: ['http://localhost:9001/3.0/members/167516476475439974321363216976782173374'] + date: ['Wed, 15 Apr 2015 20:00:44 GMT'] + location: ['http://localhost:9001/3.0/members/258304038484621747948113203888404536161'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 201, message: Created} - request: @@ -545,19 +545,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.0b1'] + !!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 '{"member_count": 0, "list_name": "foo", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "display_name": "Foo", - "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "volume": - 1, "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "mail_host": - "example.com"}'} + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "list_id": + "foo.example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_name": "foo", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1, "display_name": "Foo", "mail_host": "example.com", "member_count": + 0}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:48 GMT'] + date: ['Wed, 15 Apr 2015 20:00:44 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -565,16 +565,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.0b1'] + !!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 '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:48 GMT'] + date: ['Wed, 15 Apr 2015 20:00:44 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -582,22 +582,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.0b1'] + !!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 '{"entries": [{"role": "owner", "list_id": "foo.example.com", - "user": "http://localhost:9001/3.0/users/178875461469610954400218294698080347713", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "email": - "owner@example.com", "self_link": "http://localhost:9001/3.0/members/130260778846721150623463622726543637576", - "delivery_mode": "regular", "member_id": 130260778846721150623463622726543637576, - "http_etag": "\"45a9d7656d7b9e218bf397f148c09852873f2917\""}], "start": 0, - "http_etag": "\"16826c471273c8d0352bf341034293891b6a4dff\"", "total_size": - 1}'} + body: {string: !!python/unicode '{"http_etag": "\"4ed6be8ec16e2102e963534eb944a8708b16a05e\"", + "entries": [{"delivery_mode": "regular", "self_link": "http://localhost:9001/3.0/members/326084107676518818095650670971849152636", + "email": "owner@example.com", "list_id": "foo.example.com", "user": "http://localhost:9001/3.0/users/117102017827318954078289964069449293796", + "role": "owner", "http_etag": "\"3abaf9da7ad18416685dce89e0b8e18be05ecd41\"", + "address": "http://localhost:9001/3.0/addresses/owner@example.com", "member_id": + 326084107676518818095650670971849152636}], "start": 0, "total_size": 1}'} headers: content-length: ['566'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:48 GMT'] + date: ['Wed, 15 Apr 2015 20:00:44 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -605,22 +603,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.0b1'] + !!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 '{"entries": [{"role": "moderator", "list_id": - "foo.example.com", "user": "http://localhost:9001/3.0/users/102340090153076935366690295492304488536", - "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "email": - "moderator@example.com", "self_link": "http://localhost:9001/3.0/members/167516476475439974321363216976782173374", - "delivery_mode": "regular", "member_id": 167516476475439974321363216976782173374, - "http_etag": "\"5f455be3cae66e0ec4a1c44dc61e2a1966e7189d\""}], "start": 0, - "http_etag": "\"060035fbf9b0c0f4f4b7a5332b3cfbd088342779\"", "total_size": - 1}'} + body: {string: !!python/unicode '{"http_etag": "\"66af03650198a5f13672fbc182ea7234647d1f1d\"", + "entries": [{"delivery_mode": "regular", "self_link": "http://localhost:9001/3.0/members/258304038484621747948113203888404536161", + "email": "moderator@example.com", "list_id": "foo.example.com", "user": "http://localhost:9001/3.0/users/313429703557169445575348239981723434246", + "role": "moderator", "http_etag": "\"762fab231ab86f1893701ceed01e36aa92827b69\"", + "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "member_id": + 258304038484621747948113203888404536161}], "start": 0, "total_size": 1}'} headers: content-length: ['578'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:48 GMT'] + date: ['Wed, 15 Apr 2015 20:00:44 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -628,19 +624,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.0b1'] + !!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 '{"member_count": 0, "list_name": "foo", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "display_name": "Foo", - "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "volume": - 1, "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "mail_host": - "example.com"}'} + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "list_id": + "foo.example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_name": "foo", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1, "display_name": "Foo", "mail_host": "example.com", "member_count": + 0}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:48 GMT'] + date: ['Wed, 15 Apr 2015 20:00:44 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -648,22 +644,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.0b1'] + !!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 '{"entries": [{"role": "owner", "list_id": "foo.example.com", - "user": "http://localhost:9001/3.0/users/178875461469610954400218294698080347713", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "email": - "owner@example.com", "self_link": "http://localhost:9001/3.0/members/130260778846721150623463622726543637576", - "delivery_mode": "regular", "member_id": 130260778846721150623463622726543637576, - "http_etag": "\"45a9d7656d7b9e218bf397f148c09852873f2917\""}], "start": 0, - "http_etag": "\"16826c471273c8d0352bf341034293891b6a4dff\"", "total_size": - 1}'} + body: {string: !!python/unicode '{"http_etag": "\"4ed6be8ec16e2102e963534eb944a8708b16a05e\"", + "entries": [{"delivery_mode": "regular", "self_link": "http://localhost:9001/3.0/members/326084107676518818095650670971849152636", + "email": "owner@example.com", "list_id": "foo.example.com", "user": "http://localhost:9001/3.0/users/117102017827318954078289964069449293796", + "role": "owner", "http_etag": "\"3abaf9da7ad18416685dce89e0b8e18be05ecd41\"", + "address": "http://localhost:9001/3.0/addresses/owner@example.com", "member_id": + 326084107676518818095650670971849152636}], "start": 0, "total_size": 1}'} headers: content-length: ['566'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:48 GMT'] + date: ['Wed, 15 Apr 2015 20:00:44 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -671,14 +665,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:48 GMT'] + date: ['Wed, 15 Apr 2015 20:00:44 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -687,7 +681,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: @@ -695,7 +689,7 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:48 GMT'] + date: ['Wed, 15 Apr 2015 20:00:45 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 400, message: Bad Request} - request: @@ -703,17 +697,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "base_url": "http://example.com", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'} + body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "description": null, "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:49 GMT'] + date: ['Wed, 15 Apr 2015 20:00:45 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -721,17 +715,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "base_url": "http://example.com", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'} + body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "description": null, "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:49 GMT'] + date: ['Wed, 15 Apr 2015 20:00:45 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -740,14 +734,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:49 GMT'] + date: ['Wed, 15 Apr 2015 20:00: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} @@ -756,53 +750,53 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + !!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 '{"member_count": 0, "list_name": "foo", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "display_name": "Foo", - "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "volume": - 1, "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "mail_host": - "example.com"}'} + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "list_id": + "foo.example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_name": "foo", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1, "display_name": "Foo", "mail_host": "example.com", "member_count": + 0}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:49 GMT'] + date: ['Wed, 15 Apr 2015 20:00:45 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: subscriber=owner%40example.com&list_id=foo.example.com&role=owner 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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:49 GMT'] - location: ['http://localhost:9001/3.0/members/270677309294478765077948079756456265929'] + date: ['Wed, 15 Apr 2015 20:00:45 GMT'] + location: ['http://localhost:9001/3.0/members/33048892732221464402686396653921417791'] 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: subscriber=moderator%40example.com&list_id=foo.example.com&role=moderator 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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:49 GMT'] - location: ['http://localhost:9001/3.0/members/319388260762297343692064708570163626520'] + date: ['Wed, 15 Apr 2015 20:00:45 GMT'] + location: ['http://localhost:9001/3.0/members/303945703475387901708938435045952054401'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 201, message: Created} - request: @@ -810,19 +804,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.0b1'] + !!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 '{"member_count": 0, "list_name": "foo", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "display_name": "Foo", - "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "volume": - 1, "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "mail_host": - "example.com"}'} + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "list_id": + "foo.example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_name": "foo", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1, "display_name": "Foo", "mail_host": "example.com", "member_count": + 0}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:49 GMT'] + date: ['Wed, 15 Apr 2015 20:00:45 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -830,16 +824,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.0b1'] + !!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 '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:49 GMT'] + date: ['Wed, 15 Apr 2015 20:00:45 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -847,14 +841,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:49 GMT'] + date: ['Wed, 15 Apr 2015 20:00:46 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 a9e8808..5569ce2 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/list_members_page.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/list_members_page.yaml @@ -4,19 +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.0b1'] + !!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 '{"member_count": 0, "list_name": "foo", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "display_name": "Foo", - "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "volume": - 1, "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "mail_host": - "example.com"}'} + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "list_id": + "foo.example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_name": "foo", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1, "display_name": "Foo", "mail_host": "example.com", "member_count": + 0}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:45 GMT'] + date: ['Wed, 15 Apr 2015 20:00:41 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -24,16 +24,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.0b1'] + !!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 '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:45 GMT'] + date: ['Wed, 15 Apr 2015 20:00:41 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -41,22 +41,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.0b1'] + !!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 '{"entries": [{"role": "owner", "list_id": "foo.example.com", - "user": "http://localhost:9001/3.0/users/178875461469610954400218294698080347713", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "email": - "owner@example.com", "self_link": "http://localhost:9001/3.0/members/124890213139466760105429918036490469479", - "delivery_mode": "regular", "member_id": 124890213139466760105429918036490469479, - "http_etag": "\"e13d2797ccd764f6358de77aa595c5588fe983e8\""}], "start": 0, - "http_etag": "\"c6edbb8cef5e19cd507a740a0b5689cc58940f92\"", "total_size": - 1}'} + body: {string: !!python/unicode '{"http_etag": "\"51d78cb00e18a60461749d1207f2707594ce1a6d\"", + "entries": [{"delivery_mode": "regular", "self_link": "http://localhost:9001/3.0/members/65666166344199916015948757016727609115", + "email": "owner@example.com", "list_id": "foo.example.com", "user": "http://localhost:9001/3.0/users/117102017827318954078289964069449293796", + "role": "owner", "http_etag": "\"432b0cb405562590d58f047540c7527fb868ab68\"", + "address": "http://localhost:9001/3.0/addresses/owner@example.com", "member_id": + 65666166344199916015948757016727609115}], "start": 0, "total_size": 1}'} headers: - content-length: ['566'] + content-length: ['564'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:45 GMT'] + date: ['Wed, 15 Apr 2015 20:00:41 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -64,22 +62,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.0b1'] + !!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 '{"entries": [{"role": "moderator", "list_id": - "foo.example.com", "user": "http://localhost:9001/3.0/users/102340090153076935366690295492304488536", - "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "email": - "moderator@example.com", "self_link": "http://localhost:9001/3.0/members/206325990385381910032739802248649985909", - "delivery_mode": "regular", "member_id": 206325990385381910032739802248649985909, - "http_etag": "\"8c33ae1a30f7930c8c3b79b3ad2897a54f253a78\""}], "start": 0, - "http_etag": "\"5fd39b39b21deba396ed5f1e3435f5c66ef1003d\"", "total_size": - 1}'} + body: {string: !!python/unicode '{"http_etag": "\"c59397427b076a99f54451fb8426c485f0197621\"", + "entries": [{"delivery_mode": "regular", "self_link": "http://localhost:9001/3.0/members/142734914141373676799912641898971185828", + "email": "moderator@example.com", "list_id": "foo.example.com", "user": "http://localhost:9001/3.0/users/313429703557169445575348239981723434246", + "role": "moderator", "http_etag": "\"fc87fe575147375a29f2e51b16d7cd778ff9b6d4\"", + "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "member_id": + 142734914141373676799912641898971185828}], "start": 0, "total_size": 1}'} headers: content-length: ['578'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:45 GMT'] + date: ['Wed, 15 Apr 2015 20:00:41 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -87,19 +83,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.0b1'] + !!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 '{"member_count": 0, "list_name": "foo", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "display_name": "Foo", - "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "volume": - 1, "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "mail_host": - "example.com"}'} + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "list_id": + "foo.example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_name": "foo", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1, "display_name": "Foo", "mail_host": "example.com", "member_count": + 0}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:45 GMT'] + date: ['Wed, 15 Apr 2015 20:00:41 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -107,22 +103,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.0b1'] + !!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 '{"entries": [{"role": "owner", "list_id": "foo.example.com", - "user": "http://localhost:9001/3.0/users/178875461469610954400218294698080347713", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "email": - "owner@example.com", "self_link": "http://localhost:9001/3.0/members/124890213139466760105429918036490469479", - "delivery_mode": "regular", "member_id": 124890213139466760105429918036490469479, - "http_etag": "\"e13d2797ccd764f6358de77aa595c5588fe983e8\""}], "start": 0, - "http_etag": "\"c6edbb8cef5e19cd507a740a0b5689cc58940f92\"", "total_size": - 1}'} + body: {string: !!python/unicode '{"http_etag": "\"51d78cb00e18a60461749d1207f2707594ce1a6d\"", + "entries": [{"delivery_mode": "regular", "self_link": "http://localhost:9001/3.0/members/65666166344199916015948757016727609115", + "email": "owner@example.com", "list_id": "foo.example.com", "user": "http://localhost:9001/3.0/users/117102017827318954078289964069449293796", + "role": "owner", "http_etag": "\"432b0cb405562590d58f047540c7527fb868ab68\"", + "address": "http://localhost:9001/3.0/addresses/owner@example.com", "member_id": + 65666166344199916015948757016727609115}], "start": 0, "total_size": 1}'} headers: - content-length: ['566'] + content-length: ['564'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:45 GMT'] + date: ['Wed, 15 Apr 2015 20:00:41 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -130,19 +124,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.0b1'] + !!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 '{"member_count": 0, "list_name": "foo", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "display_name": "Foo", - "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "volume": - 1, "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "mail_host": - "example.com"}'} + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "list_id": + "foo.example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_name": "foo", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1, "display_name": "Foo", "mail_host": "example.com", "member_count": + 0}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:46 GMT'] + date: ['Wed, 15 Apr 2015 20:00:42 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -150,16 +144,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.0b1'] + !!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 '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:46 GMT'] + date: ['Wed, 15 Apr 2015 20:00:42 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -167,22 +161,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.0b1'] + !!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 '{"entries": [{"role": "owner", "list_id": "foo.example.com", - "user": "http://localhost:9001/3.0/users/178875461469610954400218294698080347713", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "email": - "owner@example.com", "self_link": "http://localhost:9001/3.0/members/271197788401890622416968078499546357068", - "delivery_mode": "regular", "member_id": 271197788401890622416968078499546357068, - "http_etag": "\"ef4bb96c1859a5119e3a4c62ec8f580ab4d16a59\""}], "start": 0, - "http_etag": "\"b65c48a9257e8ed842762ac1562254b5efe52d08\"", "total_size": - 1}'} + body: {string: !!python/unicode '{"http_etag": "\"0cb4d7b03c6e1af1a9ea0488f225e1eaee21d06f\"", + "entries": [{"delivery_mode": "regular", "self_link": "http://localhost:9001/3.0/members/146478159952862640555572319802110037529", + "email": "owner@example.com", "list_id": "foo.example.com", "user": "http://localhost:9001/3.0/users/117102017827318954078289964069449293796", + "role": "owner", "http_etag": "\"85a930c254b3f42b5cf86c653442fea56835dcec\"", + "address": "http://localhost:9001/3.0/addresses/owner@example.com", "member_id": + 146478159952862640555572319802110037529}], "start": 0, "total_size": 1}'} headers: content-length: ['566'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:46 GMT'] + date: ['Wed, 15 Apr 2015 20:00:42 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -190,22 +182,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.0b1'] + !!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 '{"entries": [{"role": "moderator", "list_id": - "foo.example.com", "user": "http://localhost:9001/3.0/users/102340090153076935366690295492304488536", - "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "email": - "moderator@example.com", "self_link": "http://localhost:9001/3.0/members/254395777215768869811410387635804292179", - "delivery_mode": "regular", "member_id": 254395777215768869811410387635804292179, - "http_etag": "\"502c3e6e42270203da08f51d0c8364ec3a5aca7c\""}], "start": 0, - "http_etag": "\"614fa18ea1a5283d4bf0b0a9ec4b33f7650c106c\"", "total_size": - 1}'} + body: {string: !!python/unicode '{"http_etag": "\"544213e84cea14e55fa5e4b5d7283acb2a0fa1f8\"", + "entries": [{"delivery_mode": "regular", "self_link": "http://localhost:9001/3.0/members/300345844286885579524106623093994765189", + "email": "moderator@example.com", "list_id": "foo.example.com", "user": "http://localhost:9001/3.0/users/313429703557169445575348239981723434246", + "role": "moderator", "http_etag": "\"a0565c2e2754fb1c2bd5cef276c64d818485f1a9\"", + "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "member_id": + 300345844286885579524106623093994765189}], "start": 0, "total_size": 1}'} headers: content-length: ['578'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:46 GMT'] + date: ['Wed, 15 Apr 2015 20:00:42 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -213,22 +203,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.0b1'] + !!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 '{"entries": [{"role": "owner", "list_id": "foo.example.com", - "user": "http://localhost:9001/3.0/users/178875461469610954400218294698080347713", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "email": - "owner@example.com", "self_link": "http://localhost:9001/3.0/members/271197788401890622416968078499546357068", - "delivery_mode": "regular", "member_id": 271197788401890622416968078499546357068, - "http_etag": "\"ef4bb96c1859a5119e3a4c62ec8f580ab4d16a59\""}], "start": 0, - "http_etag": "\"b65c48a9257e8ed842762ac1562254b5efe52d08\"", "total_size": - 1}'} + body: {string: !!python/unicode '{"http_etag": "\"0cb4d7b03c6e1af1a9ea0488f225e1eaee21d06f\"", + "entries": [{"delivery_mode": "regular", "self_link": "http://localhost:9001/3.0/members/146478159952862640555572319802110037529", + "email": "owner@example.com", "list_id": "foo.example.com", "user": "http://localhost:9001/3.0/users/117102017827318954078289964069449293796", + "role": "owner", "http_etag": "\"85a930c254b3f42b5cf86c653442fea56835dcec\"", + "address": "http://localhost:9001/3.0/addresses/owner@example.com", "member_id": + 146478159952862640555572319802110037529}], "start": 0, "total_size": 1}'} headers: content-length: ['566'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:46 GMT'] + date: ['Wed, 15 Apr 2015 20:00:42 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -236,22 +224,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.0b1'] + !!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 '{"entries": [{"role": "moderator", "list_id": - "foo.example.com", "user": "http://localhost:9001/3.0/users/102340090153076935366690295492304488536", - "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "email": - "moderator@example.com", "self_link": "http://localhost:9001/3.0/members/254395777215768869811410387635804292179", - "delivery_mode": "regular", "member_id": 254395777215768869811410387635804292179, - "http_etag": "\"502c3e6e42270203da08f51d0c8364ec3a5aca7c\""}], "start": 0, - "http_etag": "\"614fa18ea1a5283d4bf0b0a9ec4b33f7650c106c\"", "total_size": - 1}'} + body: {string: !!python/unicode '{"http_etag": "\"544213e84cea14e55fa5e4b5d7283acb2a0fa1f8\"", + "entries": [{"delivery_mode": "regular", "self_link": "http://localhost:9001/3.0/members/300345844286885579524106623093994765189", + "email": "moderator@example.com", "list_id": "foo.example.com", "user": "http://localhost:9001/3.0/users/313429703557169445575348239981723434246", + "role": "moderator", "http_etag": "\"a0565c2e2754fb1c2bd5cef276c64d818485f1a9\"", + "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "member_id": + 300345844286885579524106623093994765189}], "start": 0, "total_size": 1}'} headers: content-length: ['578'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:46 GMT'] + date: ['Wed, 15 Apr 2015 20:00:42 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -259,19 +245,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.0b1'] + !!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 '{"member_count": 0, "list_name": "foo", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "display_name": "Foo", - "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "volume": - 1, "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "mail_host": - "example.com"}'} + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "list_id": + "foo.example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_name": "foo", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1, "display_name": "Foo", "mail_host": "example.com", "member_count": + 0}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:47 GMT'] + date: ['Wed, 15 Apr 2015 20:00:43 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -279,16 +265,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.0b1'] + !!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 '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:47 GMT'] + date: ['Wed, 15 Apr 2015 20:00:43 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -296,22 +282,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.0b1'] + !!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 '{"entries": [{"role": "owner", "list_id": "foo.example.com", - "user": "http://localhost:9001/3.0/users/178875461469610954400218294698080347713", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "email": - "owner@example.com", "self_link": "http://localhost:9001/3.0/members/236410511523409246334469919959663501944", - "delivery_mode": "regular", "member_id": 236410511523409246334469919959663501944, - "http_etag": "\"d189491966a2b9591ae4e229af1e166acc526edb\""}], "start": 0, - "http_etag": "\"75a40a60bdee39db6ed8f958d721f227872e509e\"", "total_size": - 1}'} + body: {string: !!python/unicode '{"http_etag": "\"bae7530d8cf648d529d508d3c46be38477c8d3ad\"", + "entries": [{"delivery_mode": "regular", "self_link": "http://localhost:9001/3.0/members/333804327984641227543735764681736417610", + "email": "owner@example.com", "list_id": "foo.example.com", "user": "http://localhost:9001/3.0/users/117102017827318954078289964069449293796", + "role": "owner", "http_etag": "\"ec0178c2e8d6fb0133a819a2a064d3da9ba36c61\"", + "address": "http://localhost:9001/3.0/addresses/owner@example.com", "member_id": + 333804327984641227543735764681736417610}], "start": 0, "total_size": 1}'} headers: content-length: ['566'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:47 GMT'] + date: ['Wed, 15 Apr 2015 20:00:43 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -319,22 +303,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.0b1'] + !!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 '{"entries": [{"role": "moderator", "list_id": - "foo.example.com", "user": "http://localhost:9001/3.0/users/102340090153076935366690295492304488536", - "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "email": - "moderator@example.com", "self_link": "http://localhost:9001/3.0/members/67261536029514454111362639682498065147", - "delivery_mode": "regular", "member_id": 67261536029514454111362639682498065147, - "http_etag": "\"5e65cf14e04602aa1a9d661a3a0b14ee77a20e5f\""}], "start": 0, - "http_etag": "\"f9f164bb85960aa5f62d444495df223e3cf70245\"", "total_size": - 1}'} + body: {string: !!python/unicode '{"http_etag": "\"6dcb366c09097b00549bde66eeb52f0ce1a4ec22\"", + "entries": [{"delivery_mode": "regular", "self_link": "http://localhost:9001/3.0/members/193153637813201025305722262172721795279", + "email": "moderator@example.com", "list_id": "foo.example.com", "user": "http://localhost:9001/3.0/users/313429703557169445575348239981723434246", + "role": "moderator", "http_etag": "\"28617c5a79940598bbb23f35c3f5e46ec6eb6d46\"", + "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "member_id": + 193153637813201025305722262172721795279}], "start": 0, "total_size": 1}'} headers: - content-length: ['576'] + content-length: ['578'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:47 GMT'] + date: ['Wed, 15 Apr 2015 20:00:43 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -342,22 +324,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.0b1'] + !!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 '{"entries": [{"role": "owner", "list_id": "foo.example.com", - "user": "http://localhost:9001/3.0/users/178875461469610954400218294698080347713", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "email": - "owner@example.com", "self_link": "http://localhost:9001/3.0/members/236410511523409246334469919959663501944", - "delivery_mode": "regular", "member_id": 236410511523409246334469919959663501944, - "http_etag": "\"d189491966a2b9591ae4e229af1e166acc526edb\""}], "start": 0, - "http_etag": "\"75a40a60bdee39db6ed8f958d721f227872e509e\"", "total_size": - 1}'} + body: {string: !!python/unicode '{"http_etag": "\"bae7530d8cf648d529d508d3c46be38477c8d3ad\"", + "entries": [{"delivery_mode": "regular", "self_link": "http://localhost:9001/3.0/members/333804327984641227543735764681736417610", + "email": "owner@example.com", "list_id": "foo.example.com", "user": "http://localhost:9001/3.0/users/117102017827318954078289964069449293796", + "role": "owner", "http_etag": "\"ec0178c2e8d6fb0133a819a2a064d3da9ba36c61\"", + "address": "http://localhost:9001/3.0/addresses/owner@example.com", "member_id": + 333804327984641227543735764681736417610}], "start": 0, "total_size": 1}'} headers: content-length: ['566'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:47 GMT'] + date: ['Wed, 15 Apr 2015 20:00:43 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -365,22 +345,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.0b1'] + !!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 '{"entries": [{"role": "moderator", "list_id": - "foo.example.com", "user": "http://localhost:9001/3.0/users/102340090153076935366690295492304488536", - "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "email": - "moderator@example.com", "self_link": "http://localhost:9001/3.0/members/67261536029514454111362639682498065147", - "delivery_mode": "regular", "member_id": 67261536029514454111362639682498065147, - "http_etag": "\"5e65cf14e04602aa1a9d661a3a0b14ee77a20e5f\""}], "start": 0, - "http_etag": "\"f9f164bb85960aa5f62d444495df223e3cf70245\"", "total_size": - 1}'} + body: {string: !!python/unicode '{"http_etag": "\"6dcb366c09097b00549bde66eeb52f0ce1a4ec22\"", + "entries": [{"delivery_mode": "regular", "self_link": "http://localhost:9001/3.0/members/193153637813201025305722262172721795279", + "email": "moderator@example.com", "list_id": "foo.example.com", "user": "http://localhost:9001/3.0/users/313429703557169445575348239981723434246", + "role": "moderator", "http_etag": "\"28617c5a79940598bbb23f35c3f5e46ec6eb6d46\"", + "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "member_id": + 193153637813201025305722262172721795279}], "start": 0, "total_size": 1}'} headers: - content-length: ['576'] + content-length: ['578'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:47 GMT'] + date: ['Wed, 15 Apr 2015 20:00:43 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 b5916ad..48ff9a6 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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:41 GMT'] + date: ['Wed, 15 Apr 2015 20:00:38 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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "base_url": "http://example.com", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'} + body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "description": null, "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:41 GMT'] + date: ['Wed, 15 Apr 2015 20:00: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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:41 GMT'] + date: ['Wed, 15 Apr 2015 20:00:38 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,19 +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.0b1'] + !!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_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "test_list", - "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", "display_name": - "Test_list", "list_id": "test_list.example.com", "fqdn_listname": "test_list@example.com", - "volume": 1, "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "mail_host": "example.com"}'} + body: {string: !!python/unicode '{"fqdn_listname": "test_list@example.com", "list_id": + "test_list.example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", + "list_name": "test_list", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", + "volume": 1, "display_name": "Test_list", "mail_host": "example.com", "member_count": + 0}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:42 GMT'] + date: ['Wed, 15 Apr 2015 20:00:38 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -76,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.0b1'] + !!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_list.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": true, "http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", - "mail-archive": true, "mhonarc": true}'} + body: {string: !!python/unicode '{"http_etag": "\"dfd159ec866aff2f484eb6399b59057ba112d3e5\"", + "prototype": false, "mail-archive": true, "mhonarc": true}'} headers: - content-length: ['119'] + content-length: ['120'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:42 GMT'] + date: ['Wed, 15 Apr 2015 20:00:38 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -93,19 +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.0b1'] + !!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_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "test_list", - "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", "display_name": - "Test_list", "list_id": "test_list.example.com", "fqdn_listname": "test_list@example.com", - "volume": 1, "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "mail_host": "example.com"}'} + body: {string: !!python/unicode '{"fqdn_listname": "test_list@example.com", "list_id": + "test_list.example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", + "list_name": "test_list", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", + "volume": 1, "display_name": "Test_list", "mail_host": "example.com", "member_count": + 0}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:42 GMT'] + date: ['Wed, 15 Apr 2015 20:00:38 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -113,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] 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: ['Tue, 14 Apr 2015 14:06:42 GMT'] + date: ['Wed, 15 Apr 2015 20:00:38 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -129,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: @@ -137,7 +137,7 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:42 GMT'] + date: ['Wed, 15 Apr 2015 20:00:38 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 400, message: Bad Request} - request: @@ -145,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "base_url": "http://example.com", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'} + body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "description": null, "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:42 GMT'] + date: ['Wed, 15 Apr 2015 20:00:38 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -163,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "base_url": "http://example.com", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'} + body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "description": null, "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:42 GMT'] + date: ['Wed, 15 Apr 2015 20:00:38 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -182,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:42 GMT'] + date: ['Wed, 15 Apr 2015 20:00:38 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} @@ -198,19 +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.0b1'] + !!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_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "test_list", - "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", "display_name": - "Test_list", "list_id": "test_list.example.com", "fqdn_listname": "test_list@example.com", - "volume": 1, "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "mail_host": "example.com"}'} + body: {string: !!python/unicode '{"fqdn_listname": "test_list@example.com", "list_id": + "test_list.example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", + "list_name": "test_list", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", + "volume": 1, "display_name": "Test_list", "mail_host": "example.com", "member_count": + 0}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:42 GMT'] + date: ['Wed, 15 Apr 2015 20:00:38 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -218,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.0b1'] + !!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_list.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": true, "http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", - "mail-archive": true, "mhonarc": true}'} + body: {string: !!python/unicode '{"http_etag": "\"dfd159ec866aff2f484eb6399b59057ba112d3e5\"", + "prototype": false, "mail-archive": true, "mhonarc": true}'} headers: - content-length: ['119'] + content-length: ['120'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:42 GMT'] + date: ['Wed, 15 Apr 2015 20:00:38 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -235,19 +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.0b1'] + !!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_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "test_list", - "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", "display_name": - "Test_list", "list_id": "test_list.example.com", "fqdn_listname": "test_list@example.com", - "volume": 1, "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "mail_host": "example.com"}'} + body: {string: !!python/unicode '{"fqdn_listname": "test_list@example.com", "list_id": + "test_list.example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", + "list_name": "test_list", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", + "volume": 1, "display_name": "Test_list", "mail_host": "example.com", "member_count": + 0}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:42 GMT'] + date: ['Wed, 15 Apr 2015 20:00:38 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -255,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] 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: ['Tue, 14 Apr 2015 14:06:42 GMT'] + date: ['Wed, 15 Apr 2015 20:00:38 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -271,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: @@ -279,7 +279,7 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:42 GMT'] + date: ['Wed, 15 Apr 2015 20:00:39 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 400, message: Bad Request} - request: @@ -287,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "base_url": "http://example.com", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'} + body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "description": null, "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:42 GMT'] + date: ['Wed, 15 Apr 2015 20:00:39 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -305,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "base_url": "http://example.com", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'} + body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "description": null, "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:42 GMT'] + date: ['Wed, 15 Apr 2015 20:00:39 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -324,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:42 GMT'] + date: ['Wed, 15 Apr 2015 20:00:39 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} @@ -340,19 +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.0b1'] + !!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_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "test_list", - "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", "display_name": - "Test_list", "list_id": "test_list.example.com", "fqdn_listname": "test_list@example.com", - "volume": 1, "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "mail_host": "example.com"}'} + body: {string: !!python/unicode '{"fqdn_listname": "test_list@example.com", "list_id": + "test_list.example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", + "list_name": "test_list", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", + "volume": 1, "display_name": "Test_list", "mail_host": "example.com", "member_count": + 0}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:43 GMT'] + date: ['Wed, 15 Apr 2015 20:00:39 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -360,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.0b1'] + !!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_list.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": true, "http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", - "mail-archive": true, "mhonarc": true}'} + body: {string: !!python/unicode '{"http_etag": "\"dfd159ec866aff2f484eb6399b59057ba112d3e5\"", + "prototype": false, "mail-archive": true, "mhonarc": true}'} headers: - content-length: ['119'] + content-length: ['120'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:43 GMT'] + date: ['Wed, 15 Apr 2015 20:00:39 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -377,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] 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: ['Tue, 14 Apr 2015 14:06:43 GMT'] + date: ['Wed, 15 Apr 2015 20:00: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_archival_options_disable_archiver.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_archival_options_disable_archiver.yaml index e455df6..6dc1011 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,19 +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.0b1'] + !!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_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "test_list", - "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", "display_name": - "Test_list", "list_id": "test_list.example.com", "fqdn_listname": "test_list@example.com", - "volume": 1, "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "mail_host": "example.com"}'} + body: {string: !!python/unicode '{"fqdn_listname": "test_list@example.com", "list_id": + "test_list.example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", + "list_name": "test_list", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", + "volume": 1, "display_name": "Test_list", "mail_host": "example.com", "member_count": + 0}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:43 GMT'] + date: ['Wed, 15 Apr 2015 20:00:39 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -24,32 +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.0b1'] + !!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_list.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": true, "http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", - "mail-archive": true, "mhonarc": true}'} + body: {string: !!python/unicode '{"http_etag": "\"dfd159ec866aff2f484eb6399b59057ba112d3e5\"", + "prototype": false, "mail-archive": true, "mhonarc": true}'} headers: - content-length: ['119'] + content-length: ['120'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:43 GMT'] + date: ['Wed, 15 Apr 2015 20:00:39 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: - body: mail-archive=False&prototype=True&mhonarc=True + body: mhonarc=True&mail-archive=True&prototype=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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] 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: ['Tue, 14 Apr 2015 14:06:43 GMT'] + date: ['Wed, 15 Apr 2015 20:00:39 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 204, message: No Content} +- request: + body: mhonarc=True&mail-archive=False&prototype=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'] + method: !!python/unicode 'PUT' + uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Wed, 15 Apr 2015 20:00:39 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -57,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.0b1'] + !!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_list.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": true, "http_etag": "\"9f3e82fa9d7dc70277565c9703a90ad3fbeb9a03\"", - "mail-archive": false, "mhonarc": true}'} + body: {string: !!python/unicode '{"http_etag": "\"95f97f6e3c57d856b8048a96844ddc64a972f96d\"", + "prototype": false, "mail-archive": false, "mhonarc": true}'} headers: - content-length: ['120'] + content-length: ['121'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:43 GMT'] + date: ['Wed, 15 Apr 2015 20:00:39 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -74,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.0b1'] + !!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_list.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": true, "http_etag": "\"9f3e82fa9d7dc70277565c9703a90ad3fbeb9a03\"", - "mail-archive": false, "mhonarc": true}'} + body: {string: !!python/unicode '{"http_etag": "\"95f97f6e3c57d856b8048a96844ddc64a972f96d\"", + "prototype": false, "mail-archive": false, "mhonarc": true}'} headers: - content-length: ['120'] + content-length: ['121'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:43 GMT'] + date: ['Wed, 15 Apr 2015 20:00:39 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 c02e539..5d4b0ad 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,19 +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.0b1'] + !!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_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "test_list", - "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", "display_name": - "Test_list", "list_id": "test_list.example.com", "fqdn_listname": "test_list@example.com", - "volume": 1, "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "mail_host": "example.com"}'} + body: {string: !!python/unicode '{"fqdn_listname": "test_list@example.com", "list_id": + "test_list.example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", + "list_name": "test_list", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", + "volume": 1, "display_name": "Test_list", "mail_host": "example.com", "member_count": + 0}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:43 GMT'] + date: ['Wed, 15 Apr 2015 20:00:39 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -24,81 +24,65 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + !!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_list.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": true, "http_etag": "\"9f3e82fa9d7dc70277565c9703a90ad3fbeb9a03\"", - "mail-archive": false, "mhonarc": true}'} - headers: - content-length: ['120'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:43 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: mail-archive=True&prototype=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.0b1'] - 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: ['Tue, 14 Apr 2015 14:06:43 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 204, message: No Content} -- request: - body: mail-archive=True&prototype=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.0b1'] - 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: ['Tue, 14 Apr 2015 14:06:43 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 204, message: No Content} -- request: - body: mail-archive=True&prototype=False&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.0b1'] - 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: ['Tue, 14 Apr 2015 14:06:43 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers - response: - body: {string: !!python/unicode '{"prototype": false, "http_etag": "\"de68e13c430d856461d2b39a5b5d5286d91528bc\"", - "mail-archive": true, "mhonarc": false}'} + body: {string: !!python/unicode '{"http_etag": "\"95f97f6e3c57d856b8048a96844ddc64a972f96d\"", + "prototype": false, "mail-archive": false, "mhonarc": true}'} headers: content-length: ['121'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:43 GMT'] + date: ['Wed, 15 Apr 2015 20:00:39 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: mhonarc=True&mail-archive=True&prototype=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'] + method: !!python/unicode 'PUT' + uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Wed, 15 Apr 2015 20:00:39 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 204, message: No Content} +- request: + body: mhonarc=False&mail-archive=True&prototype=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'] + method: !!python/unicode 'PUT' + uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Wed, 15 Apr 2015 20:00:39 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers + response: + body: {string: !!python/unicode '{"http_etag": "\"de68e13c430d856461d2b39a5b5d5286d91528bc\"", + "prototype": false, "mail-archive": true, "mhonarc": false}'} + headers: + content-length: ['121'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 15 Apr 2015 20:00:39 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -106,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.0b1'] + !!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_list.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": false, "http_etag": "\"de68e13c430d856461d2b39a5b5d5286d91528bc\"", - "mail-archive": true, "mhonarc": false}'} + body: {string: !!python/unicode '{"http_etag": "\"de68e13c430d856461d2b39a5b5d5286d91528bc\"", + "prototype": false, "mail-archive": true, "mhonarc": false}'} headers: content-length: ['121'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:43 GMT'] + date: ['Wed, 15 Apr 2015 20:00:39 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 226166b..8ae0e42 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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: @@ -13,7 +13,7 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:52 GMT'] + date: ['Wed, 15 Apr 2015 20:00: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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "base_url": "http://example.com", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'} + body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "description": null, "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:52 GMT'] + date: ['Wed, 15 Apr 2015 20:00:48 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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"description": null, "base_url": - "http://example.com", "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}], - "start": 0, "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", "total_size": - 1}'} + body: {string: !!python/unicode '{"http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", + "entries": [{"self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "description": null, "url_host": "example.com"}], + "start": 0, "total_size": 1}'} headers: content-length: ['338'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:52 GMT'] + date: ['Wed, 15 Apr 2015 20:00:48 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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "base_url": "http://example.com", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'} + body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "description": null, "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:52 GMT'] + date: ['Wed, 15 Apr 2015 20:00:48 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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "base_url": "http://example.com", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'} + body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "description": null, "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:52 GMT'] + date: ['Wed, 15 Apr 2015 20:00:48 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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "base_url": "http://example.com", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'} + body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "description": null, "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:52 GMT'] + date: ['Wed, 15 Apr 2015 20:00:48 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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:52 GMT'] + date: ['Wed, 15 Apr 2015 20:00:48 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,36 +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.0b1'] + !!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 '{"member_count": 0, "list_name": "a_new_list", - "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", "display_name": - "A_new_list", "list_id": "a_new_list.example.com", "fqdn_listname": "a_new_list@example.com", - "volume": 1, "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"", - "mail_host": "example.com"}'} + body: {string: !!python/unicode '{"fqdn_listname": "a_new_list@example.com", "list_id": + "a_new_list.example.com", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"", + "list_name": "a_new_list", "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", + "volume": 1, "display_name": "A_new_list", "mail_host": "example.com", "member_count": + 0}'} headers: content-length: ['329'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:52 GMT'] + date: ['Wed, 15 Apr 2015 20:00:48 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: subscriber=owner%40example.com&list_id=a_new_list.example.com&role=owner 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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:52 GMT'] - location: ['http://localhost:9001/3.0/members/62510532662650498796290941282904599479'] + date: ['Wed, 15 Apr 2015 20:00:48 GMT'] + location: ['http://localhost:9001/3.0/members/334326661981448123324369958221998209208'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 201, message: Created} - request: @@ -167,50 +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.0b1'] + !!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/config response: - body: {string: !!python/unicode '{"autoresponse_grace_period": "90d", "posting_pipeline": - "default-posting-pipeline", "default_member_action": "defer", "list_name": - "a_new_list", "send_welcome_message": true, "digest_last_sent_at": null, "mail_host": - "example.com", "volume": 1, "no_reply_address": "noreply@example.com", "autoresponse_owner_text": - "", "anonymous_list": false, "admin_immed_notify": true, "reply_to_address": - "", "join_address": "a_new_list-join@example.com", "request_address": "a_new_list-request@example.com", - "digest_size_threshold": 30.0, "autorespond_requests": "none", "welcome_message_uri": - "mailman:///welcome.txt", "acceptable_aliases": [], "leave_address": "a_new_list-leave@example.com", - "archive_policy": "public", "admin_notify_mchanges": false, "administrivia": - true, "scheme": "http", "subject_prefix": "[A_new_list] ", "filter_content": - false, "last_post_at": null, "owner_address": "a_new_list-owner@example.com", - "http_etag": "\"d56583816b2b023d4db11ba39c82fc4be4e6f9c7\"", "autoresponse_postings_text": - "", "description": "", "autorespond_owner": "none", "bounces_address": "a_new_list-bounces@example.com", - "allow_list_posts": true, "include_rfc2369_headers": true, "collapse_alternatives": - true, "autoresponse_request_text": "", "advertised": true, "web_host": "example.com", - "display_name": "A_new_list", "fqdn_listname": "a_new_list@example.com", "next_digest_number": - 1, "created_at": "2015-04-14T14:06:52.775442", "autorespond_postings": "none", - "convert_html_to_plaintext": false, "post_id": 1, "first_strip_reply_to": - false, "default_nonmember_action": "hold", "reply_goes_to_list": "no_munging", - "posting_address": "a_new_list@example.com"}'} + body: {string: !!python/unicode '{"request_address": "a_new_list-request@example.com", + "web_host": "example.com", "digest_last_sent_at": null, "posting_address": + "a_new_list@example.com", "reply_to_address": "", "digest_size_threshold": + 30.0, "admin_notify_mchanges": false, "scheme": "http", "autorespond_owner": + "none", "send_welcome_message": true, "fqdn_listname": "a_new_list@example.com", + "http_etag": "\"2c436b0bb4e5b3e256976cceb9890f61e0324649\"", "admin_immed_notify": + true, "owner_address": "a_new_list-owner@example.com", "convert_html_to_plaintext": + false, "autorespond_requests": "none", "list_name": "a_new_list", "autoresponse_postings_text": + "", "post_id": 1, "volume": 1, "include_rfc2369_headers": true, "first_strip_reply_to": + false, "subscription_policy": "confirm", "description": "", "default_member_action": + "defer", "bounces_address": "a_new_list-bounces@example.com", "join_address": + "a_new_list-join@example.com", "autoresponse_grace_period": "90d", "anonymous_list": + false, "default_nonmember_action": "hold", "acceptable_aliases": [], "advertised": + true, "display_name": "A_new_list", "posting_pipeline": "default-posting-pipeline", + "filter_content": false, "last_post_at": null, "leave_address": "a_new_list-leave@example.com", + "no_reply_address": "noreply@example.com", "created_at": "2015-04-15T20:00:48.758263", + "subject_prefix": "[A_new_list] ", "autoresponse_request_text": "", "administrivia": + true, "reply_goes_to_list": "no_munging", "next_digest_number": 1, "collapse_alternatives": + true, "archive_policy": "public", "welcome_message_uri": "mailman:///welcome.txt", + "mail_host": "example.com", "autoresponse_owner_text": "", "allow_list_posts": + true, "autorespond_postings": "none"}'} headers: - content-length: ['1653'] + content-length: ['1687'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:52 GMT'] + date: ['Wed, 15 Apr 2015 20:00:48 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: - body: autorespond_owner=none&default_member_action=defer&first_strip_reply_to=False&allow_list_posts=True&reply_to_address=&default_nonmember_action=hold&convert_html_to_plaintext=False&posting_pipeline=default-posting-pipeline&autoresponse_postings_text=&description=A+new+list.&admin_notify_mchanges=False&administrivia=True&admin_immed_notify=True&archive_policy=public&autoresponse_owner_text=&display_name=A_new_list&autorespond_postings=none&autorespond_requests=none&digest_size_threshold=30.0&advertised=True&autoresponse_grace_period=90d&collapse_alternatives=True&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&reply_goes_to_list=no_munging&subject_prefix=%5BA_new_list%5D+&anonymous_list=False&send_welcome_message=True&autoresponse_request_text=&include_rfc2369_headers=True&filter_content=False + body: convert_html_to_plaintext=False&autoresponse_postings_text=&send_welcome_message=True&autorespond_requests=none&display_name=A_new_list&autorespond_postings=none&filter_content=False&reply_goes_to_list=no_munging&admin_notify_mchanges=False&default_member_action=defer&first_strip_reply_to=False&autoresponse_grace_period=90d&reply_to_address=&autoresponse_owner_text=&description=A+new+list.&archive_policy=public&anonymous_list=False&digest_size_threshold=30.0&advertised=True&autoresponse_request_text=&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&include_rfc2369_headers=True&allow_list_posts=True&admin_immed_notify=True&subject_prefix=%5BA_new_list%5D+&autorespond_owner=none&collapse_alternatives=True&default_nonmember_action=hold&subscription_policy=confirm&posting_pipeline=default-posting-pipeline&administrivia=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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] 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: ['Tue, 14 Apr 2015 14:06:52 GMT'] + date: ['Wed, 15 Apr 2015 20:00:48 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -218,19 +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.0b1'] + !!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 '{"member_count": 0, "list_name": "a_new_list", - "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", "display_name": - "A_new_list", "list_id": "a_new_list.example.com", "fqdn_listname": "a_new_list@example.com", - "volume": 1, "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"", - "mail_host": "example.com"}'} + body: {string: !!python/unicode '{"fqdn_listname": "a_new_list@example.com", "list_id": + "a_new_list.example.com", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"", + "list_name": "a_new_list", "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", + "volume": 1, "display_name": "A_new_list", "mail_host": "example.com", "member_count": + 0}'} headers: content-length: ['329'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:52 GMT'] + date: ['Wed, 15 Apr 2015 20:00:48 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -238,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.0b1'] + !!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/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"role": "owner", "list_id": "a_new_list.example.com", - "user": "http://localhost:9001/3.0/users/178875461469610954400218294698080347713", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "email": - "owner@example.com", "self_link": "http://localhost:9001/3.0/members/62510532662650498796290941282904599479", - "delivery_mode": "regular", "member_id": 62510532662650498796290941282904599479, - "http_etag": "\"15b28e87a2d11e7d8d923d9a50a349d815730fa0\""}], "start": 0, - "http_etag": "\"7ad82abf9abd09e5998829f78a4be299096ba8a5\"", "total_size": - 1}'} + body: {string: !!python/unicode '{"http_etag": "\"3759623188199673e6694d21f0003f1e64651318\"", + "entries": [{"delivery_mode": "regular", "self_link": "http://localhost:9001/3.0/members/334326661981448123324369958221998209208", + "email": "owner@example.com", "list_id": "a_new_list.example.com", "user": + "http://localhost:9001/3.0/users/117102017827318954078289964069449293796", + "role": "owner", "http_etag": "\"b5c1302df79cb187a3bc0a7898edb19a3ec4d008\"", + "address": "http://localhost:9001/3.0/addresses/owner@example.com", "member_id": + 334326661981448123324369958221998209208}], "start": 0, "total_size": 1}'} headers: - content-length: ['571'] + content-length: ['573'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:53 GMT'] + date: ['Wed, 15 Apr 2015 20:00:48 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -261,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists response: - body: {string: !!python/unicode '{"entries": [{"member_count": 0, "list_name": + body: {string: !!python/unicode '{"http_etag": "\"dee96dcb9d3f736cc6fa170baeea8f879d7db6f0\"", + "entries": [{"fqdn_listname": "a_new_list@example.com", "list_id": "a_new_list.example.com", + "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"", "list_name": "a_new_list", "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", - "display_name": "A_new_list", "list_id": "a_new_list.example.com", "fqdn_listname": - "a_new_list@example.com", "volume": 1, "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"", - "mail_host": "example.com"}], "start": 0, "http_etag": "\"dee96dcb9d3f736cc6fa170baeea8f879d7db6f0\"", - "total_size": 1}'} + "volume": 1, "display_name": "A_new_list", "mail_host": "example.com", "member_count": + 0}], "start": 0, "total_size": 1}'} headers: content-length: ['434'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:53 GMT'] + date: ['Wed, 15 Apr 2015 20:00:49 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -282,19 +282,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.0b1'] + !!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 '{"member_count": 0, "list_name": "a_new_list", - "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", "display_name": - "A_new_list", "list_id": "a_new_list.example.com", "fqdn_listname": "a_new_list@example.com", - "volume": 1, "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"", - "mail_host": "example.com"}'} + body: {string: !!python/unicode '{"fqdn_listname": "a_new_list@example.com", "list_id": + "a_new_list.example.com", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"", + "list_name": "a_new_list", "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", + "volume": 1, "display_name": "A_new_list", "mail_host": "example.com", "member_count": + 0}'} headers: content-length: ['329'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:53 GMT'] + date: ['Wed, 15 Apr 2015 20:00:49 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -302,14 +302,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] 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: ['Tue, 14 Apr 2015 14:06:53 GMT'] + date: ['Wed, 15 Apr 2015 20:00:49 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -318,7 +318,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: @@ -326,7 +326,7 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:53 GMT'] + date: ['Wed, 15 Apr 2015 20:00:49 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 400, message: Bad Request} - request: @@ -334,17 +334,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "base_url": "http://example.com", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'} + body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "description": null, "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:53 GMT'] + date: ['Wed, 15 Apr 2015 20:00:49 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -352,16 +352,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:53 GMT'] + date: ['Wed, 15 Apr 2015 20:00:49 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 cb45519..ef33473 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_index.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_index.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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: @@ -13,7 +13,7 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:52 GMT'] + date: ['Wed, 15 Apr 2015 20:00: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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "base_url": "http://example.com", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'} + body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "description": null, "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:52 GMT'] + date: ['Wed, 15 Apr 2015 20:00: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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "base_url": "http://example.com", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'} + body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "description": null, "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:52 GMT'] + date: ['Wed, 15 Apr 2015 20:00:48 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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:52 GMT'] + date: ['Wed, 15 Apr 2015 20:00: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} @@ -74,20 +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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists response: - body: {string: !!python/unicode '{"entries": [{"member_count": 0, "list_name": - "foo", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "volume": - 1, "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "mail_host": - "example.com"}], "start": 0, "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", - "total_size": 1}'} + body: {string: !!python/unicode '{"http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "entries": [{"fqdn_listname": "foo@example.com", "list_id": "foo.example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_name": + "foo", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "display_name": "Foo", "mail_host": "example.com", "member_count": 0}], + "start": 0, "total_size": 1}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:52 GMT'] + date: ['Wed, 15 Apr 2015 20:00:48 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -95,19 +95,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.0b1'] + !!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 '{"member_count": 0, "list_name": "foo", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "display_name": "Foo", - "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "volume": - 1, "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "mail_host": - "example.com"}'} + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "list_id": + "foo.example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_name": "foo", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1, "display_name": "Foo", "mail_host": "example.com", "member_count": + 0}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:52 GMT'] + date: ['Wed, 15 Apr 2015 20:00:48 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -115,34 +115,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.0b1'] + !!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 '{"autoresponse_grace_period": "90d", "posting_pipeline": - "default-posting-pipeline", "default_member_action": "defer", "list_name": - "foo", "send_welcome_message": true, "digest_last_sent_at": null, "mail_host": - "example.com", "volume": 1, "no_reply_address": "noreply@example.com", "autoresponse_owner_text": - "", "anonymous_list": false, "admin_immed_notify": true, "reply_to_address": - "", "join_address": "foo-join@example.com", "request_address": "foo-request@example.com", - "digest_size_threshold": 30.0, "autorespond_requests": "none", "welcome_message_uri": - "mailman:///welcome.txt", "acceptable_aliases": [], "leave_address": "foo-leave@example.com", - "archive_policy": "public", "admin_notify_mchanges": false, "administrivia": - true, "scheme": "http", "subject_prefix": "[Foo] ", "filter_content": false, - "last_post_at": null, "owner_address": "foo-owner@example.com", "http_etag": - "\"ae6c84dec722989ae0bf97b03c6651ada1095af9\"", "autoresponse_postings_text": - "", "description": "", "autorespond_owner": "none", "bounces_address": "foo-bounces@example.com", - "allow_list_posts": true, "include_rfc2369_headers": true, "collapse_alternatives": - true, "autoresponse_request_text": "", "advertised": true, "web_host": "example.com", - "display_name": "Foo", "fqdn_listname": "foo@example.com", "next_digest_number": - 1, "created_at": "2015-04-14T14:06:52.236679", "autorespond_postings": "none", - "convert_html_to_plaintext": false, "post_id": 1, "first_strip_reply_to": - false, "default_nonmember_action": "hold", "reply_goes_to_list": "no_munging", - "posting_address": "foo@example.com"}'} + body: {string: !!python/unicode '{"request_address": "foo-request@example.com", + "web_host": "example.com", "digest_last_sent_at": null, "posting_address": + "foo@example.com", "reply_to_address": "", "digest_size_threshold": 30.0, + "admin_notify_mchanges": false, "scheme": "http", "autorespond_owner": "none", + "send_welcome_message": true, "fqdn_listname": "foo@example.com", "http_etag": + "\"364934c1f57eb144f582394c473883804a69ade5\"", "admin_immed_notify": true, + "owner_address": "foo-owner@example.com", "convert_html_to_plaintext": false, + "autorespond_requests": "none", "list_name": "foo", "autoresponse_postings_text": + "", "post_id": 1, "volume": 1, "include_rfc2369_headers": true, "first_strip_reply_to": + false, "subscription_policy": "confirm", "description": "", "default_member_action": + "defer", "bounces_address": "foo-bounces@example.com", "join_address": "foo-join@example.com", + "autoresponse_grace_period": "90d", "anonymous_list": false, "default_nonmember_action": + "hold", "acceptable_aliases": [], "advertised": true, "display_name": "Foo", + "posting_pipeline": "default-posting-pipeline", "filter_content": false, "last_post_at": + null, "leave_address": "foo-leave@example.com", "no_reply_address": "noreply@example.com", + "created_at": "2015-04-15T20:00:48.209721", "subject_prefix": "[Foo] ", "autoresponse_request_text": + "", "administrivia": true, "reply_goes_to_list": "no_munging", "next_digest_number": + 1, "collapse_alternatives": true, "archive_policy": "public", "welcome_message_uri": + "mailman:///welcome.txt", "mail_host": "example.com", "autoresponse_owner_text": + "", "allow_list_posts": true, "autorespond_postings": "none"}'} headers: - content-length: ['1583'] + content-length: ['1617'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:52 GMT'] + date: ['Wed, 15 Apr 2015 20:00:48 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -150,19 +150,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"description": null, "base_url": - "http://example.com", "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}], - "start": 0, "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", "total_size": - 1}'} + body: {string: !!python/unicode '{"http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", + "entries": [{"self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "description": null, "url_host": "example.com"}], + "start": 0, "total_size": 1}'} headers: content-length: ['338'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:52 GMT'] + date: ['Wed, 15 Apr 2015 20:00:48 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -170,17 +170,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "base_url": "http://example.com", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'} + body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "description": null, "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:52 GMT'] + date: ['Wed, 15 Apr 2015 20:00:48 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -188,34 +188,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.0b1'] + !!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 '{"autoresponse_grace_period": "90d", "posting_pipeline": - "default-posting-pipeline", "default_member_action": "defer", "list_name": - "foo", "send_welcome_message": true, "digest_last_sent_at": null, "mail_host": - "example.com", "volume": 1, "no_reply_address": "noreply@example.com", "autoresponse_owner_text": - "", "anonymous_list": false, "admin_immed_notify": true, "reply_to_address": - "", "join_address": "foo-join@example.com", "request_address": "foo-request@example.com", - "digest_size_threshold": 30.0, "autorespond_requests": "none", "welcome_message_uri": - "mailman:///welcome.txt", "acceptable_aliases": [], "leave_address": "foo-leave@example.com", - "archive_policy": "public", "admin_notify_mchanges": false, "administrivia": - true, "scheme": "http", "subject_prefix": "[Foo] ", "filter_content": false, - "last_post_at": null, "owner_address": "foo-owner@example.com", "http_etag": - "\"ae6c84dec722989ae0bf97b03c6651ada1095af9\"", "autoresponse_postings_text": - "", "description": "", "autorespond_owner": "none", "bounces_address": "foo-bounces@example.com", - "allow_list_posts": true, "include_rfc2369_headers": true, "collapse_alternatives": - true, "autoresponse_request_text": "", "advertised": true, "web_host": "example.com", - "display_name": "Foo", "fqdn_listname": "foo@example.com", "next_digest_number": - 1, "created_at": "2015-04-14T14:06:52.236679", "autorespond_postings": "none", - "convert_html_to_plaintext": false, "post_id": 1, "first_strip_reply_to": - false, "default_nonmember_action": "hold", "reply_goes_to_list": "no_munging", - "posting_address": "foo@example.com"}'} + body: {string: !!python/unicode '{"request_address": "foo-request@example.com", + "web_host": "example.com", "digest_last_sent_at": null, "posting_address": + "foo@example.com", "reply_to_address": "", "digest_size_threshold": 30.0, + "admin_notify_mchanges": false, "scheme": "http", "autorespond_owner": "none", + "send_welcome_message": true, "fqdn_listname": "foo@example.com", "http_etag": + "\"364934c1f57eb144f582394c473883804a69ade5\"", "admin_immed_notify": true, + "owner_address": "foo-owner@example.com", "convert_html_to_plaintext": false, + "autorespond_requests": "none", "list_name": "foo", "autoresponse_postings_text": + "", "post_id": 1, "volume": 1, "include_rfc2369_headers": true, "first_strip_reply_to": + false, "subscription_policy": "confirm", "description": "", "default_member_action": + "defer", "bounces_address": "foo-bounces@example.com", "join_address": "foo-join@example.com", + "autoresponse_grace_period": "90d", "anonymous_list": false, "default_nonmember_action": + "hold", "acceptable_aliases": [], "advertised": true, "display_name": "Foo", + "posting_pipeline": "default-posting-pipeline", "filter_content": false, "last_post_at": + null, "leave_address": "foo-leave@example.com", "no_reply_address": "noreply@example.com", + "created_at": "2015-04-15T20:00:48.209721", "subject_prefix": "[Foo] ", "autoresponse_request_text": + "", "administrivia": true, "reply_goes_to_list": "no_munging", "next_digest_number": + 1, "collapse_alternatives": true, "archive_policy": "public", "welcome_message_uri": + "mailman:///welcome.txt", "mail_host": "example.com", "autoresponse_owner_text": + "", "allow_list_posts": true, "autorespond_postings": "none"}'} headers: - content-length: ['1583'] + content-length: ['1617'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:52 GMT'] + date: ['Wed, 15 Apr 2015 20:00:48 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -223,20 +223,55 @@ headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + !!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 '{"request_address": "foo-request@example.com", + "web_host": "example.com", "digest_last_sent_at": null, "posting_address": + "foo@example.com", "reply_to_address": "", "digest_size_threshold": 30.0, + "admin_notify_mchanges": false, "scheme": "http", "autorespond_owner": "none", + "send_welcome_message": true, "fqdn_listname": "foo@example.com", "http_etag": + "\"364934c1f57eb144f582394c473883804a69ade5\"", "admin_immed_notify": true, + "owner_address": "foo-owner@example.com", "convert_html_to_plaintext": false, + "autorespond_requests": "none", "list_name": "foo", "autoresponse_postings_text": + "", "post_id": 1, "volume": 1, "include_rfc2369_headers": true, "first_strip_reply_to": + false, "subscription_policy": "confirm", "description": "", "default_member_action": + "defer", "bounces_address": "foo-bounces@example.com", "join_address": "foo-join@example.com", + "autoresponse_grace_period": "90d", "anonymous_list": false, "default_nonmember_action": + "hold", "acceptable_aliases": [], "advertised": true, "display_name": "Foo", + "posting_pipeline": "default-posting-pipeline", "filter_content": false, "last_post_at": + null, "leave_address": "foo-leave@example.com", "no_reply_address": "noreply@example.com", + "created_at": "2015-04-15T20:00:48.209721", "subject_prefix": "[Foo] ", "autoresponse_request_text": + "", "administrivia": true, "reply_goes_to_list": "no_munging", "next_digest_number": + 1, "collapse_alternatives": true, "archive_policy": "public", "welcome_message_uri": + "mailman:///welcome.txt", "mail_host": "example.com", "autoresponse_owner_text": + "", "allow_list_posts": true, "autorespond_postings": "none"}'} + headers: + content-length: ['1617'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 15 Apr 2015 20:00:48 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists response: - body: {string: !!python/unicode '{"entries": [{"member_count": 0, "list_name": - "foo", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "volume": - 1, "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "mail_host": - "example.com"}], "start": 0, "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", - "total_size": 1}'} + body: {string: !!python/unicode '{"http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "entries": [{"fqdn_listname": "foo@example.com", "list_id": "foo.example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_name": + "foo", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "display_name": "Foo", "mail_host": "example.com", "member_count": 0}], + "start": 0, "total_size": 1}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:52 GMT'] + date: ['Wed, 15 Apr 2015 20:00:48 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -244,19 +279,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.0b1'] + !!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 '{"member_count": 0, "list_name": "foo", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "display_name": "Foo", - "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "volume": - 1, "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "mail_host": - "example.com"}'} + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "list_id": + "foo.example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_name": "foo", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1, "display_name": "Foo", "mail_host": "example.com", "member_count": + 0}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:52 GMT'] + date: ['Wed, 15 Apr 2015 20:00:48 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -264,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:52 GMT'] + date: ['Wed, 15 Apr 2015 20:00: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 b85e861..8c90c88 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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: @@ -13,7 +13,7 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:44 GMT'] + date: ['Wed, 15 Apr 2015 20:00: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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "base_url": "http://example.com", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'} + body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "description": null, "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:44 GMT'] + date: ['Wed, 15 Apr 2015 20:00: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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "base_url": "http://example.com", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'} + body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "description": null, "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:44 GMT'] + date: ['Wed, 15 Apr 2015 20:00: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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:44 GMT'] + date: ['Wed, 15 Apr 2015 20:00: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,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.0b1'] + !!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 '{"member_count": 0, "list_name": "foo", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "display_name": "Foo", - "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "volume": - 1, "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "mail_host": - "example.com"}'} + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "list_id": + "foo.example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_name": "foo", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1, "display_name": "Foo", "mail_host": "example.com", "member_count": + 0}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:44 GMT'] + date: ['Wed, 15 Apr 2015 20:00:40 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -94,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.0b1'] + !!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 '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:44 GMT'] + date: ['Wed, 15 Apr 2015 20:00:40 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -111,16 +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.0b1'] + !!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 '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:44 GMT'] + date: ['Wed, 15 Apr 2015 20:00:40 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -128,33 +128,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.0b1'] + !!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 '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:44 GMT'] + date: ['Wed, 15 Apr 2015 20:00:40 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: subscriber=newmod%40example.com&list_id=foo.example.com&role=moderator 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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:44 GMT'] - location: ['http://localhost:9001/3.0/members/274541781880759373564792719108067801770'] + date: ['Wed, 15 Apr 2015 20:00:40 GMT'] + location: ['http://localhost:9001/3.0/members/77877321659467212687479413596598956489'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 201, message: Created} - request: @@ -162,16 +162,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.0b1'] + !!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 '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:44 GMT'] + date: ['Wed, 15 Apr 2015 20:00:40 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -179,22 +179,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.0b1'] + !!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 '{"entries": [{"role": "moderator", "list_id": - "foo.example.com", "user": "http://localhost:9001/3.0/users/231165929708843504225352718616360464134", - "address": "http://localhost:9001/3.0/addresses/newmod@example.com", "email": - "newmod@example.com", "self_link": "http://localhost:9001/3.0/members/274541781880759373564792719108067801770", - "delivery_mode": "regular", "member_id": 274541781880759373564792719108067801770, - "http_etag": "\"89c2c4ed31180b18d947ae021b6fabd6ea700e9b\""}], "start": 0, - "http_etag": "\"bd900e3980bfd813509473d69dba9ca8b428bd3a\"", "total_size": - 1}'} + body: {string: !!python/unicode '{"http_etag": "\"fbf6bcd8ca1197bca59d957ecd23dcb9ef1c37de\"", + "entries": [{"delivery_mode": "regular", "self_link": "http://localhost:9001/3.0/members/77877321659467212687479413596598956489", + "email": "newmod@example.com", "list_id": "foo.example.com", "user": "http://localhost:9001/3.0/users/280696364750368978857520113682724449041", + "role": "moderator", "http_etag": "\"87c931801634d83cddd530b9f55873f04b7d1820\"", + "address": "http://localhost:9001/3.0/addresses/newmod@example.com", "member_id": + 77877321659467212687479413596598956489}], "start": 0, "total_size": 1}'} headers: - content-length: ['572'] + content-length: ['570'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:44 GMT'] + date: ['Wed, 15 Apr 2015 20:00:40 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -202,22 +200,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.0b1'] + !!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 '{"entries": [{"role": "moderator", "list_id": - "foo.example.com", "user": "http://localhost:9001/3.0/users/231165929708843504225352718616360464134", - "address": "http://localhost:9001/3.0/addresses/newmod@example.com", "email": - "newmod@example.com", "self_link": "http://localhost:9001/3.0/members/274541781880759373564792719108067801770", - "delivery_mode": "regular", "member_id": 274541781880759373564792719108067801770, - "http_etag": "\"89c2c4ed31180b18d947ae021b6fabd6ea700e9b\""}], "start": 0, - "http_etag": "\"bd900e3980bfd813509473d69dba9ca8b428bd3a\"", "total_size": - 1}'} + body: {string: !!python/unicode '{"http_etag": "\"fbf6bcd8ca1197bca59d957ecd23dcb9ef1c37de\"", + "entries": [{"delivery_mode": "regular", "self_link": "http://localhost:9001/3.0/members/77877321659467212687479413596598956489", + "email": "newmod@example.com", "list_id": "foo.example.com", "user": "http://localhost:9001/3.0/users/280696364750368978857520113682724449041", + "role": "moderator", "http_etag": "\"87c931801634d83cddd530b9f55873f04b7d1820\"", + "address": "http://localhost:9001/3.0/addresses/newmod@example.com", "member_id": + 77877321659467212687479413596598956489}], "start": 0, "total_size": 1}'} headers: - content-length: ['572'] + content-length: ['570'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:44 GMT'] + date: ['Wed, 15 Apr 2015 20:00:40 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -225,19 +221,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.0b1'] + !!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 '{"member_count": 0, "list_name": "foo", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "display_name": "Foo", - "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "volume": - 1, "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "mail_host": - "example.com"}'} + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "list_id": + "foo.example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_name": "foo", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1, "display_name": "Foo", "mail_host": "example.com", "member_count": + 0}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:44 GMT'] + date: ['Wed, 15 Apr 2015 20:00:40 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -245,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:44 GMT'] + date: ['Wed, 15 Apr 2015 20:00:40 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 fec1a5b..a80c901 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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: @@ -13,7 +13,7 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:44 GMT'] + date: ['Wed, 15 Apr 2015 20:00: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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "base_url": "http://example.com", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'} + body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "description": null, "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:44 GMT'] + date: ['Wed, 15 Apr 2015 20:00: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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "base_url": "http://example.com", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'} + body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "description": null, "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:44 GMT'] + date: ['Wed, 15 Apr 2015 20:00: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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:44 GMT'] + date: ['Wed, 15 Apr 2015 20:00:41 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,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.0b1'] + !!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 '{"member_count": 0, "list_name": "foo", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "display_name": "Foo", - "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "volume": - 1, "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "mail_host": - "example.com"}'} + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "list_id": + "foo.example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_name": "foo", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1, "display_name": "Foo", "mail_host": "example.com", "member_count": + 0}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:44 GMT'] + date: ['Wed, 15 Apr 2015 20:00:41 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -94,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.0b1'] + !!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 '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:44 GMT'] + date: ['Wed, 15 Apr 2015 20:00:41 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -111,16 +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.0b1'] + !!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 '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:44 GMT'] + date: ['Wed, 15 Apr 2015 20:00:41 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -128,33 +128,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.0b1'] + !!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 '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:44 GMT'] + date: ['Wed, 15 Apr 2015 20:00:41 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: subscriber=newowner%40example.com&list_id=foo.example.com&role=owner 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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:45 GMT'] - location: ['http://localhost:9001/3.0/members/301200134723622213332953324062582371198'] + date: ['Wed, 15 Apr 2015 20:00:41 GMT'] + location: ['http://localhost:9001/3.0/members/316580494501498897764553969239217371297'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 201, message: Created} - request: @@ -162,22 +162,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.0b1'] + !!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 '{"entries": [{"role": "owner", "list_id": "foo.example.com", - "user": "http://localhost:9001/3.0/users/43128411197829253290894670252349751310", - "address": "http://localhost:9001/3.0/addresses/newowner@example.com", "email": - "newowner@example.com", "self_link": "http://localhost:9001/3.0/members/301200134723622213332953324062582371198", - "delivery_mode": "regular", "member_id": 301200134723622213332953324062582371198, - "http_etag": "\"28b18726c05af574df6ce44bef6e21fed7d5c470\""}], "start": 0, - "http_etag": "\"a41be3d8b413e41956e4947b5c03eff8049bcad5\"", "total_size": - 1}'} + body: {string: !!python/unicode '{"http_etag": "\"ed6c0338408c1922cf1d2efafd4e048aea7b4952\"", + "entries": [{"delivery_mode": "regular", "self_link": "http://localhost:9001/3.0/members/316580494501498897764553969239217371297", + "email": "newowner@example.com", "list_id": "foo.example.com", "user": "http://localhost:9001/3.0/users/56780513472939226760192616016157807096", + "role": "owner", "http_etag": "\"68c877d413e7baae94835a96508178d6837c3d77\"", + "address": "http://localhost:9001/3.0/addresses/newowner@example.com", "member_id": + 316580494501498897764553969239217371297}], "start": 0, "total_size": 1}'} headers: content-length: ['571'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:45 GMT'] + date: ['Wed, 15 Apr 2015 20:00:41 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -185,16 +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.0b1'] + !!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 '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:45 GMT'] + date: ['Wed, 15 Apr 2015 20:00:41 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -202,22 +200,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.0b1'] + !!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 '{"entries": [{"role": "owner", "list_id": "foo.example.com", - "user": "http://localhost:9001/3.0/users/43128411197829253290894670252349751310", - "address": "http://localhost:9001/3.0/addresses/newowner@example.com", "email": - "newowner@example.com", "self_link": "http://localhost:9001/3.0/members/301200134723622213332953324062582371198", - "delivery_mode": "regular", "member_id": 301200134723622213332953324062582371198, - "http_etag": "\"28b18726c05af574df6ce44bef6e21fed7d5c470\""}], "start": 0, - "http_etag": "\"a41be3d8b413e41956e4947b5c03eff8049bcad5\"", "total_size": - 1}'} + body: {string: !!python/unicode '{"http_etag": "\"ed6c0338408c1922cf1d2efafd4e048aea7b4952\"", + "entries": [{"delivery_mode": "regular", "self_link": "http://localhost:9001/3.0/members/316580494501498897764553969239217371297", + "email": "newowner@example.com", "list_id": "foo.example.com", "user": "http://localhost:9001/3.0/users/56780513472939226760192616016157807096", + "role": "owner", "http_etag": "\"68c877d413e7baae94835a96508178d6837c3d77\"", + "address": "http://localhost:9001/3.0/addresses/newowner@example.com", "member_id": + 316580494501498897764553969239217371297}], "start": 0, "total_size": 1}'} headers: content-length: ['571'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:45 GMT'] + date: ['Wed, 15 Apr 2015 20:00:41 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -225,19 +221,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.0b1'] + !!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 '{"member_count": 0, "list_name": "foo", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "display_name": "Foo", - "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "volume": - 1, "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "mail_host": - "example.com"}'} + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "list_id": + "foo.example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_name": "foo", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1, "display_name": "Foo", "mail_host": "example.com", "member_count": + 0}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:45 GMT'] + date: ['Wed, 15 Apr 2015 20:00:41 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -245,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:45 GMT'] + date: ['Wed, 15 Apr 2015 20:00:41 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 30e0481..55dbff5 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,22 +4,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.0b1'] + !!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 '{"entries": [{"role": "owner", "list_id": "foo.example.com", - "user": "http://localhost:9001/3.0/users/43128411197829253290894670252349751310", - "address": "http://localhost:9001/3.0/addresses/newowner@example.com", "email": - "newowner@example.com", "self_link": "http://localhost:9001/3.0/members/301200134723622213332953324062582371198", - "delivery_mode": "regular", "member_id": 301200134723622213332953324062582371198, - "http_etag": "\"28b18726c05af574df6ce44bef6e21fed7d5c470\""}], "start": 0, - "http_etag": "\"a41be3d8b413e41956e4947b5c03eff8049bcad5\"", "total_size": - 1}'} + body: {string: !!python/unicode '{"http_etag": "\"ed6c0338408c1922cf1d2efafd4e048aea7b4952\"", + "entries": [{"delivery_mode": "regular", "self_link": "http://localhost:9001/3.0/members/316580494501498897764553969239217371297", + "email": "newowner@example.com", "list_id": "foo.example.com", "user": "http://localhost:9001/3.0/users/56780513472939226760192616016157807096", + "role": "owner", "http_etag": "\"68c877d413e7baae94835a96508178d6837c3d77\"", + "address": "http://localhost:9001/3.0/addresses/newowner@example.com", "member_id": + 316580494501498897764553969239217371297}], "start": 0, "total_size": 1}'} headers: content-length: ['571'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:45 GMT'] + date: ['Wed, 15 Apr 2015 20:00:41 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 97b40ce..befcb0b 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,22 +4,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.0b1'] + !!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 '{"entries": [{"role": "moderator", "list_id": - "foo.example.com", "user": "http://localhost:9001/3.0/users/231165929708843504225352718616360464134", - "address": "http://localhost:9001/3.0/addresses/newmod@example.com", "email": - "newmod@example.com", "self_link": "http://localhost:9001/3.0/members/274541781880759373564792719108067801770", - "delivery_mode": "regular", "member_id": 274541781880759373564792719108067801770, - "http_etag": "\"89c2c4ed31180b18d947ae021b6fabd6ea700e9b\""}], "start": 0, - "http_etag": "\"bd900e3980bfd813509473d69dba9ca8b428bd3a\"", "total_size": - 1}'} + body: {string: !!python/unicode '{"http_etag": "\"fbf6bcd8ca1197bca59d957ecd23dcb9ef1c37de\"", + "entries": [{"delivery_mode": "regular", "self_link": "http://localhost:9001/3.0/members/77877321659467212687479413596598956489", + "email": "newmod@example.com", "list_id": "foo.example.com", "user": "http://localhost:9001/3.0/users/280696364750368978857520113682724449041", + "role": "moderator", "http_etag": "\"87c931801634d83cddd530b9f55873f04b7d1820\"", + "address": "http://localhost:9001/3.0/addresses/newmod@example.com", "member_id": + 77877321659467212687479413596598956489}], "start": 0, "total_size": 1}'} headers: - content-length: ['572'] + content-length: ['570'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:44 GMT'] + date: ['Wed, 15 Apr 2015 20:00: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_metrics.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_metrics.yaml index 214353c..058b8dc 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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:50 GMT'] + date: ['Wed, 15 Apr 2015 20:00:46 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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.org response: - body: {string: !!python/unicode '{"description": null, "base_url": "http://example.org", - "url_host": "example.org", "self_link": "http://localhost:9001/3.0/domains/example.org", - "mail_host": "example.org", "http_etag": "\"f8247f55d4a0a1d987c89cc238bb0dbc2c0e1089\""}'} + body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.org", + "base_url": "http://example.org", "http_etag": "\"f8247f55d4a0a1d987c89cc238bb0dbc2c0e1089\"", + "mail_host": "example.org", "description": null, "url_host": "example.org"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:50 GMT'] + date: ['Wed, 15 Apr 2015 20:00:46 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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:50 GMT'] + date: ['Wed, 15 Apr 2015 20:00:46 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,19 +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.0b1'] + !!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 response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "test", "self_link": - "http://localhost:9001/3.0/lists/test.example.org", "display_name": "Test", - "list_id": "test.example.org", "fqdn_listname": "test@example.org", "volume": - 1, "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\"", "mail_host": - "example.org"}'} + body: {string: !!python/unicode '{"fqdn_listname": "test@example.org", "list_id": + "test.example.org", "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\"", + "list_name": "test", "self_link": "http://localhost:9001/3.0/lists/test.example.org", + "volume": 1, "display_name": "Test", "mail_host": "example.org", "member_count": + 0}'} headers: content-length: ['299'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:50 GMT'] + date: ['Wed, 15 Apr 2015 20:00:46 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -76,19 +76,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.0b1'] + !!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 response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "test", "self_link": - "http://localhost:9001/3.0/lists/test.example.org", "display_name": "Test", - "list_id": "test.example.org", "fqdn_listname": "test@example.org", "volume": - 1, "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\"", "mail_host": - "example.org"}'} + body: {string: !!python/unicode '{"fqdn_listname": "test@example.org", "list_id": + "test.example.org", "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\"", + "list_name": "test", "self_link": "http://localhost:9001/3.0/lists/test.example.org", + "volume": 1, "display_name": "Test", "mail_host": "example.org", "member_count": + 0}'} headers: content-length: ['299'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:50 GMT'] + date: ['Wed, 15 Apr 2015 20:00:46 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -96,16 +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.0b1'] + !!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/roster/owner response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:50 GMT'] + date: ['Wed, 15 Apr 2015 20:00:46 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -113,16 +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.0b1'] + !!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/roster/moderator response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:50 GMT'] + date: ['Wed, 15 Apr 2015 20:00:46 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -130,34 +130,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.0b1'] + !!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 '{"autoresponse_grace_period": "90d", "posting_pipeline": - "default-posting-pipeline", "default_member_action": "defer", "list_name": - "test", "send_welcome_message": true, "digest_last_sent_at": null, "mail_host": - "example.org", "volume": 1, "no_reply_address": "noreply@example.org", "autoresponse_owner_text": - "", "anonymous_list": false, "admin_immed_notify": true, "reply_to_address": - "", "join_address": "test-join@example.org", "request_address": "test-request@example.org", - "digest_size_threshold": 30.0, "autorespond_requests": "none", "welcome_message_uri": - "mailman:///welcome.txt", "acceptable_aliases": [], "leave_address": "test-leave@example.org", - "archive_policy": "public", "admin_notify_mchanges": false, "administrivia": - true, "scheme": "http", "subject_prefix": "[Test] ", "filter_content": false, - "last_post_at": null, "owner_address": "test-owner@example.org", "http_etag": - "\"1965ad84eb6b5226005c15ea2180bf5a4325ca72\"", "autoresponse_postings_text": - "", "description": "", "autorespond_owner": "none", "bounces_address": "test-bounces@example.org", - "allow_list_posts": true, "include_rfc2369_headers": true, "collapse_alternatives": - true, "autoresponse_request_text": "", "advertised": true, "web_host": "example.org", - "display_name": "Test", "fqdn_listname": "test@example.org", "next_digest_number": - 1, "created_at": "2015-04-14T14:06:50.117683", "autorespond_postings": "none", - "convert_html_to_plaintext": false, "post_id": 1, "first_strip_reply_to": - false, "default_nonmember_action": "hold", "reply_goes_to_list": "no_munging", - "posting_address": "test@example.org"}'} + body: {string: !!python/unicode '{"request_address": "test-request@example.org", + "web_host": "example.org", "digest_last_sent_at": null, "posting_address": + "test@example.org", "reply_to_address": "", "digest_size_threshold": 30.0, + "admin_notify_mchanges": false, "scheme": "http", "autorespond_owner": "none", + "send_welcome_message": true, "fqdn_listname": "test@example.org", "http_etag": + "\"878451fcdc59291f9e13c6f12134bdc400d45b97\"", "admin_immed_notify": true, + "owner_address": "test-owner@example.org", "convert_html_to_plaintext": false, + "autorespond_requests": "none", "list_name": "test", "autoresponse_postings_text": + "", "post_id": 1, "volume": 1, "include_rfc2369_headers": true, "first_strip_reply_to": + false, "subscription_policy": "confirm", "description": "", "default_member_action": + "defer", "bounces_address": "test-bounces@example.org", "join_address": "test-join@example.org", + "autoresponse_grace_period": "90d", "anonymous_list": false, "default_nonmember_action": + "hold", "acceptable_aliases": [], "advertised": true, "display_name": "Test", + "posting_pipeline": "default-posting-pipeline", "filter_content": false, "last_post_at": + null, "leave_address": "test-leave@example.org", "no_reply_address": "noreply@example.org", + "created_at": "2015-04-15T20:00:46.186892", "subject_prefix": "[Test] ", "autoresponse_request_text": + "", "administrivia": true, "reply_goes_to_list": "no_munging", "next_digest_number": + 1, "collapse_alternatives": true, "archive_policy": "public", "welcome_message_uri": + "mailman:///welcome.txt", "mail_host": "example.org", "autoresponse_owner_text": + "", "allow_list_posts": true, "autorespond_postings": "none"}'} headers: - content-length: ['1593'] + content-length: ['1627'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:50 GMT'] + date: ['Wed, 15 Apr 2015 20:00:46 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -165,34 +165,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.0b1'] + !!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 '{"autoresponse_grace_period": "90d", "posting_pipeline": - "default-posting-pipeline", "default_member_action": "defer", "list_name": - "test", "send_welcome_message": true, "digest_last_sent_at": null, "mail_host": - "example.org", "volume": 1, "no_reply_address": "noreply@example.org", "autoresponse_owner_text": - "", "anonymous_list": false, "admin_immed_notify": true, "reply_to_address": - "", "join_address": "test-join@example.org", "request_address": "test-request@example.org", - "digest_size_threshold": 30.0, "autorespond_requests": "none", "welcome_message_uri": - "mailman:///welcome.txt", "acceptable_aliases": [], "leave_address": "test-leave@example.org", - "archive_policy": "public", "admin_notify_mchanges": false, "administrivia": - true, "scheme": "http", "subject_prefix": "[Test] ", "filter_content": false, - "last_post_at": null, "owner_address": "test-owner@example.org", "http_etag": - "\"1965ad84eb6b5226005c15ea2180bf5a4325ca72\"", "autoresponse_postings_text": - "", "description": "", "autorespond_owner": "none", "bounces_address": "test-bounces@example.org", - "allow_list_posts": true, "include_rfc2369_headers": true, "collapse_alternatives": - true, "autoresponse_request_text": "", "advertised": true, "web_host": "example.org", - "display_name": "Test", "fqdn_listname": "test@example.org", "next_digest_number": - 1, "created_at": "2015-04-14T14:06:50.117683", "autorespond_postings": "none", - "convert_html_to_plaintext": false, "post_id": 1, "first_strip_reply_to": - false, "default_nonmember_action": "hold", "reply_goes_to_list": "no_munging", - "posting_address": "test@example.org"}'} + body: {string: !!python/unicode '{"request_address": "test-request@example.org", + "web_host": "example.org", "digest_last_sent_at": null, "posting_address": + "test@example.org", "reply_to_address": "", "digest_size_threshold": 30.0, + "admin_notify_mchanges": false, "scheme": "http", "autorespond_owner": "none", + "send_welcome_message": true, "fqdn_listname": "test@example.org", "http_etag": + "\"878451fcdc59291f9e13c6f12134bdc400d45b97\"", "admin_immed_notify": true, + "owner_address": "test-owner@example.org", "convert_html_to_plaintext": false, + "autorespond_requests": "none", "list_name": "test", "autoresponse_postings_text": + "", "post_id": 1, "volume": 1, "include_rfc2369_headers": true, "first_strip_reply_to": + false, "subscription_policy": "confirm", "description": "", "default_member_action": + "defer", "bounces_address": "test-bounces@example.org", "join_address": "test-join@example.org", + "autoresponse_grace_period": "90d", "anonymous_list": false, "default_nonmember_action": + "hold", "acceptable_aliases": [], "advertised": true, "display_name": "Test", + "posting_pipeline": "default-posting-pipeline", "filter_content": false, "last_post_at": + null, "leave_address": "test-leave@example.org", "no_reply_address": "noreply@example.org", + "created_at": "2015-04-15T20:00:46.186892", "subject_prefix": "[Test] ", "autoresponse_request_text": + "", "administrivia": true, "reply_goes_to_list": "no_munging", "next_digest_number": + 1, "collapse_alternatives": true, "archive_policy": "public", "welcome_message_uri": + "mailman:///welcome.txt", "mail_host": "example.org", "autoresponse_owner_text": + "", "allow_list_posts": true, "autorespond_postings": "none"}'} headers: - content-length: ['1593'] + content-length: ['1627'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:50 GMT'] + date: ['Wed, 15 Apr 2015 20:00:46 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -200,34 +200,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.0b1'] + !!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 '{"autoresponse_grace_period": "90d", "posting_pipeline": - "default-posting-pipeline", "default_member_action": "defer", "list_name": - "test", "send_welcome_message": true, "digest_last_sent_at": null, "mail_host": - "example.org", "volume": 1, "no_reply_address": "noreply@example.org", "autoresponse_owner_text": - "", "anonymous_list": false, "admin_immed_notify": true, "reply_to_address": - "", "join_address": "test-join@example.org", "request_address": "test-request@example.org", - "digest_size_threshold": 30.0, "autorespond_requests": "none", "welcome_message_uri": - "mailman:///welcome.txt", "acceptable_aliases": [], "leave_address": "test-leave@example.org", - "archive_policy": "public", "admin_notify_mchanges": false, "administrivia": - true, "scheme": "http", "subject_prefix": "[Test] ", "filter_content": false, - "last_post_at": null, "owner_address": "test-owner@example.org", "http_etag": - "\"1965ad84eb6b5226005c15ea2180bf5a4325ca72\"", "autoresponse_postings_text": - "", "description": "", "autorespond_owner": "none", "bounces_address": "test-bounces@example.org", - "allow_list_posts": true, "include_rfc2369_headers": true, "collapse_alternatives": - true, "autoresponse_request_text": "", "advertised": true, "web_host": "example.org", - "display_name": "Test", "fqdn_listname": "test@example.org", "next_digest_number": - 1, "created_at": "2015-04-14T14:06:50.117683", "autorespond_postings": "none", - "convert_html_to_plaintext": false, "post_id": 1, "first_strip_reply_to": - false, "default_nonmember_action": "hold", "reply_goes_to_list": "no_munging", - "posting_address": "test@example.org"}'} + body: {string: !!python/unicode '{"request_address": "test-request@example.org", + "web_host": "example.org", "digest_last_sent_at": null, "posting_address": + "test@example.org", "reply_to_address": "", "digest_size_threshold": 30.0, + "admin_notify_mchanges": false, "scheme": "http", "autorespond_owner": "none", + "send_welcome_message": true, "fqdn_listname": "test@example.org", "http_etag": + "\"878451fcdc59291f9e13c6f12134bdc400d45b97\"", "admin_immed_notify": true, + "owner_address": "test-owner@example.org", "convert_html_to_plaintext": false, + "autorespond_requests": "none", "list_name": "test", "autoresponse_postings_text": + "", "post_id": 1, "volume": 1, "include_rfc2369_headers": true, "first_strip_reply_to": + false, "subscription_policy": "confirm", "description": "", "default_member_action": + "defer", "bounces_address": "test-bounces@example.org", "join_address": "test-join@example.org", + "autoresponse_grace_period": "90d", "anonymous_list": false, "default_nonmember_action": + "hold", "acceptable_aliases": [], "advertised": true, "display_name": "Test", + "posting_pipeline": "default-posting-pipeline", "filter_content": false, "last_post_at": + null, "leave_address": "test-leave@example.org", "no_reply_address": "noreply@example.org", + "created_at": "2015-04-15T20:00:46.186892", "subject_prefix": "[Test] ", "autoresponse_request_text": + "", "administrivia": true, "reply_goes_to_list": "no_munging", "next_digest_number": + 1, "collapse_alternatives": true, "archive_policy": "public", "welcome_message_uri": + "mailman:///welcome.txt", "mail_host": "example.org", "autoresponse_owner_text": + "", "allow_list_posts": true, "autorespond_postings": "none"}'} headers: - content-length: ['1593'] + content-length: ['1627'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:50 GMT'] + date: ['Wed, 15 Apr 2015 20:00:46 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -235,34 +235,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.0b1'] + !!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 '{"autoresponse_grace_period": "90d", "posting_pipeline": - "default-posting-pipeline", "default_member_action": "defer", "list_name": - "test", "send_welcome_message": true, "digest_last_sent_at": null, "mail_host": - "example.org", "volume": 1, "no_reply_address": "noreply@example.org", "autoresponse_owner_text": - "", "anonymous_list": false, "admin_immed_notify": true, "reply_to_address": - "", "join_address": "test-join@example.org", "request_address": "test-request@example.org", - "digest_size_threshold": 30.0, "autorespond_requests": "none", "welcome_message_uri": - "mailman:///welcome.txt", "acceptable_aliases": [], "leave_address": "test-leave@example.org", - "archive_policy": "public", "admin_notify_mchanges": false, "administrivia": - true, "scheme": "http", "subject_prefix": "[Test] ", "filter_content": false, - "last_post_at": null, "owner_address": "test-owner@example.org", "http_etag": - "\"1965ad84eb6b5226005c15ea2180bf5a4325ca72\"", "autoresponse_postings_text": - "", "description": "", "autorespond_owner": "none", "bounces_address": "test-bounces@example.org", - "allow_list_posts": true, "include_rfc2369_headers": true, "collapse_alternatives": - true, "autoresponse_request_text": "", "advertised": true, "web_host": "example.org", - "display_name": "Test", "fqdn_listname": "test@example.org", "next_digest_number": - 1, "created_at": "2015-04-14T14:06:50.117683", "autorespond_postings": "none", - "convert_html_to_plaintext": false, "post_id": 1, "first_strip_reply_to": - false, "default_nonmember_action": "hold", "reply_goes_to_list": "no_munging", - "posting_address": "test@example.org"}'} + body: {string: !!python/unicode '{"request_address": "test-request@example.org", + "web_host": "example.org", "digest_last_sent_at": null, "posting_address": + "test@example.org", "reply_to_address": "", "digest_size_threshold": 30.0, + "admin_notify_mchanges": false, "scheme": "http", "autorespond_owner": "none", + "send_welcome_message": true, "fqdn_listname": "test@example.org", "http_etag": + "\"878451fcdc59291f9e13c6f12134bdc400d45b97\"", "admin_immed_notify": true, + "owner_address": "test-owner@example.org", "convert_html_to_plaintext": false, + "autorespond_requests": "none", "list_name": "test", "autoresponse_postings_text": + "", "post_id": 1, "volume": 1, "include_rfc2369_headers": true, "first_strip_reply_to": + false, "subscription_policy": "confirm", "description": "", "default_member_action": + "defer", "bounces_address": "test-bounces@example.org", "join_address": "test-join@example.org", + "autoresponse_grace_period": "90d", "anonymous_list": false, "default_nonmember_action": + "hold", "acceptable_aliases": [], "advertised": true, "display_name": "Test", + "posting_pipeline": "default-posting-pipeline", "filter_content": false, "last_post_at": + null, "leave_address": "test-leave@example.org", "no_reply_address": "noreply@example.org", + "created_at": "2015-04-15T20:00:46.186892", "subject_prefix": "[Test] ", "autoresponse_request_text": + "", "administrivia": true, "reply_goes_to_list": "no_munging", "next_digest_number": + 1, "collapse_alternatives": true, "archive_policy": "public", "welcome_message_uri": + "mailman:///welcome.txt", "mail_host": "example.org", "autoresponse_owner_text": + "", "allow_list_posts": true, "autorespond_postings": "none"}'} headers: - content-length: ['1593'] + content-length: ['1627'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:50 GMT'] + date: ['Wed, 15 Apr 2015 20:00:46 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -270,14 +270,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/test@example.org response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:50 GMT'] + date: ['Wed, 15 Apr 2015 20:00:46 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -285,14 +285,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/domains/example.org response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:50 GMT'] + date: ['Wed, 15 Apr 2015 20:00:46 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -301,14 +301,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:50 GMT'] + date: ['Wed, 15 Apr 2015 20:00:46 GMT'] location: ['http://localhost:9001/3.0/domains/example.org'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 201, message: Created} @@ -317,17 +317,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.org response: - body: {string: !!python/unicode '{"description": null, "base_url": "http://example.org", - "url_host": "example.org", "self_link": "http://localhost:9001/3.0/domains/example.org", - "mail_host": "example.org", "http_etag": "\"f8247f55d4a0a1d987c89cc238bb0dbc2c0e1089\""}'} + body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.org", + "base_url": "http://example.org", "http_etag": "\"f8247f55d4a0a1d987c89cc238bb0dbc2c0e1089\"", + "mail_host": "example.org", "description": null, "url_host": "example.org"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:50 GMT'] + date: ['Wed, 15 Apr 2015 20:00:46 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -336,14 +336,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:50 GMT'] + date: ['Wed, 15 Apr 2015 20:00:46 GMT'] location: ['http://localhost:9001/3.0/lists/test.example.org'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 201, message: Created} @@ -352,19 +352,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.0b1'] + !!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 response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "test", "self_link": - "http://localhost:9001/3.0/lists/test.example.org", "display_name": "Test", - "list_id": "test.example.org", "fqdn_listname": "test@example.org", "volume": - 1, "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\"", "mail_host": - "example.org"}'} + body: {string: !!python/unicode '{"fqdn_listname": "test@example.org", "list_id": + "test.example.org", "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\"", + "list_name": "test", "self_link": "http://localhost:9001/3.0/lists/test.example.org", + "volume": 1, "display_name": "Test", "mail_host": "example.org", "member_count": + 0}'} headers: content-length: ['299'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:50 GMT'] + date: ['Wed, 15 Apr 2015 20:00:46 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -372,19 +372,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.0b1'] + !!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 response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "test", "self_link": - "http://localhost:9001/3.0/lists/test.example.org", "display_name": "Test", - "list_id": "test.example.org", "fqdn_listname": "test@example.org", "volume": - 1, "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\"", "mail_host": - "example.org"}'} + body: {string: !!python/unicode '{"fqdn_listname": "test@example.org", "list_id": + "test.example.org", "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\"", + "list_name": "test", "self_link": "http://localhost:9001/3.0/lists/test.example.org", + "volume": 1, "display_name": "Test", "mail_host": "example.org", "member_count": + 0}'} headers: content-length: ['299'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:50 GMT'] + date: ['Wed, 15 Apr 2015 20:00:46 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -392,14 +392,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/test@example.org response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:51 GMT'] + date: ['Wed, 15 Apr 2015 20:00:47 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -407,14 +407,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/domains/example.org response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:51 GMT'] + date: ['Wed, 15 Apr 2015 20:00: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_list_summary.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary.yaml index 47b05a8..077d4d3 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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: @@ -13,7 +13,7 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:51 GMT'] + date: ['Wed, 15 Apr 2015 20:00:47 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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "base_url": "http://example.com", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'} + body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "description": null, "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:51 GMT'] + date: ['Wed, 15 Apr 2015 20:00:47 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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "base_url": "http://example.com", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'} + body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "description": null, "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:51 GMT'] + date: ['Wed, 15 Apr 2015 20:00:47 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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:51 GMT'] + date: ['Wed, 15 Apr 2015 20:00:47 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,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.0b1'] + !!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 '{"member_count": 0, "list_name": "foo", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "display_name": "Foo", - "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "volume": - 1, "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "mail_host": - "example.com"}'} + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "list_id": + "foo.example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_name": "foo", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1, "display_name": "Foo", "mail_host": "example.com", "member_count": + 0}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:51 GMT'] + date: ['Wed, 15 Apr 2015 20:00:47 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -94,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.0b1'] + !!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 '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:51 GMT'] + date: ['Wed, 15 Apr 2015 20:00:47 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -111,16 +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.0b1'] + !!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 '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:51 GMT'] + date: ['Wed, 15 Apr 2015 20:00:47 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -128,16 +128,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:51 GMT'] + date: ['Wed, 15 Apr 2015 20:00:47 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -145,34 +145,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.0b1'] + !!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 '{"autoresponse_grace_period": "90d", "posting_pipeline": - "default-posting-pipeline", "default_member_action": "defer", "list_name": - "foo", "send_welcome_message": true, "digest_last_sent_at": null, "mail_host": - "example.com", "volume": 1, "no_reply_address": "noreply@example.com", "autoresponse_owner_text": - "", "anonymous_list": false, "admin_immed_notify": true, "reply_to_address": - "", "join_address": "foo-join@example.com", "request_address": "foo-request@example.com", - "digest_size_threshold": 30.0, "autorespond_requests": "none", "welcome_message_uri": - "mailman:///welcome.txt", "acceptable_aliases": [], "leave_address": "foo-leave@example.com", - "archive_policy": "public", "admin_notify_mchanges": false, "administrivia": - true, "scheme": "http", "subject_prefix": "[Foo] ", "filter_content": false, - "last_post_at": null, "owner_address": "foo-owner@example.com", "http_etag": - "\"ae148e8cbf45bf81f5d4ff5bc2fd4905dd1bd8f1\"", "autoresponse_postings_text": - "", "description": "", "autorespond_owner": "none", "bounces_address": "foo-bounces@example.com", - "allow_list_posts": true, "include_rfc2369_headers": true, "collapse_alternatives": - true, "autoresponse_request_text": "", "advertised": true, "web_host": "example.com", - "display_name": "Foo", "fqdn_listname": "foo@example.com", "next_digest_number": - 1, "created_at": "2015-04-14T14:06:51.274477", "autorespond_postings": "none", - "convert_html_to_plaintext": false, "post_id": 1, "first_strip_reply_to": - false, "default_nonmember_action": "hold", "reply_goes_to_list": "no_munging", - "posting_address": "foo@example.com"}'} + body: {string: !!python/unicode '{"request_address": "foo-request@example.com", + "web_host": "example.com", "digest_last_sent_at": null, "posting_address": + "foo@example.com", "reply_to_address": "", "digest_size_threshold": 30.0, + "admin_notify_mchanges": false, "scheme": "http", "autorespond_owner": "none", + "send_welcome_message": true, "fqdn_listname": "foo@example.com", "http_etag": + "\"8a0be5d9bc8fe8bd7c109dbd54abdac8dfe87acc\"", "admin_immed_notify": true, + "owner_address": "foo-owner@example.com", "convert_html_to_plaintext": false, + "autorespond_requests": "none", "list_name": "foo", "autoresponse_postings_text": + "", "post_id": 1, "volume": 1, "include_rfc2369_headers": true, "first_strip_reply_to": + false, "subscription_policy": "confirm", "description": "", "default_member_action": + "defer", "bounces_address": "foo-bounces@example.com", "join_address": "foo-join@example.com", + "autoresponse_grace_period": "90d", "anonymous_list": false, "default_nonmember_action": + "hold", "acceptable_aliases": [], "advertised": true, "display_name": "Foo", + "posting_pipeline": "default-posting-pipeline", "filter_content": false, "last_post_at": + null, "leave_address": "foo-leave@example.com", "no_reply_address": "noreply@example.com", + "created_at": "2015-04-15T20:00:47.277419", "subject_prefix": "[Foo] ", "autoresponse_request_text": + "", "administrivia": true, "reply_goes_to_list": "no_munging", "next_digest_number": + 1, "collapse_alternatives": true, "archive_policy": "public", "welcome_message_uri": + "mailman:///welcome.txt", "mail_host": "example.com", "autoresponse_owner_text": + "", "allow_list_posts": true, "autorespond_postings": "none"}'} headers: - content-length: ['1583'] + content-length: ['1617'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:51 GMT'] + date: ['Wed, 15 Apr 2015 20:00:47 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -180,20 +180,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists response: - body: {string: !!python/unicode '{"entries": [{"member_count": 0, "list_name": - "foo", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "volume": - 1, "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "mail_host": - "example.com"}], "start": 0, "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", - "total_size": 1}'} + body: {string: !!python/unicode '{"http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "entries": [{"fqdn_listname": "foo@example.com", "list_id": "foo.example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_name": + "foo", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "display_name": "Foo", "mail_host": "example.com", "member_count": 0}], + "start": 0, "total_size": 1}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:51 GMT'] + date: ['Wed, 15 Apr 2015 20:00:47 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -201,19 +201,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.0b1'] + !!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 '{"member_count": 0, "list_name": "foo", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "display_name": "Foo", - "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "volume": - 1, "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "mail_host": - "example.com"}'} + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "list_id": + "foo.example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_name": "foo", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1, "display_name": "Foo", "mail_host": "example.com", "member_count": + 0}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:51 GMT'] + date: ['Wed, 15 Apr 2015 20:00:47 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -221,14 +221,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:51 GMT'] + date: ['Wed, 15 Apr 2015 20:00:47 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -237,7 +237,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: @@ -245,7 +245,7 @@ headers: content-length: ['33'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:51 GMT'] + date: ['Wed, 15 Apr 2015 20:00:47 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 400, message: Bad Request} - request: @@ -253,17 +253,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "base_url": "http://example.com", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'} + body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "description": null, "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:51 GMT'] + date: ['Wed, 15 Apr 2015 20:00:47 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -271,17 +271,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "base_url": "http://example.com", - "url_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "mail_host": "example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\""}'} + body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", + "base_url": "http://example.com", "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "description": null, "url_host": "example.com"}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:51 GMT'] + date: ['Wed, 15 Apr 2015 20:00:47 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -290,14 +290,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:51 GMT'] + date: ['Wed, 15 Apr 2015 20:00:47 GMT'] location: ['http://localhost:9001/3.0/lists/foo.example.com'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 201, message: Created} @@ -306,19 +306,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.0b1'] + !!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 '{"member_count": 0, "list_name": "foo", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "display_name": "Foo", - "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "volume": - 1, "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "mail_host": - "example.com"}'} + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "list_id": + "foo.example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_name": "foo", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1, "display_name": "Foo", "mail_host": "example.com", "member_count": + 0}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:51 GMT'] + date: ['Wed, 15 Apr 2015 20:00:47 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -326,16 +326,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:51 GMT'] + date: ['Wed, 15 Apr 2015 20:00:47 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -343,34 +343,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.0b1'] + !!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 '{"autoresponse_grace_period": "90d", "posting_pipeline": - "default-posting-pipeline", "default_member_action": "defer", "list_name": - "foo", "send_welcome_message": true, "digest_last_sent_at": null, "mail_host": - "example.com", "volume": 1, "no_reply_address": "noreply@example.com", "autoresponse_owner_text": - "", "anonymous_list": false, "admin_immed_notify": true, "reply_to_address": - "", "join_address": "foo-join@example.com", "request_address": "foo-request@example.com", - "digest_size_threshold": 30.0, "autorespond_requests": "none", "welcome_message_uri": - "mailman:///welcome.txt", "acceptable_aliases": [], "leave_address": "foo-leave@example.com", - "archive_policy": "public", "admin_notify_mchanges": false, "administrivia": - true, "scheme": "http", "subject_prefix": "[Foo] ", "filter_content": false, - "last_post_at": null, "owner_address": "foo-owner@example.com", "http_etag": - "\"c552f3b735ff3aae5ff36402dc4a74178b49167c\"", "autoresponse_postings_text": - "", "description": "", "autorespond_owner": "none", "bounces_address": "foo-bounces@example.com", - "allow_list_posts": true, "include_rfc2369_headers": true, "collapse_alternatives": - true, "autoresponse_request_text": "", "advertised": true, "web_host": "example.com", - "display_name": "Foo", "fqdn_listname": "foo@example.com", "next_digest_number": - 1, "created_at": "2015-04-14T14:06:51.727106", "autorespond_postings": "none", - "convert_html_to_plaintext": false, "post_id": 1, "first_strip_reply_to": - false, "default_nonmember_action": "hold", "reply_goes_to_list": "no_munging", - "posting_address": "foo@example.com"}'} + body: {string: !!python/unicode '{"request_address": "foo-request@example.com", + "web_host": "example.com", "digest_last_sent_at": null, "posting_address": + "foo@example.com", "reply_to_address": "", "digest_size_threshold": 30.0, + "admin_notify_mchanges": false, "scheme": "http", "autorespond_owner": "none", + "send_welcome_message": true, "fqdn_listname": "foo@example.com", "http_etag": + "\"a327b7a2a7119d56914bec23068630a71f634847\"", "admin_immed_notify": true, + "owner_address": "foo-owner@example.com", "convert_html_to_plaintext": false, + "autorespond_requests": "none", "list_name": "foo", "autoresponse_postings_text": + "", "post_id": 1, "volume": 1, "include_rfc2369_headers": true, "first_strip_reply_to": + false, "subscription_policy": "confirm", "description": "", "default_member_action": + "defer", "bounces_address": "foo-bounces@example.com", "join_address": "foo-join@example.com", + "autoresponse_grace_period": "90d", "anonymous_list": false, "default_nonmember_action": + "hold", "acceptable_aliases": [], "advertised": true, "display_name": "Foo", + "posting_pipeline": "default-posting-pipeline", "filter_content": false, "last_post_at": + null, "leave_address": "foo-leave@example.com", "no_reply_address": "noreply@example.com", + "created_at": "2015-04-15T20:00:47.719111", "subject_prefix": "[Foo] ", "autoresponse_request_text": + "", "administrivia": true, "reply_goes_to_list": "no_munging", "next_digest_number": + 1, "collapse_alternatives": true, "archive_policy": "public", "welcome_message_uri": + "mailman:///welcome.txt", "mail_host": "example.com", "autoresponse_owner_text": + "", "allow_list_posts": true, "autorespond_postings": "none"}'} headers: - content-length: ['1583'] + content-length: ['1617'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:51 GMT'] + date: ['Wed, 15 Apr 2015 20:00:47 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -378,20 +378,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists response: - body: {string: !!python/unicode '{"entries": [{"member_count": 0, "list_name": - "foo", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "volume": - 1, "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "mail_host": - "example.com"}], "start": 0, "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", - "total_size": 1}'} + body: {string: !!python/unicode '{"http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "entries": [{"fqdn_listname": "foo@example.com", "list_id": "foo.example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_name": + "foo", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "display_name": "Foo", "mail_host": "example.com", "member_count": 0}], + "start": 0, "total_size": 1}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:52 GMT'] + date: ['Wed, 15 Apr 2015 20:00:48 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -399,19 +399,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.0b1'] + !!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 '{"member_count": 0, "list_name": "foo", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "display_name": "Foo", - "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "volume": - 1, "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "mail_host": - "example.com"}'} + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "list_id": + "foo.example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_name": "foo", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1, "display_name": "Foo", "mail_host": "example.com", "member_count": + 0}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Tue, 14 Apr 2015 14:06:52 GMT'] + date: ['Wed, 15 Apr 2015 20:00:48 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -419,14 +419,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.0b1'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b2'] method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Tue, 14 Apr 2015 14:06:52 GMT'] + date: ['Wed, 15 Apr 2015 20:00:48 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} version: 1