diff --git a/src/postorius/tests/fixtures/vcr_cassettes/list_settings_access.yaml b/src/postorius/tests/fixtures/vcr_cassettes/list_settings_access.yaml index 23f8326..84fa331 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/list_settings_access.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/list_settings_access.yaml @@ -825,71 +825,6 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/archivers - response: - body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", - "mail-archive": true, "mhonarc": true, "prototype": true}'} - headers: - content-length: ['119'] - 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/archivers - response: - body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", - "mail-archive": true, "mhonarc": true, "prototype": true}'} - headers: - content-length: ['119'] - 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/archivers - response: - body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", - "mail-archive": true, "mhonarc": true, "prototype": true}'} - headers: - content-length: ['119'] - 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/archivers - response: - body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", - "mail-archive": true, "mhonarc": true, "prototype": true}'} - headers: - content-length: ['119'] - 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/archivers - response: - body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", - "mail-archive": true, "mhonarc": true, "prototype": true}'} - headers: - content-length: ['119'] - 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", @@ -1017,6 +952,71 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com/archivers + response: + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} + headers: + content-length: ['119'] + 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/archivers + response: + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} + headers: + content-length: ['119'] + 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/archivers + response: + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} + headers: + content-length: ['119'] + 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/archivers + response: + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} + headers: + content-length: ['119'] + 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/archivers + response: + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} + headers: + content-length: ['119'] + 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", @@ -1619,71 +1619,6 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/archivers - response: - body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", - "mail-archive": true, "mhonarc": true, "prototype": true}'} - headers: - content-length: ['119'] - 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/archivers - response: - body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", - "mail-archive": true, "mhonarc": true, "prototype": true}'} - headers: - content-length: ['119'] - 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/archivers - response: - body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", - "mail-archive": true, "mhonarc": true, "prototype": true}'} - headers: - content-length: ['119'] - 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/archivers - response: - body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", - "mail-archive": true, "mhonarc": true, "prototype": true}'} - headers: - content-length: ['119'] - 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/archivers - response: - body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", - "mail-archive": true, "mhonarc": true, "prototype": true}'} - headers: - content-length: ['119'] - 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", @@ -1731,6 +1666,71 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com/archivers + response: + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} + headers: + content-length: ['119'] + 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/archivers + response: + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} + headers: + content-length: ['119'] + 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/archivers + response: + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} + headers: + content-length: ['119'] + 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/archivers + response: + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} + headers: + content-length: ['119'] + 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/archivers + response: + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} + headers: + content-length: ['119'] + 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", diff --git a/src/postorius/tests/fixtures/vcr_cassettes/mailman_user.yaml b/src/postorius/tests/fixtures/vcr_cassettes/mailman_user.yaml index 2f630fe..903ecee 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/mailman_user.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/mailman_user.yaml @@ -203,4 +203,193 @@ 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 ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/domains/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/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: email=user%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 + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/users/11'] + status: {code: 201, message: Created} +- 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 DELETE + uri: http://localhost:9001/3.0/users/11 + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/domains/example.com + 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 ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/domains/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/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: email=user%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 + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/users/12'] + 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 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 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/domains/example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/mailman_user_address_prefs.yaml b/src/postorius/tests/fixtures/vcr_cassettes/mailman_user_address_prefs.yaml index 90fa7fc..2d65fca 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/mailman_user_address_prefs.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/mailman_user_address_prefs.yaml @@ -33,8 +33,8 @@ uri: http://localhost:9001/3.0/users/user@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"b5e34d45d8e2c1eef14fb903473ee7ffbb0a4690\"", "is_server_owner": false, - "password": "$6$rounds=674233$0bHOkvzk5KxYMdeN$pbrw4BW7TZMVdqoqWWzH05fFccGThULmFt3Fl46Ig4YCzfc3OEeGZ9nbO3Nkm08SpgfXYxZ/kD66TA/MWa46o1", + "\"23b0953dd320464da359ed4cfd284bdb1da5b67f\"", "is_server_owner": false, + "password": "$6$rounds=717148$f/IRVWVT7JA2FwUd$fUT3h3oGS7wJnPZL.Ls/rJZwacqgc8yRm7qAR8JWPsmnmzYeoMy.X7E0Zw8avTOPoMuJRJ/vnhaHwcbATEcaX1", "self_link": "http://localhost:9001/3.0/users/9", "user_id": 9}'} headers: content-length: ['324'] @@ -71,8 +71,8 @@ uri: http://localhost:9001/3.0/users/user@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"b5e34d45d8e2c1eef14fb903473ee7ffbb0a4690\"", "is_server_owner": false, - "password": "$6$rounds=674233$0bHOkvzk5KxYMdeN$pbrw4BW7TZMVdqoqWWzH05fFccGThULmFt3Fl46Ig4YCzfc3OEeGZ9nbO3Nkm08SpgfXYxZ/kD66TA/MWa46o1", + "\"23b0953dd320464da359ed4cfd284bdb1da5b67f\"", "is_server_owner": false, + "password": "$6$rounds=717148$f/IRVWVT7JA2FwUd$fUT3h3oGS7wJnPZL.Ls/rJZwacqgc8yRm7qAR8JWPsmnmzYeoMy.X7E0Zw8avTOPoMuJRJ/vnhaHwcbATEcaX1", "self_link": "http://localhost:9001/3.0/users/9", "user_id": 9}'} headers: content-length: ['324'] diff --git a/src/postorius/tests/fixtures/vcr_cassettes/mailman_user_none_prefs.yaml b/src/postorius/tests/fixtures/vcr_cassettes/mailman_user_none_prefs.yaml index 3c5401e..337a01d 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/mailman_user_none_prefs.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/mailman_user_none_prefs.yaml @@ -25,7 +25,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1'] + location: ['http://localhost:9001/3.0/members/37'] status: {code: 201, message: Created} - request: body: null @@ -35,11 +35,11 @@ uri: http://localhost:9001/3.0/users/user@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"ef76f3eeb810f6a24e4157eb493e81b8dbf76260\"", "is_server_owner": false, - "password": "$6$rounds=640174$Aw8ypj2F6ngmjWkv$B.xNJDSwm0TzBmtsRsSmvswdu1oeEl2uaaA1NbiL83E8ylEycVikTdZsLv/C9/MO9Qbpr4M3mDYVXiTEmM.dp.", - "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}'} + "\"40cb63ac4214f9d7d38000aaa52cfeb21d3d7842\"", "is_server_owner": false, + "password": "$6$rounds=721188$0Miw1xHxJukvIfWd$02kwUaajKQllZuQaWRy.K.SAcnnvUhXkhjZ45D6Kk0r22iLVWHGouKtqtTI5GlUEyPlHFHczLlNLnm12ArJ3Z.", + "self_link": "http://localhost:9001/3.0/users/11", "user_id": 11}'} headers: - content-length: ['324'] + content-length: ['326'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -47,16 +47,16 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/1/addresses + uri: http://localhost:9001/3.0/users/11/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag": - "\"52ace72a40745c0e003216ad8fbeb62bbf38e072\"", "original_email": "user@example.com", + "\"0581ab32f6c607426941beaf6d08de2cd5e5bb96\"", "original_email": "user@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user@example.com", - "user": "http://localhost:9001/3.0/users/1", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"9580a3b8be6093d25a53e0656b32438452dabdbd\"", "start": 0, "total_size": + "user": "http://localhost:9001/3.0/users/11", "verified_on": "2005-08-01T07:49:23"}], + "http_etag": "\"e0fdd715eb4000a1e98dcd1d8dde73e6f83d190e\"", "start": 0, "total_size": 1}'} headers: - content-length: ['425'] + content-length: ['426'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -67,11 +67,11 @@ uri: http://localhost:9001/3.0/users/user@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"ef76f3eeb810f6a24e4157eb493e81b8dbf76260\"", "is_server_owner": false, - "password": "$6$rounds=640174$Aw8ypj2F6ngmjWkv$B.xNJDSwm0TzBmtsRsSmvswdu1oeEl2uaaA1NbiL83E8ylEycVikTdZsLv/C9/MO9Qbpr4M3mDYVXiTEmM.dp.", - "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}'} + "\"40cb63ac4214f9d7d38000aaa52cfeb21d3d7842\"", "is_server_owner": false, + "password": "$6$rounds=721188$0Miw1xHxJukvIfWd$02kwUaajKQllZuQaWRy.K.SAcnnvUhXkhjZ45D6Kk0r22iLVWHGouKtqtTI5GlUEyPlHFHczLlNLnm12ArJ3Z.", + "self_link": "http://localhost:9001/3.0/users/11", "user_id": 11}'} headers: - content-length: ['324'] + content-length: ['326'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -79,12 +79,12 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/1/preferences + uri: http://localhost:9001/3.0/users/11/preferences response: - body: {string: !!python/unicode '{"http_etag": "\"b74f203eb6bb291486b3f3f98887098a7bec7de8\"", - "self_link": "http://localhost:9001/3.0/users/1/preferences"}'} + body: {string: !!python/unicode '{"http_etag": "\"d185bff5d6c82cb03121be4921fc8c5d3752fa5a\"", + "self_link": "http://localhost:9001/3.0/users/11/preferences"}'} headers: - content-length: ['123'] + content-length: ['124'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -95,11 +95,11 @@ uri: http://localhost:9001/3.0/users/user@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"ef76f3eeb810f6a24e4157eb493e81b8dbf76260\"", "is_server_owner": false, - "password": "$6$rounds=640174$Aw8ypj2F6ngmjWkv$B.xNJDSwm0TzBmtsRsSmvswdu1oeEl2uaaA1NbiL83E8ylEycVikTdZsLv/C9/MO9Qbpr4M3mDYVXiTEmM.dp.", - "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}'} + "\"40cb63ac4214f9d7d38000aaa52cfeb21d3d7842\"", "is_server_owner": false, + "password": "$6$rounds=721188$0Miw1xHxJukvIfWd$02kwUaajKQllZuQaWRy.K.SAcnnvUhXkhjZ45D6Kk0r22iLVWHGouKtqtTI5GlUEyPlHFHczLlNLnm12ArJ3Z.", + "self_link": "http://localhost:9001/3.0/users/11", "user_id": 11}'} headers: - content-length: ['324'] + content-length: ['326'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -107,16 +107,16 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/1/addresses + uri: http://localhost:9001/3.0/users/11/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag": - "\"52ace72a40745c0e003216ad8fbeb62bbf38e072\"", "original_email": "user@example.com", + "\"0581ab32f6c607426941beaf6d08de2cd5e5bb96\"", "original_email": "user@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user@example.com", - "user": "http://localhost:9001/3.0/users/1", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"9580a3b8be6093d25a53e0656b32438452dabdbd\"", "start": 0, "total_size": + "user": "http://localhost:9001/3.0/users/11", "verified_on": "2005-08-01T07:49:23"}], + "http_etag": "\"e0fdd715eb4000a1e98dcd1d8dde73e6f83d190e\"", "start": 0, "total_size": 1}'} headers: - content-length: ['425'] + content-length: ['426'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -142,11 +142,11 @@ uri: http://localhost:9001/3.0/users/user@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"ef76f3eeb810f6a24e4157eb493e81b8dbf76260\"", "is_server_owner": false, - "password": "$6$rounds=640174$Aw8ypj2F6ngmjWkv$B.xNJDSwm0TzBmtsRsSmvswdu1oeEl2uaaA1NbiL83E8ylEycVikTdZsLv/C9/MO9Qbpr4M3mDYVXiTEmM.dp.", - "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}'} + "\"40cb63ac4214f9d7d38000aaa52cfeb21d3d7842\"", "is_server_owner": false, + "password": "$6$rounds=721188$0Miw1xHxJukvIfWd$02kwUaajKQllZuQaWRy.K.SAcnnvUhXkhjZ45D6Kk0r22iLVWHGouKtqtTI5GlUEyPlHFHczLlNLnm12ArJ3Z.", + "self_link": "http://localhost:9001/3.0/users/11", "user_id": 11}'} headers: - content-length: ['324'] + content-length: ['326'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -154,16 +154,16 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/1/addresses + uri: http://localhost:9001/3.0/users/11/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag": - "\"52ace72a40745c0e003216ad8fbeb62bbf38e072\"", "original_email": "user@example.com", + "\"0581ab32f6c607426941beaf6d08de2cd5e5bb96\"", "original_email": "user@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user@example.com", - "user": "http://localhost:9001/3.0/users/1", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"9580a3b8be6093d25a53e0656b32438452dabdbd\"", "start": 0, "total_size": + "user": "http://localhost:9001/3.0/users/11", "verified_on": "2005-08-01T07:49:23"}], + "http_etag": "\"e0fdd715eb4000a1e98dcd1d8dde73e6f83d190e\"", "start": 0, "total_size": 1}'} headers: - content-length: ['425'] + content-length: ['426'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -175,13 +175,13 @@ uri: http://localhost:9001/3.0/members/find response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/user@example.com", - "delivery_mode": "regular", "email": "user@example.com", "http_etag": "\"daa2142986cd1722628e6cdc494b6649d7e635f4\"", - "list_id": "foo.example.com", "member_id": 1, "moderation_action": "defer", - "role": "member", "self_link": "http://localhost:9001/3.0/members/1", "user": - "http://localhost:9001/3.0/users/1"}], "http_etag": "\"507c947b2e96fe6b2037a446f6d9897e0707b684\"", + "delivery_mode": "regular", "email": "user@example.com", "http_etag": "\"32209b11f2317b417df13e7c8916ab3b368f6669\"", + "list_id": "foo.example.com", "member_id": 37, "moderation_action": "defer", + "role": "member", "self_link": "http://localhost:9001/3.0/members/37", "user": + "http://localhost:9001/3.0/users/11"}], "http_etag": "\"e9504425f407e2f845c7bc3b5aeeb87dcec676dd\"", "start": 0, "total_size": 1}'} headers: - content-length: ['481'] + content-length: ['484'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -189,12 +189,12 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/members/1/preferences + uri: http://localhost:9001/3.0/members/37/preferences response: - body: {string: !!python/unicode '{"http_etag": "\"4747934e4e9b7e99c3faf1c663491719cbfe2dd0\"", - "self_link": "http://localhost:9001/3.0/members/1/preferences"}'} + body: {string: !!python/unicode '{"http_etag": "\"0d034c34412fdb69f8328d15f6cd4bf69c60cfa6\"", + "self_link": "http://localhost:9001/3.0/members/37/preferences"}'} headers: - content-length: ['125'] + content-length: ['126'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -205,11 +205,11 @@ uri: http://localhost:9001/3.0/users/user@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"ef76f3eeb810f6a24e4157eb493e81b8dbf76260\"", "is_server_owner": false, - "password": "$6$rounds=640174$Aw8ypj2F6ngmjWkv$B.xNJDSwm0TzBmtsRsSmvswdu1oeEl2uaaA1NbiL83E8ylEycVikTdZsLv/C9/MO9Qbpr4M3mDYVXiTEmM.dp.", - "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}'} + "\"40cb63ac4214f9d7d38000aaa52cfeb21d3d7842\"", "is_server_owner": false, + "password": "$6$rounds=721188$0Miw1xHxJukvIfWd$02kwUaajKQllZuQaWRy.K.SAcnnvUhXkhjZ45D6Kk0r22iLVWHGouKtqtTI5GlUEyPlHFHczLlNLnm12ArJ3Z.", + "self_link": "http://localhost:9001/3.0/users/11", "user_id": 11}'} headers: - content-length: ['324'] + content-length: ['326'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -217,16 +217,16 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/1/addresses + uri: http://localhost:9001/3.0/users/11/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag": - "\"52ace72a40745c0e003216ad8fbeb62bbf38e072\"", "original_email": "user@example.com", + "\"0581ab32f6c607426941beaf6d08de2cd5e5bb96\"", "original_email": "user@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user@example.com", - "user": "http://localhost:9001/3.0/users/1", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"9580a3b8be6093d25a53e0656b32438452dabdbd\"", "start": 0, "total_size": + "user": "http://localhost:9001/3.0/users/11", "verified_on": "2005-08-01T07:49:23"}], + "http_etag": "\"e0fdd715eb4000a1e98dcd1d8dde73e6f83d190e\"", "start": 0, "total_size": 1}'} headers: - content-length: ['425'] + content-length: ['426'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -237,11 +237,11 @@ uri: http://localhost:9001/3.0/users/user@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"ef76f3eeb810f6a24e4157eb493e81b8dbf76260\"", "is_server_owner": false, - "password": "$6$rounds=640174$Aw8ypj2F6ngmjWkv$B.xNJDSwm0TzBmtsRsSmvswdu1oeEl2uaaA1NbiL83E8ylEycVikTdZsLv/C9/MO9Qbpr4M3mDYVXiTEmM.dp.", - "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}'} + "\"40cb63ac4214f9d7d38000aaa52cfeb21d3d7842\"", "is_server_owner": false, + "password": "$6$rounds=721188$0Miw1xHxJukvIfWd$02kwUaajKQllZuQaWRy.K.SAcnnvUhXkhjZ45D6Kk0r22iLVWHGouKtqtTI5GlUEyPlHFHczLlNLnm12ArJ3Z.", + "self_link": "http://localhost:9001/3.0/users/11", "user_id": 11}'} headers: - content-length: ['324'] + content-length: ['326'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -249,16 +249,16 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/1/addresses + uri: http://localhost:9001/3.0/users/11/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag": - "\"52ace72a40745c0e003216ad8fbeb62bbf38e072\"", "original_email": "user@example.com", + "\"0581ab32f6c607426941beaf6d08de2cd5e5bb96\"", "original_email": "user@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user@example.com", - "user": "http://localhost:9001/3.0/users/1", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"9580a3b8be6093d25a53e0656b32438452dabdbd\"", "start": 0, "total_size": + "user": "http://localhost:9001/3.0/users/11", "verified_on": "2005-08-01T07:49:23"}], + "http_etag": "\"e0fdd715eb4000a1e98dcd1d8dde73e6f83d190e\"", "start": 0, "total_size": 1}'} headers: - content-length: ['425'] + content-length: ['426'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -282,11 +282,11 @@ uri: http://localhost:9001/3.0/users/user@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"ef76f3eeb810f6a24e4157eb493e81b8dbf76260\"", "is_server_owner": false, - "password": "$6$rounds=640174$Aw8ypj2F6ngmjWkv$B.xNJDSwm0TzBmtsRsSmvswdu1oeEl2uaaA1NbiL83E8ylEycVikTdZsLv/C9/MO9Qbpr4M3mDYVXiTEmM.dp.", - "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}'} + "\"40cb63ac4214f9d7d38000aaa52cfeb21d3d7842\"", "is_server_owner": false, + "password": "$6$rounds=721188$0Miw1xHxJukvIfWd$02kwUaajKQllZuQaWRy.K.SAcnnvUhXkhjZ45D6Kk0r22iLVWHGouKtqtTI5GlUEyPlHFHczLlNLnm12ArJ3Z.", + "self_link": "http://localhost:9001/3.0/users/11", "user_id": 11}'} headers: - content-length: ['324'] + content-length: ['326'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -294,16 +294,16 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/1/addresses + uri: http://localhost:9001/3.0/users/11/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag": - "\"52ace72a40745c0e003216ad8fbeb62bbf38e072\"", "original_email": "user@example.com", + "\"0581ab32f6c607426941beaf6d08de2cd5e5bb96\"", "original_email": "user@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user@example.com", - "user": "http://localhost:9001/3.0/users/1", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"9580a3b8be6093d25a53e0656b32438452dabdbd\"", "start": 0, "total_size": + "user": "http://localhost:9001/3.0/users/11", "verified_on": "2005-08-01T07:49:23"}], + "http_etag": "\"e0fdd715eb4000a1e98dcd1d8dde73e6f83d190e\"", "start": 0, "total_size": 1}'} headers: - content-length: ['425'] + content-length: ['426'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -311,16 +311,16 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/1/addresses + uri: http://localhost:9001/3.0/users/11/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag": - "\"52ace72a40745c0e003216ad8fbeb62bbf38e072\"", "original_email": "user@example.com", + "\"0581ab32f6c607426941beaf6d08de2cd5e5bb96\"", "original_email": "user@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user@example.com", - "user": "http://localhost:9001/3.0/users/1", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"9580a3b8be6093d25a53e0656b32438452dabdbd\"", "start": 0, "total_size": + "user": "http://localhost:9001/3.0/users/11", "verified_on": "2005-08-01T07:49:23"}], + "http_etag": "\"e0fdd715eb4000a1e98dcd1d8dde73e6f83d190e\"", "start": 0, "total_size": 1}'} headers: - content-length: ['425'] + content-length: ['426'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -332,13 +332,13 @@ uri: http://localhost:9001/3.0/members/find response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/user@example.com", - "delivery_mode": "regular", "email": "user@example.com", "http_etag": "\"daa2142986cd1722628e6cdc494b6649d7e635f4\"", - "list_id": "foo.example.com", "member_id": 1, "moderation_action": "defer", - "role": "member", "self_link": "http://localhost:9001/3.0/members/1", "user": - "http://localhost:9001/3.0/users/1"}], "http_etag": "\"507c947b2e96fe6b2037a446f6d9897e0707b684\"", + "delivery_mode": "regular", "email": "user@example.com", "http_etag": "\"32209b11f2317b417df13e7c8916ab3b368f6669\"", + "list_id": "foo.example.com", "member_id": 37, "moderation_action": "defer", + "role": "member", "self_link": "http://localhost:9001/3.0/members/37", "user": + "http://localhost:9001/3.0/users/11"}], "http_etag": "\"e9504425f407e2f845c7bc3b5aeeb87dcec676dd\"", "start": 0, "total_size": 1}'} headers: - content-length: ['481'] + content-length: ['484'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -346,12 +346,12 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/members/1/preferences + uri: http://localhost:9001/3.0/members/37/preferences response: - body: {string: !!python/unicode '{"http_etag": "\"4747934e4e9b7e99c3faf1c663491719cbfe2dd0\"", - "self_link": "http://localhost:9001/3.0/members/1/preferences"}'} + body: {string: !!python/unicode '{"http_etag": "\"0d034c34412fdb69f8328d15f6cd4bf69c60cfa6\"", + "self_link": "http://localhost:9001/3.0/members/37/preferences"}'} headers: - content-length: ['125'] + content-length: ['126'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/mailman_user_subscriptions_no_mm_user.yaml b/src/postorius/tests/fixtures/vcr_cassettes/mailman_user_subscriptions_no_mm_user.yaml index 3dfdac7..fae6396 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/mailman_user_subscriptions_no_mm_user.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/mailman_user_subscriptions_no_mm_user.yaml @@ -46,21 +46,21 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/2'] + location: ['http://localhost:9001/3.0/users/13'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/2 + uri: http://localhost:9001/3.0/users/13 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"5d9a2125862a97678d31d374d4563c58e962ba81\"", "is_server_owner": false, - "password": "$6$rounds=674177$NUcFsfsljYExmeOr$Ia81UVDT8ZEIx2anUItM/BKFAOxAoCjewD0hHs66c7GOqskRRGdE6TtwpUXkJ1xo.rJ2Jzbn5.cwXut31W/Ci1", - "self_link": "http://localhost:9001/3.0/users/2", "user_id": 2}'} + "\"c88f76afe36064292f9aa036d117e85339107dfb\"", "is_server_owner": false, + "password": "$6$rounds=652031$SqTLQk/o9E55bcm1$MfnTr/f.YldgWFFFnpMg5UjXXEEmXgVpkdykZjS61p1Ml/q90yRXZqoPIBLkfjkNFkUngtxcxmPAa/..3YbOI.", + "self_link": "http://localhost:9001/3.0/users/13", "user_id": 13}'} headers: - content-length: ['324'] + content-length: ['326'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -68,16 +68,16 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/2/addresses + uri: http://localhost:9001/3.0/users/13/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "old-user@example.com", - "http_etag": "\"c0525c55f8389234b6835f13e2da185819e94507\"", "original_email": + "http_etag": "\"d639911ccdda2fc9e7dd0575c0774d386d6ee55e\"", "original_email": "old-user@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": - "http://localhost:9001/3.0/addresses/old-user@example.com", "user": "http://localhost:9001/3.0/users/2"}], - "http_etag": "\"11b8bff1cda2496f3a21cf476da2766fb6fae519\"", "start": 0, "total_size": + "http://localhost:9001/3.0/addresses/old-user@example.com", "user": "http://localhost:9001/3.0/users/13"}], + "http_etag": "\"442c28d5c74d55b4083102744e40358456462358\"", "start": 0, "total_size": 1}'} headers: - content-length: ['399'] + content-length: ['400'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -102,11 +102,11 @@ uri: http://localhost:9001/3.0/users/old-user@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"5d9a2125862a97678d31d374d4563c58e962ba81\"", "is_server_owner": false, - "password": "$6$rounds=674177$NUcFsfsljYExmeOr$Ia81UVDT8ZEIx2anUItM/BKFAOxAoCjewD0hHs66c7GOqskRRGdE6TtwpUXkJ1xo.rJ2Jzbn5.cwXut31W/Ci1", - "self_link": "http://localhost:9001/3.0/users/2", "user_id": 2}'} + "\"c88f76afe36064292f9aa036d117e85339107dfb\"", "is_server_owner": false, + "password": "$6$rounds=652031$SqTLQk/o9E55bcm1$MfnTr/f.YldgWFFFnpMg5UjXXEEmXgVpkdykZjS61p1Ml/q90yRXZqoPIBLkfjkNFkUngtxcxmPAa/..3YbOI.", + "self_link": "http://localhost:9001/3.0/users/13", "user_id": 13}'} headers: - content-length: ['324'] + content-length: ['326'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_change_subscription-2.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_change_subscription-2.yaml index c0721c6..81cf2f4 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 @@ -36,8 +36,8 @@ 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": "\"42ce4e7d3c120cfc9cff732913114a828f630666\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/17", "user_id": 17}'} + "None", "http_etag": "\"49b863f075905cce6e2628f1c7286796634cb0d2\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/20", "user_id": 20}'} headers: content-length: ['214'] content-type: [application/json; charset=utf-8] @@ -48,7 +48,7 @@ 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/17/addresses + uri: http://localhost:9001/3.0/users/20/addresses response: body: {string: !!python/unicode ''} headers: @@ -89,8 +89,8 @@ 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": "\"42ce4e7d3c120cfc9cff732913114a828f630666\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/17", "user_id": 17}'} + "None", "http_etag": "\"49b863f075905cce6e2628f1c7286796634cb0d2\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/20", "user_id": 20}'} headers: content-length: ['214'] content-type: [application/json; charset=utf-8] @@ -100,16 +100,16 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/17/addresses + uri: http://localhost:9001/3.0/users/20/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "anotheremail@example.com", - "http_etag": "\"cd718c211a2d4b86ebea9ee219da5b25d25ccedc\"", "original_email": + "http_etag": "\"7d83f4db1f9f0fb3b64961fc4fa8e7a7ed185ab2\"", "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/17", + "http://localhost:9001/3.0/addresses/anotheremail@example.com", "user": "http://localhost:9001/3.0/users/20", "verified_on": "2005-08-01T07:49:23"}, {"display_name": "None", "email": "test@example.com", - "http_etag": "\"105478bfe5f9ad7b81764569f3cadd08da4adcbf\"", "original_email": + "http_etag": "\"fb5f12f5516f9ff51caec7fd34fcfd43a1628062\"", "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/17"}], "http_etag": "\"eb5a887744a016e71db35bf89cd277656ae721bd\"", + "user": "http://localhost:9001/3.0/users/20"}], "http_etag": "\"9a155e31bd993cb6a102e2b01e7a772c2dab44dc\"", "start": 0, "total_size": 2}'} headers: content-length: ['759'] 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 50fa732..7084b02 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_change_subscription.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_change_subscription.yaml @@ -25,7 +25,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/43'] + location: ['http://localhost:9001/3.0/members/44'] status: {code: 201, message: Created} - request: body: null @@ -50,8 +50,8 @@ 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": "\"1f31f733981af257e2d63ee7779fc281aa16466d\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/18", "user_id": 18}'} + "None", "http_etag": "\"4e69221cb1880315766131d04dc5c375d3796f29\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/21", "user_id": 21}'} headers: content-length: ['214'] content-type: [application/json; charset=utf-8] @@ -61,14 +61,14 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/18/addresses + uri: http://localhost:9001/3.0/users/21/addresses response: body: {string: !!python/unicode '{"entries": [{"display_name": "None", "email": - "test@example.com", "http_etag": "\"8655e8d15880d71f4758ade14d4c1f704368c6ca\"", + "test@example.com", "http_etag": "\"c79d2fc4cf7f83906ca4e33933f118b95dd2dea6\"", "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/18", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"e11c1082a0ba13fc595916ab7eaf1026e3bc0cc3\"", "start": 0, "total_size": + "http://localhost:9001/3.0/users/21", "verified_on": "2005-08-01T07:49:23"}], + "http_etag": "\"b8380a504ea2d1d09c817c8f952fb6be9f574025\"", "start": 0, "total_size": 1}'} headers: content-length: ['450'] @@ -108,10 +108,10 @@ 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": "\"4e28e6b943b09057fb3b5d3c745bb69bed81a875\"", - "list_id": "foo.example.com", "member_id": 43, "moderation_action": "defer", - "role": "member", "self_link": "http://localhost:9001/3.0/members/43", "user": - "http://localhost:9001/3.0/users/18"}'} + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"b3f6451ea0097e10d97a52e8487ee58e0a2d3c35\"", + "list_id": "foo.example.com", "member_id": 44, "moderation_action": "defer", + "role": "member", "self_link": "http://localhost:9001/3.0/members/44", "user": + "http://localhost:9001/3.0/users/21"}'} headers: content-length: ['379'] content-type: [application/json; charset=utf-8] diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_domain_index.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_domain_index.yaml index 209be2f..aa7b05a 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_domain_index.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_domain_index.yaml @@ -66,7 +66,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/44'] + location: ['http://localhost:9001/3.0/members/45'] status: {code: 201, message: Created} - request: body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com @@ -79,7 +79,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/45'] + location: ['http://localhost:9001/3.0/members/46'] status: {code: 201, message: Created} - request: body: null @@ -201,101 +201,10 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/46'] - status: {code: 201, message: Created} -- request: - body: list_id=foo.example.com&role=moderator&subscriber=moderator%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/members - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] location: ['http://localhost:9001/3.0/members/47'] status: {code: 201, message: Created} - 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 DELETE - uri: http://localhost:9001/3.0/domains/example.com - 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 ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/domains/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/domains/example.com - response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} - headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: fqdn_listname=foo%40example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/lists/foo.example.com'] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: list_id=foo.example.com&role=owner&subscriber=owner%40example.com + body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -308,7 +217,85 @@ location: ['http://localhost:9001/3.0/members/48'] status: {code: 201, message: Created} - request: - body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com + 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 DELETE + uri: http://localhost:9001/3.0/domains/example.com + 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 ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/domains/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/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} + headers: + content-length: ['233'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=foo%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/lists/foo.example.com'] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: list_id=foo.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -321,85 +308,7 @@ location: ['http://localhost:9001/3.0/members/49'] status: {code: 201, message: Created} - 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 DELETE - uri: http://localhost:9001/3.0/domains/example.com - 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 ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/domains/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/domains/example.com - response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} - headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: fqdn_listname=foo%40example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/lists/foo.example.com'] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: list_id=foo.example.com&role=owner&subscriber=owner%40example.com + body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -412,7 +321,85 @@ location: ['http://localhost:9001/3.0/members/50'] status: {code: 201, message: Created} - request: - body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com + 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 DELETE + uri: http://localhost:9001/3.0/domains/example.com + 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 ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/domains/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/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} + headers: + content-length: ['233'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=foo%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/lists/foo.example.com'] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: list_id=foo.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -425,6 +412,19 @@ location: ['http://localhost:9001/3.0/members/51'] status: {code: 201, message: Created} - request: + body: list_id=foo.example.com&role=moderator&subscriber=moderator%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/members + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/members/52'] + status: {code: 201, message: Created} +- request: body: null headers: accept-encoding: ['gzip, deflate'] @@ -513,7 +513,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/52'] + location: ['http://localhost:9001/3.0/members/53'] status: {code: 201, message: Created} - request: body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com @@ -526,7 +526,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/53'] + location: ['http://localhost:9001/3.0/members/54'] status: {code: 201, message: Created} - request: body: null 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 715739f..fc1ecaf 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_creation.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_creation.yaml @@ -81,9 +81,9 @@ uri: http://localhost:9001/3.0/domains/example.com/owners response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"2b7d189e2d8f3403cf72781d5a1837d3f6722d31\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/21", "user_id": 21}], - "http_etag": "\"41ce539c1dc92039f93a90ab9f2f2d002a231d65\"", "start": 0, "total_size": + "http_etag": "\"1e86381735f77312260a704e0b6dc204d733f858\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/24", "user_id": 24}], + "http_etag": "\"e8d85c2de304ab3c6a2e748002c26e8107b9732a\"", "start": 0, "total_size": 1}'} headers: content-length: ['295'] @@ -97,8 +97,8 @@ uri: http://localhost:9001/3.0/users/su@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"2b7d189e2d8f3403cf72781d5a1837d3f6722d31\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/21", "user_id": 21}'} + "\"1e86381735f77312260a704e0b6dc204d733f858\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/24", "user_id": 24}'} headers: content-length: ['190'] content-type: [application/json; charset=utf-8] @@ -252,7 +252,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/54'] + location: ['http://localhost:9001/3.0/members/55'] status: {code: 201, message: Created} - request: body: null @@ -323,10 +323,10 @@ 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": "\"c45222941570d8f9a05516c20b4e958eb2f83b6d\"", - "list_id": "a_new_list.example.com", "member_id": 54, "moderation_action": - "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/54", - "user": "http://localhost:9001/3.0/users/23"}], "http_etag": "\"b43799a61a79337945de762c9a9e58628311a809\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"e7247cfad1b43948ea3a0a94fe028f069176c6aa\"", + "list_id": "a_new_list.example.com", "member_id": 55, "moderation_action": + "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/55", + "user": "http://localhost:9001/3.0/users/26"}], "http_etag": "\"c1c516f03842c442c093057f6f5e24c8fbb83190\"", "start": 0, "total_size": 1}'} headers: content-length: ['493'] 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 fa7071a..218b7ae 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 @@ -73,6 +73,21 @@ 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/roster/moderator response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newmod@example.com", 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 22f3e81..4623b86 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 @@ -32,6 +32,21 @@ 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/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com", 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 fa19a12..bb90178 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 @@ -124,6 +124,101 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/su@example.com + response: + body: {string: !!python/unicode '{"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}'} + headers: + 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/2/addresses + response: + body: {string: !!python/unicode '{"entries": [{"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/2"}], "http_etag": "\"7cc723891821fbf8b0974c2ec407cca11fbb6726\"", + "start": 0, "total_size": 1}'} + headers: + 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 + 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": + "\"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: ['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 + 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 + 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/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com", 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 a89af46..8515e65 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription.yaml @@ -186,7 +186,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/24'] + location: ['http://localhost:9001/3.0/users/27'] status: {code: 201, message: Created} - request: body: email=fritz%40example.org @@ -194,7 +194,7 @@ 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/24/addresses + uri: http://localhost:9001/3.0/users/27/addresses response: body: {string: !!python/unicode ''} headers: @@ -280,870 +280,6 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/24 - 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/domains/example.com - 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 ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/domains/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/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=open_list%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/open_list.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/open_list.example.com - response: - body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": - "open_list@example.com", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", - "list_id": "open_list.example.com", "list_name": "open_list", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", - "volume": 1}'} - headers: - content-length: ['324'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - 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": - true, "admin_notify_mchanges": false, "administrivia": true, "advertised": - true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": - "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": - "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", - "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": - "open_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": - false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": - "monthly", "digests_enabled": true, "display_name": "Open_list", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", - "http_etag": "\"0df09b8caf490c5b0108208cf1a653105fcc6893\"", "include_rfc2369_headers": - true, "join_address": "open_list-join@example.com", "last_post_at": null, - "leave_address": "open_list-leave@example.com", "list_name": "open_list", - "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", - "owner_address": "open_list-owner@example.com", "post_id": 1, "posting_address": - "open_list@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": - "no_munging", "reply_to_address": "", "request_address": "open_list-request@example.com", - "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Open_list] - ", "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", - "welcome_message_uri": "mailman:///welcome.txt"}'} - headers: - content-length: ['1763'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: subscription_policy=open - headers: - accept-encoding: ['gzip, deflate'] - !!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 ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - 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 - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/lists/moderate_subs.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/moderate_subs.example.com - response: - body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": - "moderate_subs@example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", - "list_id": "moderate_subs.example.com", "list_name": "moderate_subs", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", - "volume": 1}'} - headers: - content-length: ['344'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - 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": - true, "admin_notify_mchanges": false, "administrivia": true, "advertised": - true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": - "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": - "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", - "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": - "moderate_subs-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": - false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": - "monthly", "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", - "http_etag": "\"0ef83c8b84b16db2b497557f2d5cbba080ff1f77\"", "include_rfc2369_headers": - true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, - "leave_address": "moderate_subs-leave@example.com", "list_name": "moderate_subs", - "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", - "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": - "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "moderate_subs-request@example.com", "scheme": "http", "send_welcome_message": - true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": "confirm", - "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} - headers: - content-length: ['1803'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: subscription_policy=moderate - headers: - accept-encoding: ['gzip, deflate'] - !!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 ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: email=test%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 - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/users/25'] - 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/25/addresses - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/addresses/fritz@example.org'] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode POST - uri: http://localhost:9001/3.0/addresses/fritz@example.org/verify - 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/lists/open_list@example.com/requests - 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/moderate_subs@example.com/requests - 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 DELETE - uri: http://localhost:9001/3.0/lists/open_list@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 DELETE - uri: http://localhost:9001/3.0/lists/moderate_subs@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 DELETE - uri: http://localhost:9001/3.0/users/25 - 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/domains/example.com - 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 ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/domains/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/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=open_list%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/open_list.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/open_list.example.com - response: - body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": - "open_list@example.com", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", - "list_id": "open_list.example.com", "list_name": "open_list", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", - "volume": 1}'} - headers: - content-length: ['324'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - 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": - true, "admin_notify_mchanges": false, "administrivia": true, "advertised": - true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": - "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": - "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", - "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": - "open_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": - false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": - "monthly", "digests_enabled": true, "display_name": "Open_list", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", - "http_etag": "\"0df09b8caf490c5b0108208cf1a653105fcc6893\"", "include_rfc2369_headers": - true, "join_address": "open_list-join@example.com", "last_post_at": null, - "leave_address": "open_list-leave@example.com", "list_name": "open_list", - "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", - "owner_address": "open_list-owner@example.com", "post_id": 1, "posting_address": - "open_list@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": - "no_munging", "reply_to_address": "", "request_address": "open_list-request@example.com", - "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Open_list] - ", "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", - "welcome_message_uri": "mailman:///welcome.txt"}'} - headers: - content-length: ['1763'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: subscription_policy=open - headers: - accept-encoding: ['gzip, deflate'] - !!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 ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - 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 - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/lists/moderate_subs.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/moderate_subs.example.com - response: - body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": - "moderate_subs@example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", - "list_id": "moderate_subs.example.com", "list_name": "moderate_subs", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", - "volume": 1}'} - headers: - content-length: ['344'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - 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": - true, "admin_notify_mchanges": false, "administrivia": true, "advertised": - true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": - "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": - "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", - "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": - "moderate_subs-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": - false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": - "monthly", "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", - "http_etag": "\"0ef83c8b84b16db2b497557f2d5cbba080ff1f77\"", "include_rfc2369_headers": - true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, - "leave_address": "moderate_subs-leave@example.com", "list_name": "moderate_subs", - "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", - "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": - "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "moderate_subs-request@example.com", "scheme": "http", "send_welcome_message": - true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": "confirm", - "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} - headers: - content-length: ['1803'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: subscription_policy=moderate - headers: - accept-encoding: ['gzip, deflate'] - !!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 ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: email=test%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 - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/users/26'] - 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/26/addresses - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/addresses/fritz@example.org'] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode POST - uri: http://localhost:9001/3.0/addresses/fritz@example.org/verify - 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/lists/open_list@example.com/requests - 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/moderate_subs@example.com/requests - response: - body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "test@example.com", - "http_etag": "\"05789eac34b1a55d8e9c373407d5bb9de8f07d7c\"", "list_id": "moderate_subs.example.com", - "token": "0000000000000000000000000000000000000003", "token_owner": "moderator", - "type": "subscription", "when": "2005-08-01T07:49:23"}], "http_etag": "\"97ec7ec659a863253fb5b45bbb3e7a2ec9549f96\"", - "start": 0, "total_size": 1}'} - headers: - content-length: ['391'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - 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/0000000000000000000000000000000000000003 - 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/lists/open_list@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 DELETE - uri: http://localhost:9001/3.0/lists/moderate_subs@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 DELETE - uri: http://localhost:9001/3.0/users/26 - 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/domains/example.com - 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 ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/domains/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/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=open_list%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/open_list.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/open_list.example.com - response: - body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": - "open_list@example.com", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", - "list_id": "open_list.example.com", "list_name": "open_list", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", - "volume": 1}'} - headers: - content-length: ['324'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - 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": - true, "admin_notify_mchanges": false, "administrivia": true, "advertised": - true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": - "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": - "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", - "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": - "open_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": - false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": - "monthly", "digests_enabled": true, "display_name": "Open_list", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", - "http_etag": "\"0df09b8caf490c5b0108208cf1a653105fcc6893\"", "include_rfc2369_headers": - true, "join_address": "open_list-join@example.com", "last_post_at": null, - "leave_address": "open_list-leave@example.com", "list_name": "open_list", - "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", - "owner_address": "open_list-owner@example.com", "post_id": 1, "posting_address": - "open_list@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": - "no_munging", "reply_to_address": "", "request_address": "open_list-request@example.com", - "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Open_list] - ", "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", - "welcome_message_uri": "mailman:///welcome.txt"}'} - headers: - content-length: ['1763'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: subscription_policy=open - headers: - accept-encoding: ['gzip, deflate'] - !!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 ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - 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 - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/lists/moderate_subs.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/moderate_subs.example.com - response: - body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": - "moderate_subs@example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", - "list_id": "moderate_subs.example.com", "list_name": "moderate_subs", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", - "volume": 1}'} - headers: - content-length: ['344'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - 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": - true, "admin_notify_mchanges": false, "administrivia": true, "advertised": - true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": - "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": - "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", - "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": - "moderate_subs-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": - false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": - "monthly", "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", - "http_etag": "\"0ef83c8b84b16db2b497557f2d5cbba080ff1f77\"", "include_rfc2369_headers": - true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, - "leave_address": "moderate_subs-leave@example.com", "list_name": "moderate_subs", - "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", - "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": - "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "moderate_subs-request@example.com", "scheme": "http", "send_welcome_message": - true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": "confirm", - "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} - headers: - content-length: ['1803'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: subscription_policy=moderate - headers: - accept-encoding: ['gzip, deflate'] - !!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 ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: email=test%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 - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/users/27'] - 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/27/addresses - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/addresses/fritz@example.org'] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode POST - uri: http://localhost:9001/3.0/addresses/fritz@example.org/verify - 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/lists/open_list@example.com/requests - 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/moderate_subs@example.com/requests - 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 DELETE - uri: http://localhost:9001/3.0/lists/open_list@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 DELETE - uri: http://localhost:9001/3.0/lists/moderate_subs@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 DELETE uri: http://localhost:9001/3.0/users/27 response: body: {string: !!python/unicode ''} @@ -1444,4 +580,868 @@ 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 ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/domains/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/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=open_list%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/open_list.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/open_list.example.com + response: + body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": + "open_list@example.com", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", + "list_id": "open_list.example.com", "list_name": "open_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", + "volume": 1}'} + headers: + content-length: ['324'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + 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": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "open_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Open_list", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", + "http_etag": "\"0df09b8caf490c5b0108208cf1a653105fcc6893\"", "include_rfc2369_headers": + true, "join_address": "open_list-join@example.com", "last_post_at": null, + "leave_address": "open_list-leave@example.com", "list_name": "open_list", + "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "open_list-owner@example.com", "post_id": 1, "posting_address": + "open_list@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "open_list-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Open_list] + ", "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} + headers: + content-length: ['1763'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: subscription_policy=open + headers: + accept-encoding: ['gzip, deflate'] + !!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 ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + 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 + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/lists/moderate_subs.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/moderate_subs.example.com + response: + body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": + "moderate_subs@example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", + "list_id": "moderate_subs.example.com", "list_name": "moderate_subs", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", + "volume": 1}'} + headers: + content-length: ['344'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + 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": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "moderate_subs-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", + "http_etag": "\"0ef83c8b84b16db2b497557f2d5cbba080ff1f77\"", "include_rfc2369_headers": + true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, + "leave_address": "moderate_subs-leave@example.com", "list_name": "moderate_subs", + "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": + "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "moderate_subs-request@example.com", "scheme": "http", "send_welcome_message": + true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": "confirm", + "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + headers: + content-length: ['1803'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: subscription_policy=moderate + headers: + accept-encoding: ['gzip, deflate'] + !!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 ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: email=test%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 + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/users/29'] + 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/29/addresses + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/addresses/fritz@example.org'] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/addresses/fritz@example.org/verify + 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/lists/open_list@example.com/requests + 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/moderate_subs@example.com/requests + response: + body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "test@example.com", + "http_etag": "\"05789eac34b1a55d8e9c373407d5bb9de8f07d7c\"", "list_id": "moderate_subs.example.com", + "token": "0000000000000000000000000000000000000003", "token_owner": "moderator", + "type": "subscription", "when": "2005-08-01T07:49:23"}], "http_etag": "\"97ec7ec659a863253fb5b45bbb3e7a2ec9549f96\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['391'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + 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/0000000000000000000000000000000000000003 + 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/lists/open_list@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 DELETE + uri: http://localhost:9001/3.0/lists/moderate_subs@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 DELETE + uri: http://localhost:9001/3.0/users/29 + 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/domains/example.com + 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 ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/domains/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/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=open_list%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/open_list.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/open_list.example.com + response: + body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": + "open_list@example.com", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", + "list_id": "open_list.example.com", "list_name": "open_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", + "volume": 1}'} + headers: + content-length: ['324'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + 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": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "open_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Open_list", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", + "http_etag": "\"0df09b8caf490c5b0108208cf1a653105fcc6893\"", "include_rfc2369_headers": + true, "join_address": "open_list-join@example.com", "last_post_at": null, + "leave_address": "open_list-leave@example.com", "list_name": "open_list", + "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "open_list-owner@example.com", "post_id": 1, "posting_address": + "open_list@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "open_list-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Open_list] + ", "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} + headers: + content-length: ['1763'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: subscription_policy=open + headers: + accept-encoding: ['gzip, deflate'] + !!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 ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + 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 + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/lists/moderate_subs.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/moderate_subs.example.com + response: + body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": + "moderate_subs@example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", + "list_id": "moderate_subs.example.com", "list_name": "moderate_subs", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", + "volume": 1}'} + headers: + content-length: ['344'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + 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": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "moderate_subs-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", + "http_etag": "\"0ef83c8b84b16db2b497557f2d5cbba080ff1f77\"", "include_rfc2369_headers": + true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, + "leave_address": "moderate_subs-leave@example.com", "list_name": "moderate_subs", + "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": + "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "moderate_subs-request@example.com", "scheme": "http", "send_welcome_message": + true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": "confirm", + "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + headers: + content-length: ['1803'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: subscription_policy=moderate + headers: + accept-encoding: ['gzip, deflate'] + !!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 ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: email=test%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 + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/users/30'] + 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/30/addresses + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/addresses/fritz@example.org'] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/addresses/fritz@example.org/verify + 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/lists/open_list@example.com/requests + 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/moderate_subs@example.com/requests + 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 DELETE + uri: http://localhost:9001/3.0/lists/open_list@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 DELETE + uri: http://localhost:9001/3.0/lists/moderate_subs@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 DELETE + uri: http://localhost:9001/3.0/users/30 + 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/domains/example.com + 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 ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/domains/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/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=open_list%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/open_list.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/open_list.example.com + response: + body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": + "open_list@example.com", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", + "list_id": "open_list.example.com", "list_name": "open_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", + "volume": 1}'} + headers: + content-length: ['324'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + 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": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "open_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Open_list", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", + "http_etag": "\"0df09b8caf490c5b0108208cf1a653105fcc6893\"", "include_rfc2369_headers": + true, "join_address": "open_list-join@example.com", "last_post_at": null, + "leave_address": "open_list-leave@example.com", "list_name": "open_list", + "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "open_list-owner@example.com", "post_id": 1, "posting_address": + "open_list@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "open_list-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Open_list] + ", "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} + headers: + content-length: ['1763'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: subscription_policy=open + headers: + accept-encoding: ['gzip, deflate'] + !!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 ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + 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 + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/lists/moderate_subs.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/moderate_subs.example.com + response: + body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": + "moderate_subs@example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", + "list_id": "moderate_subs.example.com", "list_name": "moderate_subs", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", + "volume": 1}'} + headers: + content-length: ['344'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + 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": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "moderate_subs-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", + "http_etag": "\"0ef83c8b84b16db2b497557f2d5cbba080ff1f77\"", "include_rfc2369_headers": + true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, + "leave_address": "moderate_subs-leave@example.com", "list_name": "moderate_subs", + "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": + "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "moderate_subs-request@example.com", "scheme": "http", "send_welcome_message": + true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": "confirm", + "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + headers: + content-length: ['1803'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: subscription_policy=moderate + headers: + accept-encoding: ['gzip, deflate'] + !!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 ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: email=test%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 + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/users/31'] + 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/31/addresses + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/addresses/fritz@example.org'] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/addresses/fritz@example.org/verify + 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/lists/open_list@example.com/requests + 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/moderate_subs@example.com/requests + 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 DELETE + uri: http://localhost:9001/3.0/lists/open_list@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 DELETE + uri: http://localhost:9001/3.0/lists/moderate_subs@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 DELETE + uri: http://localhost:9001/3.0/users/31 + 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/domains/example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_mod_primary.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_mod_primary.yaml index 442758e..c4d02db 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 @@ -23,9 +23,9 @@ uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"22566de33b3ff720338547bdf26b97916321f504\"", "is_server_owner": false, - "password": "$6$rounds=596903$iOSzGqFbp9KpwRKk$KisF/V81KnDq7.CiruPSRVDSEm6Y90MzEBkpyz9v9527g1r1VldgS/mS/p/zBeErw3VtgzsoW7J84TjX/nRCs1", - "self_link": "http://localhost:9001/3.0/users/26", "user_id": 26}'} + "\"ef25145044f0272a0e4c78e0e35ac77a7b2e432d\"", "is_server_owner": false, + "password": "$6$rounds=606009$hU7GW7i1v71Qeo95$tBQOMk0i4TsePmpIErLZdWCo65JG6z26bExRfc3kKuAzFpkhDRkul2ISHefulgCOk9pSaNBS13BU9qtScRGLh.", + "self_link": "http://localhost:9001/3.0/users/29", "user_id": 29}'} headers: content-length: ['326'] content-type: [application/json; charset=utf-8] @@ -35,16 +35,16 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/26/addresses + uri: http://localhost:9001/3.0/users/29/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"12916f2dccd0180520d2cb7ab0dfa752715e1fd9\"", "original_email": "fritz@example.org", + "\"7a448f426c2d9d8e37ed4ddc18e82a67477a2dff\"", "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/26", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"c213666b199f08f149751b67207fa087395abf9b\"", + "user": "http://localhost:9001/3.0/users/29", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"133cfc8bbd918da9de1314a910d531b42f548f8d\"", "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/26"}], "http_etag": "\"abca8d2abbe1d637b4abfeb7a89042e7668d5b21\"", + "http://localhost:9001/3.0/users/29"}], "http_etag": "\"b3813673635dc17fa717990db22bdeefd5673c35\"", "start": 0, "total_size": 2}'} headers: content-length: ['714'] @@ -143,9 +143,9 @@ uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"22566de33b3ff720338547bdf26b97916321f504\"", "is_server_owner": false, - "password": "$6$rounds=596903$iOSzGqFbp9KpwRKk$KisF/V81KnDq7.CiruPSRVDSEm6Y90MzEBkpyz9v9527g1r1VldgS/mS/p/zBeErw3VtgzsoW7J84TjX/nRCs1", - "self_link": "http://localhost:9001/3.0/users/26", "user_id": 26}'} + "\"ef25145044f0272a0e4c78e0e35ac77a7b2e432d\"", "is_server_owner": false, + "password": "$6$rounds=606009$hU7GW7i1v71Qeo95$tBQOMk0i4TsePmpIErLZdWCo65JG6z26bExRfc3kKuAzFpkhDRkul2ISHefulgCOk9pSaNBS13BU9qtScRGLh.", + "self_link": "http://localhost:9001/3.0/users/29", "user_id": 29}'} headers: content-length: ['326'] content-type: [application/json; charset=utf-8] @@ -155,17 +155,17 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/26/addresses + uri: http://localhost:9001/3.0/users/29/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"12916f2dccd0180520d2cb7ab0dfa752715e1fd9\"", "original_email": "fritz@example.org", + "\"7a448f426c2d9d8e37ed4ddc18e82a67477a2dff\"", "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/26", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"d1c098e9c7eb2184c709b529f28bf1702af5ea7a\"", + "user": "http://localhost:9001/3.0/users/29", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"b0a55fd4c6a3ffa485b90ee5155989c420a00154\"", "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/26", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"49188703b86d8580f0b9dd7e675c1f83673990de\"", "start": 0, "total_size": + "http://localhost:9001/3.0/users/29", "verified_on": "2005-08-01T07:49:23"}], + "http_etag": "\"763cf0fe3df054c923728ea94b30bac1eed2a1d7\"", "start": 0, "total_size": 2}'} headers: content-length: ['752'] 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 3dde166..2ca5c7c 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 @@ -23,9 +23,9 @@ uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"3ae48bdb953ebf52bbc780547d90d42b44b19bbc\"", "is_server_owner": false, - "password": "$6$rounds=697635$QoFO9k9slOAC4I6M$9T8esH1PLCveB.0PFLj3rkT.5qYpuleVa.4sk6jpPek35tHzK.qYe.tji1hlnRikzbcr9wxaHDHnKZnhE640K1", - "self_link": "http://localhost:9001/3.0/users/24", "user_id": 24}'} + "\"8d1caffcc278999c800d96ff4a0aba301e3696b5\"", "is_server_owner": false, + "password": "$6$rounds=655203$giCb56XOrT2.Gc2b$8q8SQs5JRM4lYl5vwGZMhuGuQLtNN7/ZBWiH8ZHwQyXlLyCwk7yzTzm7VUztuLm2sEoXuexji1UMN9jG.wBSs0", + "self_link": "http://localhost:9001/3.0/users/27", "user_id": 27}'} headers: content-length: ['326'] content-type: [application/json; charset=utf-8] @@ -35,16 +35,16 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/24/addresses + uri: http://localhost:9001/3.0/users/27/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"29f6f2b1d08f86421e1c1af7a04090b9c2deef12\"", "original_email": "fritz@example.org", + "\"4e8b2b91b2e47aaa920f213a88797183a47146f4\"", "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/24", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"2f8838a184be164d4bf12bc7d25c69051a291bd6\"", + "user": "http://localhost:9001/3.0/users/27", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"ad8ac76a93e51a3d36c47c3565f996c1629b6caa\"", "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/24"}], "http_etag": "\"0e78be13cfcc2987552e5e0dc1223306173372b1\"", + "http://localhost:9001/3.0/users/27"}], "http_etag": "\"4f1fb2e5eeb78542992963353c45de6451f8d365\"", "start": 0, "total_size": 2}'} headers: content-length: ['714'] @@ -143,9 +143,9 @@ uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"3ae48bdb953ebf52bbc780547d90d42b44b19bbc\"", "is_server_owner": false, - "password": "$6$rounds=697635$QoFO9k9slOAC4I6M$9T8esH1PLCveB.0PFLj3rkT.5qYpuleVa.4sk6jpPek35tHzK.qYe.tji1hlnRikzbcr9wxaHDHnKZnhE640K1", - "self_link": "http://localhost:9001/3.0/users/24", "user_id": 24}'} + "\"8d1caffcc278999c800d96ff4a0aba301e3696b5\"", "is_server_owner": false, + "password": "$6$rounds=655203$giCb56XOrT2.Gc2b$8q8SQs5JRM4lYl5vwGZMhuGuQLtNN7/ZBWiH8ZHwQyXlLyCwk7yzTzm7VUztuLm2sEoXuexji1UMN9jG.wBSs0", + "self_link": "http://localhost:9001/3.0/users/27", "user_id": 27}'} headers: content-length: ['326'] content-type: [application/json; charset=utf-8] @@ -155,16 +155,16 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/24/addresses + uri: http://localhost:9001/3.0/users/27/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"29f6f2b1d08f86421e1c1af7a04090b9c2deef12\"", "original_email": "fritz@example.org", + "\"4e8b2b91b2e47aaa920f213a88797183a47146f4\"", "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/24", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"2f8838a184be164d4bf12bc7d25c69051a291bd6\"", + "user": "http://localhost:9001/3.0/users/27", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"ad8ac76a93e51a3d36c47c3565f996c1629b6caa\"", "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/24"}], "http_etag": "\"0e78be13cfcc2987552e5e0dc1223306173372b1\"", + "http://localhost:9001/3.0/users/27"}], "http_etag": "\"4f1fb2e5eeb78542992963353c45de6451f8d365\"", "start": 0, "total_size": 2}'} headers: content-length: ['714'] 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 fe03ea7..829de74 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 @@ -23,9 +23,9 @@ uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"f3dfdee79eaa3cb9a9aeb81000201ff65227b576\"", "is_server_owner": false, - "password": "$6$rounds=688959$wrmV04dL7/i9uR1L$ODeOSjptLLFscrJ.pJhlHRfjSBYkP32RIOqaU.85xFBpLKJeXJ.WUsQmQrt0sBJrmrCm/HlYuqk1K.tp3Qskq0", - "self_link": "http://localhost:9001/3.0/users/27", "user_id": 27}'} + "\"1ea7d010e1ffd30ed70bba2ca3206a584ba4cc98\"", "is_server_owner": false, + "password": "$6$rounds=659336$gu8GtixjaCX2hyMo$iYORSuhcGrllcnVE.u4cdwxP0kAgAXEf3885fFxm899o/pSrtxf6b9nvJeY6u0/.De5AE81UhEkMPODzjuOIk.", + "self_link": "http://localhost:9001/3.0/users/30", "user_id": 30}'} headers: content-length: ['326'] content-type: [application/json; charset=utf-8] @@ -35,16 +35,16 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/27/addresses + uri: http://localhost:9001/3.0/users/30/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"4e8b2b91b2e47aaa920f213a88797183a47146f4\"", "original_email": "fritz@example.org", + "\"a5e297f52280e9c0e6b5222f130b6897201124c7\"", "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/27", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"ad8ac76a93e51a3d36c47c3565f996c1629b6caa\"", + "user": "http://localhost:9001/3.0/users/30", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"99ef71b350c34aa40bd0d67d41815b6e90099efa\"", "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/27"}], "http_etag": "\"4f1fb2e5eeb78542992963353c45de6451f8d365\"", + "http://localhost:9001/3.0/users/30"}], "http_etag": "\"ee03744b8331e81bc721bb3f6a8f2cf8e39d1825\"", "start": 0, "total_size": 2}'} headers: content-length: ['714'] @@ -87,7 +87,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/56'] + location: ['http://localhost:9001/3.0/members/57'] status: {code: 201, message: Created} - request: body: null @@ -97,10 +97,10 @@ 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": "\"d4bb148d277019ee718a1a8aa7c89db7fa64d778\"", - "list_id": "open_list.example.com", "member_id": 56, "moderation_action": - "defer", "role": "member", "self_link": "http://localhost:9001/3.0/members/56", - "user": "http://localhost:9001/3.0/users/27"}], "http_etag": "\"d68c99d8f053ad52d075819b5e24de695790e8e7\"", + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"e96b6232646c634a27f58b6a04f9c36454e60f34\"", + "list_id": "open_list.example.com", "member_id": 57, "moderation_action": + "defer", "role": "member", "self_link": "http://localhost:9001/3.0/members/57", + "user": "http://localhost:9001/3.0/users/30"}], "http_etag": "\"117bf6f3831944e9e3786429f00da656f433586e\"", "start": 0, "total_size": 1}'} headers: content-length: ['490'] @@ -143,9 +143,9 @@ uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"f3dfdee79eaa3cb9a9aeb81000201ff65227b576\"", "is_server_owner": false, - "password": "$6$rounds=688959$wrmV04dL7/i9uR1L$ODeOSjptLLFscrJ.pJhlHRfjSBYkP32RIOqaU.85xFBpLKJeXJ.WUsQmQrt0sBJrmrCm/HlYuqk1K.tp3Qskq0", - "self_link": "http://localhost:9001/3.0/users/27", "user_id": 27}'} + "\"1ea7d010e1ffd30ed70bba2ca3206a584ba4cc98\"", "is_server_owner": false, + "password": "$6$rounds=659336$gu8GtixjaCX2hyMo$iYORSuhcGrllcnVE.u4cdwxP0kAgAXEf3885fFxm899o/pSrtxf6b9nvJeY6u0/.De5AE81UhEkMPODzjuOIk.", + "self_link": "http://localhost:9001/3.0/users/30", "user_id": 30}'} headers: content-length: ['326'] content-type: [application/json; charset=utf-8] @@ -155,17 +155,17 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/27/addresses + uri: http://localhost:9001/3.0/users/30/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"4e8b2b91b2e47aaa920f213a88797183a47146f4\"", "original_email": "fritz@example.org", + "\"a5e297f52280e9c0e6b5222f130b6897201124c7\"", "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/27", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"27e233e0e3de02d6476a8c7be5eba2e86f80f08f\"", + "user": "http://localhost:9001/3.0/users/30", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"ff943507333763326861c2581ddd2b9bc202982c\"", "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/27", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"896b2ee4d5ac9eb44acd0a54c254784a886bdaa3\"", "start": 0, "total_size": + "http://localhost:9001/3.0/users/30", "verified_on": "2005-08-01T07:49:23"}], + "http_etag": "\"01d65e861ab26b116761b4fce9a36b5fa236b7ac\"", "start": 0, "total_size": 2}'} headers: content-length: ['752'] @@ -205,10 +205,10 @@ 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": "\"d4bb148d277019ee718a1a8aa7c89db7fa64d778\"", - "list_id": "open_list.example.com", "member_id": 56, "moderation_action": - "defer", "role": "member", "self_link": "http://localhost:9001/3.0/members/56", - "user": "http://localhost:9001/3.0/users/27"}'} + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"e96b6232646c634a27f58b6a04f9c36454e60f34\"", + "list_id": "open_list.example.com", "member_id": 57, "moderation_action": + "defer", "role": "member", "self_link": "http://localhost:9001/3.0/members/57", + "user": "http://localhost:9001/3.0/users/30"}'} headers: content-length: ['385'] content-type: [application/json; charset=utf-8] 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 1c2fd0d..4acd9a5 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 @@ -23,9 +23,9 @@ uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"e6892b55a323ee870dbf86fd0a3866f9b6bacc9d\"", "is_server_owner": false, - "password": "$6$rounds=685188$JTbWJwGaF94ik83v$793gVmE7FRVvf7wx7M5flsRoDhrxilG9.kUaBy088TxthMZ064Lfmtd3GCSZgsnnjbbkYwcjgiCq1C0G4uUno/", - "self_link": "http://localhost:9001/3.0/users/25", "user_id": 25}'} + "\"6b23c6d367e40a327631149c6f94393e9c643f03\"", "is_server_owner": false, + "password": "$6$rounds=610884$dTx2bXtAb1t4u0ZE$TophfV/cGKi.lzJA7ZK2/NCPqoLaUwmT4b9YuHcDixS2zwE3ySIJWMx73r5L4CM7Pp3ZRyERiU7Kw.fN04eYd0", + "self_link": "http://localhost:9001/3.0/users/28", "user_id": 28}'} headers: content-length: ['326'] content-type: [application/json; charset=utf-8] @@ -35,16 +35,16 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/25/addresses + uri: http://localhost:9001/3.0/users/28/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"7abbd2c4b5c47ea79e3c05ef3eb67e27886eb4c4\"", "original_email": "fritz@example.org", + "\"755c2fbbb60cd3ada46240edcc8d303c039210aa\"", "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/25", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"1d34b6d629614c4de087d74f011c0b7cf3af7bad\"", + "user": "http://localhost:9001/3.0/users/28", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"67e3922e373606bd5d46cb05948e58253d57c8af\"", "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/25"}], "http_etag": "\"34ea4fc3b312ce1138029f888b055df0c9f777df\"", + "http://localhost:9001/3.0/users/28"}], "http_etag": "\"2be169bb9e4bc75da6efc8e664500c03377ff934\"", "start": 0, "total_size": 2}'} headers: content-length: ['714'] @@ -87,7 +87,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/55'] + location: ['http://localhost:9001/3.0/members/56'] status: {code: 201, message: Created} - request: body: null @@ -97,10 +97,10 @@ 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": "\"7c635a74787c8e1c2b14d2a5980c328f5ba2a824\"", - "list_id": "open_list.example.com", "member_id": 55, "moderation_action": - "defer", "role": "member", "self_link": "http://localhost:9001/3.0/members/55", - "user": "http://localhost:9001/3.0/users/25"}], "http_etag": "\"a59f819977f3fa0d5249342ec03833f46b6758de\"", + "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"e19c44c9b3db41550e330b13e0948458f22d42f6\"", + "list_id": "open_list.example.com", "member_id": 56, "moderation_action": + "defer", "role": "member", "self_link": "http://localhost:9001/3.0/members/56", + "user": "http://localhost:9001/3.0/users/28"}], "http_etag": "\"8e181b2ed34737eca351e43ad501927b15438587\"", "start": 0, "total_size": 1}'} headers: content-length: ['492'] @@ -143,9 +143,9 @@ uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"e6892b55a323ee870dbf86fd0a3866f9b6bacc9d\"", "is_server_owner": false, - "password": "$6$rounds=685188$JTbWJwGaF94ik83v$793gVmE7FRVvf7wx7M5flsRoDhrxilG9.kUaBy088TxthMZ064Lfmtd3GCSZgsnnjbbkYwcjgiCq1C0G4uUno/", - "self_link": "http://localhost:9001/3.0/users/25", "user_id": 25}'} + "\"6b23c6d367e40a327631149c6f94393e9c643f03\"", "is_server_owner": false, + "password": "$6$rounds=610884$dTx2bXtAb1t4u0ZE$TophfV/cGKi.lzJA7ZK2/NCPqoLaUwmT4b9YuHcDixS2zwE3ySIJWMx73r5L4CM7Pp3ZRyERiU7Kw.fN04eYd0", + "self_link": "http://localhost:9001/3.0/users/28", "user_id": 28}'} headers: content-length: ['326'] content-type: [application/json; charset=utf-8] @@ -155,16 +155,16 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/25/addresses + uri: http://localhost:9001/3.0/users/28/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"7abbd2c4b5c47ea79e3c05ef3eb67e27886eb4c4\"", "original_email": "fritz@example.org", + "\"755c2fbbb60cd3ada46240edcc8d303c039210aa\"", "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/25", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"1d34b6d629614c4de087d74f011c0b7cf3af7bad\"", + "user": "http://localhost:9001/3.0/users/28", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"67e3922e373606bd5d46cb05948e58253d57c8af\"", "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/25"}], "http_etag": "\"34ea4fc3b312ce1138029f888b055df0c9f777df\"", + "http://localhost:9001/3.0/users/28"}], "http_etag": "\"2be169bb9e4bc75da6efc8e664500c03377ff934\"", "start": 0, "total_size": 2}'} headers: content-length: ['714'] @@ -216,10 +216,10 @@ 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": "\"7c635a74787c8e1c2b14d2a5980c328f5ba2a824\"", - "list_id": "open_list.example.com", "member_id": 55, "moderation_action": - "defer", "role": "member", "self_link": "http://localhost:9001/3.0/members/55", - "user": "http://localhost:9001/3.0/users/25"}'} + "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"e19c44c9b3db41550e330b13e0948458f22d42f6\"", + "list_id": "open_list.example.com", "member_id": 56, "moderation_action": + "defer", "role": "member", "self_link": "http://localhost:9001/3.0/members/56", + "user": "http://localhost:9001/3.0/users/28"}'} headers: content-length: ['387'] content-type: [application/json; charset=utf-8] 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 842c95f..c3fa623 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 @@ -23,9 +23,9 @@ uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"6c3e988d3b613996bd5d04dc5cb484151029ebae\"", "is_server_owner": false, - "password": "$6$rounds=594415$qGDQq0SMxH.NHn.3$cWAFun9EVCaeyqz10Stn7r0QX3/yVARs7Vay6lfn3RpwJmb8QSORo8JZ/zjwKw66hlyZgshR8ZMZYUZQDVEzJ1", - "self_link": "http://localhost:9001/3.0/users/28", "user_id": 28}'} + "\"11a8dd49928f90d749e30f0cc0aa6ef4860b90c5\"", "is_server_owner": false, + "password": "$6$rounds=690856$SpbivlSCR4mEE9xf$52NqGQSLVDiEbgxyCGgAZE8yg2rrEmo5T/sqiMRDP7L48UOTyF2MQY3Mbe66J3krxvACqybXrdwiD9.2is33q0", + "self_link": "http://localhost:9001/3.0/users/31", "user_id": 31}'} headers: content-length: ['326'] content-type: [application/json; charset=utf-8] @@ -35,16 +35,16 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/28/addresses + uri: http://localhost:9001/3.0/users/31/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"755c2fbbb60cd3ada46240edcc8d303c039210aa\"", "original_email": "fritz@example.org", + "\"90d84fb0a0289aaefd9590c3bab408d9058375a1\"", "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/28", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"67e3922e373606bd5d46cb05948e58253d57c8af\"", + "user": "http://localhost:9001/3.0/users/31", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"2def3f06297a96e4a2cb5907d4935765d1b075fa\"", "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/28"}], "http_etag": "\"2be169bb9e4bc75da6efc8e664500c03377ff934\"", + "http://localhost:9001/3.0/users/31"}], "http_etag": "\"2820d1ca325e084d9b4ade58538fe1834bf7cdc0\"", "start": 0, "total_size": 2}'} headers: content-length: ['714'] @@ -126,9 +126,9 @@ uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"6c3e988d3b613996bd5d04dc5cb484151029ebae\"", "is_server_owner": false, - "password": "$6$rounds=594415$qGDQq0SMxH.NHn.3$cWAFun9EVCaeyqz10Stn7r0QX3/yVARs7Vay6lfn3RpwJmb8QSORo8JZ/zjwKw66hlyZgshR8ZMZYUZQDVEzJ1", - "self_link": "http://localhost:9001/3.0/users/28", "user_id": 28}'} + "\"11a8dd49928f90d749e30f0cc0aa6ef4860b90c5\"", "is_server_owner": false, + "password": "$6$rounds=690856$SpbivlSCR4mEE9xf$52NqGQSLVDiEbgxyCGgAZE8yg2rrEmo5T/sqiMRDP7L48UOTyF2MQY3Mbe66J3krxvACqybXrdwiD9.2is33q0", + "self_link": "http://localhost:9001/3.0/users/31", "user_id": 31}'} headers: content-length: ['326'] content-type: [application/json; charset=utf-8] @@ -138,16 +138,16 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/28/addresses + uri: http://localhost:9001/3.0/users/31/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"755c2fbbb60cd3ada46240edcc8d303c039210aa\"", "original_email": "fritz@example.org", + "\"90d84fb0a0289aaefd9590c3bab408d9058375a1\"", "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/28", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"67e3922e373606bd5d46cb05948e58253d57c8af\"", + "user": "http://localhost:9001/3.0/users/31", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"2def3f06297a96e4a2cb5907d4935765d1b075fa\"", "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/28"}], "http_etag": "\"2be169bb9e4bc75da6efc8e664500c03377ff934\"", + "http://localhost:9001/3.0/users/31"}], "http_etag": "\"2820d1ca325e084d9b4ade58538fe1834bf7cdc0\"", "start": 0, "total_size": 2}'} headers: content-length: ['714'] 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 114c3b1..6dbcc0e 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary.yaml @@ -93,12 +93,15 @@ false, "self_link": "http://localhost:9001/3.0/users/7", "user_id": 7}, {"created_on": "2005-08-01T07:49:23", "display_name": "None", "http_etag": "\"d81849243b31142274eec6832eafa6b6cef34829\"", "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/8", - "user_id": 8}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"4c816726023bb1daf76d48e82b250689df6a4694\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/11", - "user_id": 11}], "http_etag": "\"7c42d4ead2d9b24e0babc9c28871e86ef31da132\"", - "start": 0, "total_size": 9}'} + "user_id": 8}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"c88f76afe36064292f9aa036d117e85339107dfb\"", + "is_server_owner": false, "password": "$6$rounds=652031$SqTLQk/o9E55bcm1$MfnTr/f.YldgWFFFnpMg5UjXXEEmXgVpkdykZjS61p1Ml/q90yRXZqoPIBLkfjkNFkUngtxcxmPAa/..3YbOI.", + "self_link": "http://localhost:9001/3.0/users/13", "user_id": 13}, {"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": "\"182b3d64ebe6ef6d194415be841822d0eaab31c3\"", + "start": 0, "total_size": 10}'} headers: - content-length: ['1863'] + content-length: ['2192'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -117,7 +120,18 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/11 + uri: http://localhost:9001/3.0/users/13 + 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/14 response: body: {string: !!python/unicode ''} headers: @@ -381,9 +395,9 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"87648caa0e3380982e197beebf79e468670de477\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/12", "user_id": 12}], - "http_etag": "\"2fd93ea2e4273cb397a13bd6c8f228c00ad0f90e\"", "start": 0, "total_size": + "http_etag": "\"7fdaa4ece5394af7c6dd1bf6edfee29801843395\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/15", "user_id": 15}], + "http_etag": "\"d28e050c1a2f11c7bd4307ca78c2b5094e916d52\"", "start": 0, "total_size": 1}'} headers: content-length: ['295'] @@ -394,7 +408,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/12 + uri: http://localhost:9001/3.0/users/15 response: body: {string: !!python/unicode ''} headers: @@ -488,10 +502,10 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"be2467c4b31b324e8e5a584eb10fc81bf0c6d192\"", "is_server_owner": - false, "password": "$6$rounds=598827$EXcupHkcZTTOPAU.$P8cDUj6tOm6sunOicumEHdenjPes8YJ/mNCGV3rT11N7QGR5/J9gzBMOpZSmTlBdPNQFI5n4FXqZT.KjLaefo0", - "self_link": "http://localhost:9001/3.0/users/13", "user_id": 13}], "http_etag": - "\"7b38a1baa5ad47eff6098fbba5e9f783de80c9fd\"", "start": 0, "total_size": + "http_etag": "\"0d96cb801945cc6117ffd74314b32516e922f167\"", "is_server_owner": + false, "password": "$6$rounds=595524$AlGsRDuCqAwlqN5p$Au9XkUl5EikybWt20Wa6/zfpdSv/HYLvwvWAj3OB8OQSiDye16ykr0ePN6lBvkzQsYwlDoS4ULA//6.nkpNos/", + "self_link": "http://localhost:9001/3.0/users/16", "user_id": 16}], "http_etag": + "\"26fedef10e28326d37c50d9003cf01f38d9b9c8f\"", "start": 0, "total_size": 1}'} headers: content-length: ['431'] @@ -502,7 +516,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/13 + uri: http://localhost:9001/3.0/users/16 response: body: {string: !!python/unicode ''} headers: @@ -596,10 +610,10 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"42e1ab2ac3a8fa8c2987d62ef106b370fe73c8c8\"", "is_server_owner": - false, "password": "$6$rounds=678791$iVwsyWinAlQPSxea$lpYjDpxD0tGa4luA1j6GjkOgTPShszjJQHJh/1TaaASb4Kz.COZ5ogw5wEEnB2RQ3ZePnJaQPNnHYLqSyp5fL0", - "self_link": "http://localhost:9001/3.0/users/14", "user_id": 14}], "http_etag": - "\"ea1d1efc3c8b7c4722da5fb59c7d62c5b686bb33\"", "start": 0, "total_size": + "http_etag": "\"376da1507e753ff014d0cecfd73090cd95fcaace\"", "is_server_owner": + false, "password": "$6$rounds=674869$txx3Mh0NJT4Fq15/$1XtRn4fwWT792qcDDNwIz8Stdy8boeYa1QlnRUGAfgc77tTgjflQYkg7z../9PpQl9EJvOgnx96lZJNyKTcEw.", + "self_link": "http://localhost:9001/3.0/users/17", "user_id": 17}], "http_etag": + "\"9861f7672c4944215c4d9c847be149b3f3ba9567\"", "start": 0, "total_size": 1}'} headers: content-length: ['431'] @@ -610,7 +624,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/14 + uri: http://localhost:9001/3.0/users/17 response: body: {string: !!python/unicode ''} headers: @@ -1034,10 +1048,10 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"2e2e9eb37dc73e2e8fcdcf1615ab835832b5b150\"", "is_server_owner": - false, "password": "$6$rounds=596317$NMK1IsY/i6YIhE9k$MMIwaq3i/p98a8oxOrYG7BTD6Vrk6m6xlS7aZw2UbDlGww4Xqiy2OUOdJ6Bvox0AiEIQ3s603cZY5T2R5usIc0", - "self_link": "http://localhost:9001/3.0/users/15", "user_id": 15}], "http_etag": - "\"adff86ee72c9547e79bff20630b739f621a08870\"", "start": 0, "total_size": + "http_etag": "\"b630a9e2fb58db20794fe7da6c09a53363168276\"", "is_server_owner": + false, "password": "$6$rounds=617207$hHK9vRa6W7jgNKfo$7fkXvR8K3xqTpH4bOsHun0sQD0Y2U6djxelTkyrYr80tWQsdGabGkNYsM1sJJ7BLQfbqgM/8FmrinNYpxj.6d/", + "self_link": "http://localhost:9001/3.0/users/18", "user_id": 18}], "http_etag": + "\"e4fed7080f5531860feba4e6debcfe3f4809fc98\"", "start": 0, "total_size": 1}'} headers: content-length: ['431'] @@ -1048,7 +1062,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/15 + uri: http://localhost:9001/3.0/users/18 response: body: {string: !!python/unicode ''} headers: @@ -1142,10 +1156,10 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"bd27041d06ef3929b2069279b31de508f50a93c8\"", "is_server_owner": - false, "password": "$6$rounds=607013$rclRs733cyebi6rZ$JeNTWtmrZKR/BT6ecnM59L5x1Ym5Zz4KAqNq6H2F65X3RQziE7B0A0h5HLQTEbErJT9mOKWQVrhvgS1YW/6b/0", - "self_link": "http://localhost:9001/3.0/users/16", "user_id": 16}], "http_etag": - "\"dbf7c3ae5080a447cf2a33522fbabde1f2e5a80d\"", "start": 0, "total_size": + "http_etag": "\"178e83e408974851267b44360e8719fa8c167f1f\"", "is_server_owner": + false, "password": "$6$rounds=706908$A5NXJvw1mZfiNObL$I1J1imZAexkDAsIPjFCCRXGR5Vch7tejtfDrQaeq/Al9Ty8ouGzX.4TGcn6Q1nrDzRfDw/MJPd/LhCYufcfSe/", + "self_link": "http://localhost:9001/3.0/users/19", "user_id": 19}], "http_etag": + "\"f87d3288fac2ce91b1487270d1221fb8735fafcb\"", "start": 0, "total_size": 1}'} headers: content-length: ['431'] @@ -1156,7 +1170,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/16 + uri: http://localhost:9001/3.0/users/19 response: body: {string: !!python/unicode ''} headers: @@ -1250,9 +1264,9 @@ 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": "\"42ce4e7d3c120cfc9cff732913114a828f630666\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/17", - "user_id": 17}], "http_etag": "\"3015c61dc6bd96c272e0582701a958a04f2e226d\"", + "display_name": "None", "http_etag": "\"49b863f075905cce6e2628f1c7286796634cb0d2\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/20", + "user_id": 20}], "http_etag": "\"ef4b4b459230bd7fc62b0dee210b6bf5cdf32867\"", "start": 0, "total_size": 1}'} headers: content-length: ['319'] @@ -1263,7 +1277,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/17 + uri: http://localhost:9001/3.0/users/20 response: body: {string: !!python/unicode ''} headers: @@ -1450,9 +1464,9 @@ 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": "\"1f31f733981af257e2d63ee7779fc281aa16466d\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/18", - "user_id": 18}], "http_etag": "\"5e9502c6ddc9e3b308d3a5418ce16274dafce394\"", + "display_name": "None", "http_etag": "\"4e69221cb1880315766131d04dc5c375d3796f29\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/21", + "user_id": 21}], "http_etag": "\"6a20523f15a0e84efedf3ab13f9474caca68d983\"", "start": 0, "total_size": 1}'} headers: content-length: ['319'] @@ -1463,7 +1477,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/18 + uri: http://localhost:9001/3.0/users/21 response: body: {string: !!python/unicode ''} headers: 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 index 820b975..1d8cc8f 100644 --- 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 @@ -25,7 +25,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/38'] + location: ['http://localhost:9001/3.0/members/39'] status: {code: 201, message: Created} - request: body: null @@ -50,8 +50,8 @@ uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"87648caa0e3380982e197beebf79e468670de477\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/12", "user_id": 12}'} + "\"7fdaa4ece5394af7c6dd1bf6edfee29801843395\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/15", "user_id": 15}'} headers: content-length: ['190'] content-type: [application/json; charset=utf-8] @@ -61,12 +61,12 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/12/addresses + uri: http://localhost:9001/3.0/users/15/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag": - "\"7153fc9edd12dfb866876de2d6ff5b66fbd13574\"", "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/12"}], "http_etag": "\"0ff3029b0a8c9a785941074230bf68d81d705bb5\"", + "user": "http://localhost:9001/3.0/users/15"}], "http_etag": "\"9edb7cb66202956ff9d44e7411cf5a4e851fd8cf\"", "start": 0, "total_size": 1}'} headers: content-length: ['388'] @@ -93,10 +93,10 @@ 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": "\"abb3b3b2811c614c787531f636a57adbe4e0631a\"", - "list_id": "foo.example.com", "member_id": 38, "moderation_action": "accept", - "role": "moderator", "self_link": "http://localhost:9001/3.0/members/38", - "user": "http://localhost:9001/3.0/users/12"}], "http_etag": "\"ece217f9cb0247944bf8e4e94dba49af1065b0de\"", + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"a9a68ea09c6848846f7f5a2cefe8805ac75ed02b\"", + "list_id": "foo.example.com", "member_id": 39, "moderation_action": "accept", + "role": "moderator", "self_link": "http://localhost:9001/3.0/members/39", + "user": "http://localhost:9001/3.0/users/15"}], "http_etag": "\"d5d67dcfbb0bab7729e5863b8a9b16f10f7b2e29\"", "start": 0, "total_size": 1}'} headers: content-length: ['488'] 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 index d05e3c2..6c0d77c 100644 --- 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 @@ -25,7 +25,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/37'] + location: ['http://localhost:9001/3.0/members/38'] status: {code: 201, message: Created} - request: body: null @@ -50,8 +50,8 @@ uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"4c816726023bb1daf76d48e82b250689df6a4694\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/11", "user_id": 11}'} + "\"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] @@ -61,12 +61,12 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/11/addresses + uri: http://localhost:9001/3.0/users/14/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag": - "\"c0069cae5d04efb49c7546aef78ce21c4d054047\"", "original_email": "test@example.com", + "\"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/11"}], "http_etag": "\"a09d85d2159d794efad09ab900757d9dd82e06ce\"", + "user": "http://localhost:9001/3.0/users/14"}], "http_etag": "\"90fbccbf73f5e633883d07ed7e6b4f1f1217a341\"", "start": 0, "total_size": 1}'} headers: content-length: ['388'] @@ -80,10 +80,10 @@ 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": "\"bdef790b882fa6b411e012fce279ba005d6fd3a2\"", - "list_id": "foo.example.com", "member_id": 37, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/37", "user": - "http://localhost:9001/3.0/users/11"}], "http_etag": "\"c3990e0df4349b5a66adefae78992d8e774acf05\"", + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"d22e73543728b0ca01a4276622d25e789d246b3a\"", + "list_id": "foo.example.com", "member_id": 38, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/38", "user": + "http://localhost:9001/3.0/users/14"}], "http_etag": "\"5d81914d34c77905ef0e200cad7fb45b11cee03f\"", "start": 0, "total_size": 1}'} headers: content-length: ['484'] 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 7736857..07a05fd 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 @@ -10,7 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/15'] + location: ['http://localhost:9001/3.0/users/18'] status: {code: 201, message: Created} - request: body: null @@ -38,7 +38,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/41'] + location: ['http://localhost:9001/3.0/members/42'] status: {code: 201, message: Created} - request: body: null @@ -63,9 +63,9 @@ uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"2e2e9eb37dc73e2e8fcdcf1615ab835832b5b150\"", "is_server_owner": false, - "password": "$6$rounds=596317$NMK1IsY/i6YIhE9k$MMIwaq3i/p98a8oxOrYG7BTD6Vrk6m6xlS7aZw2UbDlGww4Xqiy2OUOdJ6Bvox0AiEIQ3s603cZY5T2R5usIc0", - "self_link": "http://localhost:9001/3.0/users/15", "user_id": 15}'} + "\"b630a9e2fb58db20794fe7da6c09a53363168276\"", "is_server_owner": false, + "password": "$6$rounds=617207$hHK9vRa6W7jgNKfo$7fkXvR8K3xqTpH4bOsHun0sQD0Y2U6djxelTkyrYr80tWQsdGabGkNYsM1sJJ7BLQfbqgM/8FmrinNYpxj.6d/", + "self_link": "http://localhost:9001/3.0/users/18", "user_id": 18}'} headers: content-length: ['326'] content-type: [application/json; charset=utf-8] @@ -75,12 +75,12 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/15/addresses + uri: http://localhost:9001/3.0/users/18/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag": - "\"7e89118330bb8d4cfca6242e4023e3685cfe802f\"", "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/15"}], "http_etag": "\"9edb7cb66202956ff9d44e7411cf5a4e851fd8cf\"", + "user": "http://localhost:9001/3.0/users/18"}], "http_etag": "\"8cf4f4b24629be22ab8c1244fb152274d892955f\"", "start": 0, "total_size": 1}'} headers: content-length: ['388'] @@ -107,10 +107,10 @@ 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": "\"0efd41b8f00768b2c5b3cb8681eb83f47e9d6e90\"", - "list_id": "foo.example.com", "member_id": 41, "moderation_action": "accept", - "role": "moderator", "self_link": "http://localhost:9001/3.0/members/41", - "user": "http://localhost:9001/3.0/users/15"}], "http_etag": "\"1727e1f9f01506f735eff7184400c3ecb0bc4e14\"", + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"f1a8689ff83ca14fb29c2fc28f1de788ee1598b1\"", + "list_id": "foo.example.com", "member_id": 42, "moderation_action": "accept", + "role": "moderator", "self_link": "http://localhost:9001/3.0/members/42", + "user": "http://localhost:9001/3.0/users/18"}], "http_etag": "\"bf4b9f50ae32fd0dc0aa95f440ed65aee0d764db\"", "start": 0, "total_size": 1}'} headers: content-length: ['488'] 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 23d2af1..316a265 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 @@ -10,7 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/16'] + location: ['http://localhost:9001/3.0/users/19'] status: {code: 201, message: Created} - request: body: null @@ -38,7 +38,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/42'] + location: ['http://localhost:9001/3.0/members/43'] status: {code: 201, message: Created} - request: body: null @@ -63,9 +63,9 @@ uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"bd27041d06ef3929b2069279b31de508f50a93c8\"", "is_server_owner": false, - "password": "$6$rounds=607013$rclRs733cyebi6rZ$JeNTWtmrZKR/BT6ecnM59L5x1Ym5Zz4KAqNq6H2F65X3RQziE7B0A0h5HLQTEbErJT9mOKWQVrhvgS1YW/6b/0", - "self_link": "http://localhost:9001/3.0/users/16", "user_id": 16}'} + "\"178e83e408974851267b44360e8719fa8c167f1f\"", "is_server_owner": false, + "password": "$6$rounds=706908$A5NXJvw1mZfiNObL$I1J1imZAexkDAsIPjFCCRXGR5Vch7tejtfDrQaeq/Al9Ty8ouGzX.4TGcn6Q1nrDzRfDw/MJPd/LhCYufcfSe/", + "self_link": "http://localhost:9001/3.0/users/19", "user_id": 19}'} headers: content-length: ['326'] content-type: [application/json; charset=utf-8] @@ -75,12 +75,12 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/16/addresses + uri: http://localhost:9001/3.0/users/19/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag": - "\"4f8c6ce236ae784932ac2c3760ac04a842169db0\"", "original_email": "test@example.com", + "\"1a715f7fa744bfe479dc6c77790a2b359b4af543\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "user": "http://localhost:9001/3.0/users/16"}], "http_etag": "\"74b785f1190b6e6f6e087c6a30df58f51a519aa0\"", + "user": "http://localhost:9001/3.0/users/19"}], "http_etag": "\"d271e779b9c48b7f577cdfef27c5b252fb5207f2\"", "start": 0, "total_size": 1}'} headers: content-length: ['388'] @@ -94,10 +94,10 @@ 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": "\"3f4c31eab3f7ad3160e97318030b08da8f9abae2\"", - "list_id": "foo.example.com", "member_id": 42, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/42", "user": - "http://localhost:9001/3.0/users/16"}], "http_etag": "\"c940e782471431c61de13bbfa76f2400dd5f2256\"", + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"f6fdf2591e4fa3edf7a0f6f223623d1855ac935d\"", + "list_id": "foo.example.com", "member_id": 43, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/43", "user": + "http://localhost:9001/3.0/users/19"}], "http_etag": "\"2f8d997ea66e3b68c200e624fe58286f4b5794b7\"", "start": 0, "total_size": 1}'} headers: content-length: ['484'] 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 92cb01c..aa9cd01 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 @@ -10,7 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/13'] + location: ['http://localhost:9001/3.0/users/16'] status: {code: 201, message: Created} - request: body: email=anotheremail%40example.com @@ -18,7 +18,7 @@ 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/13/addresses + uri: http://localhost:9001/3.0/users/16/addresses response: body: {string: !!python/unicode ''} headers: @@ -62,7 +62,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/39'] + location: ['http://localhost:9001/3.0/members/40'] status: {code: 201, message: Created} - request: body: null @@ -87,9 +87,9 @@ uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"be2467c4b31b324e8e5a584eb10fc81bf0c6d192\"", "is_server_owner": false, - "password": "$6$rounds=598827$EXcupHkcZTTOPAU.$P8cDUj6tOm6sunOicumEHdenjPes8YJ/mNCGV3rT11N7QGR5/J9gzBMOpZSmTlBdPNQFI5n4FXqZT.KjLaefo0", - "self_link": "http://localhost:9001/3.0/users/13", "user_id": 13}'} + "\"0d96cb801945cc6117ffd74314b32516e922f167\"", "is_server_owner": false, + "password": "$6$rounds=595524$AlGsRDuCqAwlqN5p$Au9XkUl5EikybWt20Wa6/zfpdSv/HYLvwvWAj3OB8OQSiDye16ykr0ePN6lBvkzQsYwlDoS4ULA//6.nkpNos/", + "self_link": "http://localhost:9001/3.0/users/16", "user_id": 16}'} headers: content-length: ['326'] content-type: [application/json; charset=utf-8] @@ -99,16 +99,16 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/13/addresses + uri: http://localhost:9001/3.0/users/16/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "anotheremail@example.com", - "http_etag": "\"5bd519f0ac758144242372fc87459fe437bfe7c5\"", "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/13", + "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": - "\"183bd2070dec2c1087e072dede15f46d64ad4c23\"", "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/13"}], "http_etag": "\"f32ca2969a134d85272e17c934e8cbb15664aada\"", + "user": "http://localhost:9001/3.0/users/16"}], "http_etag": "\"4885de1b644bfce1c570c6e2e015525db8892d53\"", "start": 0, "total_size": 2}'} headers: content-length: ['735'] @@ -136,10 +136,10 @@ 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": - "\"9a169fa9954e3c58b2e1feab1102a9c836f20453\"", "list_id": "foo.example.com", - "member_id": 39, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/39", "user": "http://localhost:9001/3.0/users/13"}], - "http_etag": "\"4cd0a6761ddc223b686adfb4b6ae960d0c27708d\"", "start": 0, "total_size": + "\"629e813b50093408b6e6b93c334cb1fb20cfe04a\"", "list_id": "foo.example.com", + "member_id": 40, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/40", "user": "http://localhost:9001/3.0/users/16"}], + "http_etag": "\"214a4b0a0b1a91910ce3077fe264e2b2b7f7e359\"", "start": 0, "total_size": 1}'} headers: content-length: ['504'] 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 bcd2973..41b55da 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 @@ -10,7 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/14'] + location: ['http://localhost:9001/3.0/users/17'] status: {code: 201, message: Created} - request: body: email=anotheremail%40example.com @@ -18,7 +18,7 @@ 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/14/addresses + uri: http://localhost:9001/3.0/users/17/addresses response: body: {string: !!python/unicode ''} headers: @@ -62,7 +62,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/40'] + location: ['http://localhost:9001/3.0/members/41'] status: {code: 201, message: Created} - request: body: null @@ -87,9 +87,9 @@ uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"42e1ab2ac3a8fa8c2987d62ef106b370fe73c8c8\"", "is_server_owner": false, - "password": "$6$rounds=678791$iVwsyWinAlQPSxea$lpYjDpxD0tGa4luA1j6GjkOgTPShszjJQHJh/1TaaASb4Kz.COZ5ogw5wEEnB2RQ3ZePnJaQPNnHYLqSyp5fL0", - "self_link": "http://localhost:9001/3.0/users/14", "user_id": 14}'} + "\"376da1507e753ff014d0cecfd73090cd95fcaace\"", "is_server_owner": false, + "password": "$6$rounds=674869$txx3Mh0NJT4Fq15/$1XtRn4fwWT792qcDDNwIz8Stdy8boeYa1QlnRUGAfgc77tTgjflQYkg7z../9PpQl9EJvOgnx96lZJNyKTcEw.", + "self_link": "http://localhost:9001/3.0/users/17", "user_id": 17}'} headers: content-length: ['326'] content-type: [application/json; charset=utf-8] @@ -99,16 +99,16 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/14/addresses + uri: http://localhost:9001/3.0/users/17/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "anotheremail@example.com", - "http_etag": "\"41d7953a9b379abc1b9532f5d6ab48220fdd6de5\"", "original_email": + "http_etag": "\"cd718c211a2d4b86ebea9ee219da5b25d25ccedc\"", "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/14", + "http://localhost:9001/3.0/addresses/anotheremail@example.com", "user": "http://localhost:9001/3.0/users/17", "verified_on": "2005-08-01T07:49:23"}, {"email": "test@example.com", "http_etag": - "\"6c39fd341eea07279f00e7cd3cd0ecd501bc0cec\"", "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/14"}], "http_etag": "\"30a8283a53a10108b734fa6084576101d007f4f6\"", + "user": "http://localhost:9001/3.0/users/17"}], "http_etag": "\"0b54ef11526050fd53be2c56204b21bfb62db6af\"", "start": 0, "total_size": 2}'} headers: content-length: ['735'] @@ -123,10 +123,10 @@ 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": - "\"3103abcb4622573d6c69c75b26f92f21eaf83232\"", "list_id": "foo.example.com", - "member_id": 40, "moderation_action": "accept", "role": "owner", "self_link": - "http://localhost:9001/3.0/members/40", "user": "http://localhost:9001/3.0/users/14"}], - "http_etag": "\"a0f02f0079c40ab4435e852b16b41c7e10604496\"", "start": 0, "total_size": + "\"79f1d739a24b705b2a215ca1ad178399516be2ea\"", "list_id": "foo.example.com", + "member_id": 41, "moderation_action": "accept", "role": "owner", "self_link": + "http://localhost:9001/3.0/members/41", "user": "http://localhost:9001/3.0/users/17"}], + "http_etag": "\"7e8ee9c85f80375d36078259454b5ee1c6841e95\"", "start": 0, "total_size": 1}'} headers: content-length: ['500'] diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_model.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_model.yaml index 51ed3b7..e4905bd 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_model.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_model.yaml @@ -51,7 +51,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/22'] + location: ['http://localhost:9001/3.0/users/25'] status: {code: 201, message: Created} - request: body: null @@ -61,9 +61,9 @@ uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"93f34599b99d53e31e62564b644c4c62c4e99e5f\"", "is_server_owner": false, - "password": "$6$rounds=705439$WrFUdR3yqFlLfrBW$n0FpEecGIJ2TmNfBsSyr1fYDiOO9a8aaKnI49a78Yikae01Ch7dZqDe4JdS0BwsKfSivSUzNO9.VXRK4kX4YA1", - "self_link": "http://localhost:9001/3.0/users/22", "user_id": 22}'} + "\"735c7164f8a65369074c2bdbb1c0b804382fb0db\"", "is_server_owner": false, + "password": "$6$rounds=676531$WTTIHLEpPla4D407$jaHWCJ9YSiGYYOIiWE7DmYWLTsaEtbHw0nCDaGMCrLXhcQ4QBfsE7Lk8vWwnaDYpJf66/w.WY41Tn6PyIDJU80", + "self_link": "http://localhost:9001/3.0/users/25", "user_id": 25}'} headers: content-length: ['326'] content-type: [application/json; charset=utf-8] @@ -73,12 +73,12 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/22/addresses + uri: http://localhost:9001/3.0/users/25/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag": - "\"d3d6f6bd219cab118fc7f964e53cc459d80b171f\"", "original_email": "test@example.com", + "\"1d34b6d629614c4de087d74f011c0b7cf3af7bad\"", "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/22"}], "http_etag": "\"e05da3245a967d14f893e97380b3e3880319cb45\"", + "user": "http://localhost:9001/3.0/users/25"}], "http_etag": "\"df3a3089344a214ad4cc884fad1fbaedd895c504\"", "start": 0, "total_size": 1}'} headers: content-length: ['388'] @@ -120,16 +120,16 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"f01a45c6984d9e4639cb6d338286307c11624e4f\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/19", "user_id": 19}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"9fa1761ddc1bccdf97e502e936612292fa46492e\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/20", - "user_id": 20}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"2b7d189e2d8f3403cf72781d5a1837d3f6722d31\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/21", - "user_id": 21}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"93f34599b99d53e31e62564b644c4c62c4e99e5f\"", - "is_server_owner": false, "password": "$6$rounds=705439$WrFUdR3yqFlLfrBW$n0FpEecGIJ2TmNfBsSyr1fYDiOO9a8aaKnI49a78Yikae01Ch7dZqDe4JdS0BwsKfSivSUzNO9.VXRK4kX4YA1", - "self_link": "http://localhost:9001/3.0/users/22", "user_id": 22}], "http_etag": - "\"494e4506457b388202128dde6bb949f5bcf8d48c\"", "start": 0, "total_size": + "http_etag": "\"6dc3faac46bcef307cb04b877c1cb62ddff20660\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/22", "user_id": 22}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"b3a1bcb260c4bd5e880e4324ec95d6287c26d550\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/23", + "user_id": 23}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"1e86381735f77312260a704e0b6dc204d733f858\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/24", + "user_id": 24}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"735c7164f8a65369074c2bdbb1c0b804382fb0db\"", + "is_server_owner": false, "password": "$6$rounds=676531$WTTIHLEpPla4D407$jaHWCJ9YSiGYYOIiWE7DmYWLTsaEtbHw0nCDaGMCrLXhcQ4QBfsE7Lk8vWwnaDYpJf66/w.WY41Tn6PyIDJU80", + "self_link": "http://localhost:9001/3.0/users/25", "user_id": 25}], "http_etag": + "\"a2e2a06c572def23dce13104b897e32d3463cb1a\"", "start": 0, "total_size": 4}'} headers: content-length: ['1007'] @@ -140,39 +140,6 @@ headers: accept-encoding: ['gzip, deflate'] 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: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/20 - 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/21 - 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/22 response: body: {string: !!python/unicode ''} @@ -184,6 +151,39 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/23 + 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/24 + 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/25 + 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/domains/example.com response: body: {string: !!python/unicode ''}