diff --git a/src/postorius/tests/fixtures/vcr_cassettes/archival_options.yaml b/src/postorius/tests/fixtures/vcr_cassettes/archival_options.yaml index 0715abb..d4982a2 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/archival_options.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/archival_options.yaml @@ -3,8 +3,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -16,7 +16,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -31,7 +31,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -46,8 +46,8 @@ body: fqdn_listname=test_list%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -59,7 +59,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/test_list.example.com response: body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": @@ -75,7 +75,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers response: body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", @@ -88,7 +88,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/test_list.example.com response: body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": @@ -104,7 +104,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/test_list@example.com response: body: {string: !!python/unicode ''} 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 49ccd26..904974b 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/list_members_access.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/list_members_access.yaml @@ -3,8 +3,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -16,7 +16,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -31,7 +31,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -46,8 +46,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -59,7 +59,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -71,36 +71,36 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: role=owner&list_id=foo.example.com&subscriber=owner%40example.com + body: list_id=foo.example.com&subscriber=owner%40example.com&role=owner headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1211'] + location: ['http://localhost:9001/3.0/members/9'] status: {code: 201, message: Created} - request: - body: role=moderator&list_id=foo.example.com&subscriber=moderator%40example.com + body: list_id=foo.example.com&subscriber=moderator%40example.com&role=moderator headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1212'] + location: ['http://localhost:9001/3.0/members/10'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} @@ -111,8 +111,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -124,7 +124,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -139,7 +139,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -154,8 +154,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -167,7 +167,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -179,36 +179,36 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: role=owner&list_id=foo.example.com&subscriber=owner%40example.com + body: list_id=foo.example.com&subscriber=owner%40example.com&role=owner headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1213'] + location: ['http://localhost:9001/3.0/members/11'] status: {code: 201, message: Created} - request: - body: role=moderator&list_id=foo.example.com&subscriber=moderator%40example.com + body: list_id=foo.example.com&subscriber=moderator%40example.com&role=moderator headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1214'] + location: ['http://localhost:9001/3.0/members/12'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} @@ -219,8 +219,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -232,7 +232,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -247,7 +247,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -262,8 +262,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -275,7 +275,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -287,36 +287,36 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: role=owner&list_id=foo.example.com&subscriber=owner%40example.com + body: list_id=foo.example.com&subscriber=owner%40example.com&role=owner headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1215'] + location: ['http://localhost:9001/3.0/members/13'] status: {code: 201, message: Created} - request: - body: role=moderator&list_id=foo.example.com&subscriber=moderator%40example.com + body: list_id=foo.example.com&subscriber=moderator%40example.com&role=moderator headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1216'] + location: ['http://localhost:9001/3.0/members/14'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} @@ -327,8 +327,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -340,7 +340,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -355,7 +355,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -370,8 +370,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -383,7 +383,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -395,36 +395,36 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: role=owner&list_id=foo.example.com&subscriber=owner%40example.com + body: list_id=foo.example.com&subscriber=owner%40example.com&role=owner headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1217'] + location: ['http://localhost:9001/3.0/members/15'] status: {code: 201, message: Created} - request: - body: role=moderator&list_id=foo.example.com&subscriber=moderator%40example.com + body: list_id=foo.example.com&subscriber=moderator%40example.com&role=moderator headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1218'] + location: ['http://localhost:9001/3.0/members/16'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -439,10 +439,10 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode 404 Not Found} + body: {string: !!python/unicode '404 Not Found'} headers: content-length: ['13'] content-type: [application/json; charset=utf-8] @@ -451,24 +451,24 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"1add52760423b1948a511cd6eca07ad20f748dca\"", - "list_id": "foo.example.com", "member_id": 1217, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1217", "user": "http://localhost:9001/3.0/users/832"}], - "http_etag": "\"67eeb0135bc4bce4705d422e6ace819d75b4a044\"", "start": 0, "total_size": - 1}'} + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"4836d2dd1f4a635e0c2c68676401e7aac4b041d2\"", + "list_id": "foo.example.com", "member_id": 15, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/15", "user": + "http://localhost:9001/3.0/users/5"}], "http_etag": "\"7fda7ca54850aa6bcc32a857e05f1b67f4fd112c\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['460'] + content-length: ['485'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} @@ -479,8 +479,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -492,7 +492,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -507,7 +507,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -522,8 +522,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -535,7 +535,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -547,36 +547,36 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: role=owner&list_id=foo.example.com&subscriber=owner%40example.com + body: list_id=foo.example.com&subscriber=owner%40example.com&role=owner headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1219'] + location: ['http://localhost:9001/3.0/members/17'] status: {code: 201, message: Created} - request: - body: role=moderator&list_id=foo.example.com&subscriber=moderator%40example.com + body: list_id=foo.example.com&subscriber=moderator%40example.com&role=moderator headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1220'] + location: ['http://localhost:9001/3.0/members/18'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} 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 e10097b..9d8ee50 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/list_members_page.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/list_members_page.yaml @@ -3,7 +3,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -18,70 +18,70 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users/moderator@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"2af1f94331910955062fa2e246301bf2231f768e\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/833", "user_id": 833}'} + "\"b774d488fd2356b7bedf0e6fa4a26dc70dc2b02b\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/6", "user_id": 6}'} headers: - content-length: ['192'] + content-length: ['188'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/833/addresses + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/6/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "moderator@example.com", - "http_etag": "\"a26dcf7ea7a5d4b2afc129ff0de8e025ca55b5ba\"", "original_email": + "http_etag": "\"ec747dd7d53c1dc2e3dac5df82b3757518dc89d1\"", "original_email": "moderator@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": - "http://localhost:9001/3.0/addresses/moderator@example.com", "user": "http://localhost:9001/3.0/users/833"}], - "http_etag": "\"3cee023832a8558e156964e4e6f4b4005614abd2\"", "start": 0, "total_size": + "http://localhost:9001/3.0/addresses/moderator@example.com", "user": "http://localhost:9001/3.0/users/6"}], + "http_etag": "\"e912c0fa7b456f2f4b6f1841ae6d573072b49f2b\"", "start": 0, "total_size": 1}'} headers: - content-length: ['404'] + content-length: ['402'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/addresses/moderator@example.com response: body: {string: !!python/unicode '{"email": "moderator@example.com", "http_etag": - "\"a26dcf7ea7a5d4b2afc129ff0de8e025ca55b5ba\"", "original_email": "moderator@example.com", + "\"ec747dd7d53c1dc2e3dac5df82b3757518dc89d1\"", "original_email": "moderator@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/moderator@example.com", - "user": "http://localhost:9001/3.0/users/833"}'} + "user": "http://localhost:9001/3.0/users/6"}'} headers: - content-length: ['299'] + content-length: ['297'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"9e714abb7f8f20545e570682b4e16e602f9d51fe\"", - "list_id": "foo.example.com", "member_id": 1211, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1211", "user": "http://localhost:9001/3.0/users/832"}], - "http_etag": "\"3339423d1dece5b7fe69fba0ccfe2c5d64d471a5\"", "start": 0, "total_size": - 1}'} + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"e954ac08bd224de03551765da8c594b25fa78a14\"", + "list_id": "foo.example.com", "member_id": 9, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/9", "user": + "http://localhost:9001/3.0/users/5"}], "http_etag": "\"421b1403f5702076a932c6e83cc5e6ee9dd3d2c1\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['460'] + content-length: ['483'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -96,69 +96,69 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users/owner@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"cfceb1eb2d3a2543bb402dc62f8471da5e8878ee\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/832", "user_id": 832}'} + "\"637c12d15eb0203c9ffac9ea2d5ac8605d18e38d\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/5", "user_id": 5}'} headers: - content-length: ['192'] + content-length: ['188'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/832/addresses + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/5/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"152488d07d16aaa6f539300ed94be0ee90e1be6f\"", "original_email": "owner@example.com", + "\"d69637140095e2552943e259d5cfb5258b3acafa\"", "original_email": "owner@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/owner@example.com", - "user": "http://localhost:9001/3.0/users/832"}], "http_etag": "\"4692cd8da3c2a778ec0a2d954dc5dcf74e50df43\"", + "user": "http://localhost:9001/3.0/users/5"}], "http_etag": "\"abd6991d7cfc1ad5563ad5020a42c2ec5b88538a\"", "start": 0, "total_size": 1}'} headers: - content-length: ['392'] + content-length: ['390'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/addresses/owner@example.com response: - body: {string: !!python/unicode '{"email": "owner@example.com", "http_etag": "\"152488d07d16aaa6f539300ed94be0ee90e1be6f\"", + body: {string: !!python/unicode '{"email": "owner@example.com", "http_etag": "\"d69637140095e2552943e259d5cfb5258b3acafa\"", "original_email": "owner@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/owner@example.com", "user": - "http://localhost:9001/3.0/users/832"}'} + "http://localhost:9001/3.0/users/5"}'} headers: - content-length: ['287'] + content-length: ['285'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"9ee3e2dc848b75d58a9441e5a98cd960e833584d\"", - "list_id": "foo.example.com", "member_id": 1213, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1213", "user": "http://localhost:9001/3.0/users/832"}], - "http_etag": "\"c6509fce32e96b2d15cf654387cd2b60df22431e\"", "start": 0, "total_size": - 1}'} + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"e74d02cc776fe0401b0e48c1125fe629dda8604c\"", + "list_id": "foo.example.com", "member_id": 11, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/11", "user": + "http://localhost:9001/3.0/users/5"}], "http_etag": "\"50c7343675aeac50c12505149b2c35c323664c7e\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['460'] + content-length: ['485'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -173,7 +173,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=1&page=1 response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -186,7 +186,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=25&page=1 response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -199,7 +199,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -214,7 +214,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=1&page=1 response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -227,7 +227,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=25&page=1 response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_change_subscription-2.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_change_subscription-2.yaml index d71aa0c..b18a67a 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_change_subscription-2.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_change_subscription-2.yaml @@ -3,7 +3,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -15,15 +15,15 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: display_name=None&list_id=foo.example.com&subscriber=test%40example.com + body: list_id=foo.example.com&display_name=None&subscriber=test%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: - body: {string: !!python/unicode '{"http_etag": "\"f596235f95af3b020d0a73b5d2b8d5182dea19ac\"", - "token": "1564e97a05bada970f02a469147598c8f840dabc", "token_owner": "subscriber"}'} + body: {string: !!python/unicode '{"http_etag": "\"0c768e345f844860cca7d460c3894e7155032582\"", + "token": "8cae432078e4ea1c3e4a01dba7d77e870ef72348", "token_owner": "subscriber"}'} headers: content-length: ['143'] content-type: [application/json; charset=utf-8] @@ -32,23 +32,23 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "display_name": - "None", "http_etag": "\"7d5ccba2da3e56c767082bd5d560dc357515bd2c\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/841", "user_id": 841}'} + "None", "http_etag": "\"738b16aa5f336bcbf244014d98535f24da52fc42\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/19", "user_id": 19}'} headers: - content-length: ['216'] + content-length: ['214'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: email=anotheremail%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST - uri: http://localhost:9001/3.0/users/841/addresses + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/users/19/addresses response: body: {string: !!python/unicode ''} headers: @@ -59,7 +59,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode POST + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/addresses/anotheremail@example.com/verify response: body: {string: !!python/unicode ''} @@ -70,7 +70,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -85,71 +85,71 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "display_name": - "None", "http_etag": "\"7d5ccba2da3e56c767082bd5d560dc357515bd2c\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/841", "user_id": 841}'} + "None", "http_etag": "\"738b16aa5f336bcbf244014d98535f24da52fc42\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/19", "user_id": 19}'} headers: - content-length: ['216'] + content-length: ['214'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/841/addresses + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/19/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "anotheremail@example.com", - "http_etag": "\"f8c9d1a99a990fd3e8553ef935bdedc03a22492e\"", "original_email": + "http_etag": "\"f9869a7a3dd79521370b25fccfc997d4d91b122d\"", "original_email": "anotheremail@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": - "http://localhost:9001/3.0/addresses/anotheremail@example.com", "user": "http://localhost:9001/3.0/users/841", + "http://localhost:9001/3.0/addresses/anotheremail@example.com", "user": "http://localhost:9001/3.0/users/19", "verified_on": "2005-08-01T07:49:23"}, {"display_name": "None", "email": "test@example.com", - "http_etag": "\"9501f9ae90b6f454acc28e202463d2baad826e52\"", "original_email": + "http_etag": "\"7e8d41ee53a45beef7f77b7a5209c25bce352646\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "user": "http://localhost:9001/3.0/users/841"}], "http_etag": "\"c34bf4c9a8e928ba2be6079f7f414fe9a02d4063\"", + "user": "http://localhost:9001/3.0/users/19"}], "http_etag": "\"97fe2a96993cf0de972b05c6978383aa66226700\"", "start": 0, "total_size": 2}'} headers: - content-length: ['761'] + content-length: ['759'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/addresses/anotheremail@example.com response: body: {string: !!python/unicode '{"email": "anotheremail@example.com", "http_etag": - "\"f8c9d1a99a990fd3e8553ef935bdedc03a22492e\"", "original_email": "anotheremail@example.com", + "\"f9869a7a3dd79521370b25fccfc997d4d91b122d\"", "original_email": "anotheremail@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/anotheremail@example.com", - "user": "http://localhost:9001/3.0/users/841", "verified_on": "2005-08-01T07:49:23"}'} + "user": "http://localhost:9001/3.0/users/19", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['346'] + content-length: ['345'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/addresses/test@example.com response: body: {string: !!python/unicode '{"display_name": "None", "email": "test@example.com", - "http_etag": "\"9501f9ae90b6f454acc28e202463d2baad826e52\"", "original_email": + "http_etag": "\"7e8d41ee53a45beef7f77b7a5209c25bce352646\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "user": "http://localhost:9001/3.0/users/841"}'} + "user": "http://localhost:9001/3.0/users/19"}'} headers: - content-length: ['308'] + content-length: ['307'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -162,7 +162,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -175,7 +175,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com response: body: {string: !!python/unicode '{}'} @@ -187,7 +187,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/member/anotheremail@example.com response: body: {string: !!python/unicode '{}'} @@ -199,7 +199,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_change_subscription.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_change_subscription.yaml index a432718..87027a5 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_change_subscription.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_change_subscription.yaml @@ -3,7 +3,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -15,23 +15,23 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: display_name=None&pre_confirmed=True&list_id=foo.example.com&subscriber=test%40example.com&pre_verified=True + body: pre_verified=True&list_id=foo.example.com&display_name=None&subscriber=test%40example.com&pre_confirmed=True headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1222'] + location: ['http://localhost:9001/3.0/members/21'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -46,54 +46,54 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "display_name": - "None", "http_etag": "\"cbf776336bf50ffb5be6bb1f12bf5fdd88b3667c\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/836", "user_id": 836}'} + "None", "http_etag": "\"190a72468798ef5f7c51a5e73125abc76e61824a\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/12", "user_id": 12}'} headers: - content-length: ['216'] + content-length: ['214'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/836/addresses + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/12/addresses response: body: {string: !!python/unicode '{"entries": [{"display_name": "None", "email": - "test@example.com", "http_etag": "\"1514e685d645354d4e6b6074adf869579db0844b\"", + "test@example.com", "http_etag": "\"a12067f833c53eafe6bfb670bdb75d061a0230c1\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/836", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"abcb8a44075710ac7debac5b207f33e1f973e3ce\"", "start": 0, "total_size": + "http://localhost:9001/3.0/users/12", "verified_on": "2005-08-01T07:49:23"}], + "http_etag": "\"4edf5c0f5e1d4d798c3afdec307cb7dbc4b00004\"", "start": 0, "total_size": 1}'} headers: - content-length: ['451'] + content-length: ['450'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/addresses/test@example.com response: body: {string: !!python/unicode '{"display_name": "None", "email": "test@example.com", - "http_etag": "\"1514e685d645354d4e6b6074adf869579db0844b\"", "original_email": + "http_etag": "\"a12067f833c53eafe6bfb670bdb75d061a0230c1\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "user": "http://localhost:9001/3.0/users/836", "verified_on": "2005-08-01T07:49:23"}'} + "user": "http://localhost:9001/3.0/users/12", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['346'] + content-length: ['345'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -106,7 +106,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -119,22 +119,23 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com response: body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/test@example.com", - "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"2320cbe55582af3155cc47ac635a440fe668fa6d\"", - "list_id": "foo.example.com", "member_id": 1222, "role": "member", "self_link": - "http://localhost:9001/3.0/members/1222", "user": "http://localhost:9001/3.0/users/836"}'} + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"c5d2eb41988c240c5e719310f06acc380eab3b13\"", + "list_id": "foo.example.com", "member_id": 21, "moderation_action": "defer", + "role": "member", "self_link": "http://localhost:9001/3.0/members/21", "user": + "http://localhost:9001/3.0/users/12"}'} headers: - content-length: ['354'] + content-length: ['379'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": 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 8d0dcfa..e155ac3 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_archival_options.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_archival_options.yaml @@ -3,8 +3,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode ''} @@ -16,7 +16,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -31,8 +31,8 @@ body: fqdn_listname=test_list%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -44,7 +44,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/test_list.example.com response: body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": @@ -60,7 +60,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers response: body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", @@ -73,7 +73,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/test_list.example.com response: body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": @@ -89,7 +89,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/test_list@example.com response: body: {string: !!python/unicode ''} @@ -100,8 +100,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -113,7 +113,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -128,7 +128,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -143,8 +143,8 @@ body: fqdn_listname=test_list%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -156,7 +156,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/test_list.example.com response: body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": @@ -172,7 +172,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers response: body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", @@ -185,7 +185,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/test_list.example.com response: body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": @@ -201,7 +201,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/test_list@example.com response: body: {string: !!python/unicode ''} @@ -212,8 +212,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -225,7 +225,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -240,7 +240,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -255,8 +255,8 @@ body: fqdn_listname=test_list%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -268,7 +268,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/test_list.example.com response: body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": @@ -284,7 +284,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers response: body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", @@ -297,7 +297,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/test_list@example.com response: body: {string: !!python/unicode ''} 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 44d5dbb..764366d 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_archival_options_disable_archiver.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_archival_options_disable_archiver.yaml @@ -3,7 +3,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/test_list.example.com response: body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": @@ -19,7 +19,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers response: body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", @@ -29,11 +29,11 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: prototype=True&mhonarc=True&mail-archive=False + body: mhonarc=True&prototype=True&mail-archive=False headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PUT + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'PUT' uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers response: body: {string: !!python/unicode ''} @@ -44,7 +44,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers response: body: {string: !!python/unicode '{"http_etag": "\"9f3e82fa9d7dc70277565c9703a90ad3fbeb9a03\"", @@ -57,7 +57,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers response: body: {string: !!python/unicode '{"http_etag": "\"9f3e82fa9d7dc70277565c9703a90ad3fbeb9a03\"", 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 b541b98..a9113a2 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_archival_options_enable_archiver.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_archival_options_enable_archiver.yaml @@ -3,7 +3,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/test_list.example.com response: body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": @@ -19,7 +19,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers response: body: {string: !!python/unicode '{"http_etag": "\"9f3e82fa9d7dc70277565c9703a90ad3fbeb9a03\"", @@ -29,11 +29,11 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: prototype=True&mhonarc=True&mail-archive=True + body: mhonarc=True&prototype=True&mail-archive=True headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PUT + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'PUT' uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers response: body: {string: !!python/unicode ''} @@ -41,11 +41,11 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: prototype=False&mhonarc=True&mail-archive=True + body: mhonarc=False&prototype=True&mail-archive=True headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PUT + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'PUT' uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers response: body: {string: !!python/unicode ''} @@ -53,11 +53,11 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: prototype=False&mhonarc=False&mail-archive=True + body: mhonarc=False&prototype=False&mail-archive=True headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PUT + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'PUT' uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers response: body: {string: !!python/unicode ''} @@ -68,7 +68,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers response: body: {string: !!python/unicode '{"http_etag": "\"de68e13c430d856461d2b39a5b5d5286d91528bc\"", @@ -81,7 +81,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers response: body: {string: !!python/unicode '{"http_etag": "\"de68e13c430d856461d2b39a5b5d5286d91528bc\"", 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 93b2d0b..6ee9400 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_creation.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_creation.yaml @@ -3,8 +3,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -16,7 +16,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -31,7 +31,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", @@ -47,7 +47,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -62,7 +62,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -77,7 +77,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -92,8 +92,8 @@ body: fqdn_listname=a_new_list%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -105,7 +105,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/a_new_list.example.com response: body: {string: !!python/unicode '{"display_name": "A_new_list", "fqdn_listname": @@ -118,23 +118,23 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: role=owner&list_id=a_new_list.example.com&subscriber=owner%40example.com + body: list_id=a_new_list.example.com&subscriber=owner%40example.com&role=owner headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1221'] + location: ['http://localhost:9001/3.0/members/28'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/a_new_list@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -163,11 +163,11 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&display_name=A_new_list&include_rfc2369_headers=True&collapse_alternatives=True&anonymous_list=False&default_member_action=defer&reply_goes_to_list=no_munging&autorespond_requests=none&posting_pipeline=default-posting-pipeline&advertised=True&autorespond_owner=none&admin_notify_mchanges=False&archive_policy=public&default_nonmember_action=hold&autoresponse_postings_text=&autoresponse_request_text=&filter_content=False&subject_prefix=%5BA_new_list%5D+&digest_size_threshold=30.0&autorespond_postings=none&autoresponse_owner_text=&reply_to_address=&autoresponse_grace_period=90d&administrivia=True&subscription_policy=confirm&allow_list_posts=True&description=A+new+list.&send_welcome_message=True&admin_immed_notify=True&convert_html_to_plaintext=False&first_strip_reply_to=False + body: autorespond_postings=none&collapse_alternatives=True&autoresponse_grace_period=90d&send_welcome_message=True&autorespond_requests=none&convert_html_to_plaintext=False&admin_notify_mchanges=False&posting_pipeline=default-posting-pipeline&reply_goes_to_list=no_munging&autoresponse_request_text=&autoresponse_postings_text=&filter_content=False&description=A+new+list.&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&autorespond_owner=none&autoresponse_owner_text=&administrivia=True&admin_immed_notify=True&default_member_action=defer&archive_policy=public&allow_list_posts=True&subscription_policy=confirm&display_name=A_new_list&subject_prefix=%5BA_new_list%5D+&anonymous_list=False&default_nonmember_action=hold&advertised=True&digest_size_threshold=30.0&reply_to_address=&include_rfc2369_headers=True&first_strip_reply_to=False headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PATCH + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'PATCH' uri: http://localhost:9001/3.0/lists/a_new_list@example.com/config response: body: {string: !!python/unicode ''} @@ -178,7 +178,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/a_new_list@example.com response: body: {string: !!python/unicode '{"display_name": "A_new_list", "fqdn_listname": @@ -194,24 +194,24 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/a_new_list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"50d06c4fdb47ceb4848b7d9391d10935023bbdb3\"", - "list_id": "a_new_list.example.com", "member_id": 1221, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1221", "user": "http://localhost:9001/3.0/users/835"}], - "http_etag": "\"800267eff08c22b90a46683c4cc900236ea48a7f\"", "start": 0, "total_size": - 1}'} + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"72d2aa138349ab8e1c1903179832c80f59a76a1c\"", + "list_id": "a_new_list.example.com", "member_id": 28, "moderation_action": + "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/28", + "user": "http://localhost:9001/3.0/users/21"}], "http_etag": "\"e3b6179faa2b6c2d1f1ba7e94b8431d08098e176\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['467'] + content-length: ['493'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode '{"entries": [{"display_name": "A_new_list", "fqdn_listname": @@ -228,7 +228,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/a_new_list@example.com response: body: {string: !!python/unicode ''} @@ -239,8 +239,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -252,7 +252,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -267,7 +267,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", 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 add0422..0242ada 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_index.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_index.yaml @@ -3,8 +3,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -16,7 +16,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -31,7 +31,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -46,8 +46,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -59,8 +59,8 @@ body: fqdn_listname=bar%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -72,7 +72,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": @@ -93,7 +93,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -124,7 +124,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/bar@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -155,7 +155,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", @@ -171,7 +171,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -186,7 +186,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": @@ -207,7 +207,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} @@ -218,7 +218,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/bar@example.com response: body: {string: !!python/unicode ''} 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 67f5345..0210303 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_add_moderator.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_add_moderator.yaml @@ -3,8 +3,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -16,7 +16,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -31,7 +31,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -46,8 +46,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -59,7 +59,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -71,57 +71,57 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: role=moderator&list_id=foo.example.com&subscriber=newmod%40example.com + body: list_id=foo.example.com&subscriber=newmod%40example.com&role=moderator headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1203'] + location: ['http://localhost:9001/3.0/members/1'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newmod@example.com", - "delivery_mode": "regular", "email": "newmod@example.com", "http_etag": "\"648df91720dccf80846c3317eaf1a2db89898609\"", - "list_id": "foo.example.com", "member_id": 1203, "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/1203", "user": "http://localhost:9001/3.0/users/828"}], - "http_etag": "\"2b9f083e7debb47095e40df57eb41429767bfca5\"", "start": 0, "total_size": - 1}'} + "delivery_mode": "regular", "email": "newmod@example.com", "http_etag": "\"c8c71cc3e29d53d13e916dcb627e952627f1ca18\"", + "list_id": "foo.example.com", "member_id": 1, "moderation_action": "accept", + "role": "moderator", "self_link": "http://localhost:9001/3.0/members/1", "user": + "http://localhost:9001/3.0/users/1"}], "http_etag": "\"34e4cec6c6315ead2e60d99bf4c13485e3a09be9\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['466'] + content-length: ['489'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newmod@example.com", - "delivery_mode": "regular", "email": "newmod@example.com", "http_etag": "\"648df91720dccf80846c3317eaf1a2db89898609\"", - "list_id": "foo.example.com", "member_id": 1203, "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/1203", "user": "http://localhost:9001/3.0/users/828"}], - "http_etag": "\"2b9f083e7debb47095e40df57eb41429767bfca5\"", "start": 0, "total_size": - 1}'} + "delivery_mode": "regular", "email": "newmod@example.com", "http_etag": "\"c8c71cc3e29d53d13e916dcb627e952627f1ca18\"", + "list_id": "foo.example.com", "member_id": 1, "moderation_action": "accept", + "role": "moderator", "self_link": "http://localhost:9001/3.0/members/1", "user": + "http://localhost:9001/3.0/users/1"}], "http_etag": "\"34e4cec6c6315ead2e60d99bf4c13485e3a09be9\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['466'] + content-length: ['489'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -136,7 +136,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} 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 b97a51e..05abb9e 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_new_moderator_added.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_new_moderator_added.yaml @@ -3,17 +3,17 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newmod@example.com", - "delivery_mode": "regular", "email": "newmod@example.com", "http_etag": "\"648df91720dccf80846c3317eaf1a2db89898609\"", - "list_id": "foo.example.com", "member_id": 1203, "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/1203", "user": "http://localhost:9001/3.0/users/828"}], - "http_etag": "\"2b9f083e7debb47095e40df57eb41429767bfca5\"", "start": 0, "total_size": - 1}'} + "delivery_mode": "regular", "email": "newmod@example.com", "http_etag": "\"c8c71cc3e29d53d13e916dcb627e952627f1ca18\"", + "list_id": "foo.example.com", "member_id": 1, "moderation_action": "accept", + "role": "moderator", "self_link": "http://localhost:9001/3.0/members/1", "user": + "http://localhost:9001/3.0/users/1"}], "http_etag": "\"34e4cec6c6315ead2e60d99bf4c13485e3a09be9\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['466'] + content-length: ['489'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner.yaml index 8fe338b..3e86f78 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner.yaml @@ -3,8 +3,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -16,7 +16,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -31,7 +31,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -46,8 +46,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -59,7 +59,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -71,23 +71,23 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: role=owner&list_id=foo.example.com&subscriber=su%40example.com + body: list_id=foo.example.com&subscriber=su%40example.com&role=owner headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1204'] + location: ['http://localhost:9001/3.0/members/2'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -102,7 +102,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} @@ -113,8 +113,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -126,7 +126,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -141,7 +141,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -156,8 +156,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -169,7 +169,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -181,23 +181,23 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: role=owner&list_id=foo.example.com&subscriber=su%40example.com + body: list_id=foo.example.com&subscriber=su%40example.com&role=owner headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1206'] + location: ['http://localhost:9001/3.0/members/4'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -212,7 +212,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} @@ -223,8 +223,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -236,7 +236,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -251,7 +251,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -266,8 +266,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -279,7 +279,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -291,23 +291,23 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: role=owner&list_id=foo.example.com&subscriber=su%40example.com + body: list_id=foo.example.com&subscriber=su%40example.com&role=owner headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1209'] + location: ['http://localhost:9001/3.0/members/7'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -322,7 +322,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner_add_remove.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner_add_remove.yaml index 0ddeb3d..159c4b8 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner_add_remove.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner_add_remove.yaml @@ -3,7 +3,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -15,65 +15,67 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: role=owner&list_id=foo.example.com&subscriber=newowner%40example.com + body: list_id=foo.example.com&subscriber=newowner%40example.com&role=owner headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1205'] + location: ['http://localhost:9001/3.0/members/3'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com", "delivery_mode": "regular", "email": "newowner@example.com", "http_etag": - "\"33e8f2b1a30f2a747a371d5c4b67010f09d29ef2\"", "list_id": "foo.example.com", - "member_id": 1205, "role": "owner", "self_link": "http://localhost:9001/3.0/members/1205", - "user": "http://localhost:9001/3.0/users/830"}, {"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"e13494fb75dda50aeceae50b5830a191d60b0cda\"", - "list_id": "foo.example.com", "member_id": 1204, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1204", "user": "http://localhost:9001/3.0/users/829"}], - "http_etag": "\"0848f295c429b5659e5d6acadbc7ad0d200934b7\"", "start": 0, "total_size": - 2}'} + "\"c360c4bc48bbbcee07c1671e1017747feba62e4c\"", "list_id": "foo.example.com", + "member_id": 3, "moderation_action": "accept", "role": "owner", "self_link": + "http://localhost:9001/3.0/members/3", "user": "http://localhost:9001/3.0/users/3"}, + {"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode": + "regular", "email": "su@example.com", "http_etag": "\"6d988707f754565f2549feb10fb8d43ba08b7fc0\"", + "list_id": "foo.example.com", "member_id": 2, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/2", "user": + "http://localhost:9001/3.0/users/2"}], "http_etag": "\"a22da6e895b3ece1bba80b58412640036aa3b856\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['817'] + content-length: ['863'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com", "delivery_mode": "regular", "email": "newowner@example.com", "http_etag": - "\"33e8f2b1a30f2a747a371d5c4b67010f09d29ef2\"", "list_id": "foo.example.com", - "member_id": 1205, "role": "owner", "self_link": "http://localhost:9001/3.0/members/1205", - "user": "http://localhost:9001/3.0/users/830"}, {"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"e13494fb75dda50aeceae50b5830a191d60b0cda\"", - "list_id": "foo.example.com", "member_id": 1204, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1204", "user": "http://localhost:9001/3.0/users/829"}], - "http_etag": "\"0848f295c429b5659e5d6acadbc7ad0d200934b7\"", "start": 0, "total_size": - 2}'} + "\"c360c4bc48bbbcee07c1671e1017747feba62e4c\"", "list_id": "foo.example.com", + "member_id": 3, "moderation_action": "accept", "role": "owner", "self_link": + "http://localhost:9001/3.0/members/3", "user": "http://localhost:9001/3.0/users/3"}, + {"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode": + "regular", "email": "su@example.com", "http_etag": "\"6d988707f754565f2549feb10fb8d43ba08b7fc0\"", + "list_id": "foo.example.com", "member_id": 2, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/2", "user": + "http://localhost:9001/3.0/users/2"}], "http_etag": "\"a22da6e895b3ece1bba80b58412640036aa3b856\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['817'] + content-length: ['863'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -88,28 +90,29 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com", "delivery_mode": "regular", "email": "newowner@example.com", "http_etag": - "\"33e8f2b1a30f2a747a371d5c4b67010f09d29ef2\"", "list_id": "foo.example.com", - "member_id": 1205, "role": "owner", "self_link": "http://localhost:9001/3.0/members/1205", - "user": "http://localhost:9001/3.0/users/830"}, {"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"e13494fb75dda50aeceae50b5830a191d60b0cda\"", - "list_id": "foo.example.com", "member_id": 1204, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1204", "user": "http://localhost:9001/3.0/users/829"}], - "http_etag": "\"0848f295c429b5659e5d6acadbc7ad0d200934b7\"", "start": 0, "total_size": - 2}'} + "\"c360c4bc48bbbcee07c1671e1017747feba62e4c\"", "list_id": "foo.example.com", + "member_id": 3, "moderation_action": "accept", "role": "owner", "self_link": + "http://localhost:9001/3.0/members/3", "user": "http://localhost:9001/3.0/users/3"}, + {"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode": + "regular", "email": "su@example.com", "http_etag": "\"6d988707f754565f2549feb10fb8d43ba08b7fc0\"", + "list_id": "foo.example.com", "member_id": 2, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/2", "user": + "http://localhost:9001/3.0/users/2"}], "http_etag": "\"a22da6e895b3ece1bba80b58412640036aa3b856\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['817'] + content-length: ['863'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com/owner/newowner@example.com response: body: {string: !!python/unicode ''} @@ -120,17 +123,17 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"e13494fb75dda50aeceae50b5830a191d60b0cda\"", - "list_id": "foo.example.com", "member_id": 1204, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1204", "user": "http://localhost:9001/3.0/users/829"}], - "http_etag": "\"4d060ce3832700b461400eac6e0ded78d6907cf7\"", "start": 0, "total_size": - 1}'} + "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"6d988707f754565f2549feb10fb8d43ba08b7fc0\"", + "list_id": "foo.example.com", "member_id": 2, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/2", "user": + "http://localhost:9001/3.0/users/2"}], "http_etag": "\"d2cbb6fb6355e9524edc8e386f081c430375c54c\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['454'] + content-length: ['477'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner_by_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner_by_owner.yaml index eb633a0..43c4d80 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner_by_owner.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner_by_owner.yaml @@ -3,24 +3,24 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"f5ae4a8b2ee497fff62953052bc37c1838e16b30\"", - "list_id": "foo.example.com", "member_id": 1209, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1209", "user": "http://localhost:9001/3.0/users/829"}], - "http_etag": "\"bec79f555a9603109e56934b9a8b84433343b083\"", "start": 0, "total_size": - 1}'} + "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"41d57890ce496889a5e5228b4fe371df4c366828\"", + "list_id": "foo.example.com", "member_id": 7, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/7", "user": + "http://localhost:9001/3.0/users/2"}], "http_etag": "\"cad820684c756eb04bc8968d4f91288f13498e66\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['454'] + content-length: ['477'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -35,69 +35,69 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users/su@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"881a0332a26390eb66a0e023b2cdf849f013c852\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/829", "user_id": 829}'} + "\"b36f8ca1d91d583901c768dc116815282d469c66\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/2", "user_id": 2}'} headers: - content-length: ['192'] + content-length: ['188'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/829/addresses + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/2/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag": - "\"795a1d9bfeb42216bf17ad29c724635a91ea257a\"", "original_email": "su@example.com", + "\"a8988d233ad4b9e8641ad5d75553912565efec83\"", "original_email": "su@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", - "user": "http://localhost:9001/3.0/users/829"}], "http_etag": "\"e1a302a3b82e34265138a09f98239db2434bfdca\"", + "user": "http://localhost:9001/3.0/users/2"}], "http_etag": "\"7cc723891821fbf8b0974c2ec407cca11fbb6726\"", "start": 0, "total_size": 1}'} headers: - content-length: ['383'] + content-length: ['381'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/addresses/su@example.com response: - body: {string: !!python/unicode '{"email": "su@example.com", "http_etag": "\"795a1d9bfeb42216bf17ad29c724635a91ea257a\"", + body: {string: !!python/unicode '{"email": "su@example.com", "http_etag": "\"a8988d233ad4b9e8641ad5d75553912565efec83\"", "original_email": "su@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", "user": - "http://localhost:9001/3.0/users/829"}'} + "http://localhost:9001/3.0/users/2"}'} headers: - content-length: ['278'] + content-length: ['276'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"f5ae4a8b2ee497fff62953052bc37c1838e16b30\"", - "list_id": "foo.example.com", "member_id": 1209, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1209", "user": "http://localhost:9001/3.0/users/829"}], - "http_etag": "\"bec79f555a9603109e56934b9a8b84433343b083\"", "start": 0, "total_size": - 1}'} + "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"41d57890ce496889a5e5228b4fe371df4c366828\"", + "list_id": "foo.example.com", "member_id": 7, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/7", "user": + "http://localhost:9001/3.0/users/2"}], "http_etag": "\"cad820684c756eb04bc8968d4f91288f13498e66\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['454'] + content-length: ['477'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -109,65 +109,67 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: role=owner&list_id=foo.example.com&subscriber=newowner%40example.com + body: list_id=foo.example.com&subscriber=newowner%40example.com&role=owner headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1210'] + location: ['http://localhost:9001/3.0/members/8'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com", "delivery_mode": "regular", "email": "newowner@example.com", "http_etag": - "\"af74ad64048acc5e9164f6f6383d6caa48b2b9a1\"", "list_id": "foo.example.com", - "member_id": 1210, "role": "owner", "self_link": "http://localhost:9001/3.0/members/1210", - "user": "http://localhost:9001/3.0/users/830"}, {"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"f5ae4a8b2ee497fff62953052bc37c1838e16b30\"", - "list_id": "foo.example.com", "member_id": 1209, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1209", "user": "http://localhost:9001/3.0/users/829"}], - "http_etag": "\"d2a3d78b3af70c2cae17ae55c54956790d8d86b3\"", "start": 0, "total_size": - 2}'} + "\"cb2189f8ba0ef7b4c13784d0d4bd22d7fc1056bf\"", "list_id": "foo.example.com", + "member_id": 8, "moderation_action": "accept", "role": "owner", "self_link": + "http://localhost:9001/3.0/members/8", "user": "http://localhost:9001/3.0/users/3"}, + {"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode": + "regular", "email": "su@example.com", "http_etag": "\"41d57890ce496889a5e5228b4fe371df4c366828\"", + "list_id": "foo.example.com", "member_id": 7, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/7", "user": + "http://localhost:9001/3.0/users/2"}], "http_etag": "\"e6c44c2170ac8bf35b3c83f0bf8fbd3f35549e16\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['817'] + content-length: ['863'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com", "delivery_mode": "regular", "email": "newowner@example.com", "http_etag": - "\"af74ad64048acc5e9164f6f6383d6caa48b2b9a1\"", "list_id": "foo.example.com", - "member_id": 1210, "role": "owner", "self_link": "http://localhost:9001/3.0/members/1210", - "user": "http://localhost:9001/3.0/users/830"}, {"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"f5ae4a8b2ee497fff62953052bc37c1838e16b30\"", - "list_id": "foo.example.com", "member_id": 1209, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1209", "user": "http://localhost:9001/3.0/users/829"}], - "http_etag": "\"d2a3d78b3af70c2cae17ae55c54956790d8d86b3\"", "start": 0, "total_size": - 2}'} + "\"cb2189f8ba0ef7b4c13784d0d4bd22d7fc1056bf\"", "list_id": "foo.example.com", + "member_id": 8, "moderation_action": "accept", "role": "owner", "self_link": + "http://localhost:9001/3.0/members/8", "user": "http://localhost:9001/3.0/users/3"}, + {"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode": + "regular", "email": "su@example.com", "http_etag": "\"41d57890ce496889a5e5228b4fe371df4c366828\"", + "list_id": "foo.example.com", "member_id": 7, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/7", "user": + "http://localhost:9001/3.0/users/2"}], "http_etag": "\"e6c44c2170ac8bf35b3c83f0bf8fbd3f35549e16\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['817'] + content-length: ['863'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -182,73 +184,74 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users/su@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"881a0332a26390eb66a0e023b2cdf849f013c852\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/829", "user_id": 829}'} + "\"b36f8ca1d91d583901c768dc116815282d469c66\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/2", "user_id": 2}'} headers: - content-length: ['192'] + content-length: ['188'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/829/addresses + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/2/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag": - "\"795a1d9bfeb42216bf17ad29c724635a91ea257a\"", "original_email": "su@example.com", + "\"a8988d233ad4b9e8641ad5d75553912565efec83\"", "original_email": "su@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", - "user": "http://localhost:9001/3.0/users/829"}], "http_etag": "\"e1a302a3b82e34265138a09f98239db2434bfdca\"", + "user": "http://localhost:9001/3.0/users/2"}], "http_etag": "\"7cc723891821fbf8b0974c2ec407cca11fbb6726\"", "start": 0, "total_size": 1}'} headers: - content-length: ['383'] + content-length: ['381'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/addresses/su@example.com response: - body: {string: !!python/unicode '{"email": "su@example.com", "http_etag": "\"795a1d9bfeb42216bf17ad29c724635a91ea257a\"", + body: {string: !!python/unicode '{"email": "su@example.com", "http_etag": "\"a8988d233ad4b9e8641ad5d75553912565efec83\"", "original_email": "su@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", "user": - "http://localhost:9001/3.0/users/829"}'} + "http://localhost:9001/3.0/users/2"}'} headers: - content-length: ['278'] + content-length: ['276'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com", "delivery_mode": "regular", "email": "newowner@example.com", "http_etag": - "\"af74ad64048acc5e9164f6f6383d6caa48b2b9a1\"", "list_id": "foo.example.com", - "member_id": 1210, "role": "owner", "self_link": "http://localhost:9001/3.0/members/1210", - "user": "http://localhost:9001/3.0/users/830"}, {"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"f5ae4a8b2ee497fff62953052bc37c1838e16b30\"", - "list_id": "foo.example.com", "member_id": 1209, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1209", "user": "http://localhost:9001/3.0/users/829"}], - "http_etag": "\"d2a3d78b3af70c2cae17ae55c54956790d8d86b3\"", "start": 0, "total_size": - 2}'} + "\"cb2189f8ba0ef7b4c13784d0d4bd22d7fc1056bf\"", "list_id": "foo.example.com", + "member_id": 8, "moderation_action": "accept", "role": "owner", "self_link": + "http://localhost:9001/3.0/members/8", "user": "http://localhost:9001/3.0/users/3"}, + {"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode": + "regular", "email": "su@example.com", "http_etag": "\"41d57890ce496889a5e5228b4fe371df4c366828\"", + "list_id": "foo.example.com", "member_id": 7, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/7", "user": + "http://localhost:9001/3.0/users/2"}], "http_etag": "\"e6c44c2170ac8bf35b3c83f0bf8fbd3f35549e16\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['817'] + content-length: ['863'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -263,28 +266,29 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com", "delivery_mode": "regular", "email": "newowner@example.com", "http_etag": - "\"af74ad64048acc5e9164f6f6383d6caa48b2b9a1\"", "list_id": "foo.example.com", - "member_id": 1210, "role": "owner", "self_link": "http://localhost:9001/3.0/members/1210", - "user": "http://localhost:9001/3.0/users/830"}, {"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"f5ae4a8b2ee497fff62953052bc37c1838e16b30\"", - "list_id": "foo.example.com", "member_id": 1209, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1209", "user": "http://localhost:9001/3.0/users/829"}], - "http_etag": "\"d2a3d78b3af70c2cae17ae55c54956790d8d86b3\"", "start": 0, "total_size": - 2}'} + "\"cb2189f8ba0ef7b4c13784d0d4bd22d7fc1056bf\"", "list_id": "foo.example.com", + "member_id": 8, "moderation_action": "accept", "role": "owner", "self_link": + "http://localhost:9001/3.0/members/8", "user": "http://localhost:9001/3.0/users/3"}, + {"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode": + "regular", "email": "su@example.com", "http_etag": "\"41d57890ce496889a5e5228b4fe371df4c366828\"", + "list_id": "foo.example.com", "member_id": 7, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/7", "user": + "http://localhost:9001/3.0/users/2"}], "http_etag": "\"e6c44c2170ac8bf35b3c83f0bf8fbd3f35549e16\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['817'] + content-length: ['863'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com/owner/newowner@example.com response: body: {string: !!python/unicode ''} @@ -295,17 +299,17 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"f5ae4a8b2ee497fff62953052bc37c1838e16b30\"", - "list_id": "foo.example.com", "member_id": 1209, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1209", "user": "http://localhost:9001/3.0/users/829"}], - "http_etag": "\"bec79f555a9603109e56934b9a8b84433343b083\"", "start": 0, "total_size": - 1}'} + "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"41d57890ce496889a5e5228b4fe371df4c366828\"", + "list_id": "foo.example.com", "member_id": 7, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/7", "user": + "http://localhost:9001/3.0/users/2"}], "http_etag": "\"cad820684c756eb04bc8968d4f91288f13498e66\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['454'] + content-length: ['477'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner_self_last.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner_self_last.yaml index eddf7e9..9bffb33 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner_self_last.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner_self_last.yaml @@ -3,7 +3,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -15,65 +15,67 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: role=owner&list_id=foo.example.com&subscriber=otherowner%40example.com + body: list_id=foo.example.com&subscriber=otherowner%40example.com&role=owner headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1207'] + location: ['http://localhost:9001/3.0/members/5'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/otherowner@example.com", "delivery_mode": "regular", "email": "otherowner@example.com", "http_etag": - "\"5eecbdb15f05cca122b0197dab71ed6921755744\"", "list_id": "foo.example.com", - "member_id": 1207, "role": "owner", "self_link": "http://localhost:9001/3.0/members/1207", - "user": "http://localhost:9001/3.0/users/831"}, {"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"a5f1b56bbf550129ff18dd49c81272a9e416da20\"", - "list_id": "foo.example.com", "member_id": 1206, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1206", "user": "http://localhost:9001/3.0/users/829"}], - "http_etag": "\"32f459d860249a91442e440797947f931a5a5d19\"", "start": 0, "total_size": - 2}'} + "\"39455ab3883c5cb41d206acfc6f5f9d34d8977ad\"", "list_id": "foo.example.com", + "member_id": 5, "moderation_action": "accept", "role": "owner", "self_link": + "http://localhost:9001/3.0/members/5", "user": "http://localhost:9001/3.0/users/4"}, + {"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode": + "regular", "email": "su@example.com", "http_etag": "\"10c27e9e6dc556f9516987be57ab48241c56912e\"", + "list_id": "foo.example.com", "member_id": 4, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/4", "user": + "http://localhost:9001/3.0/users/2"}], "http_etag": "\"71540af6234005a7ae65241748770c8e6a80357c\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['821'] + content-length: ['867'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/otherowner@example.com", "delivery_mode": "regular", "email": "otherowner@example.com", "http_etag": - "\"5eecbdb15f05cca122b0197dab71ed6921755744\"", "list_id": "foo.example.com", - "member_id": 1207, "role": "owner", "self_link": "http://localhost:9001/3.0/members/1207", - "user": "http://localhost:9001/3.0/users/831"}, {"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"a5f1b56bbf550129ff18dd49c81272a9e416da20\"", - "list_id": "foo.example.com", "member_id": 1206, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1206", "user": "http://localhost:9001/3.0/users/829"}], - "http_etag": "\"32f459d860249a91442e440797947f931a5a5d19\"", "start": 0, "total_size": - 2}'} + "\"39455ab3883c5cb41d206acfc6f5f9d34d8977ad\"", "list_id": "foo.example.com", + "member_id": 5, "moderation_action": "accept", "role": "owner", "self_link": + "http://localhost:9001/3.0/members/5", "user": "http://localhost:9001/3.0/users/4"}, + {"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode": + "regular", "email": "su@example.com", "http_etag": "\"10c27e9e6dc556f9516987be57ab48241c56912e\"", + "list_id": "foo.example.com", "member_id": 4, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/4", "user": + "http://localhost:9001/3.0/users/2"}], "http_etag": "\"71540af6234005a7ae65241748770c8e6a80357c\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['821'] + content-length: ['867'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -88,28 +90,29 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/otherowner@example.com", "delivery_mode": "regular", "email": "otherowner@example.com", "http_etag": - "\"5eecbdb15f05cca122b0197dab71ed6921755744\"", "list_id": "foo.example.com", - "member_id": 1207, "role": "owner", "self_link": "http://localhost:9001/3.0/members/1207", - "user": "http://localhost:9001/3.0/users/831"}, {"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"a5f1b56bbf550129ff18dd49c81272a9e416da20\"", - "list_id": "foo.example.com", "member_id": 1206, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1206", "user": "http://localhost:9001/3.0/users/829"}], - "http_etag": "\"32f459d860249a91442e440797947f931a5a5d19\"", "start": 0, "total_size": - 2}'} + "\"39455ab3883c5cb41d206acfc6f5f9d34d8977ad\"", "list_id": "foo.example.com", + "member_id": 5, "moderation_action": "accept", "role": "owner", "self_link": + "http://localhost:9001/3.0/members/5", "user": "http://localhost:9001/3.0/users/4"}, + {"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode": + "regular", "email": "su@example.com", "http_etag": "\"10c27e9e6dc556f9516987be57ab48241c56912e\"", + "list_id": "foo.example.com", "member_id": 4, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/4", "user": + "http://localhost:9001/3.0/users/2"}], "http_etag": "\"71540af6234005a7ae65241748770c8e6a80357c\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['821'] + content-length: ['867'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com/owner/su@example.com response: body: {string: !!python/unicode ''} @@ -120,37 +123,38 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/otherowner@example.com", "delivery_mode": "regular", "email": "otherowner@example.com", "http_etag": - "\"5eecbdb15f05cca122b0197dab71ed6921755744\"", "list_id": "foo.example.com", - "member_id": 1207, "role": "owner", "self_link": "http://localhost:9001/3.0/members/1207", - "user": "http://localhost:9001/3.0/users/831"}], "http_etag": "\"a9def1648cd5778022efe7d68fc6a715121d9d94\"", - "start": 0, "total_size": 1}'} + "\"39455ab3883c5cb41d206acfc6f5f9d34d8977ad\"", "list_id": "foo.example.com", + "member_id": 5, "moderation_action": "accept", "role": "owner", "self_link": + "http://localhost:9001/3.0/members/5", "user": "http://localhost:9001/3.0/users/4"}], + "http_etag": "\"6129b0373898970dfff1cf574ce14c0ee30b84ca\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['470'] + content-length: ['493'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: role=owner&list_id=foo.example.com&subscriber=su%40example.com + body: list_id=foo.example.com&subscriber=su%40example.com&role=owner headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1208'] + location: ['http://localhost:9001/3.0/members/6'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com/owner/otherowner@example.com response: body: {string: !!python/unicode ''} @@ -161,41 +165,41 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"2b3de35776c42a87b9f163ed7c17e36065278832\"", - "list_id": "foo.example.com", "member_id": 1208, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1208", "user": "http://localhost:9001/3.0/users/829"}], - "http_etag": "\"036bc7f9a9b55e6ee053b0724add9514d74e4483\"", "start": 0, "total_size": - 1}'} + "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"3b037df8d9ab871f6a55ce119b3f3f7e2b1ea69d\"", + "list_id": "foo.example.com", "member_id": 6, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/6", "user": + "http://localhost:9001/3.0/users/2"}], "http_etag": "\"3b23baf8158b66e778e6cfbf22afb7a26aafcab3\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['454'] + content-length: ['477'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"2b3de35776c42a87b9f163ed7c17e36065278832\"", - "list_id": "foo.example.com", "member_id": 1208, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1208", "user": "http://localhost:9001/3.0/users/829"}], - "http_etag": "\"036bc7f9a9b55e6ee053b0724add9514d74e4483\"", "start": 0, "total_size": - 1}'} + "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"3b037df8d9ab871f6a55ce119b3f3f7e2b1ea69d\"", + "list_id": "foo.example.com", "member_id": 6, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/6", "user": + "http://localhost:9001/3.0/users/2"}], "http_etag": "\"3b23baf8158b66e778e6cfbf22afb7a26aafcab3\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['454'] + content-length: ['477'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -210,34 +214,34 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"2b3de35776c42a87b9f163ed7c17e36065278832\"", - "list_id": "foo.example.com", "member_id": 1208, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1208", "user": "http://localhost:9001/3.0/users/829"}], - "http_etag": "\"036bc7f9a9b55e6ee053b0724add9514d74e4483\"", "start": 0, "total_size": - 1}'} + "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"3b037df8d9ab871f6a55ce119b3f3f7e2b1ea69d\"", + "list_id": "foo.example.com", "member_id": 6, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/6", "user": + "http://localhost:9001/3.0/users/2"}], "http_etag": "\"3b23baf8158b66e778e6cfbf22afb7a26aafcab3\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['454'] + content-length: ['477'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"2b3de35776c42a87b9f163ed7c17e36065278832\"", - "list_id": "foo.example.com", "member_id": 1208, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1208", "user": "http://localhost:9001/3.0/users/829"}], - "http_etag": "\"036bc7f9a9b55e6ee053b0724add9514d74e4483\"", "start": 0, "total_size": - 1}'} + "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"3b037df8d9ab871f6a55ce119b3f3f7e2b1ea69d\"", + "list_id": "foo.example.com", "member_id": 6, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/6", "user": + "http://localhost:9001/3.0/users/2"}], "http_etag": "\"3b23baf8158b66e778e6cfbf22afb7a26aafcab3\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['454'] + content-length: ['477'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription.yaml index f637675..35f3261 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription.yaml @@ -3,8 +3,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -16,7 +16,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -31,7 +31,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -46,8 +46,8 @@ body: fqdn_listname=open_list%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -59,7 +59,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -75,7 +75,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -104,11 +104,11 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&display_name=Open_list&include_rfc2369_headers=True&collapse_alternatives=True&anonymous_list=False&default_member_action=defer&reply_goes_to_list=no_munging&autorespond_requests=none&posting_pipeline=default-posting-pipeline&advertised=True&autorespond_owner=none&admin_notify_mchanges=False&archive_policy=public&default_nonmember_action=hold&autoresponse_postings_text=&autoresponse_request_text=&filter_content=False&subject_prefix=%5BOpen_list%5D+&digest_size_threshold=30.0&autorespond_postings=none&autoresponse_owner_text=&reply_to_address=&autoresponse_grace_period=90d&administrivia=True&subscription_policy=open&allow_list_posts=True&description=&send_welcome_message=True&admin_immed_notify=True&convert_html_to_plaintext=False&first_strip_reply_to=False + body: autorespond_postings=none&collapse_alternatives=True&autoresponse_grace_period=90d&send_welcome_message=True&autorespond_requests=none&convert_html_to_plaintext=False&admin_notify_mchanges=False&posting_pipeline=default-posting-pipeline&reply_goes_to_list=no_munging&autoresponse_request_text=&autoresponse_postings_text=&filter_content=False&description=&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&autorespond_owner=none&autoresponse_owner_text=&administrivia=True&admin_immed_notify=True&default_member_action=defer&archive_policy=public&allow_list_posts=True&subscription_policy=open&display_name=Open_list&subject_prefix=%5BOpen_list%5D+&anonymous_list=False&default_nonmember_action=hold&advertised=True&digest_size_threshold=30.0&reply_to_address=&include_rfc2369_headers=True&first_strip_reply_to=False headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PATCH + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'PATCH' uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode ''} @@ -119,8 +119,8 @@ body: fqdn_listname=moderate_subs%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -132,7 +132,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": @@ -148,7 +148,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -177,11 +177,11 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&display_name=Moderate_subs&include_rfc2369_headers=True&collapse_alternatives=True&anonymous_list=False&default_member_action=defer&reply_goes_to_list=no_munging&autorespond_requests=none&posting_pipeline=default-posting-pipeline&advertised=True&autorespond_owner=none&admin_notify_mchanges=False&archive_policy=public&default_nonmember_action=hold&autoresponse_postings_text=&autoresponse_request_text=&filter_content=False&subject_prefix=%5BModerate_subs%5D+&digest_size_threshold=30.0&autorespond_postings=none&autoresponse_owner_text=&reply_to_address=&autoresponse_grace_period=90d&administrivia=True&subscription_policy=moderate&allow_list_posts=True&description=&send_welcome_message=True&admin_immed_notify=True&convert_html_to_plaintext=False&first_strip_reply_to=False + body: autorespond_postings=none&collapse_alternatives=True&autoresponse_grace_period=90d&send_welcome_message=True&autorespond_requests=none&convert_html_to_plaintext=False&admin_notify_mchanges=False&posting_pipeline=default-posting-pipeline&reply_goes_to_list=no_munging&autoresponse_request_text=&autoresponse_postings_text=&filter_content=False&description=&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&autorespond_owner=none&autoresponse_owner_text=&administrivia=True&admin_immed_notify=True&default_member_action=defer&archive_policy=public&allow_list_posts=True&subscription_policy=moderate&display_name=Moderate_subs&subject_prefix=%5BModerate_subs%5D+&anonymous_list=False&default_nonmember_action=hold&advertised=True&digest_size_threshold=30.0&reply_to_address=&include_rfc2369_headers=True&first_strip_reply_to=False headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PATCH + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'PATCH' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode ''} @@ -189,25 +189,25 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: display_name=&password=&email=test%40example.com + body: password=&display_name=&email=test%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/823'] + location: ['http://localhost:9001/3.0/users/7'] status: {code: 201, message: Created} - request: body: email=fritz%40example.org headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST - uri: http://localhost:9001/3.0/users/823/addresses + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/users/7/addresses response: body: {string: !!python/unicode ''} headers: @@ -218,7 +218,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode POST + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/addresses/fritz@example.org/verify response: body: {string: !!python/unicode ''} @@ -229,7 +229,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -242,13 +242,13 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "fritz@example.org", - "http_etag": "\"f5709f2b367e757f47ebc2368167ef2fdbb6ca59\"", "list_id": "moderate_subs.example.com", - "token": "703ee1a00c3f8bf1f703f4235a851e3051c2c90b", "token_owner": "moderator", - "when": "2005-08-01T07:49:23"}], "http_etag": "\"3b6475ea7a9c460c1239d7f3f9a8c7c9dd649095\"", + "http_etag": "\"973e38504804abf8f80d2767f9e7cd639d555724\"", "list_id": "moderate_subs.example.com", + "token": "8d9e4d5e00d8d18405810594db2dd988f6dcf9d2", "token_owner": "moderator", + "when": "2005-08-01T07:49:23"}], "http_etag": "\"a0991d2ed272019835300f6407603cb9a77b0495\"", "start": 0, "total_size": 1}'} headers: content-length: ['368'] @@ -258,9 +258,9 @@ body: action=discard headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST - uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/requests/703ee1a00c3f8bf1f703f4235a851e3051c2c90b + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/requests/8d9e4d5e00d8d18405810594db2dd988f6dcf9d2 response: body: {string: !!python/unicode ''} headers: @@ -270,7 +270,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/open_list@example.com response: body: {string: !!python/unicode ''} @@ -281,7 +281,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com response: body: {string: !!python/unicode ''} @@ -292,8 +292,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/823 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/7 response: body: {string: !!python/unicode ''} headers: @@ -303,8 +303,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -316,7 +316,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -331,7 +331,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -346,8 +346,8 @@ body: fqdn_listname=open_list%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -359,7 +359,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -375,7 +375,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -404,11 +404,11 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&display_name=Open_list&include_rfc2369_headers=True&collapse_alternatives=True&anonymous_list=False&default_member_action=defer&reply_goes_to_list=no_munging&autorespond_requests=none&posting_pipeline=default-posting-pipeline&advertised=True&autorespond_owner=none&admin_notify_mchanges=False&archive_policy=public&default_nonmember_action=hold&autoresponse_postings_text=&autoresponse_request_text=&filter_content=False&subject_prefix=%5BOpen_list%5D+&digest_size_threshold=30.0&autorespond_postings=none&autoresponse_owner_text=&reply_to_address=&autoresponse_grace_period=90d&administrivia=True&subscription_policy=open&allow_list_posts=True&description=&send_welcome_message=True&admin_immed_notify=True&convert_html_to_plaintext=False&first_strip_reply_to=False + body: autorespond_postings=none&collapse_alternatives=True&autoresponse_grace_period=90d&send_welcome_message=True&autorespond_requests=none&convert_html_to_plaintext=False&admin_notify_mchanges=False&posting_pipeline=default-posting-pipeline&reply_goes_to_list=no_munging&autoresponse_request_text=&autoresponse_postings_text=&filter_content=False&description=&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&autorespond_owner=none&autoresponse_owner_text=&administrivia=True&admin_immed_notify=True&default_member_action=defer&archive_policy=public&allow_list_posts=True&subscription_policy=open&display_name=Open_list&subject_prefix=%5BOpen_list%5D+&anonymous_list=False&default_nonmember_action=hold&advertised=True&digest_size_threshold=30.0&reply_to_address=&include_rfc2369_headers=True&first_strip_reply_to=False headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PATCH + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'PATCH' uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode ''} @@ -419,8 +419,8 @@ body: fqdn_listname=moderate_subs%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -432,7 +432,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": @@ -448,7 +448,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -477,11 +477,11 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&display_name=Moderate_subs&include_rfc2369_headers=True&collapse_alternatives=True&anonymous_list=False&default_member_action=defer&reply_goes_to_list=no_munging&autorespond_requests=none&posting_pipeline=default-posting-pipeline&advertised=True&autorespond_owner=none&admin_notify_mchanges=False&archive_policy=public&default_nonmember_action=hold&autoresponse_postings_text=&autoresponse_request_text=&filter_content=False&subject_prefix=%5BModerate_subs%5D+&digest_size_threshold=30.0&autorespond_postings=none&autoresponse_owner_text=&reply_to_address=&autoresponse_grace_period=90d&administrivia=True&subscription_policy=moderate&allow_list_posts=True&description=&send_welcome_message=True&admin_immed_notify=True&convert_html_to_plaintext=False&first_strip_reply_to=False + body: autorespond_postings=none&collapse_alternatives=True&autoresponse_grace_period=90d&send_welcome_message=True&autorespond_requests=none&convert_html_to_plaintext=False&admin_notify_mchanges=False&posting_pipeline=default-posting-pipeline&reply_goes_to_list=no_munging&autoresponse_request_text=&autoresponse_postings_text=&filter_content=False&description=&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&autorespond_owner=none&autoresponse_owner_text=&administrivia=True&admin_immed_notify=True&default_member_action=defer&archive_policy=public&allow_list_posts=True&subscription_policy=moderate&display_name=Moderate_subs&subject_prefix=%5BModerate_subs%5D+&anonymous_list=False&default_nonmember_action=hold&advertised=True&digest_size_threshold=30.0&reply_to_address=&include_rfc2369_headers=True&first_strip_reply_to=False headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PATCH + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'PATCH' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode ''} @@ -489,25 +489,25 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: display_name=&password=&email=test%40example.com + body: password=&display_name=&email=test%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/824'] + location: ['http://localhost:9001/3.0/users/8'] status: {code: 201, message: Created} - request: body: email=fritz%40example.org headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST - uri: http://localhost:9001/3.0/users/824/addresses + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/users/8/addresses response: body: {string: !!python/unicode ''} headers: @@ -518,7 +518,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode POST + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/addresses/fritz@example.org/verify response: body: {string: !!python/unicode ''} @@ -529,7 +529,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -542,7 +542,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -555,7 +555,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/open_list@example.com response: body: {string: !!python/unicode ''} @@ -566,7 +566,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com response: body: {string: !!python/unicode ''} @@ -577,8 +577,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/824 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/8 response: body: {string: !!python/unicode ''} headers: @@ -588,8 +588,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -601,7 +601,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -616,7 +616,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -631,8 +631,8 @@ body: fqdn_listname=open_list%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -644,7 +644,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -660,7 +660,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -689,11 +689,11 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&display_name=Open_list&include_rfc2369_headers=True&collapse_alternatives=True&anonymous_list=False&default_member_action=defer&reply_goes_to_list=no_munging&autorespond_requests=none&posting_pipeline=default-posting-pipeline&advertised=True&autorespond_owner=none&admin_notify_mchanges=False&archive_policy=public&default_nonmember_action=hold&autoresponse_postings_text=&autoresponse_request_text=&filter_content=False&subject_prefix=%5BOpen_list%5D+&digest_size_threshold=30.0&autorespond_postings=none&autoresponse_owner_text=&reply_to_address=&autoresponse_grace_period=90d&administrivia=True&subscription_policy=open&allow_list_posts=True&description=&send_welcome_message=True&admin_immed_notify=True&convert_html_to_plaintext=False&first_strip_reply_to=False + body: autorespond_postings=none&collapse_alternatives=True&autoresponse_grace_period=90d&send_welcome_message=True&autorespond_requests=none&convert_html_to_plaintext=False&admin_notify_mchanges=False&posting_pipeline=default-posting-pipeline&reply_goes_to_list=no_munging&autoresponse_request_text=&autoresponse_postings_text=&filter_content=False&description=&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&autorespond_owner=none&autoresponse_owner_text=&administrivia=True&admin_immed_notify=True&default_member_action=defer&archive_policy=public&allow_list_posts=True&subscription_policy=open&display_name=Open_list&subject_prefix=%5BOpen_list%5D+&anonymous_list=False&default_nonmember_action=hold&advertised=True&digest_size_threshold=30.0&reply_to_address=&include_rfc2369_headers=True&first_strip_reply_to=False headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PATCH + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'PATCH' uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode ''} @@ -704,8 +704,8 @@ body: fqdn_listname=moderate_subs%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -717,7 +717,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": @@ -733,7 +733,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -762,11 +762,11 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&display_name=Moderate_subs&include_rfc2369_headers=True&collapse_alternatives=True&anonymous_list=False&default_member_action=defer&reply_goes_to_list=no_munging&autorespond_requests=none&posting_pipeline=default-posting-pipeline&advertised=True&autorespond_owner=none&admin_notify_mchanges=False&archive_policy=public&default_nonmember_action=hold&autoresponse_postings_text=&autoresponse_request_text=&filter_content=False&subject_prefix=%5BModerate_subs%5D+&digest_size_threshold=30.0&autorespond_postings=none&autoresponse_owner_text=&reply_to_address=&autoresponse_grace_period=90d&administrivia=True&subscription_policy=moderate&allow_list_posts=True&description=&send_welcome_message=True&admin_immed_notify=True&convert_html_to_plaintext=False&first_strip_reply_to=False + body: autorespond_postings=none&collapse_alternatives=True&autoresponse_grace_period=90d&send_welcome_message=True&autorespond_requests=none&convert_html_to_plaintext=False&admin_notify_mchanges=False&posting_pipeline=default-posting-pipeline&reply_goes_to_list=no_munging&autoresponse_request_text=&autoresponse_postings_text=&filter_content=False&description=&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&autorespond_owner=none&autoresponse_owner_text=&administrivia=True&admin_immed_notify=True&default_member_action=defer&archive_policy=public&allow_list_posts=True&subscription_policy=moderate&display_name=Moderate_subs&subject_prefix=%5BModerate_subs%5D+&anonymous_list=False&default_nonmember_action=hold&advertised=True&digest_size_threshold=30.0&reply_to_address=&include_rfc2369_headers=True&first_strip_reply_to=False headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PATCH + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'PATCH' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode ''} @@ -774,25 +774,25 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: display_name=&password=&email=test%40example.com + body: password=&display_name=&email=test%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/825'] + location: ['http://localhost:9001/3.0/users/9'] status: {code: 201, message: Created} - request: body: email=fritz%40example.org headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST - uri: http://localhost:9001/3.0/users/825/addresses + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/users/9/addresses response: body: {string: !!python/unicode ''} headers: @@ -803,7 +803,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode POST + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/addresses/fritz@example.org/verify response: body: {string: !!python/unicode ''} @@ -814,7 +814,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -827,13 +827,13 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "test@example.com", - "http_etag": "\"4aa789d66b4f9721377078e051f99b8c12db7907\"", "list_id": "moderate_subs.example.com", - "token": "42f39b8dfac96f4112a45039a80eee3395e7fcb9", "token_owner": "moderator", - "when": "2005-08-01T07:49:23"}], "http_etag": "\"5e38e151250be9f6c28b82ddd0f2e360a45eefd9\"", + "http_etag": "\"4cc4444b718cdf0ed76b1b6cb0ad6e64abe0950f\"", "list_id": "moderate_subs.example.com", + "token": "de690150b8110c8808172d6d5ef31c1af32f76ce", "token_owner": "moderator", + "when": "2005-08-01T07:49:23"}], "http_etag": "\"742ef324a52073f185baad8155ea692516dbd922\"", "start": 0, "total_size": 1}'} headers: content-length: ['367'] @@ -843,9 +843,9 @@ body: action=discard headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST - uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/requests/42f39b8dfac96f4112a45039a80eee3395e7fcb9 + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/requests/de690150b8110c8808172d6d5ef31c1af32f76ce response: body: {string: !!python/unicode ''} headers: @@ -855,7 +855,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/open_list@example.com response: body: {string: !!python/unicode ''} @@ -866,7 +866,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com response: body: {string: !!python/unicode ''} @@ -877,8 +877,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/825 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/9 response: body: {string: !!python/unicode ''} headers: @@ -888,8 +888,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -901,7 +901,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -916,7 +916,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -931,8 +931,8 @@ body: fqdn_listname=open_list%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -944,7 +944,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -960,7 +960,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -989,11 +989,11 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&display_name=Open_list&include_rfc2369_headers=True&collapse_alternatives=True&anonymous_list=False&default_member_action=defer&reply_goes_to_list=no_munging&autorespond_requests=none&posting_pipeline=default-posting-pipeline&advertised=True&autorespond_owner=none&admin_notify_mchanges=False&archive_policy=public&default_nonmember_action=hold&autoresponse_postings_text=&autoresponse_request_text=&filter_content=False&subject_prefix=%5BOpen_list%5D+&digest_size_threshold=30.0&autorespond_postings=none&autoresponse_owner_text=&reply_to_address=&autoresponse_grace_period=90d&administrivia=True&subscription_policy=open&allow_list_posts=True&description=&send_welcome_message=True&admin_immed_notify=True&convert_html_to_plaintext=False&first_strip_reply_to=False + body: autorespond_postings=none&collapse_alternatives=True&autoresponse_grace_period=90d&send_welcome_message=True&autorespond_requests=none&convert_html_to_plaintext=False&admin_notify_mchanges=False&posting_pipeline=default-posting-pipeline&reply_goes_to_list=no_munging&autoresponse_request_text=&autoresponse_postings_text=&filter_content=False&description=&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&autorespond_owner=none&autoresponse_owner_text=&administrivia=True&admin_immed_notify=True&default_member_action=defer&archive_policy=public&allow_list_posts=True&subscription_policy=open&display_name=Open_list&subject_prefix=%5BOpen_list%5D+&anonymous_list=False&default_nonmember_action=hold&advertised=True&digest_size_threshold=30.0&reply_to_address=&include_rfc2369_headers=True&first_strip_reply_to=False headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PATCH + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'PATCH' uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode ''} @@ -1004,8 +1004,8 @@ body: fqdn_listname=moderate_subs%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -1017,7 +1017,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": @@ -1033,7 +1033,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -1062,11 +1062,11 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&display_name=Moderate_subs&include_rfc2369_headers=True&collapse_alternatives=True&anonymous_list=False&default_member_action=defer&reply_goes_to_list=no_munging&autorespond_requests=none&posting_pipeline=default-posting-pipeline&advertised=True&autorespond_owner=none&admin_notify_mchanges=False&archive_policy=public&default_nonmember_action=hold&autoresponse_postings_text=&autoresponse_request_text=&filter_content=False&subject_prefix=%5BModerate_subs%5D+&digest_size_threshold=30.0&autorespond_postings=none&autoresponse_owner_text=&reply_to_address=&autoresponse_grace_period=90d&administrivia=True&subscription_policy=moderate&allow_list_posts=True&description=&send_welcome_message=True&admin_immed_notify=True&convert_html_to_plaintext=False&first_strip_reply_to=False + body: autorespond_postings=none&collapse_alternatives=True&autoresponse_grace_period=90d&send_welcome_message=True&autorespond_requests=none&convert_html_to_plaintext=False&admin_notify_mchanges=False&posting_pipeline=default-posting-pipeline&reply_goes_to_list=no_munging&autoresponse_request_text=&autoresponse_postings_text=&filter_content=False&description=&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&autorespond_owner=none&autoresponse_owner_text=&administrivia=True&admin_immed_notify=True&default_member_action=defer&archive_policy=public&allow_list_posts=True&subscription_policy=moderate&display_name=Moderate_subs&subject_prefix=%5BModerate_subs%5D+&anonymous_list=False&default_nonmember_action=hold&advertised=True&digest_size_threshold=30.0&reply_to_address=&include_rfc2369_headers=True&first_strip_reply_to=False headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PATCH + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'PATCH' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode ''} @@ -1074,25 +1074,25 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: display_name=&password=&email=test%40example.com + body: password=&display_name=&email=test%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/826'] + location: ['http://localhost:9001/3.0/users/10'] status: {code: 201, message: Created} - request: body: email=fritz%40example.org headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST - uri: http://localhost:9001/3.0/users/826/addresses + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/users/10/addresses response: body: {string: !!python/unicode ''} headers: @@ -1103,7 +1103,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode POST + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/addresses/fritz@example.org/verify response: body: {string: !!python/unicode ''} @@ -1114,7 +1114,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -1127,7 +1127,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -1140,7 +1140,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/open_list@example.com response: body: {string: !!python/unicode ''} @@ -1151,7 +1151,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com response: body: {string: !!python/unicode ''} @@ -1162,8 +1162,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/826 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/10 response: body: {string: !!python/unicode ''} headers: @@ -1173,8 +1173,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -1186,7 +1186,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -1201,7 +1201,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -1216,8 +1216,8 @@ body: fqdn_listname=open_list%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -1229,7 +1229,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -1245,7 +1245,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -1274,11 +1274,11 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&display_name=Open_list&include_rfc2369_headers=True&collapse_alternatives=True&anonymous_list=False&default_member_action=defer&reply_goes_to_list=no_munging&autorespond_requests=none&posting_pipeline=default-posting-pipeline&advertised=True&autorespond_owner=none&admin_notify_mchanges=False&archive_policy=public&default_nonmember_action=hold&autoresponse_postings_text=&autoresponse_request_text=&filter_content=False&subject_prefix=%5BOpen_list%5D+&digest_size_threshold=30.0&autorespond_postings=none&autoresponse_owner_text=&reply_to_address=&autoresponse_grace_period=90d&administrivia=True&subscription_policy=open&allow_list_posts=True&description=&send_welcome_message=True&admin_immed_notify=True&convert_html_to_plaintext=False&first_strip_reply_to=False + body: autorespond_postings=none&collapse_alternatives=True&autoresponse_grace_period=90d&send_welcome_message=True&autorespond_requests=none&convert_html_to_plaintext=False&admin_notify_mchanges=False&posting_pipeline=default-posting-pipeline&reply_goes_to_list=no_munging&autoresponse_request_text=&autoresponse_postings_text=&filter_content=False&description=&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&autorespond_owner=none&autoresponse_owner_text=&administrivia=True&admin_immed_notify=True&default_member_action=defer&archive_policy=public&allow_list_posts=True&subscription_policy=open&display_name=Open_list&subject_prefix=%5BOpen_list%5D+&anonymous_list=False&default_nonmember_action=hold&advertised=True&digest_size_threshold=30.0&reply_to_address=&include_rfc2369_headers=True&first_strip_reply_to=False headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PATCH + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'PATCH' uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode ''} @@ -1289,8 +1289,8 @@ body: fqdn_listname=moderate_subs%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -1302,7 +1302,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": @@ -1318,7 +1318,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -1347,11 +1347,11 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&display_name=Moderate_subs&include_rfc2369_headers=True&collapse_alternatives=True&anonymous_list=False&default_member_action=defer&reply_goes_to_list=no_munging&autorespond_requests=none&posting_pipeline=default-posting-pipeline&advertised=True&autorespond_owner=none&admin_notify_mchanges=False&archive_policy=public&default_nonmember_action=hold&autoresponse_postings_text=&autoresponse_request_text=&filter_content=False&subject_prefix=%5BModerate_subs%5D+&digest_size_threshold=30.0&autorespond_postings=none&autoresponse_owner_text=&reply_to_address=&autoresponse_grace_period=90d&administrivia=True&subscription_policy=moderate&allow_list_posts=True&description=&send_welcome_message=True&admin_immed_notify=True&convert_html_to_plaintext=False&first_strip_reply_to=False + body: autorespond_postings=none&collapse_alternatives=True&autoresponse_grace_period=90d&send_welcome_message=True&autorespond_requests=none&convert_html_to_plaintext=False&admin_notify_mchanges=False&posting_pipeline=default-posting-pipeline&reply_goes_to_list=no_munging&autoresponse_request_text=&autoresponse_postings_text=&filter_content=False&description=&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&autorespond_owner=none&autoresponse_owner_text=&administrivia=True&admin_immed_notify=True&default_member_action=defer&archive_policy=public&allow_list_posts=True&subscription_policy=moderate&display_name=Moderate_subs&subject_prefix=%5BModerate_subs%5D+&anonymous_list=False&default_nonmember_action=hold&advertised=True&digest_size_threshold=30.0&reply_to_address=&include_rfc2369_headers=True&first_strip_reply_to=False headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PATCH + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'PATCH' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode ''} @@ -1359,25 +1359,25 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: display_name=&password=&email=test%40example.com + body: password=&display_name=&email=test%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/827'] + location: ['http://localhost:9001/3.0/users/11'] status: {code: 201, message: Created} - request: body: email=fritz%40example.org headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST - uri: http://localhost:9001/3.0/users/827/addresses + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/users/11/addresses response: body: {string: !!python/unicode ''} headers: @@ -1388,7 +1388,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode POST + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/addresses/fritz@example.org/verify response: body: {string: !!python/unicode ''} @@ -1399,7 +1399,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -1412,7 +1412,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -1425,7 +1425,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/open_list@example.com response: body: {string: !!python/unicode ''} @@ -1436,7 +1436,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com response: body: {string: !!python/unicode ''} @@ -1447,8 +1447,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/827 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/11 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_mod_primary.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_mod_primary.yaml index 5dce360..4f85c31 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_mod_primary.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_mod_primary.yaml @@ -3,7 +3,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": @@ -19,72 +19,72 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"1c31aa92ead36ea022e0b2091ace2f439c3fd521\"", "is_server_owner": false, - "password": "$6$rounds=676286$kZQsZGbsLWkkpKHG$YFqGt2gCN7ocyIWwtcgn5vwpgpbq9PjDyjjya6IIBVn9TfLMZ7ooG.OXs89c3QTENRzrgSRVCeXwPr4EzVIh9/", - "self_link": "http://localhost:9001/3.0/users/825", "user_id": 825}'} + "\"db3c3632c621ca80b4d2ee39215bc03b69797be9\"", "is_server_owner": false, + "password": "$6$rounds=710743$SGFjdffflaYjwzNJ$HrEYmwJlOydkZAvtViQimEhF7wYTSjlj95ANojFQ7nk4dqdbqvOg3VlKbflR1kWjjLn16hfFnSJLwEZk1sUje0", + "self_link": "http://localhost:9001/3.0/users/9", "user_id": 9}'} headers: - content-length: ['328'] + content-length: ['324'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/825/addresses + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/9/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"4a8a4c6ce6bd49401b8358bfacff031f52e7d43d\"", "original_email": "fritz@example.org", + "\"8d3a06e7ab49e4715967bd3b56099967748b6868\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/825", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"6770a83a2cacef06128174621d661ae10911a604\"", + "user": "http://localhost:9001/3.0/users/9", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"83c6dfb813c2b4484f0c15eb434e104521bb2409\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/825"}], "http_etag": "\"2c91081d2a909ad9d091b98da9e9755d25142e79\"", + "http://localhost:9001/3.0/users/9"}], "http_etag": "\"f936e2df1794def099840486f4b0cf7a24e838c8\"", "start": 0, "total_size": 2}'} headers: - content-length: ['716'] + content-length: ['712'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/addresses/fritz@example.org response: - body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"4a8a4c6ce6bd49401b8358bfacff031f52e7d43d\"", + body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"8d3a06e7ab49e4715967bd3b56099967748b6868\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "user": - "http://localhost:9001/3.0/users/825", "verified_on": "2005-08-01T07:49:23"}'} + "http://localhost:9001/3.0/users/9", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['325'] + content-length: ['323'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/addresses/test@example.com response: - body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"6770a83a2cacef06128174621d661ae10911a604\"", + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"83c6dfb813c2b4484f0c15eb434e104521bb2409\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/825"}'} + "http://localhost:9001/3.0/users/9"}'} headers: - content-length: ['284'] + content-length: ['282'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -97,7 +97,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -107,15 +107,15 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: display_name=None&pre_confirmed=True&list_id=moderate_subs.example.com&subscriber=test%40example.com&pre_verified=True + body: pre_verified=True&list_id=moderate_subs.example.com&display_name=None&subscriber=test%40example.com&pre_confirmed=True headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: - body: {string: !!python/unicode '{"http_etag": "\"3a236a0de0c24b62bf53ac65d2c5890c5b55da74\"", - "token": "42f39b8dfac96f4112a45039a80eee3395e7fcb9", "token_owner": "moderator"}'} + body: {string: !!python/unicode '{"http_etag": "\"840e7db6bceb4e906b43b98ce5bbdd0caefc3329\"", + "token": "de690150b8110c8808172d6d5ef31c1af32f76ce", "token_owner": "moderator"}'} headers: content-length: ['142'] content-type: [application/json; charset=utf-8] @@ -124,7 +124,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/roster/member response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -137,13 +137,13 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "test@example.com", - "http_etag": "\"4aa789d66b4f9721377078e051f99b8c12db7907\"", "list_id": "moderate_subs.example.com", - "token": "42f39b8dfac96f4112a45039a80eee3395e7fcb9", "token_owner": "moderator", - "when": "2005-08-01T07:49:23"}], "http_etag": "\"5e38e151250be9f6c28b82ddd0f2e360a45eefd9\"", + "http_etag": "\"4cc4444b718cdf0ed76b1b6cb0ad6e64abe0950f\"", "list_id": "moderate_subs.example.com", + "token": "de690150b8110c8808172d6d5ef31c1af32f76ce", "token_owner": "moderator", + "when": "2005-08-01T07:49:23"}], "http_etag": "\"742ef324a52073f185baad8155ea692516dbd922\"", "start": 0, "total_size": 1}'} headers: content-length: ['367'] @@ -153,7 +153,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": @@ -169,73 +169,73 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"1c31aa92ead36ea022e0b2091ace2f439c3fd521\"", "is_server_owner": false, - "password": "$6$rounds=676286$kZQsZGbsLWkkpKHG$YFqGt2gCN7ocyIWwtcgn5vwpgpbq9PjDyjjya6IIBVn9TfLMZ7ooG.OXs89c3QTENRzrgSRVCeXwPr4EzVIh9/", - "self_link": "http://localhost:9001/3.0/users/825", "user_id": 825}'} + "\"db3c3632c621ca80b4d2ee39215bc03b69797be9\"", "is_server_owner": false, + "password": "$6$rounds=710743$SGFjdffflaYjwzNJ$HrEYmwJlOydkZAvtViQimEhF7wYTSjlj95ANojFQ7nk4dqdbqvOg3VlKbflR1kWjjLn16hfFnSJLwEZk1sUje0", + "self_link": "http://localhost:9001/3.0/users/9", "user_id": 9}'} headers: - content-length: ['328'] + content-length: ['324'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/825/addresses + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/9/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"4a8a4c6ce6bd49401b8358bfacff031f52e7d43d\"", "original_email": "fritz@example.org", + "\"8d3a06e7ab49e4715967bd3b56099967748b6868\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/825", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"0342efc47bcfb0d03b4d64a5527132d4033dbdd3\"", + "user": "http://localhost:9001/3.0/users/9", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"2afcbb8fefb40767dad968ef1e48b3878327fd41\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/825", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"aff6c51382637456da449de28d87fdd07cdf9a17\"", "start": 0, "total_size": + "http://localhost:9001/3.0/users/9", "verified_on": "2005-08-01T07:49:23"}], + "http_etag": "\"fc174c7edd4b34be2708e9c2664de68b21006355\"", "start": 0, "total_size": 2}'} headers: - content-length: ['754'] + content-length: ['750'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/addresses/fritz@example.org response: - body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"4a8a4c6ce6bd49401b8358bfacff031f52e7d43d\"", + body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"8d3a06e7ab49e4715967bd3b56099967748b6868\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "user": - "http://localhost:9001/3.0/users/825", "verified_on": "2005-08-01T07:49:23"}'} + "http://localhost:9001/3.0/users/9", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['325'] + content-length: ['323'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/addresses/test@example.com response: - body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"0342efc47bcfb0d03b4d64a5527132d4033dbdd3\"", + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"2afcbb8fefb40767dad968ef1e48b3878327fd41\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/825", "verified_on": "2005-08-01T07:49:23"}'} + "http://localhost:9001/3.0/users/9", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['322'] + content-length: ['320'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -248,7 +248,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -261,7 +261,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/member/test@example.com response: body: {string: !!python/unicode '{}'} @@ -273,7 +273,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/member/fritz@example.org response: body: {string: !!python/unicode '{}'} @@ -285,7 +285,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_mod_secondary.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_mod_secondary.yaml index 8c36cae..7dace24 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_mod_secondary.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_mod_secondary.yaml @@ -3,7 +3,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": @@ -19,72 +19,72 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"e8c2250ec7f2a6db347e1eee369b7695d04053ef\"", "is_server_owner": false, - "password": "$6$rounds=632545$OeAwuqFGCJmZKpIU$hug2B0.XNNew.10CI62Zf0rmAxV4y65x6WaBSI0orOPJPk754bvQTTyA6FV4yAondqyXv/MpKJ29r2aWGaYTm0", - "self_link": "http://localhost:9001/3.0/users/823", "user_id": 823}'} + "\"08ad27d534768fe62a10c2cb5add0e8550515298\"", "is_server_owner": false, + "password": "$6$rounds=624682$/5YtXsq8EMMqIXQC$utsg2RrBFXY0LcctTF/bGp3UCZrmkhn2aQYOKaayg4oAxMJNJczA.u7ITsQrIDdpColz7xbBEIaYc5MFdhsBr/", + "self_link": "http://localhost:9001/3.0/users/7", "user_id": 7}'} headers: - content-length: ['328'] + content-length: ['324'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/823/addresses + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/7/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"be1fea94917e79f09e7a99620139a6681a4fd18e\"", "original_email": "fritz@example.org", + "\"544d5d4924c00a67b82f8d7cddaa5d2ccfd25bb9\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/823", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"f9be9f2a14f952d7e3eede34e5b42f40ae5f48b2\"", + "user": "http://localhost:9001/3.0/users/7", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"deab7596aa4fed8d7db92cd9fc477a4e0fa412f6\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/823"}], "http_etag": "\"5ef815c43213e5727fa06a4d441065da2d44cdc0\"", + "http://localhost:9001/3.0/users/7"}], "http_etag": "\"6b96ef3d16bab5a374e8964c90fc1f34ca35f3e7\"", "start": 0, "total_size": 2}'} headers: - content-length: ['716'] + content-length: ['712'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/addresses/fritz@example.org response: - body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"be1fea94917e79f09e7a99620139a6681a4fd18e\"", + body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"544d5d4924c00a67b82f8d7cddaa5d2ccfd25bb9\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "user": - "http://localhost:9001/3.0/users/823", "verified_on": "2005-08-01T07:49:23"}'} + "http://localhost:9001/3.0/users/7", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['325'] + content-length: ['323'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/addresses/test@example.com response: - body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"f9be9f2a14f952d7e3eede34e5b42f40ae5f48b2\"", + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"deab7596aa4fed8d7db92cd9fc477a4e0fa412f6\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/823"}'} + "http://localhost:9001/3.0/users/7"}'} headers: - content-length: ['284'] + content-length: ['282'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -97,7 +97,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -107,15 +107,15 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: display_name=None&pre_confirmed=True&list_id=moderate_subs.example.com&subscriber=fritz%40example.org&pre_verified=True + body: pre_verified=True&list_id=moderate_subs.example.com&display_name=None&subscriber=fritz%40example.org&pre_confirmed=True headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: - body: {string: !!python/unicode '{"http_etag": "\"e1e1bd30c950b96103f0a707c4720c4ff5f2a41b\"", - "token": "703ee1a00c3f8bf1f703f4235a851e3051c2c90b", "token_owner": "moderator"}'} + body: {string: !!python/unicode '{"http_etag": "\"646674d989d9d43e346cccafece39fae6e73223a\"", + "token": "8d9e4d5e00d8d18405810594db2dd988f6dcf9d2", "token_owner": "moderator"}'} headers: content-length: ['142'] content-type: [application/json; charset=utf-8] @@ -124,7 +124,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/roster/member response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -137,13 +137,13 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "fritz@example.org", - "http_etag": "\"f5709f2b367e757f47ebc2368167ef2fdbb6ca59\"", "list_id": "moderate_subs.example.com", - "token": "703ee1a00c3f8bf1f703f4235a851e3051c2c90b", "token_owner": "moderator", - "when": "2005-08-01T07:49:23"}], "http_etag": "\"3b6475ea7a9c460c1239d7f3f9a8c7c9dd649095\"", + "http_etag": "\"973e38504804abf8f80d2767f9e7cd639d555724\"", "list_id": "moderate_subs.example.com", + "token": "8d9e4d5e00d8d18405810594db2dd988f6dcf9d2", "token_owner": "moderator", + "when": "2005-08-01T07:49:23"}], "http_etag": "\"a0991d2ed272019835300f6407603cb9a77b0495\"", "start": 0, "total_size": 1}'} headers: content-length: ['368'] @@ -153,7 +153,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": @@ -169,72 +169,72 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"e8c2250ec7f2a6db347e1eee369b7695d04053ef\"", "is_server_owner": false, - "password": "$6$rounds=632545$OeAwuqFGCJmZKpIU$hug2B0.XNNew.10CI62Zf0rmAxV4y65x6WaBSI0orOPJPk754bvQTTyA6FV4yAondqyXv/MpKJ29r2aWGaYTm0", - "self_link": "http://localhost:9001/3.0/users/823", "user_id": 823}'} + "\"08ad27d534768fe62a10c2cb5add0e8550515298\"", "is_server_owner": false, + "password": "$6$rounds=624682$/5YtXsq8EMMqIXQC$utsg2RrBFXY0LcctTF/bGp3UCZrmkhn2aQYOKaayg4oAxMJNJczA.u7ITsQrIDdpColz7xbBEIaYc5MFdhsBr/", + "self_link": "http://localhost:9001/3.0/users/7", "user_id": 7}'} headers: - content-length: ['328'] + content-length: ['324'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/823/addresses + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/7/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"be1fea94917e79f09e7a99620139a6681a4fd18e\"", "original_email": "fritz@example.org", + "\"544d5d4924c00a67b82f8d7cddaa5d2ccfd25bb9\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/823", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"f9be9f2a14f952d7e3eede34e5b42f40ae5f48b2\"", + "user": "http://localhost:9001/3.0/users/7", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"deab7596aa4fed8d7db92cd9fc477a4e0fa412f6\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/823"}], "http_etag": "\"5ef815c43213e5727fa06a4d441065da2d44cdc0\"", + "http://localhost:9001/3.0/users/7"}], "http_etag": "\"6b96ef3d16bab5a374e8964c90fc1f34ca35f3e7\"", "start": 0, "total_size": 2}'} headers: - content-length: ['716'] + content-length: ['712'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/addresses/fritz@example.org response: - body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"be1fea94917e79f09e7a99620139a6681a4fd18e\"", + body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"544d5d4924c00a67b82f8d7cddaa5d2ccfd25bb9\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "user": - "http://localhost:9001/3.0/users/823", "verified_on": "2005-08-01T07:49:23"}'} + "http://localhost:9001/3.0/users/7", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['325'] + content-length: ['323'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/addresses/test@example.com response: - body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"f9be9f2a14f952d7e3eede34e5b42f40ae5f48b2\"", + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"deab7596aa4fed8d7db92cd9fc477a4e0fa412f6\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/823"}'} + "http://localhost:9001/3.0/users/7"}'} headers: - content-length: ['284'] + content-length: ['282'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -247,7 +247,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -260,7 +260,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/member/test@example.com response: body: {string: !!python/unicode '{}'} @@ -272,7 +272,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/member/fritz@example.org response: body: {string: !!python/unicode '{}'} @@ -284,7 +284,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_open_primary.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_open_primary.yaml index 4157348..83e6e28 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_open_primary.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_open_primary.yaml @@ -3,7 +3,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -19,72 +19,72 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"d68b214ef603c1ab85f57598165904e21875194e\"", "is_server_owner": false, - "password": "$6$rounds=660337$7TnOUPgXzwq/MiaS$ZFMtgs3l83xaykAZ6ju9ldlGT7R6Z5KClhV8ZlFAikZOC92KQaAY6dTSJYfpv.iVucv1qIaf9ZQnlq97NpKde.", - "self_link": "http://localhost:9001/3.0/users/826", "user_id": 826}'} + "\"ea739c8f3c5eb5c3b319f792f0e214838e51d0d8\"", "is_server_owner": false, + "password": "$6$rounds=692759$WXrNsKFBnMpYgPmR$L2ysz1amlSyFOCgpr6zdDeC.thThm6J8AFGJwPQm3OVBYaTjQXKpaUYDHn06A6msTtNEiAM8sA53GoNk1SK0s1", + "self_link": "http://localhost:9001/3.0/users/10", "user_id": 10}'} headers: - content-length: ['328'] + content-length: ['326'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/826/addresses + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/10/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"d18c608b7c453a87c476905c2729176e741ce1f2\"", "original_email": "fritz@example.org", + "\"df83de584130f7bf666f498f1ee86526580e1e5d\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/826", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"6603b687d15df7aeda09a7e14084b926246f88b4\"", + "user": "http://localhost:9001/3.0/users/10", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"653c988d25ef432406061ef93716f4d0679d110c\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/826"}], "http_etag": "\"560790155758fbe3d6e3ed5ec0ec5b06df8d60cb\"", + "http://localhost:9001/3.0/users/10"}], "http_etag": "\"397eaf5fbab74d6839a9b154e44abb90a92b220c\"", "start": 0, "total_size": 2}'} headers: - content-length: ['716'] + content-length: ['714'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/addresses/fritz@example.org response: - body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"d18c608b7c453a87c476905c2729176e741ce1f2\"", + body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"df83de584130f7bf666f498f1ee86526580e1e5d\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "user": - "http://localhost:9001/3.0/users/826", "verified_on": "2005-08-01T07:49:23"}'} + "http://localhost:9001/3.0/users/10", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['325'] + content-length: ['324'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/addresses/test@example.com response: - body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"6603b687d15df7aeda09a7e14084b926246f88b4\"", + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"653c988d25ef432406061ef93716f4d0679d110c\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/826"}'} + "http://localhost:9001/3.0/users/10"}'} headers: - content-length: ['284'] + content-length: ['283'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -97,7 +97,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -107,40 +107,40 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: display_name=None&pre_confirmed=True&list_id=open_list.example.com&subscriber=test%40example.com&pre_verified=True + body: pre_verified=True&list_id=open_list.example.com&display_name=None&subscriber=test%40example.com&pre_confirmed=True headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1202'] + location: ['http://localhost:9001/3.0/members/20'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/roster/member response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/test@example.com", - "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"d893be4718f8d703cd6da03ddfadcb01ac49ea8e\"", - "list_id": "open_list.example.com", "member_id": 1202, "role": "member", "self_link": - "http://localhost:9001/3.0/members/1202", "user": "http://localhost:9001/3.0/users/826"}], - "http_etag": "\"5a46b956e346c1a4169e351791750dd2b6c4ea42\"", "start": 0, "total_size": - 1}'} + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"bcc72c7d3b6c85ac7c0aa0b0a58afc797fb1adf2\"", + "list_id": "open_list.example.com", "member_id": 20, "moderation_action": + "defer", "role": "member", "self_link": "http://localhost:9001/3.0/members/20", + "user": "http://localhost:9001/3.0/users/10"}], "http_etag": "\"140d9631db84af3d5c21553d544c39457bfc7fe0\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['465'] + content-length: ['490'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -153,7 +153,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -169,73 +169,73 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"d68b214ef603c1ab85f57598165904e21875194e\"", "is_server_owner": false, - "password": "$6$rounds=660337$7TnOUPgXzwq/MiaS$ZFMtgs3l83xaykAZ6ju9ldlGT7R6Z5KClhV8ZlFAikZOC92KQaAY6dTSJYfpv.iVucv1qIaf9ZQnlq97NpKde.", - "self_link": "http://localhost:9001/3.0/users/826", "user_id": 826}'} + "\"ea739c8f3c5eb5c3b319f792f0e214838e51d0d8\"", "is_server_owner": false, + "password": "$6$rounds=692759$WXrNsKFBnMpYgPmR$L2ysz1amlSyFOCgpr6zdDeC.thThm6J8AFGJwPQm3OVBYaTjQXKpaUYDHn06A6msTtNEiAM8sA53GoNk1SK0s1", + "self_link": "http://localhost:9001/3.0/users/10", "user_id": 10}'} headers: - content-length: ['328'] + content-length: ['326'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/826/addresses + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/10/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"d18c608b7c453a87c476905c2729176e741ce1f2\"", "original_email": "fritz@example.org", + "\"df83de584130f7bf666f498f1ee86526580e1e5d\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/826", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"8eb0d3aa0520ebb3f97234bda0df6eada78e30ff\"", + "user": "http://localhost:9001/3.0/users/10", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"1a4e4fafa5f557004d12321255ecbe22b7bc4939\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/826", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"fc19a39d38786dc8ae305c600b7e9f655e546107\"", "start": 0, "total_size": + "http://localhost:9001/3.0/users/10", "verified_on": "2005-08-01T07:49:23"}], + "http_etag": "\"6786a8956fe1455ab474e278103e3a85f08e0896\"", "start": 0, "total_size": 2}'} headers: - content-length: ['754'] + content-length: ['752'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/addresses/fritz@example.org response: - body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"d18c608b7c453a87c476905c2729176e741ce1f2\"", + body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"df83de584130f7bf666f498f1ee86526580e1e5d\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "user": - "http://localhost:9001/3.0/users/826", "verified_on": "2005-08-01T07:49:23"}'} + "http://localhost:9001/3.0/users/10", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['325'] + content-length: ['324'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/addresses/test@example.com response: - body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"8eb0d3aa0520ebb3f97234bda0df6eada78e30ff\"", + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"1a4e4fafa5f557004d12321255ecbe22b7bc4939\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/826", "verified_on": "2005-08-01T07:49:23"}'} + "http://localhost:9001/3.0/users/10", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['322'] + content-length: ['321'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -248,7 +248,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -261,22 +261,23 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/member/test@example.com response: body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/test@example.com", - "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"d893be4718f8d703cd6da03ddfadcb01ac49ea8e\"", - "list_id": "open_list.example.com", "member_id": 1202, "role": "member", "self_link": - "http://localhost:9001/3.0/members/1202", "user": "http://localhost:9001/3.0/users/826"}'} + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"bcc72c7d3b6c85ac7c0aa0b0a58afc797fb1adf2\"", + "list_id": "open_list.example.com", "member_id": 20, "moderation_action": + "defer", "role": "member", "self_link": "http://localhost:9001/3.0/members/20", + "user": "http://localhost:9001/3.0/users/10"}'} headers: - content-length: ['360'] + content-length: ['385'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_open_secondary.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_open_secondary.yaml index 8693dc3..82a517e 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_open_secondary.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_open_secondary.yaml @@ -3,7 +3,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -19,72 +19,72 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"c17c8b67fefd1837fe2c480cdae6a4bdb8d77b51\"", "is_server_owner": false, - "password": "$6$rounds=620518$42CsMlcAUi1palQN$BV..0zYz5CaR2U078vg5d7Cd5FNX86CGdEfsM.kCiW14mBwulr.fN5sPTYHLf8uf9eafCY60YUVLOqR54c5LG.", - "self_link": "http://localhost:9001/3.0/users/824", "user_id": 824}'} + "\"39ba94261fad054ceb0cb44bd894a8e1c5139e58\"", "is_server_owner": false, + "password": "$6$rounds=675214$SQfFoRtnCfHoOjtb$iJGAfecnyum9HE6y9K1F5wNnoqihyKHOcr.1iij91iZkjaPDhF7ECZkQjT1z1S0yWQmng2OEvcR/VpkzlhbLN/", + "self_link": "http://localhost:9001/3.0/users/8", "user_id": 8}'} headers: - content-length: ['328'] + content-length: ['324'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/824/addresses + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/8/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"ddb21e0a61b18b7e95c428ef5f4009a807951e50\"", "original_email": "fritz@example.org", + "\"daa00b2c01031e3acab906927ca2edd5b5557399\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/824", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"37ca7266078be4bb3350a62fb785fe2ad64e0d57\"", + "user": "http://localhost:9001/3.0/users/8", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"ddda9833ea38cea61dbf611f3cf46fd118cba777\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/824"}], "http_etag": "\"0bc66991190d5c7dcf08a45a173386f68bc4503e\"", + "http://localhost:9001/3.0/users/8"}], "http_etag": "\"9e159c2ae2863bc8ff50f8475e6cb154967eba0c\"", "start": 0, "total_size": 2}'} headers: - content-length: ['716'] + content-length: ['712'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/addresses/fritz@example.org response: - body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"ddb21e0a61b18b7e95c428ef5f4009a807951e50\"", + body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"daa00b2c01031e3acab906927ca2edd5b5557399\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "user": - "http://localhost:9001/3.0/users/824", "verified_on": "2005-08-01T07:49:23"}'} + "http://localhost:9001/3.0/users/8", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['325'] + content-length: ['323'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/addresses/test@example.com response: - body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"37ca7266078be4bb3350a62fb785fe2ad64e0d57\"", + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"ddda9833ea38cea61dbf611f3cf46fd118cba777\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/824"}'} + "http://localhost:9001/3.0/users/8"}'} headers: - content-length: ['284'] + content-length: ['282'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -97,7 +97,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -107,40 +107,40 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: display_name=None&pre_confirmed=True&list_id=open_list.example.com&subscriber=fritz%40example.org&pre_verified=True + body: pre_verified=True&list_id=open_list.example.com&display_name=None&subscriber=fritz%40example.org&pre_confirmed=True headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1201'] + location: ['http://localhost:9001/3.0/members/19'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/roster/member response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/fritz@example.org", - "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"e1d97a88773a1d206d9b625a0954ab64c081d5b6\"", - "list_id": "open_list.example.com", "member_id": 1201, "role": "member", "self_link": - "http://localhost:9001/3.0/members/1201", "user": "http://localhost:9001/3.0/users/824"}], - "http_etag": "\"7ae76699ab748a008222abf3b9904651f88fe559\"", "start": 0, "total_size": - 1}'} + "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"c6d281ba11803b7706f3f4e34c4f2782db1986c4\"", + "list_id": "open_list.example.com", "member_id": 19, "moderation_action": + "defer", "role": "member", "self_link": "http://localhost:9001/3.0/members/19", + "user": "http://localhost:9001/3.0/users/8"}], "http_etag": "\"4a70bff942603731a25600629b3f5889f9defef2\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['467'] + content-length: ['491'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -153,7 +153,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -169,72 +169,72 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"c17c8b67fefd1837fe2c480cdae6a4bdb8d77b51\"", "is_server_owner": false, - "password": "$6$rounds=620518$42CsMlcAUi1palQN$BV..0zYz5CaR2U078vg5d7Cd5FNX86CGdEfsM.kCiW14mBwulr.fN5sPTYHLf8uf9eafCY60YUVLOqR54c5LG.", - "self_link": "http://localhost:9001/3.0/users/824", "user_id": 824}'} + "\"39ba94261fad054ceb0cb44bd894a8e1c5139e58\"", "is_server_owner": false, + "password": "$6$rounds=675214$SQfFoRtnCfHoOjtb$iJGAfecnyum9HE6y9K1F5wNnoqihyKHOcr.1iij91iZkjaPDhF7ECZkQjT1z1S0yWQmng2OEvcR/VpkzlhbLN/", + "self_link": "http://localhost:9001/3.0/users/8", "user_id": 8}'} headers: - content-length: ['328'] + content-length: ['324'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/824/addresses + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/8/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"ddb21e0a61b18b7e95c428ef5f4009a807951e50\"", "original_email": "fritz@example.org", + "\"daa00b2c01031e3acab906927ca2edd5b5557399\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/824", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"37ca7266078be4bb3350a62fb785fe2ad64e0d57\"", + "user": "http://localhost:9001/3.0/users/8", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"ddda9833ea38cea61dbf611f3cf46fd118cba777\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/824"}], "http_etag": "\"0bc66991190d5c7dcf08a45a173386f68bc4503e\"", + "http://localhost:9001/3.0/users/8"}], "http_etag": "\"9e159c2ae2863bc8ff50f8475e6cb154967eba0c\"", "start": 0, "total_size": 2}'} headers: - content-length: ['716'] + content-length: ['712'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/addresses/fritz@example.org response: - body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"ddb21e0a61b18b7e95c428ef5f4009a807951e50\"", + body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"daa00b2c01031e3acab906927ca2edd5b5557399\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "user": - "http://localhost:9001/3.0/users/824", "verified_on": "2005-08-01T07:49:23"}'} + "http://localhost:9001/3.0/users/8", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['325'] + content-length: ['323'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/addresses/test@example.com response: - body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"37ca7266078be4bb3350a62fb785fe2ad64e0d57\"", + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"ddda9833ea38cea61dbf611f3cf46fd118cba777\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/824"}'} + "http://localhost:9001/3.0/users/8"}'} headers: - content-length: ['284'] + content-length: ['282'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -247,7 +247,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -260,7 +260,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/member/test@example.com response: body: {string: !!python/unicode '{}'} @@ -272,22 +272,23 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/member/fritz@example.org response: body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/fritz@example.org", - "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"e1d97a88773a1d206d9b625a0954ab64c081d5b6\"", - "list_id": "open_list.example.com", "member_id": 1201, "role": "member", "self_link": - "http://localhost:9001/3.0/members/1201", "user": "http://localhost:9001/3.0/users/824"}'} + "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"c6d281ba11803b7706f3f4e34c4f2782db1986c4\"", + "list_id": "open_list.example.com", "member_id": 19, "moderation_action": + "defer", "role": "member", "self_link": "http://localhost:9001/3.0/members/19", + "user": "http://localhost:9001/3.0/users/8"}'} headers: - content-length: ['362'] + content-length: ['386'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_unknown.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_unknown.yaml index 4640edd..a91715a 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_unknown.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_unknown.yaml @@ -3,7 +3,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -19,72 +19,72 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"055b92e9282272f5d33a97ef47a82ebd7152ea83\"", "is_server_owner": false, - "password": "$6$rounds=620743$uV4PDcAN6jdXyVQG$PMFO1reGC4/2vOfIDM9rWnU69xhMU0bMQb.la4YUTIjWfRdTmRqfymEXS4K3Kvp.e88jsUV/iALHO9swtKZBg.", - "self_link": "http://localhost:9001/3.0/users/827", "user_id": 827}'} + "\"774baf718c3ef57a6de74f3fb5dabb64adf448e0\"", "is_server_owner": false, + "password": "$6$rounds=684393$gr7xhY64Qq34oaid$CbGxn/bFvV5YVDnR8gCPaoi3PkXr/IwvUGaYfeghdYbezpiz6Iy3Hen78NXyCSYWmjrYeq4B7b28fic.bhWVK.", + "self_link": "http://localhost:9001/3.0/users/11", "user_id": 11}'} headers: - content-length: ['328'] + content-length: ['326'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/827/addresses + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/11/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"a79890e498421e5a9abc76a3d7b8feb1a2818093\"", "original_email": "fritz@example.org", + "\"31b39d92c4c510d701a9be2bb097ee4dcbfb4ed9\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/827", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"d681c512b6d685fe030a46899c506cfd4bd21760\"", + "user": "http://localhost:9001/3.0/users/11", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"c0069cae5d04efb49c7546aef78ce21c4d054047\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/827"}], "http_etag": "\"0752f2708b71c5699ac51c97cbedff2354bbd9e1\"", + "http://localhost:9001/3.0/users/11"}], "http_etag": "\"d6c6b521dd9c4c6dc1d7bba4c0140496279002f8\"", "start": 0, "total_size": 2}'} headers: - content-length: ['716'] + content-length: ['714'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/addresses/fritz@example.org response: - body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"a79890e498421e5a9abc76a3d7b8feb1a2818093\"", + body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"31b39d92c4c510d701a9be2bb097ee4dcbfb4ed9\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "user": - "http://localhost:9001/3.0/users/827", "verified_on": "2005-08-01T07:49:23"}'} + "http://localhost:9001/3.0/users/11", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['325'] + content-length: ['324'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/addresses/test@example.com response: - body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"d681c512b6d685fe030a46899c506cfd4bd21760\"", + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"c0069cae5d04efb49c7546aef78ce21c4d054047\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/827"}'} + "http://localhost:9001/3.0/users/11"}'} headers: - content-length: ['284'] + content-length: ['283'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -97,7 +97,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -110,7 +110,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/roster/member response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -123,7 +123,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -136,7 +136,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -152,72 +152,72 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"055b92e9282272f5d33a97ef47a82ebd7152ea83\"", "is_server_owner": false, - "password": "$6$rounds=620743$uV4PDcAN6jdXyVQG$PMFO1reGC4/2vOfIDM9rWnU69xhMU0bMQb.la4YUTIjWfRdTmRqfymEXS4K3Kvp.e88jsUV/iALHO9swtKZBg.", - "self_link": "http://localhost:9001/3.0/users/827", "user_id": 827}'} + "\"774baf718c3ef57a6de74f3fb5dabb64adf448e0\"", "is_server_owner": false, + "password": "$6$rounds=684393$gr7xhY64Qq34oaid$CbGxn/bFvV5YVDnR8gCPaoi3PkXr/IwvUGaYfeghdYbezpiz6Iy3Hen78NXyCSYWmjrYeq4B7b28fic.bhWVK.", + "self_link": "http://localhost:9001/3.0/users/11", "user_id": 11}'} headers: - content-length: ['328'] + content-length: ['326'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/827/addresses + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/11/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"a79890e498421e5a9abc76a3d7b8feb1a2818093\"", "original_email": "fritz@example.org", + "\"31b39d92c4c510d701a9be2bb097ee4dcbfb4ed9\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/827", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"d681c512b6d685fe030a46899c506cfd4bd21760\"", + "user": "http://localhost:9001/3.0/users/11", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"c0069cae5d04efb49c7546aef78ce21c4d054047\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/827"}], "http_etag": "\"0752f2708b71c5699ac51c97cbedff2354bbd9e1\"", + "http://localhost:9001/3.0/users/11"}], "http_etag": "\"d6c6b521dd9c4c6dc1d7bba4c0140496279002f8\"", "start": 0, "total_size": 2}'} headers: - content-length: ['716'] + content-length: ['714'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/addresses/fritz@example.org response: - body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"a79890e498421e5a9abc76a3d7b8feb1a2818093\"", + body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"31b39d92c4c510d701a9be2bb097ee4dcbfb4ed9\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "user": - "http://localhost:9001/3.0/users/827", "verified_on": "2005-08-01T07:49:23"}'} + "http://localhost:9001/3.0/users/11", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['325'] + content-length: ['324'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/addresses/test@example.com response: - body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"d681c512b6d685fe030a46899c506cfd4bd21760\"", + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"c0069cae5d04efb49c7546aef78ce21c4d054047\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/827"}'} + "http://localhost:9001/3.0/users/11"}'} headers: - content-length: ['284'] + content-length: ['283'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -230,7 +230,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -243,7 +243,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/member/test@example.com response: body: {string: !!python/unicode '{}'} @@ -255,7 +255,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/member/fritz@example.org response: body: {string: !!python/unicode '{}'} @@ -267,7 +267,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": 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 182f39f..ae16f68 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary.yaml @@ -3,8 +3,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -16,7 +16,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -31,7 +31,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -46,8 +46,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -59,7 +59,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": @@ -76,7 +76,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} @@ -87,27 +87,37 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"3d8e58a242cd989aa4bc47a02dfbfca0b3551ddf\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/835", "user_id": 835}, - {"created_on": "2005-08-01T07:49:23", "display_name": "None", "http_etag": - "\"cbf776336bf50ffb5be6bb1f12bf5fdd88b3667c\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/836", "user_id": 836}], "http_etag": - "\"7de72c37a4bdc46d42ed3ce6bb4fa98db590a669\"", "start": 0, "total_size": - 2}'} + "http_etag": "\"eb591d9720aa0ac944b49315b6af1c950410b54c\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}, {"created_on": + "2005-08-01T07:49:23", "http_etag": "\"b36f8ca1d91d583901c768dc116815282d469c66\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/2", + "user_id": 2}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"bb1c2e6094a96b17e2d5dbf487291f7667f69f75\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3", + "user_id": 3}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"c1dcbf16536eb2e2151441f4bce2989ab1dab30b\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/4", + "user_id": 4}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"637c12d15eb0203c9ffac9ea2d5ac8605d18e38d\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/5", + "user_id": 5}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"b774d488fd2356b7bedf0e6fa4a26dc70dc2b02b\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/6", + "user_id": 6}, {"created_on": "2005-08-01T07:49:23", "display_name": "None", + "http_etag": "\"190a72468798ef5f7c51a5e73125abc76e61824a\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/12", "user_id": 12}], + "http_etag": "\"c5b0a2670ed8edbdb168566a5b22bdfa2bd2faca\"", "start": 0, "total_size": + 7}'} headers: - content-length: ['515'] + content-length: ['1459'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/835 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/1 response: body: {string: !!python/unicode ''} headers: @@ -117,8 +127,63 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/836 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/12 + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/2 + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/3 + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/4 + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/5 + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/6 response: body: {string: !!python/unicode ''} headers: @@ -128,8 +193,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -141,7 +206,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -156,7 +221,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -171,8 +236,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -184,7 +249,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": @@ -201,7 +266,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} @@ -212,25 +277,24 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"536273f194d2fc3a98889ad4624c6191c70faa21\"", "is_server_owner": - false, "password": "$6$rounds=630135$.ucb9UaxssEiS11Z$tK15XKwFG.Si04RkTTTC3jwa0lZVcgunW7Oplq65X9/We76Fl2TGcjqqJoibmZZelusdZvQUqmUZ4urBsujY30", - "self_link": "http://localhost:9001/3.0/users/837", "user_id": 837}], "http_etag": - "\"5c317cc9c585be6df44e04e49ab519f02f061780\"", "start": 0, "total_size": + "http_etag": "\"007cc78d77622058dc0f70458877d09487378a12\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/13", "user_id": 13}], + "http_etag": "\"cf0f619803e6e86366c5f8164b727b2c220bb803\"", "start": 0, "total_size": 1}'} headers: - content-length: ['433'] + content-length: ['295'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/837 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/13 response: body: {string: !!python/unicode ''} headers: @@ -240,8 +304,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -253,7 +317,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -268,7 +332,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -283,8 +347,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -296,7 +360,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": @@ -313,7 +377,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} @@ -324,36 +388,21 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users response: - body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"6885d9eb3b2a24dd6e8c7175b5286c782936f8f0\"", "is_server_owner": - false, "password": "$6$rounds=593428$O06dy86rYp2A1axh$jODat3Pka5AgopQodtHnT6lmhVCIJtdOmOdVmsYhEfOZajXLNYImYchgYr6Mc6REsvUVmg8rcVNZq6P9OyNAN1", - "self_link": "http://localhost:9001/3.0/users/838", "user_id": 838}], "http_etag": - "\"f189ce643266e50f7cb6e33c5dd5380ee7f7ee3e\"", "start": 0, "total_size": - 1}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} headers: - content-length: ['433'] + content-length: ['90'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/838 - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -365,7 +414,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -380,7 +429,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -395,8 +444,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -408,7 +457,342 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": + "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_id": "foo.example.com", "list_name": "foo", "mail_host": "example.com", + "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['399'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users + response: + body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", + "http_etag": "\"0151e0193b20e2c0ad85bb8486f2147bea762806\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/14", "user_id": 14}], + "http_etag": "\"a2e6bd1bff4ed16bf6266c9576da03906be66199\"", "start": 0, "total_size": + 1}'} + headers: + content-length: ['295'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/14 + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode 'Duplicate email host: example.com'} + headers: + content-length: ['33'] + content-type: [application/json; charset=utf-8] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} + headers: + content-length: ['233'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} + headers: + content-length: ['233'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=foo%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/lists/foo.example.com'] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": + "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_id": "foo.example.com", "list_name": "foo", "mail_host": "example.com", + "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['399'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users + response: + body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", + "http_etag": "\"a119139658280a28616ab32845860716e30d54aa\"", "is_server_owner": + false, "password": "$6$rounds=668672$UGbKIk63ZWyvOrKr$CjQekHj8c3HSMTEspzYPunBRAQckEqXXKy8HcX37jRNY/ikeXFv9im6e1p2AkrDu.ybkcdkwz7I5IH1C5SkwI0", + "self_link": "http://localhost:9001/3.0/users/15", "user_id": 15}], "http_etag": + "\"44166c391db1c47d12cb4559bd1121973bf799a6\"", "start": 0, "total_size": + 1}'} + headers: + content-length: ['431'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/15 + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode 'Duplicate email host: example.com'} + headers: + content-length: ['33'] + content-type: [application/json; charset=utf-8] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} + headers: + content-length: ['233'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} + headers: + content-length: ['233'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=foo%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/lists/foo.example.com'] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": + "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_id": "foo.example.com", "list_name": "foo", "mail_host": "example.com", + "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['399'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users + response: + body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", + "http_etag": "\"bcc61a62a5957478a1e99c3d6ba1d5cfe9fa9090\"", "is_server_owner": + false, "password": "$6$rounds=660245$MhzmhqvIGX3afEYw$Rr5ZnbO9U6HSoDJDUTbCh1fIeLMLtU3LFhzvgN8tl6lqemyR74KUcvJoMN4Rh6DOws/LuAOL.rQJAGElgGIM41", + "self_link": "http://localhost:9001/3.0/users/16", "user_id": 16}], "http_etag": + "\"2f363f5c65f555858d199376fe9b8e235f461a49\"", "start": 0, "total_size": + 1}'} + headers: + content-length: ['431'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/16 + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode 'Duplicate email host: example.com'} + headers: + content-length: ['33'] + content-type: [application/json; charset=utf-8] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} + headers: + content-length: ['233'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} + headers: + content-length: ['233'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=foo%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/lists/foo.example.com'] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -423,10 +807,10 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode 404 Not Found} + body: {string: !!python/unicode '404 Not Found'} headers: content-length: ['13'] content-type: [application/json; charset=utf-8] @@ -435,7 +819,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -448,7 +832,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -461,7 +845,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com response: body: {string: !!python/unicode '{}'} @@ -473,7 +857,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -504,7 +888,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": @@ -521,7 +905,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} @@ -532,7 +916,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -545,8 +929,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -558,7 +942,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -573,7 +957,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -588,8 +972,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -601,7 +985,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -616,7 +1000,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -647,7 +1031,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": @@ -664,7 +1048,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} @@ -675,7 +1059,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -688,8 +1072,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -701,7 +1085,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -716,7 +1100,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -731,8 +1115,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -744,7 +1128,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": @@ -761,7 +1145,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} @@ -772,25 +1156,25 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"02a9025de27e8f9c4690e29be92ea3594bfb0af6\"", "is_server_owner": - false, "password": "$6$rounds=710368$vDkvjfFUntdcQgMX$bD0tANcpaSDR6VPtyNN2SNZnpQ3RIInYeQjs0/k6xGKjLlQ./27Y74/vREQyfue7kE3JINm8tu593DjQffZDh/", - "self_link": "http://localhost:9001/3.0/users/839", "user_id": 839}], "http_etag": - "\"c1cbe0f11ec000b1fd09aaba9573033c10ae3fb5\"", "start": 0, "total_size": + "http_etag": "\"67b2679aa741d7802af424685f1f52e58220fe1e\"", "is_server_owner": + false, "password": "$6$rounds=611082$NUCl9kFdxH2h1Fim$68NxHafy2br5xmV30QGElhVFZ2r/KIQXWAiGv.YyGwvwzXt35TUnYUOhug50OHdTcJk.88gMaqli.z.qrbZof/", + "self_link": "http://localhost:9001/3.0/users/17", "user_id": 17}], "http_etag": + "\"018513ec86ebf31ac885e174dd40268a2e0048f9\"", "start": 0, "total_size": 1}'} headers: - content-length: ['433'] + content-length: ['431'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/839 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/17 response: body: {string: !!python/unicode ''} headers: @@ -800,8 +1184,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -813,7 +1197,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -828,7 +1212,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -843,8 +1227,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -856,7 +1240,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": @@ -873,7 +1257,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} @@ -884,25 +1268,25 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"564185ed6f5812e466d595b04bdfc16df9bd3593\"", "is_server_owner": - false, "password": "$6$rounds=593273$Nu/iAVfIdhCVKJ.K$EBNvsSw5qoPI4RmVgxvzH9KUmbAZZcUG6246t3bGjg3XhZ08CONlPs3fIhSbGH0HxjBwXa/ZBwd0Mf.HFeoFf/", - "self_link": "http://localhost:9001/3.0/users/840", "user_id": 840}], "http_etag": - "\"dd330b22d12a1b3db5b2c539e5fca8c8f9d3c275\"", "start": 0, "total_size": + "http_etag": "\"c5a32a8d4de390f96b760b8936ca26554c4cd555\"", "is_server_owner": + false, "password": "$6$rounds=611392$VWmg3MZFQbBP/63H$J5DWZ50qiU8HM7YIQd9uHuLOXnzh7Dd1y4AtwLqQjgAYrUlahgoJPD1aeu9bsLd3NntkhfjZXtzubSLqVdEaE0", + "self_link": "http://localhost:9001/3.0/users/18", "user_id": 18}], "http_etag": + "\"e7b5c06e29019808d84b4652b81df6f678949b67\"", "start": 0, "total_size": 1}'} headers: - content-length: ['433'] + content-length: ['431'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/840 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/18 response: body: {string: !!python/unicode ''} headers: @@ -912,8 +1296,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -925,7 +1309,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -940,7 +1324,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -955,8 +1339,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -968,7 +1352,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": @@ -985,7 +1369,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} @@ -996,27 +1380,124 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "display_name": "None", "http_etag": "\"7d5ccba2da3e56c767082bd5d560dc357515bd2c\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/841", - "user_id": 841}], "http_etag": "\"0835b954797340d7adfd10b0d58b51c9c46570af\"", + "display_name": "None", "http_etag": "\"738b16aa5f336bcbf244014d98535f24da52fc42\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/19", + "user_id": 19}], "http_etag": "\"f8be718493c688b61de62c673cfb89e74188f61a\"", "start": 0, "total_size": 1}'} headers: - content-length: ['321'] + content-length: ['319'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/841 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/19 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] status: {code: 204, message: No Content} +- request: + body: mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode 'Duplicate email host: example.com'} + headers: + content-length: ['33'] + content-type: [application/json; charset=utf-8] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} + headers: + content-length: ['233'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} + headers: + content-length: ['233'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=foo%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/lists/foo.example.com'] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": + "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_id": "foo.example.com", "list_name": "foo", "mail_host": "example.com", + "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['399'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users + response: + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_anonymous.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_anonymous.yaml new file mode 100644 index 0000000..bc481a7 --- /dev/null +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_anonymous.yaml @@ -0,0 +1,48 @@ +interactions: +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_size_threshold": 30.0, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"f24060c0fd5762da0d17009ff8b6f303bee3cd2f\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + headers: + content-length: ['1610'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_moderator.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_moderator.yaml new file mode 100644 index 0000000..4ba2e79 --- /dev/null +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_moderator.yaml @@ -0,0 +1,163 @@ +interactions: +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: list_id=foo.example.com&subscriber=test%40example.com&role=moderator + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/members + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/members/23'] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/test@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"0151e0193b20e2c0ad85bb8486f2147bea762806\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/14", "user_id": 14}'} + headers: + content-length: ['190'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/14/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag": + "\"6c39fd341eea07279f00e7cd3cd0ecd501bc0cec\"", "original_email": "test@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", + "user": "http://localhost:9001/3.0/users/14"}], "http_etag": "\"90fbccbf73f5e633883d07ed7e6b4f1f1217a341\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['388'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/addresses/test@example.com + response: + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"6c39fd341eea07279f00e7cd3cd0ecd501bc0cec\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/14"}'} + headers: + content-length: ['283'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/test@example.com", + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"9f6a5f41233b2b3a08304f24834dc512521016ec\"", + "list_id": "foo.example.com", "member_id": 23, "moderation_action": "accept", + "role": "moderator", "self_link": "http://localhost:9001/3.0/members/23", + "user": "http://localhost:9001/3.0/users/14"}], "http_etag": "\"0377e222bb75fa384244fdc347dd0a6bde58b89f\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['488'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com + response: + body: {string: !!python/unicode '{}'} + headers: + content-length: ['2'] + content-type: [application/json] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_size_threshold": 30.0, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"f24060c0fd5762da0d17009ff8b6f303bee3cd2f\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + headers: + content-length: ['1610'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_owner.yaml new file mode 100644 index 0000000..ecac3ce --- /dev/null +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_owner.yaml @@ -0,0 +1,163 @@ +interactions: +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: list_id=foo.example.com&subscriber=test%40example.com&role=owner + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/members + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/members/22'] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/test@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"007cc78d77622058dc0f70458877d09487378a12\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/13", "user_id": 13}'} + headers: + content-length: ['190'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/13/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag": + "\"183bd2070dec2c1087e072dede15f46d64ad4c23\"", "original_email": "test@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", + "user": "http://localhost:9001/3.0/users/13"}], "http_etag": "\"b92fe879e91887ed2a5e9d8fbbfa1d827c984395\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['388'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/addresses/test@example.com + response: + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"183bd2070dec2c1087e072dede15f46d64ad4c23\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/13"}'} + headers: + content-length: ['283'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/test@example.com", + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"64f58f14a248d5b83adf04e579c1ff31d1c721b0\"", + "list_id": "foo.example.com", "member_id": 22, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/22", "user": + "http://localhost:9001/3.0/users/13"}], "http_etag": "\"a17691c68c5f0895492fc34cbff26cb7172dd794\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['484'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com + response: + body: {string: !!python/unicode '{}'} + headers: + content-length: ['2'] + content-type: [application/json] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_size_threshold": 30.0, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"f24060c0fd5762da0d17009ff8b6f303bee3cd2f\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + headers: + content-length: ['1610'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_superuser.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_superuser.yaml new file mode 100644 index 0000000..163b223 --- /dev/null +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_superuser.yaml @@ -0,0 +1,113 @@ +interactions: +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/testadmin@example.com + response: + body: {string: !!python/unicode '404 Not Found'} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/member/testadmin@example.com + response: + body: {string: !!python/unicode '{}'} + headers: + content-length: ['2'] + content-type: [application/json] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_size_threshold": 30.0, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"f24060c0fd5762da0d17009ff8b6f303bee3cd2f\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + headers: + content-length: ['1610'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_moderator.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_moderator.yaml index 288bfda..61005d2 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_moderator.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_moderator.yaml @@ -1,22 +1,22 @@ interactions: - request: - body: display_name=&password=None&email=test%40example.com + body: password=None&display_name=&email=test%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/839'] + location: ['http://localhost:9001/3.0/users/17'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -28,23 +28,23 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: role=moderator&list_id=foo.example.com&subscriber=test%40example.com + body: list_id=foo.example.com&subscriber=test%40example.com&role=moderator headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1225'] + location: ['http://localhost:9001/3.0/members/26'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -59,53 +59,53 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"02a9025de27e8f9c4690e29be92ea3594bfb0af6\"", "is_server_owner": false, - "password": "$6$rounds=710368$vDkvjfFUntdcQgMX$bD0tANcpaSDR6VPtyNN2SNZnpQ3RIInYeQjs0/k6xGKjLlQ./27Y74/vREQyfue7kE3JINm8tu593DjQffZDh/", - "self_link": "http://localhost:9001/3.0/users/839", "user_id": 839}'} + "\"67b2679aa741d7802af424685f1f52e58220fe1e\"", "is_server_owner": false, + "password": "$6$rounds=611082$NUCl9kFdxH2h1Fim$68NxHafy2br5xmV30QGElhVFZ2r/KIQXWAiGv.YyGwvwzXt35TUnYUOhug50OHdTcJk.88gMaqli.z.qrbZof/", + "self_link": "http://localhost:9001/3.0/users/17", "user_id": 17}'} headers: - content-length: ['328'] + content-length: ['326'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/839/addresses + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/17/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag": - "\"671bfca351de429d9e9048c8cb39d00d7529fa01\"", "original_email": "test@example.com", + "\"728b0a651f28a9aef0690432eb539012aa4c130d\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "user": "http://localhost:9001/3.0/users/839"}], "http_etag": "\"70d0949db9b3b5d7309e76179c31a39b557542cc\"", + "user": "http://localhost:9001/3.0/users/17"}], "http_etag": "\"88559b648e3cb3ad6fbc75e13dbd37b318e5aa20\"", "start": 0, "total_size": 1}'} headers: - content-length: ['389'] + content-length: ['388'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/addresses/test@example.com response: - body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"671bfca351de429d9e9048c8cb39d00d7529fa01\"", + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"728b0a651f28a9aef0690432eb539012aa4c130d\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/839"}'} + "http://localhost:9001/3.0/users/17"}'} headers: - content-length: ['284'] + content-length: ['283'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -118,24 +118,24 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/test@example.com", - "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"1402c2d4a16718f681eeb598e7d8a184bf40ed8a\"", - "list_id": "foo.example.com", "member_id": 1225, "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/1225", "user": "http://localhost:9001/3.0/users/839"}], - "http_etag": "\"f3cd232b9ccd325baff39f82cdad88539e4df371\"", "start": 0, "total_size": - 1}'} + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"ba42b60bf5bb3cd9e832f3127571f0e2b9220e92\"", + "list_id": "foo.example.com", "member_id": 26, "moderation_action": "accept", + "role": "moderator", "self_link": "http://localhost:9001/3.0/members/26", + "user": "http://localhost:9001/3.0/users/17"}], "http_etag": "\"77869b6698e9136d2b38ad174c87c7fa3933a59c\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['462'] + content-length: ['488'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com response: body: {string: !!python/unicode '{}'} @@ -147,7 +147,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_owner.yaml index d7eb5c1..d9ed7f7 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_owner.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_owner.yaml @@ -1,22 +1,22 @@ interactions: - request: - body: display_name=&password=None&email=test%40example.com + body: password=None&display_name=&email=test%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/840'] + location: ['http://localhost:9001/3.0/users/18'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -28,23 +28,23 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: role=owner&list_id=foo.example.com&subscriber=test%40example.com + body: list_id=foo.example.com&subscriber=test%40example.com&role=owner headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1226'] + location: ['http://localhost:9001/3.0/members/27'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -59,70 +59,70 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"564185ed6f5812e466d595b04bdfc16df9bd3593\"", "is_server_owner": false, - "password": "$6$rounds=593273$Nu/iAVfIdhCVKJ.K$EBNvsSw5qoPI4RmVgxvzH9KUmbAZZcUG6246t3bGjg3XhZ08CONlPs3fIhSbGH0HxjBwXa/ZBwd0Mf.HFeoFf/", - "self_link": "http://localhost:9001/3.0/users/840", "user_id": 840}'} + "\"c5a32a8d4de390f96b760b8936ca26554c4cd555\"", "is_server_owner": false, + "password": "$6$rounds=611392$VWmg3MZFQbBP/63H$J5DWZ50qiU8HM7YIQd9uHuLOXnzh7Dd1y4AtwLqQjgAYrUlahgoJPD1aeu9bsLd3NntkhfjZXtzubSLqVdEaE0", + "self_link": "http://localhost:9001/3.0/users/18", "user_id": 18}'} headers: - content-length: ['328'] + content-length: ['326'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/840/addresses + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/18/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag": - "\"09ac21649ea7eee9d70796a512125372a795201d\"", "original_email": "test@example.com", + "\"c15852aab181b68acbd442056b76d5dd8a6daa16\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "user": "http://localhost:9001/3.0/users/840"}], "http_etag": "\"ae1fc9c0b7224870dc784f6f7b3dd29414ea91f3\"", + "user": "http://localhost:9001/3.0/users/18"}], "http_etag": "\"8cf4f4b24629be22ab8c1244fb152274d892955f\"", "start": 0, "total_size": 1}'} headers: - content-length: ['389'] + content-length: ['388'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/addresses/test@example.com response: - body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"09ac21649ea7eee9d70796a512125372a795201d\"", + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"c15852aab181b68acbd442056b76d5dd8a6daa16\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/840"}'} + "http://localhost:9001/3.0/users/18"}'} headers: - content-length: ['284'] + content-length: ['283'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/test@example.com", - "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"da088b48bb2f3af95a7d88efd69f19e9ba1fd4a4\"", - "list_id": "foo.example.com", "member_id": 1226, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1226", "user": "http://localhost:9001/3.0/users/840"}], - "http_etag": "\"e3e5d89bbb7c143744eb61c649d3195174af2409\"", "start": 0, "total_size": - 1}'} + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"37346f477cc22009038f126cfd0c9b8f50e631e5\"", + "list_id": "foo.example.com", "member_id": 27, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/27", "user": + "http://localhost:9001/3.0/users/18"}], "http_etag": "\"a4e634794c1277f36847e01ee9dd417fbb1852cf\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['458'] + content-length: ['484'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -135,7 +135,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com response: body: {string: !!python/unicode '{}'} @@ -147,7 +147,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_secondary_moderator.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_secondary_moderator.yaml index fafc0e6..aecd6ba 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_secondary_moderator.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_secondary_moderator.yaml @@ -1,24 +1,24 @@ interactions: - request: - body: display_name=&password=None&email=test%40example.com + body: password=None&display_name=&email=test%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/837'] + location: ['http://localhost:9001/3.0/users/15'] status: {code: 201, message: Created} - request: body: email=anotheremail%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST - uri: http://localhost:9001/3.0/users/837/addresses + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/users/15/addresses response: body: {string: !!python/unicode ''} headers: @@ -29,7 +29,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode POST + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/addresses/anotheremail@example.com/verify response: body: {string: !!python/unicode ''} @@ -40,7 +40,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -52,23 +52,23 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: role=moderator&list_id=foo.example.com&subscriber=anotheremail%40example.com + body: list_id=foo.example.com&subscriber=anotheremail%40example.com&role=moderator headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1223'] + location: ['http://localhost:9001/3.0/members/24'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -83,72 +83,72 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"536273f194d2fc3a98889ad4624c6191c70faa21\"", "is_server_owner": false, - "password": "$6$rounds=630135$.ucb9UaxssEiS11Z$tK15XKwFG.Si04RkTTTC3jwa0lZVcgunW7Oplq65X9/We76Fl2TGcjqqJoibmZZelusdZvQUqmUZ4urBsujY30", - "self_link": "http://localhost:9001/3.0/users/837", "user_id": 837}'} + "\"a119139658280a28616ab32845860716e30d54aa\"", "is_server_owner": false, + "password": "$6$rounds=668672$UGbKIk63ZWyvOrKr$CjQekHj8c3HSMTEspzYPunBRAQckEqXXKy8HcX37jRNY/ikeXFv9im6e1p2AkrDu.ybkcdkwz7I5IH1C5SkwI0", + "self_link": "http://localhost:9001/3.0/users/15", "user_id": 15}'} headers: - content-length: ['328'] + content-length: ['326'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/837/addresses + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/15/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "anotheremail@example.com", - "http_etag": "\"c3b8967e1b6fbdb89a6990822144416daa175840\"", "original_email": + "http_etag": "\"d652d3593551672385cb4c02a31cf9401c4134e7\"", "original_email": "anotheremail@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": - "http://localhost:9001/3.0/addresses/anotheremail@example.com", "user": "http://localhost:9001/3.0/users/837", + "http://localhost:9001/3.0/addresses/anotheremail@example.com", "user": "http://localhost:9001/3.0/users/15", "verified_on": "2005-08-01T07:49:23"}, {"email": "test@example.com", "http_etag": - "\"fbd7fa9dbfe5abadaa38ba9677a9c31e540ba341\"", "original_email": "test@example.com", + "\"7e89118330bb8d4cfca6242e4023e3685cfe802f\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "user": "http://localhost:9001/3.0/users/837"}], "http_etag": "\"7b95a99a728de6ebcf4df0c8e559ecf4e6594a89\"", + "user": "http://localhost:9001/3.0/users/15"}], "http_etag": "\"95484b203d290a29d170d1e82e3c5ca4b739af2b\"", "start": 0, "total_size": 2}'} headers: - content-length: ['737'] + content-length: ['735'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/addresses/anotheremail@example.com response: body: {string: !!python/unicode '{"email": "anotheremail@example.com", "http_etag": - "\"c3b8967e1b6fbdb89a6990822144416daa175840\"", "original_email": "anotheremail@example.com", + "\"d652d3593551672385cb4c02a31cf9401c4134e7\"", "original_email": "anotheremail@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/anotheremail@example.com", - "user": "http://localhost:9001/3.0/users/837", "verified_on": "2005-08-01T07:49:23"}'} + "user": "http://localhost:9001/3.0/users/15", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['346'] + content-length: ['345'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/addresses/test@example.com response: - body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"fbd7fa9dbfe5abadaa38ba9677a9c31e540ba341\"", + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"7e89118330bb8d4cfca6242e4023e3685cfe802f\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/837"}'} + "http://localhost:9001/3.0/users/15"}'} headers: - content-length: ['284'] + content-length: ['283'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -161,24 +161,25 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/anotheremail@example.com", "delivery_mode": "regular", "email": "anotheremail@example.com", "http_etag": - "\"0be485a8ddd170df38c8d3bdccf297e2f8039e17\"", "list_id": "foo.example.com", - "member_id": 1223, "role": "moderator", "self_link": "http://localhost:9001/3.0/members/1223", - "user": "http://localhost:9001/3.0/users/837"}], "http_etag": "\"944cf0467cd30b2a7f63187c330128d6a5fc9650\"", - "start": 0, "total_size": 1}'} + "\"ac12bc386cbb249aee842f645081dc55675b9ec2\"", "list_id": "foo.example.com", + "member_id": 24, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/24", "user": "http://localhost:9001/3.0/users/15"}], + "http_etag": "\"80ca948f5fc0981743fc8c4e6d5c80b3d835950c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['478'] + content-length: ['504'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com response: body: {string: !!python/unicode '{}'} @@ -190,7 +191,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/member/anotheremail@example.com response: body: {string: !!python/unicode '{}'} @@ -202,7 +203,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_secondary_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_secondary_owner.yaml index aee7f2e..e96f57b 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_secondary_owner.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_secondary_owner.yaml @@ -1,24 +1,24 @@ interactions: - request: - body: display_name=&password=None&email=test%40example.com + body: password=None&display_name=&email=test%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/838'] + location: ['http://localhost:9001/3.0/users/16'] status: {code: 201, message: Created} - request: body: email=anotheremail%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST - uri: http://localhost:9001/3.0/users/838/addresses + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/users/16/addresses response: body: {string: !!python/unicode ''} headers: @@ -29,7 +29,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode POST + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/addresses/anotheremail@example.com/verify response: body: {string: !!python/unicode ''} @@ -40,7 +40,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -52,23 +52,23 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: role=owner&list_id=foo.example.com&subscriber=anotheremail%40example.com + body: list_id=foo.example.com&subscriber=anotheremail%40example.com&role=owner headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1224'] + location: ['http://localhost:9001/3.0/members/25'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -83,89 +83,90 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"6885d9eb3b2a24dd6e8c7175b5286c782936f8f0\"", "is_server_owner": false, - "password": "$6$rounds=593428$O06dy86rYp2A1axh$jODat3Pka5AgopQodtHnT6lmhVCIJtdOmOdVmsYhEfOZajXLNYImYchgYr6Mc6REsvUVmg8rcVNZq6P9OyNAN1", - "self_link": "http://localhost:9001/3.0/users/838", "user_id": 838}'} + "\"bcc61a62a5957478a1e99c3d6ba1d5cfe9fa9090\"", "is_server_owner": false, + "password": "$6$rounds=660245$MhzmhqvIGX3afEYw$Rr5ZnbO9U6HSoDJDUTbCh1fIeLMLtU3LFhzvgN8tl6lqemyR74KUcvJoMN4Rh6DOws/LuAOL.rQJAGElgGIM41", + "self_link": "http://localhost:9001/3.0/users/16", "user_id": 16}'} headers: - content-length: ['328'] + content-length: ['326'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/838/addresses + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/16/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "anotheremail@example.com", - "http_etag": "\"855ff4908b8cb01df44206abf28bd6de628b702c\"", "original_email": + "http_etag": "\"a6242100b2e468ea0c2932b09c86970b7f41152f\"", "original_email": "anotheremail@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": - "http://localhost:9001/3.0/addresses/anotheremail@example.com", "user": "http://localhost:9001/3.0/users/838", + "http://localhost:9001/3.0/addresses/anotheremail@example.com", "user": "http://localhost:9001/3.0/users/16", "verified_on": "2005-08-01T07:49:23"}, {"email": "test@example.com", "http_etag": - "\"cf99fc5fff760e8c47de6c2f7e6019cd80d67c2c\"", "original_email": "test@example.com", + "\"4f8c6ce236ae784932ac2c3760ac04a842169db0\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "user": "http://localhost:9001/3.0/users/838"}], "http_etag": "\"31c050e032e8f1747dd3cc7c338b77d7051f2a5b\"", + "user": "http://localhost:9001/3.0/users/16"}], "http_etag": "\"4885de1b644bfce1c570c6e2e015525db8892d53\"", "start": 0, "total_size": 2}'} headers: - content-length: ['737'] + content-length: ['735'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/addresses/anotheremail@example.com response: body: {string: !!python/unicode '{"email": "anotheremail@example.com", "http_etag": - "\"855ff4908b8cb01df44206abf28bd6de628b702c\"", "original_email": "anotheremail@example.com", + "\"a6242100b2e468ea0c2932b09c86970b7f41152f\"", "original_email": "anotheremail@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/anotheremail@example.com", - "user": "http://localhost:9001/3.0/users/838", "verified_on": "2005-08-01T07:49:23"}'} + "user": "http://localhost:9001/3.0/users/16", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['346'] + content-length: ['345'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/addresses/test@example.com response: - body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"cf99fc5fff760e8c47de6c2f7e6019cd80d67c2c\"", + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"4f8c6ce236ae784932ac2c3760ac04a842169db0\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/838"}'} + "http://localhost:9001/3.0/users/16"}'} headers: - content-length: ['284'] + content-length: ['283'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/anotheremail@example.com", "delivery_mode": "regular", "email": "anotheremail@example.com", "http_etag": - "\"d13464856637e26c2de3520b3fc9ac533cc7c6be\"", "list_id": "foo.example.com", - "member_id": 1224, "role": "owner", "self_link": "http://localhost:9001/3.0/members/1224", - "user": "http://localhost:9001/3.0/users/838"}], "http_etag": "\"a102da5d29f6d3d6db79eb98c2f83946ed6e66f7\"", - "start": 0, "total_size": 1}'} + "\"1a177d5c0b34d37daaf9a81d1509118cf27b4f03\"", "list_id": "foo.example.com", + "member_id": 25, "moderation_action": "accept", "role": "owner", "self_link": + "http://localhost:9001/3.0/members/25", "user": "http://localhost:9001/3.0/users/16"}], + "http_etag": "\"73aa8f440913342ee82941c1b97f3edc0b1efd08\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['474'] + content-length: ['500'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -178,7 +179,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com response: body: {string: !!python/unicode '{}'} @@ -190,7 +191,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/member/anotheremail@example.com response: body: {string: !!python/unicode '{}'} @@ -202,7 +203,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_model-2.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_model-2.yaml index b97e37c..d8ec665 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_model-2.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_model-2.yaml @@ -3,10 +3,10 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode 404 Not Found} + body: {string: !!python/unicode '404 Not Found'} headers: content-length: ['13'] content-type: [application/json; charset=utf-8] diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_model.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_model.yaml index be236c7..01e36cf 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_model.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_model.yaml @@ -3,8 +3,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -16,7 +16,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -31,7 +31,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -46,8 +46,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -56,54 +56,54 @@ location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: - body: display_name=&password=&email=test%40example.com + body: password=&display_name=&email=test%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/834'] + location: ['http://localhost:9001/3.0/users/20'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"017e47c4afcadfde56923b0db19edfdaf0c74869\"", "is_server_owner": false, - "password": "$6$rounds=601898$bHJpXP/gNLvnNNyw$W7QJ2hi5OkI9Ln3WCZKPVIfQQLItmG9r4yZjyryuPKnb46gHIflK1Mnpa5Irb0JFXVT2ZMz4S72WgnC5WNO040", - "self_link": "http://localhost:9001/3.0/users/834", "user_id": 834}'} + "\"a742c95930ea89b02cfce2eb4a736f2cb07e09d1\"", "is_server_owner": false, + "password": "$6$rounds=697251$nucmRyLySnb09DHg$LRicvfx2HVdYahLD828q.g/OxkHjcReSyU632nP9RFj/TITteP2x813zBQyZuyajpD1yGv9hnFyx910zXTOKI/", + "self_link": "http://localhost:9001/3.0/users/20", "user_id": 20}'} headers: - content-length: ['328'] + content-length: ['326'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/834/addresses + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/20/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag": - "\"8c7e149ee49143d2df95110b03dbc74489daa16a\"", "original_email": "test@example.com", + "\"0d24aeaa8558af4c8640bc902367b2e534efecc1\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "user": "http://localhost:9001/3.0/users/834"}], "http_etag": "\"9631ed22f2a24940402d562ed864b79efc715f00\"", + "user": "http://localhost:9001/3.0/users/20"}], "http_etag": "\"7a60e544b5555116f10f199d66a1d90268ff97f2\"", "start": 0, "total_size": 1}'} headers: - content-length: ['389'] + content-length: ['388'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": @@ -120,7 +120,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} @@ -131,103 +131,25 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"bd4f84bc442d4fe5f00398903bb688ea8f85b8c3\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/828", "user_id": 828}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"881a0332a26390eb66a0e023b2cdf849f013c852\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/829", - "user_id": 829}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"4e685091235aaf5bdd140babe1c0c897d4363bd2\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/830", - "user_id": 830}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"5224cda73e10d5490780a3c3783b327f1ce9aaad\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/831", - "user_id": 831}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"cfceb1eb2d3a2543bb402dc62f8471da5e8878ee\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/832", - "user_id": 832}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"2af1f94331910955062fa2e246301bf2231f768e\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/833", - "user_id": 833}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"017e47c4afcadfde56923b0db19edfdaf0c74869\"", - "is_server_owner": false, "password": "$6$rounds=601898$bHJpXP/gNLvnNNyw$W7QJ2hi5OkI9Ln3WCZKPVIfQQLItmG9r4yZjyryuPKnb46gHIflK1Mnpa5Irb0JFXVT2ZMz4S72WgnC5WNO040", - "self_link": "http://localhost:9001/3.0/users/834", "user_id": 834}], "http_etag": - "\"6e34ad3f8a1301537bd37a837911c1b7df3e54cd\"", "start": 0, "total_size": - 7}'} + "http_etag": "\"a742c95930ea89b02cfce2eb4a736f2cb07e09d1\"", "is_server_owner": + false, "password": "$6$rounds=697251$nucmRyLySnb09DHg$LRicvfx2HVdYahLD828q.g/OxkHjcReSyU632nP9RFj/TITteP2x813zBQyZuyajpD1yGv9hnFyx910zXTOKI/", + "self_link": "http://localhost:9001/3.0/users/20", "user_id": 20}], "http_etag": + "\"21da88a3faf90d878876057239b7aec12a80dbff\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['1597'] + content-length: ['431'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/828 - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/829 - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/830 - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/831 - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/832 - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/833 - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/834 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/20 response: body: {string: !!python/unicode ''} headers: @@ -237,8 +159,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -250,7 +172,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -265,7 +187,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -280,8 +202,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -293,7 +215,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": @@ -310,7 +232,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} @@ -321,7 +243,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", diff --git a/src/postorius/tests/mailman_api_tests/test_list_members.py b/src/postorius/tests/mailman_api_tests/test_list_members.py index 242e390..3a8fc0a 100644 --- a/src/postorius/tests/mailman_api_tests/test_list_members.py +++ b/src/postorius/tests/mailman_api_tests/test_list_members.py @@ -137,9 +137,10 @@ @MM_VCR.use_cassette('test_list_members_owner_add_remove.yaml') def test_add_remove_owner(self): - self.client.post( - reverse('list_members', args=('foo@example.com', 'owners',)), + response = self.client.post( + reverse('list_members', args=('foo@example.com', 'owner',)), {'email': 'newowner@example.com'}) + self.assertEqual(response.status_code, 200) self.assertTrue('newowner@example.com' in self.foo_list.owners) self.client.post( reverse('remove_role', args=('foo@example.com', 'owner', @@ -153,9 +154,10 @@ self.su.is_superuser = False self.su.save() # It must still be allowed to create and remove owners - self.client.post( - reverse('list_members', args=('foo@example.com', 'owners',)), + response = self.client.post( + reverse('list_members', args=('foo@example.com', 'owner',)), {'email': 'newowner@example.com'}) + self.assertEqual(response.status_code, 200) self.assertTrue('newowner@example.com' in self.foo_list.owners) response = self.client.post( reverse('remove_role', args=('foo@example.com', 'owner', @@ -214,9 +216,10 @@ 'su', 'su@example.com', 'pwd') # login and post new moderator data to url self.client.login(username='su', password='pwd') - self.client.post( - reverse('list_members', args=('foo@example.com', 'moderators',)), + response = self.client.post( + reverse('list_members', args=('foo@example.com', 'moderator',)), {'email': 'newmod@example.com'}) + self.assertEqual(response.status_code, 200) moderators = self.foo_list.moderators @MM_VCR.use_cassette('test_list_members_add_moderator.yaml') diff --git a/src/postorius/tests/mailman_api_tests/test_list_summary.py b/src/postorius/tests/mailman_api_tests/test_list_summary.py index b59fb93..344c5e6 100644 --- a/src/postorius/tests/mailman_api_tests/test_list_summary.py +++ b/src/postorius/tests/mailman_api_tests/test_list_summary.py @@ -70,8 +70,7 @@ self.assertEqual(response.status_code, 200) self.assertEqual(response.context['list'].fqdn_listname, 'foo@example.com') - self.assertTrue('

' in response.content) - self.assertTrue('