diff --git a/example_project/test_settings.py b/example_project/test_settings.py index d615896..5b2a1e4 100644 --- a/example_project/test_settings.py +++ b/example_project/test_settings.py @@ -22,6 +22,8 @@ from settings import * +TESTING = True + # Mailman API credentials for testing MAILMAN_REST_API_URL = 'http://localhost:9001' MAILMAN_REST_API_USER = 'restadmin' diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_displayed_to_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_displayed_to_owner.yaml index fa10ad1..49be38b 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_displayed_to_owner.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_displayed_to_owner.yaml @@ -1,10 +1,10 @@ interactions: - request: - body: !!python/unicode mail_host=example.com + body: !!python/unicode 'mail_host=example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode ''} @@ -17,7 +17,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", @@ -27,11 +27,11 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode fqdn_listname=foo%40example.com + body: !!python/unicode 'fqdn_listname=foo%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -44,7 +44,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -56,24 +56,24 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=test%40example.com + body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=test%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/106'] + location: ['http://localhost:9001/3.0/members/1'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -88,24 +88,24 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/test@example.com", - "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"036726233bb1a48a3f8941c9c68c77df2a8f932b\"", - "list_id": "foo.example.com", "member_id": 106, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/106", "user": - "http://localhost:9001/3.0/users/107"}], "http_etag": "\"83af61ed8296effe598084427cffe32dc1281120\"", + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"280631e7c916d2dddaadf4477f35e055c3462a7b\"", + "list_id": "foo.example.com", "member_id": 1, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/1", "user": + "http://localhost:9001/3.0/users/1"}], "http_etag": "\"de19d701a9a5dd37e79c4f14566d2f264485b6d4\"", "start": 0, "total_size": 1}'} headers: - content-length: ['487'] + content-length: ['481'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -118,20 +118,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com - response: - body: {string: !!python/unicode '{}'} - headers: - content-length: ['2'] - content-type: [application/json; charset=UTF-8] - vary: [Accept] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -147,25 +134,51 @@ true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": - "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", - "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": - null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": - "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": - "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": - 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "", "header_uri": "", "http_etag": "\"e752899e2a568ccaad1d891e72c137a4cbc82d5d\"", + "include_rfc2369_headers": true, "info": "", "join_address": "foo-join@example.com", + "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name": + "foo", "mail_host": "example.com", "moderator_password": null, "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", "send_welcome_message": true, "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1777'] + content-length: ['1789'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/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/member/test@example.com + response: + body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"} + headers: + content-length: ['32'] + content-type: [application/json; charset=UTF-8] + vary: [Accept] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": @@ -181,7 +194,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode ''} @@ -192,24 +205,24 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"82f042707bad8528d367f38ace98ee0d7ff05e57\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/107", "user_id": 107}], - "http_etag": "\"626cd7e8adb007ccfba5661536ba21d5aeb4209f\"", "start": 0, "total_size": + "http_etag": "\"eb591d9720aa0ac944b49315b6af1c950410b54c\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}], "http_etag": + "\"cf73b75814e4f44e603170b39d65b5120218e52e\"", "start": 0, "total_size": 1}'} headers: - content-length: ['297'] + content-length: ['293'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/107 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/1 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_displayed_to_superuser.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_displayed_to_superuser.yaml index c71ecec..f90c708 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_displayed_to_superuser.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_displayed_to_superuser.yaml @@ -1,10 +1,10 @@ interactions: - request: - body: !!python/unicode mail_host=example.com + body: !!python/unicode 'mail_host=example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode ''} @@ -17,7 +17,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", @@ -27,11 +27,11 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode fqdn_listname=foo%40example.com + body: !!python/unicode 'fqdn_listname=foo%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -44,7 +44,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -59,7 +59,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -72,7 +72,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -85,20 +85,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/member/testadmin@example.com - response: - body: {string: !!python/unicode '{}'} - headers: - content-length: ['2'] - content-type: [application/json; charset=UTF-8] - vary: [Accept] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -114,25 +101,51 @@ true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": - "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", - "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": - null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": - "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": - "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": - 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "", "header_uri": "", "http_etag": "\"e752899e2a568ccaad1d891e72c137a4cbc82d5d\"", + "include_rfc2369_headers": true, "info": "", "join_address": "foo-join@example.com", + "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name": + "foo", "mail_host": "example.com", "moderator_password": null, "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", "send_welcome_message": true, "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1777'] + content-length: ['1789'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/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/member/testadmin@example.com + response: + body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"} + headers: + content-length: ['32'] + content-type: [application/json; charset=UTF-8] + vary: [Accept] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": @@ -148,7 +161,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode ''} @@ -159,7 +172,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_not_displayed_to_moderator.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_not_displayed_to_moderator.yaml index 76eb61c..5c40184 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_not_displayed_to_moderator.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_not_displayed_to_moderator.yaml @@ -1,10 +1,10 @@ interactions: - request: - body: !!python/unicode mail_host=example.com + body: !!python/unicode 'mail_host=example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode ''} @@ -17,7 +17,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", @@ -27,11 +27,11 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode fqdn_listname=foo%40example.com + body: !!python/unicode 'fqdn_listname=foo%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -44,7 +44,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -56,24 +56,24 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=test%40example.com + body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=test%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/107'] + location: ['http://localhost:9001/3.0/members/2'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -88,7 +88,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -101,37 +101,24 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/test@example.com", - "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"a50b734ca900936fc8f5c3d99720c97116f38700\"", - "list_id": "foo.example.com", "member_id": 107, "moderation_action": "accept", - "role": "moderator", "self_link": "http://localhost:9001/3.0/members/107", - "user": "http://localhost:9001/3.0/users/108"}], "http_etag": "\"7da74307aaf26c1b91e69d56b0f648ff2076212b\"", + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"e38b2990914a17222fcd08883dd3fe3c4eb4a4be\"", + "list_id": "foo.example.com", "member_id": 2, "moderation_action": "accept", + "role": "moderator", "self_link": "http://localhost:9001/3.0/members/2", "user": + "http://localhost:9001/3.0/users/2"}], "http_etag": "\"6d75f67da091c7d8bbefeab8fc373d19c9288d26\"", "start": 0, "total_size": 1}'} headers: - content-length: ['491'] + content-length: ['485'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com - response: - body: {string: !!python/unicode '{}'} - headers: - content-length: ['2'] - content-type: [application/json; charset=UTF-8] - vary: [Accept] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -147,25 +134,51 @@ true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": - "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", - "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": - null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": - "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": - "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": - 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "", "header_uri": "", "http_etag": "\"e752899e2a568ccaad1d891e72c137a4cbc82d5d\"", + "include_rfc2369_headers": true, "info": "", "join_address": "foo-join@example.com", + "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name": + "foo", "mail_host": "example.com", "moderator_password": null, "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", "send_welcome_message": true, "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1777'] + content-length: ['1789'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/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/member/test@example.com + response: + body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"} + headers: + content-length: ['32'] + content-type: [application/json; charset=UTF-8] + vary: [Accept] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": @@ -181,7 +194,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode ''} @@ -192,24 +205,24 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"9af2576176fe03b26d1952dc955f03f1c1219cc5\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/108", "user_id": 108}], - "http_etag": "\"e0d58c7574421210f953fef422e3fafc4c70909f\"", "start": 0, "total_size": + "http_etag": "\"b36f8ca1d91d583901c768dc116815282d469c66\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/2", "user_id": 2}], "http_etag": + "\"4e038f62e673165d1652e4c4f862b2dd3bac9726\"", "start": 0, "total_size": 1}'} headers: - content-length: ['297'] + content-length: ['293'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/108 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/2 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_is_admin_secondary_moderator.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_is_admin_secondary_moderator.yaml index d1b7ba5..9407ef9 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_is_admin_secondary_moderator.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_is_admin_secondary_moderator.yaml @@ -1,10 +1,10 @@ interactions: - request: - body: !!python/unicode mail_host=example.com + body: !!python/unicode 'mail_host=example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode ''} @@ -17,7 +17,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", @@ -27,11 +27,11 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode fqdn_listname=foo%40example.com + body: !!python/unicode 'fqdn_listname=foo%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -41,26 +41,26 @@ location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: - body: !!python/unicode email=test%40example.com&password=None + body: !!python/unicode 'email=test%40example.com&password=None' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/users/109'] + location: ['http://localhost:9001/3.0/users/3'] status: {code: 201, message: Created} - request: - body: !!python/unicode email=anotheremail%40example.com + body: !!python/unicode 'email=anotheremail%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST - uri: http://localhost:9001/3.0/users/109/addresses + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/users/3/addresses response: body: {string: !!python/unicode ''} headers: @@ -72,7 +72,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode POST + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/addresses/anotheremail@example.com/verify response: body: {string: !!python/unicode ''} @@ -83,7 +83,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -95,24 +95,24 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=anotheremail%40example.com + body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=anotheremail%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/108'] + location: ['http://localhost:9001/3.0/members/3'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -127,7 +127,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -140,51 +140,25 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/anotheremail@example.com", "delivery_mode": "regular", "email": "anotheremail@example.com", "http_etag": - "\"07a146c3c5453620edd77029bdf0c1473a5d6154\"", "list_id": "foo.example.com", - "member_id": 108, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/108", "user": "http://localhost:9001/3.0/users/109"}], - "http_etag": "\"980e9fb7a0ef60508035ef23e031a8bdc4dcb101\"", "start": 0, "total_size": + "\"036384e094982f39fa239f363e48fff69282d226\"", "list_id": "foo.example.com", + "member_id": 3, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/3", "user": "http://localhost:9001/3.0/users/3"}], + "http_etag": "\"1d2bbe460ec1758a83d457fd3fbefdab1dab6158\"", "start": 0, "total_size": 1}'} headers: - content-length: ['507'] + content-length: ['501'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/member/anotheremail@example.com - response: - body: {string: !!python/unicode '{}'} - headers: - content-length: ['2'] - content-type: [application/json; charset=UTF-8] - vary: [Accept] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com - response: - body: {string: !!python/unicode '{}'} - headers: - content-length: ['2'] - content-type: [application/json; charset=UTF-8] - vary: [Accept] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -200,25 +174,64 @@ true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": - "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", - "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": - null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": - "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": - "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": - 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "", "header_uri": "", "http_etag": "\"e752899e2a568ccaad1d891e72c137a4cbc82d5d\"", + "include_rfc2369_headers": true, "info": "", "join_address": "foo-join@example.com", + "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name": + "foo", "mail_host": "example.com", "moderator_password": null, "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", "send_welcome_message": true, "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1777'] + content-length: ['1789'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/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/member/anotheremail@example.com + response: + body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"} + headers: + content-length: ['32'] + content-type: [application/json; charset=UTF-8] + vary: [Accept] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com + response: + body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"} + headers: + content-length: ['32'] + content-type: [application/json; charset=UTF-8] + vary: [Accept] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": @@ -234,7 +247,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode ''} @@ -245,25 +258,25 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"10431f5cac7e27fe469dcfc45e4f780960ff81ed\"", "is_server_owner": - false, "password": "$6$rounds=613493$mIET3A./8y1hgOq3$UdBJqVTmxM3B/3hWs/8py.8bbo3d4OhSLdJhlMqMdhKGJRd8OF67h.0zaZhcc/fYVq2xN6.5NA9BHmEPCvRxw.", - "self_link": "http://localhost:9001/3.0/users/109", "user_id": 109}], "http_etag": - "\"c97401b364a00573e649164a6a1848bacc138f2b\"", "start": 0, "total_size": + "http_etag": "\"17064c3e85552d653b0badc705fda43f8d58fe87\"", "is_server_owner": + false, "password": "$6$rounds=656000$mOuOpoKcb693TTSp$2P94mF8LVRoGCeqXV2eExGFoA.0TWHLEZO.5LvTOOOZvJLGptfWdv1aGXENDMZ9JFwvo6qO7/vBTu87s3.tm7.", + "self_link": "http://localhost:9001/3.0/users/3", "user_id": 3}], "http_etag": + "\"00158f79151cf776a11b4ca05a9ee37449c3f6e2\"", "start": 0, "total_size": 1}'} headers: - content-length: ['433'] + content-length: ['429'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/109 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/3 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_is_admin_secondary_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_is_admin_secondary_owner.yaml index 09af012..13baf64 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_is_admin_secondary_owner.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_is_admin_secondary_owner.yaml @@ -1,10 +1,10 @@ interactions: - request: - body: !!python/unicode mail_host=example.com + body: !!python/unicode 'mail_host=example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode ''} @@ -17,7 +17,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", @@ -27,11 +27,11 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode fqdn_listname=foo%40example.com + body: !!python/unicode 'fqdn_listname=foo%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -41,26 +41,26 @@ location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: - body: !!python/unicode email=test%40example.com&password=None + body: !!python/unicode 'email=test%40example.com&password=None' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/users/110'] + location: ['http://localhost:9001/3.0/users/4'] status: {code: 201, message: Created} - request: - body: !!python/unicode email=anotheremail%40example.com + body: !!python/unicode 'email=anotheremail%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST - uri: http://localhost:9001/3.0/users/110/addresses + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/users/4/addresses response: body: {string: !!python/unicode ''} headers: @@ -72,7 +72,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode POST + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/addresses/anotheremail@example.com/verify response: body: {string: !!python/unicode ''} @@ -83,7 +83,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -95,24 +95,24 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=anotheremail%40example.com + body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=anotheremail%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/109'] + location: ['http://localhost:9001/3.0/members/4'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -127,25 +127,25 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/anotheremail@example.com", "delivery_mode": "regular", "email": "anotheremail@example.com", "http_etag": - "\"3d27bafa69bee37a959ce670fdac1f6c7a87ede1\"", "list_id": "foo.example.com", - "member_id": 109, "moderation_action": "accept", "role": "owner", "self_link": - "http://localhost:9001/3.0/members/109", "user": "http://localhost:9001/3.0/users/110"}], - "http_etag": "\"7d8b3809a3b2a2b6d5643e6298fda02549c15009\"", "start": 0, "total_size": + "\"8568ebf6802e57f605f589b2f6d58af2b6f70479\"", "list_id": "foo.example.com", + "member_id": 4, "moderation_action": "accept", "role": "owner", "self_link": + "http://localhost:9001/3.0/members/4", "user": "http://localhost:9001/3.0/users/4"}], + "http_etag": "\"95cb9121e6fe35df5c23bb4f8f234d8641287fb1\"", "start": 0, "total_size": 1}'} headers: - content-length: ['503'] + content-length: ['497'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -158,33 +158,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/member/anotheremail@example.com - response: - body: {string: !!python/unicode '{}'} - headers: - content-length: ['2'] - content-type: [application/json; charset=UTF-8] - vary: [Accept] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com - response: - body: {string: !!python/unicode '{}'} - headers: - content-length: ['2'] - content-type: [application/json; charset=UTF-8] - vary: [Accept] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -200,25 +174,64 @@ true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": - "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", - "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": - null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": - "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": - "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": - 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "", "header_uri": "", "http_etag": "\"e752899e2a568ccaad1d891e72c137a4cbc82d5d\"", + "include_rfc2369_headers": true, "info": "", "join_address": "foo-join@example.com", + "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name": + "foo", "mail_host": "example.com", "moderator_password": null, "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", "send_welcome_message": true, "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1777'] + content-length: ['1789'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/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/member/anotheremail@example.com + response: + body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"} + headers: + content-length: ['32'] + content-type: [application/json; charset=UTF-8] + vary: [Accept] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com + response: + body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"} + headers: + content-length: ['32'] + content-type: [application/json; charset=UTF-8] + vary: [Accept] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": @@ -234,7 +247,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode ''} @@ -245,25 +258,25 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"900db23dbae4f2dcc5758ecbeefe1b9092b9c7fd\"", "is_server_owner": - false, "password": "$6$rounds=628378$GrmVqVV729LmXOcW$jemyddeRLO/E28FR795jOyRZ1sC3JLZrIC1nnYQ5Pv2q2LVFYZtEy9DBTusalRrYIKlnKGFcNdMH3qufxZdeN0", - "self_link": "http://localhost:9001/3.0/users/110", "user_id": 110}], "http_etag": - "\"9836578f212fbe94d4d4a015d2a6fc88a678a824\"", "start": 0, "total_size": + "http_etag": "\"55cfc1384364501d08c7ba6dd4bb0b19e142a818\"", "is_server_owner": + false, "password": "$6$rounds=656000$NwJSfk1FmiPXcGXh$lsAwEiHNI6jurhgOSKDCwZ/mTAD4bANaYvH.NAUOic4HwoelCm1VWND.1jLN0eEHhznlTj9n90gdMv1Ycu5Sp1", + "self_link": "http://localhost:9001/3.0/users/4", "user_id": 4}], "http_etag": + "\"8a3fed80008ddb3bf616d0a924b77cd8901f1511\"", "start": 0, "total_size": 1}'} headers: - content-length: ['433'] + content-length: ['429'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/110 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/4 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_logged_in.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_logged_in.yaml index c0de86e..768b65c 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_logged_in.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_logged_in.yaml @@ -1,10 +1,10 @@ interactions: - request: - body: !!python/unicode mail_host=example.com + body: !!python/unicode 'mail_host=example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode ''} @@ -17,7 +17,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", @@ -27,11 +27,11 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode fqdn_listname=foo%40example.com + body: !!python/unicode 'fqdn_listname=foo%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -44,7 +44,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -59,7 +59,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -72,7 +72,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -85,20 +85,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com - response: - body: {string: !!python/unicode '{}'} - headers: - content-length: ['2'] - content-type: [application/json; charset=UTF-8] - vary: [Accept] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -114,25 +101,51 @@ true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": - "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", - "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": - null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": - "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": - "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": - 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "", "header_uri": "", "http_etag": "\"e752899e2a568ccaad1d891e72c137a4cbc82d5d\"", + "include_rfc2369_headers": true, "info": "", "join_address": "foo-join@example.com", + "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name": + "foo", "mail_host": "example.com", "moderator_password": null, "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", "send_welcome_message": true, "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1777'] + content-length: ['1789'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/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/member/test@example.com + response: + body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"} + headers: + content-length: ['32'] + content-type: [application/json; charset=UTF-8] + vary: [Accept] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": @@ -148,7 +161,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode ''} @@ -159,7 +172,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_logged_out.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_logged_out.yaml index ce1de65..ad509ff 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_logged_out.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_logged_out.yaml @@ -1,10 +1,10 @@ interactions: - request: - body: !!python/unicode mail_host=example.com + body: !!python/unicode 'mail_host=example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode ''} @@ -17,7 +17,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", @@ -27,11 +27,11 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode fqdn_listname=foo%40example.com + body: !!python/unicode 'fqdn_listname=foo%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -44,7 +44,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -59,7 +59,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -75,25 +75,38 @@ true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": - "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", - "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": - null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": - "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": - "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": - 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "", "header_uri": "", "http_etag": "\"e752899e2a568ccaad1d891e72c137a4cbc82d5d\"", + "include_rfc2369_headers": true, "info": "", "join_address": "foo-join@example.com", + "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name": + "foo", "mail_host": "example.com", "moderator_password": null, "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", "send_welcome_message": true, "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1777'] + content-length: ['1789'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/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/domains response: body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": @@ -109,7 +122,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode ''} @@ -120,7 +133,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_moderator.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_moderator.yaml index 2607b26..d0deb01 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_moderator.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_moderator.yaml @@ -1,10 +1,10 @@ interactions: - request: - body: !!python/unicode mail_host=example.com + body: !!python/unicode 'mail_host=example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode ''} @@ -17,7 +17,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", @@ -27,11 +27,11 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode fqdn_listname=foo%40example.com + body: !!python/unicode 'fqdn_listname=foo%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -41,24 +41,24 @@ location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: - body: !!python/unicode email=test%40example.com&password=None + body: !!python/unicode 'email=test%40example.com&password=None' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/users/111'] + location: ['http://localhost:9001/3.0/users/5'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -70,24 +70,24 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=test%40example.com + body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=test%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/110'] + location: ['http://localhost:9001/3.0/members/5'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -102,7 +102,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -115,37 +115,24 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/test@example.com", - "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"49f6b08528627611dce493309358878427f9f7b6\"", - "list_id": "foo.example.com", "member_id": 110, "moderation_action": "accept", - "role": "moderator", "self_link": "http://localhost:9001/3.0/members/110", - "user": "http://localhost:9001/3.0/users/111"}], "http_etag": "\"05222740ad8be0827e01c67dbadfa22c56273f37\"", + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"058cc24f7fa0e36fde54b6aaa83c07b97ad5303a\"", + "list_id": "foo.example.com", "member_id": 5, "moderation_action": "accept", + "role": "moderator", "self_link": "http://localhost:9001/3.0/members/5", "user": + "http://localhost:9001/3.0/users/5"}], "http_etag": "\"da161615a583cca81b40066fd27b162dd577cf33\"", "start": 0, "total_size": 1}'} headers: - content-length: ['491'] + content-length: ['485'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com - response: - body: {string: !!python/unicode '{}'} - headers: - content-length: ['2'] - content-type: [application/json; charset=UTF-8] - vary: [Accept] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -161,25 +148,51 @@ true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": - "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", - "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": - null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": - "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": - "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": - 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "", "header_uri": "", "http_etag": "\"e752899e2a568ccaad1d891e72c137a4cbc82d5d\"", + "include_rfc2369_headers": true, "info": "", "join_address": "foo-join@example.com", + "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name": + "foo", "mail_host": "example.com", "moderator_password": null, "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", "send_welcome_message": true, "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1777'] + content-length: ['1789'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/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/member/test@example.com + response: + body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"} + headers: + content-length: ['32'] + content-type: [application/json; charset=UTF-8] + vary: [Accept] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": @@ -195,7 +208,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode ''} @@ -206,25 +219,25 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"853b5f2ef0ae8cc8686d077acdb10c2d0db62b81\"", "is_server_owner": - false, "password": "$6$rounds=590565$lekZnQdHKKvrlyft$IYwJJ7nRl/.ph7KgbXABWBeFcZkKVRsXrTJDpL2hGOd22oUtdyc9miJ30r0X84xpxcMlpLJVyohupNg5o2oGf1", - "self_link": "http://localhost:9001/3.0/users/111", "user_id": 111}], "http_etag": - "\"4bf967b51887fa6b46837830064ca9f64c58df54\"", "start": 0, "total_size": + "http_etag": "\"c64d737f91474c36a6988cc521179e6b27a922d9\"", "is_server_owner": + false, "password": "$6$rounds=656000$SVd3oNxuW5f10cfC$DU95TPJNw/Sen3vQPhdVbeAlaU4s.DLSwxAIKgGoXYeRPtswQNu1lvHDpD4C6gfZ3WBF7qsAGMBRyd4WjSrOY/", + "self_link": "http://localhost:9001/3.0/users/5", "user_id": 5}], "http_etag": + "\"ee3b298fe13c8d7a968a82ae432df90ff0bea99e\"", "start": 0, "total_size": 1}'} headers: - content-length: ['433'] + content-length: ['429'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/111 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/5 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_owner.yaml index 9910d51..114261b 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_owner.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_owner.yaml @@ -1,10 +1,10 @@ interactions: - request: - body: !!python/unicode mail_host=example.com + body: !!python/unicode 'mail_host=example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode ''} @@ -17,7 +17,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", @@ -27,11 +27,11 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode fqdn_listname=foo%40example.com + body: !!python/unicode 'fqdn_listname=foo%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -41,24 +41,24 @@ location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: - body: !!python/unicode email=test%40example.com&password=None + body: !!python/unicode 'email=test%40example.com&password=None' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/users/112'] + location: ['http://localhost:9001/3.0/users/6'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -70,24 +70,24 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=test%40example.com + body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=test%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/111'] + location: ['http://localhost:9001/3.0/members/6'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -102,24 +102,24 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/test@example.com", - "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"054f4d4529bff8e970383af44e6bea87d7fc0b02\"", - "list_id": "foo.example.com", "member_id": 111, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/111", "user": - "http://localhost:9001/3.0/users/112"}], "http_etag": "\"90947f403ea5af9592febb462e2aa2f31e38a3f2\"", + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"e8c1f3ff7cfbb7a7063f4557e9b2fd4c0e036a03\"", + "list_id": "foo.example.com", "member_id": 6, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/6", "user": + "http://localhost:9001/3.0/users/6"}], "http_etag": "\"49f1ca2cbe3113fd672239e68ca929f9c30aa604\"", "start": 0, "total_size": 1}'} headers: - content-length: ['487'] + content-length: ['481'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -132,20 +132,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com - response: - body: {string: !!python/unicode '{}'} - headers: - content-length: ['2'] - content-type: [application/json; charset=UTF-8] - vary: [Accept] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -161,25 +148,51 @@ true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": - "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", - "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": - null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": - "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": - "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": - 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "", "header_uri": "", "http_etag": "\"e752899e2a568ccaad1d891e72c137a4cbc82d5d\"", + "include_rfc2369_headers": true, "info": "", "join_address": "foo-join@example.com", + "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name": + "foo", "mail_host": "example.com", "moderator_password": null, "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", "send_welcome_message": true, "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1777'] + content-length: ['1789'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/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/member/test@example.com + response: + body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"} + headers: + content-length: ['32'] + content-type: [application/json; charset=UTF-8] + vary: [Accept] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": @@ -195,7 +208,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode ''} @@ -206,25 +219,25 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"97f8381d9df9e380b6035eea4596dfd80efed04b\"", "is_server_owner": - false, "password": "$6$rounds=605889$SHlcRvURgDfP.TPe$pHTIvuKMNUfZNTgFTgWK8Ywh0ghs/y0EQPbCJPcoxwZNwdlgkudFJKCklNyKks/h7SIuoimmafSXFSMi4A7Wf0", - "self_link": "http://localhost:9001/3.0/users/112", "user_id": 112}], "http_etag": - "\"c87b8265832e7ee7f5942292f019a4b056e074e0\"", "start": 0, "total_size": + "http_etag": "\"ab553f5f6456e07f7c6ed9459121c551ed2a3f8c\"", "is_server_owner": + false, "password": "$6$rounds=656000$vTB41cpblpURRDyZ$9PQv2cA3GXS9QmZQ5Z6UWW/.2ApCIEG2q6FAoOsck2ryKXgL16dPg.0IL7uKMv8w.qWcwwHGeM.exOhUksFwH/", + "self_link": "http://localhost:9001/3.0/users/6", "user_id": 6}], "http_etag": + "\"21eb7128106e4efa34185af04a24c0ba37d0bea8\"", "start": 0, "total_size": 1}'} headers: - content-length: ['433'] + content-length: ['429'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/112 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/6 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_metrics_not_displayed_to_anonymous.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_metrics_not_displayed_to_anonymous.yaml index ce1de65..ad509ff 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_metrics_not_displayed_to_anonymous.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_metrics_not_displayed_to_anonymous.yaml @@ -1,10 +1,10 @@ interactions: - request: - body: !!python/unicode mail_host=example.com + body: !!python/unicode 'mail_host=example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode ''} @@ -17,7 +17,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", @@ -27,11 +27,11 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode fqdn_listname=foo%40example.com + body: !!python/unicode 'fqdn_listname=foo%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -44,7 +44,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -59,7 +59,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -75,25 +75,38 @@ true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": - "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", - "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": - null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": - "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": - "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": - 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "", "header_uri": "", "http_etag": "\"e752899e2a568ccaad1d891e72c137a4cbc82d5d\"", + "include_rfc2369_headers": true, "info": "", "join_address": "foo-join@example.com", + "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name": + "foo", "mail_host": "example.com", "moderator_password": null, "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", "send_welcome_message": true, "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1777'] + content-length: ['1789'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/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/domains response: body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": @@ -109,7 +122,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode ''} @@ -120,7 +133,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_unsubscribe_button_is_available.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_unsubscribe_button_is_available.yaml index 0cab4b0..b4a5277 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_unsubscribe_button_is_available.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_unsubscribe_button_is_available.yaml @@ -1,10 +1,10 @@ interactions: - request: - body: !!python/unicode mail_host=example.com + body: !!python/unicode 'mail_host=example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode ''} @@ -17,7 +17,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", @@ -27,11 +27,11 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode fqdn_listname=foo%40example.com + body: !!python/unicode 'fqdn_listname=foo%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -44,7 +44,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -56,24 +56,24 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode display_name=None&list_id=foo.example.com&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com + body: !!python/unicode 'display_name=None&list_id=foo.example.com&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/113'] + location: ['http://localhost:9001/3.0/members/7'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -88,7 +88,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -101,7 +101,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -114,22 +114,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com - response: - body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/test@example.com", - "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"92b93ed181b0117fbcf5df08d0f37148102235e1\"", - "list_id": "foo.example.com", "member_id": 113, "role": "member", "self_link": - "http://localhost:9001/3.0/members/113", "user": "http://localhost:9001/3.0/users/114"}'} - headers: - content-length: ['352'] - content-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -145,25 +130,53 @@ true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": - "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", - "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": - null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": - "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": - "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": - 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "", "header_uri": "", "http_etag": "\"e752899e2a568ccaad1d891e72c137a4cbc82d5d\"", + "include_rfc2369_headers": true, "info": "", "join_address": "foo-join@example.com", + "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name": + "foo", "mail_host": "example.com", "moderator_password": null, "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", "send_welcome_message": true, "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1777'] + content-length: ['1789'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/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/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": "\"ff33fb6ab7d24db3afbd477f5584be709a2d247d\"", + "list_id": "foo.example.com", "member_id": 7, "role": "member", "self_link": + "http://localhost:9001/3.0/members/7", "user": "http://localhost:9001/3.0/users/7"}'} + headers: + content-length: ['346'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": @@ -179,7 +192,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode ''} @@ -190,24 +203,24 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "display_name": "None", "http_etag": "\"39223f4b33e9288f73b68bc5bd442a86f95c3612\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/114", - "user_id": 114}], "http_etag": "\"e5babd985d6e5457e1f2927866839fd7583773cc\"", + "display_name": "None", "http_etag": "\"b00eaeb04cfe981da2ee012d8482e830be41ed85\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/7", + "user_id": 7}], "http_etag": "\"e7e7677b581a6a895abf97a006b768a485f61c1a\"", "start": 0, "total_size": 1}'} headers: - content-length: ['321'] + content-length: ['317'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/114 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/7 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_banned_address.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_banned_address.yaml index d02772f..4128f79 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_banned_address.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_banned_address.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode 'mail_host=example.com' headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] @@ -20,16 +20,14 @@ 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"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] + content-length: ['172'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=open_list%40example.com + body: !!python/unicode 'fqdn_listname=open_list%40example.com' headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] @@ -73,26 +71,27 @@ "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", - "goodbye_message_uri": "", "http_etag": "\"3d16b6c6d1bb8fed130bd061c70a0894856a4ca8\"", - "include_rfc2369_headers": true, "join_address": "open_list-join@example.com", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "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, "footer_uri": "", "fqdn_listname": "open_list@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"2aed2f0ce4a7f2c86eae4124728f0153fda52dc6\"", + "include_rfc2369_headers": true, "info": "", "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": + "open_list", "mail_host": "example.com", "moderator_password": null, "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", "send_welcome_message": true, "subject_prefix": "[Open_list] ", "subscription_policy": "confirm", - "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1790'] + content-length: ['1849'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: subscription_policy=open + body: !!python/unicode 'subscription_policy=open' headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] @@ -104,7 +103,7 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: fqdn_listname=moderate_subs%40example.com + body: !!python/unicode 'fqdn_listname=moderate_subs%40example.com' headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] @@ -148,27 +147,28 @@ "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", - "goodbye_message_uri": "", "http_etag": "\"bbeb372001a49a25fa038477abd59e8b3c45a20d\"", - "include_rfc2369_headers": true, "join_address": "moderate_subs-join@example.com", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "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, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"60d87955c09ee35a06c8740e9a4474843e083e3a\"", + "include_rfc2369_headers": true, "info": "", "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"}'} + "list_name": "moderate_subs", "mail_host": "example.com", "moderator_password": + null, "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", "send_welcome_message": true, "subject_prefix": + "[Moderate_subs] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1830'] + content-length: ['1889'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: subscription_policy=moderate + body: !!python/unicode 'subscription_policy=moderate' headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] @@ -180,7 +180,7 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: email=test%40example.com + body: !!python/unicode 'email=test%40example.com' headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] @@ -191,15 +191,15 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/users/15'] + location: ['http://localhost:9001/3.0/users/8'] status: {code: 201, message: Created} - request: - body: email=fritz%40example.org + body: !!python/unicode '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/15/addresses + uri: http://localhost:9001/3.0/users/8/addresses response: body: {string: !!python/unicode ''} headers: @@ -212,14 +212,14 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/15 + uri: http://localhost:9001/3.0/users/8 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"e760c1db5c21a12c6e8bf64b42d61f579417f2d9\"", "is_server_owner": false, - "password": "$6$rounds=604230$3TJsGBKJqausTP/q$Z/Q16Iso7lY2FPuU/csWFng7Sw7fJIKCnDCySHSPvAy.Klq8Lz8W2ZZNT.WLNgpvnshGlT0yH1pBDgBhdViRv0", - "self_link": "http://localhost:9001/3.0/users/15", "user_id": 15}'} + "\"0c2468c8ce47eced76815fbe915ff5f37f27103d\"", "is_server_owner": false, + "password": "$6$rounds=656000$4A1xUgoTyitzT1uy$jS5SAizo.ZCHk3ssqh4aKnaWt07Wi3RGHonG74/306XOTxH3IZSiHcQWO4T/iThDLlJXLHcmeW2Ak.3mnn2zm/", + "self_link": "http://localhost:9001/3.0/users/8", "user_id": 8}'} headers: - content-length: ['326'] + content-length: ['324'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -227,18 +227,18 @@ 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/8/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"f5e7dce17a939b6cd74400155bc8208939e35913\"", "original_email": "fritz@example.org", + "\"3118a56631f161e15b05f860e8ef37464c89d18e\"", "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/15"}, {"email": "test@example.com", - "http_etag": "\"7e89118330bb8d4cfca6242e4023e3685cfe802f\"", "original_email": + "user": "http://localhost:9001/3.0/users/8"}, {"email": "test@example.com", + "http_etag": "\"ddda9833ea38cea61dbf611f3cf46fd118cba777\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "user": "http://localhost:9001/3.0/users/15"}], "http_etag": "\"022eb06e8ccdd9d0317e80895bcf7fe7341666d6\"", + "user": "http://localhost:9001/3.0/users/8"}], "http_etag": "\"074af7e8657324171ae04b869b162467811b317b\"", "start": 0, "total_size": 2}'} headers: - content-length: ['676'] + content-length: ['674'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -264,7 +264,7 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: email=test%40example.com + body: !!python/unicode 'email=test%40example.com' headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] @@ -282,42 +282,6 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/test@example.com - response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"e760c1db5c21a12c6e8bf64b42d61f579417f2d9\"", "is_server_owner": false, - "password": "$6$rounds=604230$3TJsGBKJqausTP/q$Z/Q16Iso7lY2FPuU/csWFng7Sw7fJIKCnDCySHSPvAy.Klq8Lz8W2ZZNT.WLNgpvnshGlT0yH1pBDgBhdViRv0", - "self_link": "http://localhost:9001/3.0/users/15", "user_id": 15}'} - headers: - content-length: ['326'] - content-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/15/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"a9370f52a26a16b0ebe81930a718a7fc38e2862c\"", "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/15", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"1e53e43ce1505c75a5b2b206b6a12b7cc4260bfe\"", - "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", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"b61b5c8675801f918c17a54afbe34d98eb45a9cb\"", "start": 0, "total_size": - 2}'} - headers: - content-length: ['752'] - content-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -356,7 +320,7 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: display_name=None&list_id=open_list.example.com&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com + body: !!python/unicode 'display_name=None&list_id=open_list.example.com&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com' headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] @@ -399,42 +363,6 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/test@example.com - response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"e760c1db5c21a12c6e8bf64b42d61f579417f2d9\"", "is_server_owner": false, - "password": "$6$rounds=604230$3TJsGBKJqausTP/q$Z/Q16Iso7lY2FPuU/csWFng7Sw7fJIKCnDCySHSPvAy.Klq8Lz8W2ZZNT.WLNgpvnshGlT0yH1pBDgBhdViRv0", - "self_link": "http://localhost:9001/3.0/users/15", "user_id": 15}'} - headers: - content-length: ['326'] - content-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/15/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"a9370f52a26a16b0ebe81930a718a7fc38e2862c\"", "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/15", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"1e53e43ce1505c75a5b2b206b6a12b7cc4260bfe\"", - "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", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"b61b5c8675801f918c17a54afbe34d98eb45a9cb\"", "start": 0, "total_size": - 2}'} - headers: - content-length: ['752'] - content-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -477,32 +405,6 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/open_list.example.com/member/test@example.com - response: - body: {string: !!python/unicode '{}'} - headers: - content-length: ['2'] - content-type: [application/json; charset=UTF-8] - vary: [Accept] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/open_list.example.com/member/fritz@example.org - response: - body: {string: !!python/unicode '{}'} - headers: - content-length: ['2'] - content-type: [application/json; charset=UTF-8] - vary: [Accept] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -513,22 +415,23 @@ "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", - "goodbye_message_uri": "", "http_etag": "\"f5522fcc64a0848ce01fcad0b5f9ee42b9c02bd3\"", - "include_rfc2369_headers": true, "join_address": "open_list-join@example.com", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "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, "footer_uri": "", "fqdn_listname": "open_list@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"086805127cff33814207a09645d1d14a418fad63\"", + "include_rfc2369_headers": true, "info": "", "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": + "open_list", "mail_host": "example.com", "moderator_password": null, "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", "send_welcome_message": true, "subject_prefix": "[Open_list] ", "subscription_policy": "open", "volume": - 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + 1, "welcome_message_uri": ""}'} headers: - content-length: ['1787'] + content-length: ['1846'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -536,6 +439,45 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/open_list.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/open_list.example.com/member/fritz@example.org + response: + body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"} + headers: + content-length: ['32'] + content-type: [application/json; charset=UTF-8] + vary: [Accept] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/open_list.example.com/member/test@example.com + response: + body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"} + headers: + content-length: ['32'] + content-type: [application/json; charset=UTF-8] + vary: [Accept] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -564,13 +506,13 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] + content-length: ['277'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -592,13 +534,13 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"e760c1db5c21a12c6e8bf64b42d61f579417f2d9\"", "is_server_owner": - false, "password": "$6$rounds=604230$3TJsGBKJqausTP/q$Z/Q16Iso7lY2FPuU/csWFng7Sw7fJIKCnDCySHSPvAy.Klq8Lz8W2ZZNT.WLNgpvnshGlT0yH1pBDgBhdViRv0", - "self_link": "http://localhost:9001/3.0/users/15", "user_id": 15}], "http_etag": - "\"4ac49180421edb87346cc7a2444765f42c2121be\"", "start": 0, "total_size": + "http_etag": "\"0c2468c8ce47eced76815fbe915ff5f37f27103d\"", "is_server_owner": + false, "password": "$6$rounds=656000$4A1xUgoTyitzT1uy$jS5SAizo.ZCHk3ssqh4aKnaWt07Wi3RGHonG74/306XOTxH3IZSiHcQWO4T/iThDLlJXLHcmeW2Ak.3mnn2zm/", + "self_link": "http://localhost:9001/3.0/users/8", "user_id": 8}], "http_etag": + "\"1fbd3744b474b52342261d274c06e8c93f6a6bcf\"", "start": 0, "total_size": 1}'} headers: - content-length: ['431'] + content-length: ['429'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -606,7 +548,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/8 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_change_subscription_confirm.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_change_subscription_confirm.yaml index 5ce713d..838df22 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_change_subscription_confirm.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_change_subscription_confirm.yaml @@ -1,10 +1,10 @@ interactions: - request: - body: !!python/unicode mail_host=example.com + body: !!python/unicode 'mail_host=example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode ''} @@ -17,7 +17,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", @@ -27,11 +27,11 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode fqdn_listname=open_list%40example.com + body: !!python/unicode 'fqdn_listname=open_list%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -44,7 +44,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -60,7 +60,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -76,8 +76,8 @@ 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, "footer_uri": "", "fqdn_listname": "open_list@example.com", - "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"87dbf6f784ce7fcba36c92ecc99006b8c1f878eb\"", - "include_rfc2369_headers": true, "join_address": "open_list-join@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"2aed2f0ce4a7f2c86eae4124728f0153fda52dc6\"", + "include_rfc2369_headers": true, "info": "", "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", "moderator_password": null, "next_digest_number": 1, "no_reply_address": "noreply@example.com", "owner_address": "open_list-owner@example.com", @@ -87,15 +87,15 @@ true, "subject_prefix": "[Open_list] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1837'] + content-length: ['1849'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode subscription_policy=open + body: !!python/unicode 'subscription_policy=open' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PATCH + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'PATCH' uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode ''} @@ -103,11 +103,11 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: !!python/unicode fqdn_listname=moderate_subs%40example.com + body: !!python/unicode 'fqdn_listname=moderate_subs%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -120,7 +120,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": @@ -136,7 +136,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -152,8 +152,8 @@ 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, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com", - "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"de6cbad08d95ba3eeba449e9ea2b2eb130d74f97\"", - "include_rfc2369_headers": true, "join_address": "moderate_subs-join@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"60d87955c09ee35a06c8740e9a4474843e083e3a\"", + "include_rfc2369_headers": true, "info": "", "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", "moderator_password": null, "next_digest_number": 1, "no_reply_address": "noreply@example.com", @@ -164,15 +164,15 @@ "[Moderate_subs] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1877'] + content-length: ['1889'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode subscription_policy=moderate + body: !!python/unicode 'subscription_policy=moderate' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PATCH + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'PATCH' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode ''} @@ -180,26 +180,26 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: !!python/unicode email=test%40example.com + body: !!python/unicode 'email=test%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/users/128'] + location: ['http://localhost:9001/3.0/users/9'] status: {code: 201, message: Created} - request: - body: !!python/unicode email=fritz%40example.org + body: !!python/unicode '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/128/addresses + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/users/9/addresses response: body: {string: !!python/unicode ''} headers: @@ -211,41 +211,41 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/128 + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/9 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"eb11db76f9610385a6fc4698a7687a9a9080a096\"", "is_server_owner": false, - "password": "$6$rounds=598797$RPW0MTnwAI9fHokL$s7X5x45oLB4mnkgxlqVg5rsKfi1no1YOrEkWZIq51Tb3WVHqs8dn0t9VcZ3Y9C.bQuCpbO5M0aU93bnf5mGRP0", - "self_link": "http://localhost:9001/3.0/users/128", "user_id": 128}'} + "\"ca7237e0d822703967897a50a380ae328b389d25\"", "is_server_owner": false, + "password": "$6$rounds=656000$70ZJPxLTchSMTmXZ$bIvRbHnH1OzqVwCykf5reeh9Qo9PNZicKOcHbqb/KPu/JPVnEw8AJwwvdYvdyoQaDlj1eC0J4u629.0HJcjV3/", + "self_link": "http://localhost:9001/3.0/users/9", "user_id": 9}'} headers: - content-length: ['328'] + content-length: ['324'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/128/addresses + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/9/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"b2a7ffb1c098b50a7d05d4a7a1d5044926982a38\"", "original_email": "fritz@example.org", + "\"1d655761300c9a203a280f3a2be9e133eb802280\"", "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/128"}, {"email": "test@example.com", - "http_etag": "\"8d35b6a2b343f326174470b3da62e2a01d0d3c33\"", "original_email": + "user": "http://localhost:9001/3.0/users/9"}, {"email": "test@example.com", + "http_etag": "\"83c6dfb813c2b4484f0c15eb434e104521bb2409\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "user": "http://localhost:9001/3.0/users/128"}], "http_etag": "\"44bc2a578619fe93c304d7300f0770111e8cbb8c\"", + "user": "http://localhost:9001/3.0/users/9"}], "http_etag": "\"f14c73914079e826a370b6b434148753e7c21e65\"", "start": 0, "total_size": 2}'} headers: - content-length: ['678'] + content-length: ['674'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode POST + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/addresses/fritz@example.org/verify response: body: {string: !!python/unicode ''} @@ -256,7 +256,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode POST + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/addresses/test@example.com/verify response: body: {string: !!python/unicode ''} @@ -264,11 +264,11 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: !!python/unicode fqdn_listname=confirm_list%40example.com + body: !!python/unicode 'fqdn_listname=confirm_list%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -281,7 +281,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/confirm_list.example.com response: body: {string: !!python/unicode '{"display_name": "Confirm_list", "fqdn_listname": @@ -297,7 +297,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/confirm_list@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -313,8 +313,8 @@ true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", "digests_enabled": true, "display_name": "Confirm_list", "filter_content": false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "confirm_list@example.com", - "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"0beb9c33de3bff08553cab69155f7f9dda673ed3\"", - "include_rfc2369_headers": true, "join_address": "confirm_list-join@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"b69a1079ed0aa1ba3722e4dd48e25c70fd646836\"", + "include_rfc2369_headers": true, "info": "", "join_address": "confirm_list-join@example.com", "last_post_at": null, "leave_address": "confirm_list-leave@example.com", "list_name": "confirm_list", "mail_host": "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": "noreply@example.com", "owner_address": "confirm_list-owner@example.com", @@ -324,15 +324,15 @@ true, "subject_prefix": "[Confirm_list] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1867'] + content-length: ['1879'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode + body: !!python/unicode '' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PATCH + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'PATCH' uri: http://localhost:9001/3.0/lists/confirm_list@example.com/config response: body: {string: !!python/unicode ''} @@ -340,41 +340,41 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: !!python/unicode display_name=None&list_id=confirm_list.example.com&pre_confirmed=True&subscriber=test%40example.com + body: !!python/unicode 'display_name=None&list_id=confirm_list.example.com&pre_confirmed=True&subscriber=test%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/125'] + location: ['http://localhost:9001/3.0/members/8'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/confirm_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": "\"171139dd7061a67076d01df597e25dcf264412ad\"", - "list_id": "confirm_list.example.com", "member_id": 125, "role": "member", - "self_link": "http://localhost:9001/3.0/members/125", "user": "http://localhost:9001/3.0/users/128"}], - "http_etag": "\"93cce1a3d41e179056b3fb96f75c97824f7fb663\"", "start": 0, "total_size": + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"214ce3dafe089fc9df61fa39028479ddb5eaa504\"", + "list_id": "confirm_list.example.com", "member_id": 8, "role": "member", "self_link": + "http://localhost:9001/3.0/members/8", "user": "http://localhost:9001/3.0/users/9"}], + "http_etag": "\"4dbf6f9d1505077e5df67e3731b53ec736c0f9f1\"", "start": 0, "total_size": 1}'} headers: - content-length: ['466'] + content-length: ['460'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/confirm_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -387,7 +387,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/confirm_list.example.com response: body: {string: !!python/unicode '{"display_name": "Confirm_list", "fqdn_listname": @@ -403,7 +403,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/confirm_list.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -416,7 +416,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/confirm_list.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -429,12 +429,12 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/confirm_list.example.com/member/fritz@example.org response: - body: {string: !!python/unicode '{}'} + body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"} headers: - content-length: ['2'] + content-length: ['32'] content-type: [application/json; charset=UTF-8] vary: [Accept] status: {code: 404, message: Not Found} @@ -442,22 +442,22 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/confirm_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": "\"171139dd7061a67076d01df597e25dcf264412ad\"", - "list_id": "confirm_list.example.com", "member_id": 125, "role": "member", - "self_link": "http://localhost:9001/3.0/members/125", "user": "http://localhost:9001/3.0/users/128"}'} + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"214ce3dafe089fc9df61fa39028479ddb5eaa504\"", + "list_id": "confirm_list.example.com", "member_id": 8, "role": "member", "self_link": + "http://localhost:9001/3.0/members/8", "user": "http://localhost:9001/3.0/users/9"}'} headers: - content-length: ['361'] + content-length: ['355'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/confirm_list.example.com/member/test@example.com response: body: {string: !!python/unicode ''} @@ -465,41 +465,41 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: !!python/unicode display_name=None&list_id=confirm_list.example.com&pre_confirmed=True&subscriber=fritz%40example.org + body: !!python/unicode 'display_name=None&list_id=confirm_list.example.com&pre_confirmed=True&subscriber=fritz%40example.org' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/126'] + location: ['http://localhost:9001/3.0/members/9'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/confirm_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": "\"25cf8617cfb8b0cd7f2791e57f27e8c7895abf92\"", - "list_id": "confirm_list.example.com", "member_id": 126, "role": "member", - "self_link": "http://localhost:9001/3.0/members/126", "user": "http://localhost:9001/3.0/users/128"}], - "http_etag": "\"83512de216235da1cc5011cee63d27f473fecfe5\"", "start": 0, "total_size": + "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"0b476e50281f3c5f6b2f996b2fdecf3bcb29b69f\"", + "list_id": "confirm_list.example.com", "member_id": 9, "role": "member", "self_link": + "http://localhost:9001/3.0/members/9", "user": "http://localhost:9001/3.0/users/9"}], + "http_etag": "\"6aa5796a4f9e27037a3d0e0b9a7e90a3cfdff8d6\"", "start": 0, "total_size": 1}'} headers: - content-length: ['468'] + content-length: ['462'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/confirm_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -512,22 +512,22 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/confirm_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": "\"25cf8617cfb8b0cd7f2791e57f27e8c7895abf92\"", - "list_id": "confirm_list.example.com", "member_id": 126, "role": "member", - "self_link": "http://localhost:9001/3.0/members/126", "user": "http://localhost:9001/3.0/users/128"}'} + "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"0b476e50281f3c5f6b2f996b2fdecf3bcb29b69f\"", + "list_id": "confirm_list.example.com", "member_id": 9, "role": "member", "self_link": + "http://localhost:9001/3.0/members/9", "user": "http://localhost:9001/3.0/users/9"}'} headers: - content-length: ['363'] + content-length: ['357'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/confirm_list.example.com response: body: {string: !!python/unicode '{"display_name": "Confirm_list", "fqdn_listname": @@ -543,7 +543,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/confirm_list.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -556,7 +556,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/confirm_list.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -569,22 +569,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/confirm_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": "\"25cf8617cfb8b0cd7f2791e57f27e8c7895abf92\"", - "list_id": "confirm_list.example.com", "member_id": 126, "role": "member", - "self_link": "http://localhost:9001/3.0/members/126", "user": "http://localhost:9001/3.0/users/128"}'} - headers: - content-length: ['363'] - content-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/confirm_list@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -600,8 +585,8 @@ true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", "digests_enabled": true, "display_name": "Confirm_list", "filter_content": false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "confirm_list@example.com", - "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"0beb9c33de3bff08553cab69155f7f9dda673ed3\"", - "include_rfc2369_headers": true, "join_address": "confirm_list-join@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"b69a1079ed0aa1ba3722e4dd48e25c70fd646836\"", + "include_rfc2369_headers": true, "info": "", "join_address": "confirm_list-join@example.com", "last_post_at": null, "leave_address": "confirm_list-leave@example.com", "list_name": "confirm_list", "mail_host": "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": "noreply@example.com", "owner_address": "confirm_list-owner@example.com", @@ -611,14 +596,42 @@ true, "subject_prefix": "[Confirm_list] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1867'] + content-length: ['1879'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/confirm_list.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/confirm_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": "\"0b476e50281f3c5f6b2f996b2fdecf3bcb29b69f\"", + "list_id": "confirm_list.example.com", "member_id": 9, "role": "member", "self_link": + "http://localhost:9001/3.0/members/9", "user": "http://localhost:9001/3.0/users/9"}'} + headers: + content-length: ['357'] + 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/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -631,7 +644,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -644,7 +657,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": @@ -660,7 +673,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode ''} @@ -671,25 +684,25 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"eb11db76f9610385a6fc4698a7687a9a9080a096\"", "is_server_owner": - false, "password": "$6$rounds=598797$RPW0MTnwAI9fHokL$s7X5x45oLB4mnkgxlqVg5rsKfi1no1YOrEkWZIq51Tb3WVHqs8dn0t9VcZ3Y9C.bQuCpbO5M0aU93bnf5mGRP0", - "self_link": "http://localhost:9001/3.0/users/128", "user_id": 128}], "http_etag": - "\"701217c6ff3ed083084087d7ea0283a38ec68ff7\"", "start": 0, "total_size": + "http_etag": "\"ca7237e0d822703967897a50a380ae328b389d25\"", "is_server_owner": + false, "password": "$6$rounds=656000$70ZJPxLTchSMTmXZ$bIvRbHnH1OzqVwCykf5reeh9Qo9PNZicKOcHbqb/KPu/JPVnEw8AJwwvdYvdyoQaDlj1eC0J4u629.0HJcjV3/", + "self_link": "http://localhost:9001/3.0/users/9", "user_id": 9}], "http_etag": + "\"065008a2a67e2bf0508cdf3e307da95767658e3c\"", "start": 0, "total_size": 1}'} headers: - content-length: ['433'] + content-length: ['429'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/128 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/9 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_change_subscription_open.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_change_subscription_open.yaml index 22e8c5d..9171288 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_change_subscription_open.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_change_subscription_open.yaml @@ -1,10 +1,10 @@ interactions: - request: - body: !!python/unicode mail_host=example.com + body: !!python/unicode 'mail_host=example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode ''} @@ -17,7 +17,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", @@ -27,11 +27,11 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode fqdn_listname=open_list%40example.com + body: !!python/unicode 'fqdn_listname=open_list%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -44,7 +44,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -60,7 +60,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -76,8 +76,8 @@ 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, "footer_uri": "", "fqdn_listname": "open_list@example.com", - "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"87dbf6f784ce7fcba36c92ecc99006b8c1f878eb\"", - "include_rfc2369_headers": true, "join_address": "open_list-join@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"2aed2f0ce4a7f2c86eae4124728f0153fda52dc6\"", + "include_rfc2369_headers": true, "info": "", "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", "moderator_password": null, "next_digest_number": 1, "no_reply_address": "noreply@example.com", "owner_address": "open_list-owner@example.com", @@ -87,15 +87,15 @@ true, "subject_prefix": "[Open_list] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1837'] + content-length: ['1849'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode subscription_policy=open + body: !!python/unicode 'subscription_policy=open' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PATCH + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'PATCH' uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode ''} @@ -103,11 +103,11 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: !!python/unicode fqdn_listname=moderate_subs%40example.com + body: !!python/unicode 'fqdn_listname=moderate_subs%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -120,7 +120,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": @@ -136,7 +136,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -152,8 +152,8 @@ 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, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com", - "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"de6cbad08d95ba3eeba449e9ea2b2eb130d74f97\"", - "include_rfc2369_headers": true, "join_address": "moderate_subs-join@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"60d87955c09ee35a06c8740e9a4474843e083e3a\"", + "include_rfc2369_headers": true, "info": "", "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", "moderator_password": null, "next_digest_number": 1, "no_reply_address": "noreply@example.com", @@ -164,15 +164,15 @@ "[Moderate_subs] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1877'] + content-length: ['1889'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode subscription_policy=moderate + body: !!python/unicode 'subscription_policy=moderate' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PATCH + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'PATCH' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode ''} @@ -180,26 +180,26 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: !!python/unicode email=test%40example.com + body: !!python/unicode 'email=test%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/users/129'] + location: ['http://localhost:9001/3.0/users/10'] status: {code: 201, message: Created} - request: - body: !!python/unicode email=fritz%40example.org + body: !!python/unicode '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/129/addresses + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/users/10/addresses response: body: {string: !!python/unicode ''} headers: @@ -211,41 +211,41 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/129 + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/10 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"97dedf032902069732354b769825d8a3aa0fa1b9\"", "is_server_owner": false, - "password": "$6$rounds=688040$7Y39YV2vrXtDceGG$V3kubhQw6jDIXkc9.39G/BhQ70Ta.hQUj7fyyisH4pzP4Ixk3EfSn9XEo6wRSczMt.3yMmxVBc/IMhWocEv8D/", - "self_link": "http://localhost:9001/3.0/users/129", "user_id": 129}'} + "\"06f37d42a630458ca7256bcca210aa181c732bd6\"", "is_server_owner": false, + "password": "$6$rounds=656000$34c1RwlQzq7Zmy79$C0q7D3whDIHoylMhgp6k31DJ2D7UPFD5b4W99tQiY7RqUjG3bvQA53I4r2VhNsVOQmCTDDaNuMwBNwZikgSjz1", + "self_link": "http://localhost:9001/3.0/users/10", "user_id": 10}'} headers: - content-length: ['328'] + content-length: ['326'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/129/addresses + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/10/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"4dcc279fd8f7c7ffffab6c4071ca40a918fa5019\"", "original_email": "fritz@example.org", + "\"accae9afdb6505b1034b56e58a195d60488ace0e\"", "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/129"}, {"email": "test@example.com", - "http_etag": "\"0d7020539f0e1debc93141efb34154929187907b\"", "original_email": + "user": "http://localhost:9001/3.0/users/10"}, {"email": "test@example.com", + "http_etag": "\"653c988d25ef432406061ef93716f4d0679d110c\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "user": "http://localhost:9001/3.0/users/129"}], "http_etag": "\"b3f0a784daa9da00aa1c87721972d5c1e5ddc436\"", + "user": "http://localhost:9001/3.0/users/10"}], "http_etag": "\"ae98e42a83a42897babea6e73012645d29278827\"", "start": 0, "total_size": 2}'} headers: - content-length: ['678'] + content-length: ['676'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode POST + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/addresses/fritz@example.org/verify response: body: {string: !!python/unicode ''} @@ -256,7 +256,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode POST + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/addresses/test@example.com/verify response: body: {string: !!python/unicode ''} @@ -264,41 +264,41 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: !!python/unicode display_name=None&list_id=open_list.example.com&subscriber=test%40example.com + body: !!python/unicode 'display_name=None&list_id=open_list.example.com&subscriber=test%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/127'] + location: ['http://localhost:9001/3.0/members/10'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/roster/member response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/test@example.com", - "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"1e29d33c44408afe4924a3b2ad0a9a2cdc49669c\"", - "list_id": "open_list.example.com", "member_id": 127, "role": "member", "self_link": - "http://localhost:9001/3.0/members/127", "user": "http://localhost:9001/3.0/users/129"}], - "http_etag": "\"cf01e90d3e1eb3c5ef7a3cab9a32f57bf54dc383\"", "start": 0, "total_size": + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"4932412e4590b8a81facd1b6d91fb56cd20915b8\"", + "list_id": "open_list.example.com", "member_id": 10, "role": "member", "self_link": + "http://localhost:9001/3.0/members/10", "user": "http://localhost:9001/3.0/users/10"}], + "http_etag": "\"b606d9eca504e7bfacfdcf3a5c86950d563d2b47\"", "start": 0, "total_size": 1}'} headers: - content-length: ['463'] + content-length: ['460'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -311,7 +311,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -327,7 +327,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -340,7 +340,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -353,12 +353,12 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/member/fritz@example.org response: - body: {string: !!python/unicode '{}'} + body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"} headers: - content-length: ['2'] + content-length: ['32'] content-type: [application/json; charset=UTF-8] vary: [Accept] status: {code: 404, message: Not Found} @@ -366,22 +366,22 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/member/test@example.com response: body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/test@example.com", - "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"1e29d33c44408afe4924a3b2ad0a9a2cdc49669c\"", - "list_id": "open_list.example.com", "member_id": 127, "role": "member", "self_link": - "http://localhost:9001/3.0/members/127", "user": "http://localhost:9001/3.0/users/129"}'} + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"4932412e4590b8a81facd1b6d91fb56cd20915b8\"", + "list_id": "open_list.example.com", "member_id": 10, "role": "member", "self_link": + "http://localhost:9001/3.0/members/10", "user": "http://localhost:9001/3.0/users/10"}'} headers: - content-length: ['358'] + content-length: ['355'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/lists/open_list.example.com/member/test@example.com response: body: {string: !!python/unicode ''} @@ -389,41 +389,41 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: !!python/unicode display_name=None&list_id=open_list.example.com&pre_confirmed=True&subscriber=fritz%40example.org + body: !!python/unicode 'display_name=None&list_id=open_list.example.com&pre_confirmed=True&subscriber=fritz%40example.org' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/128'] + location: ['http://localhost:9001/3.0/members/11'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/roster/member response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/fritz@example.org", - "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"190d002bfc9799572e5ebc490aafc76d047202b4\"", - "list_id": "open_list.example.com", "member_id": 128, "role": "member", "self_link": - "http://localhost:9001/3.0/members/128", "user": "http://localhost:9001/3.0/users/129"}], - "http_etag": "\"1d3e93e18d833e9fdbbd9b038649671ed6fb420c\"", "start": 0, "total_size": + "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"2d8769e91a5aef1009c41c20715d9703c6937e13\"", + "list_id": "open_list.example.com", "member_id": 11, "role": "member", "self_link": + "http://localhost:9001/3.0/members/11", "user": "http://localhost:9001/3.0/users/10"}], + "http_etag": "\"26961a98d91f15cbf626e87bbf3987efbbb1f62a\"", "start": 0, "total_size": 1}'} headers: - content-length: ['465'] + content-length: ['462'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -436,22 +436,22 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/member/fritz@example.org response: body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/fritz@example.org", - "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"190d002bfc9799572e5ebc490aafc76d047202b4\"", - "list_id": "open_list.example.com", "member_id": 128, "role": "member", "self_link": - "http://localhost:9001/3.0/members/128", "user": "http://localhost:9001/3.0/users/129"}'} + "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"2d8769e91a5aef1009c41c20715d9703c6937e13\"", + "list_id": "open_list.example.com", "member_id": 11, "role": "member", "self_link": + "http://localhost:9001/3.0/members/11", "user": "http://localhost:9001/3.0/users/10"}'} headers: - content-length: ['360'] + content-length: ['357'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -467,7 +467,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -480,7 +480,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -493,22 +493,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/open_list.example.com/member/fritz@example.org - response: - body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/fritz@example.org", - "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"190d002bfc9799572e5ebc490aafc76d047202b4\"", - "list_id": "open_list.example.com", "member_id": 128, "role": "member", "self_link": - "http://localhost:9001/3.0/members/128", "user": "http://localhost:9001/3.0/users/129"}'} - headers: - content-length: ['360'] - content-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -524,8 +509,8 @@ 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, "footer_uri": "", "fqdn_listname": "open_list@example.com", - "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"3832519e8672eb7c123e02757f46d3be1080d3fd\"", - "include_rfc2369_headers": true, "join_address": "open_list-join@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"086805127cff33814207a09645d1d14a418fad63\"", + "include_rfc2369_headers": true, "info": "", "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", "moderator_password": null, "next_digest_number": 1, "no_reply_address": "noreply@example.com", "owner_address": "open_list-owner@example.com", @@ -535,14 +520,42 @@ true, "subject_prefix": "[Open_list] ", "subscription_policy": "open", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1834'] + content-length: ['1846'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/open_list.example.com/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/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": "\"2d8769e91a5aef1009c41c20715d9703c6937e13\"", + "list_id": "open_list.example.com", "member_id": 11, "role": "member", "self_link": + "http://localhost:9001/3.0/members/11", "user": "http://localhost:9001/3.0/users/10"}'} + headers: + content-length: ['357'] + 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/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -555,7 +568,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -568,7 +581,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": @@ -584,7 +597,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode ''} @@ -595,25 +608,25 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"97dedf032902069732354b769825d8a3aa0fa1b9\"", "is_server_owner": - false, "password": "$6$rounds=688040$7Y39YV2vrXtDceGG$V3kubhQw6jDIXkc9.39G/BhQ70Ta.hQUj7fyyisH4pzP4Ixk3EfSn9XEo6wRSczMt.3yMmxVBc/IMhWocEv8D/", - "self_link": "http://localhost:9001/3.0/users/129", "user_id": 129}], "http_etag": - "\"d5a1f3c53625c70257ea00e4329ec8d15bbe44cf\"", "start": 0, "total_size": + "http_etag": "\"06f37d42a630458ca7256bcca210aa181c732bd6\"", "is_server_owner": + false, "password": "$6$rounds=656000$34c1RwlQzq7Zmy79$C0q7D3whDIHoylMhgp6k31DJ2D7UPFD5b4W99tQiY7RqUjG3bvQA53I4r2VhNsVOQmCTDDaNuMwBNwZikgSjz1", + "self_link": "http://localhost:9001/3.0/users/10", "user_id": 10}], "http_etag": + "\"fd2d6f5355d8c109e50ee92e7c76a9a4caa8a88b\"", "start": 0, "total_size": 1}'} headers: - content-length: ['433'] + content-length: ['431'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/129 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/10 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_secondary_mod.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_secondary_mod.yaml index 944f757..2c72465 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_secondary_mod.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_secondary_mod.yaml @@ -1,10 +1,10 @@ interactions: - request: - body: !!python/unicode mail_host=example.com + body: !!python/unicode 'mail_host=example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode ''} @@ -17,7 +17,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", @@ -27,11 +27,11 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode fqdn_listname=open_list%40example.com + body: !!python/unicode 'fqdn_listname=open_list%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -44,7 +44,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -60,7 +60,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -76,8 +76,8 @@ 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, "footer_uri": "", "fqdn_listname": "open_list@example.com", - "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"87dbf6f784ce7fcba36c92ecc99006b8c1f878eb\"", - "include_rfc2369_headers": true, "join_address": "open_list-join@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"2aed2f0ce4a7f2c86eae4124728f0153fda52dc6\"", + "include_rfc2369_headers": true, "info": "", "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", "moderator_password": null, "next_digest_number": 1, "no_reply_address": "noreply@example.com", "owner_address": "open_list-owner@example.com", @@ -87,15 +87,15 @@ true, "subject_prefix": "[Open_list] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1837'] + content-length: ['1849'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode subscription_policy=open + body: !!python/unicode 'subscription_policy=open' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PATCH + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'PATCH' uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode ''} @@ -103,11 +103,11 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: !!python/unicode fqdn_listname=moderate_subs%40example.com + body: !!python/unicode 'fqdn_listname=moderate_subs%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -120,7 +120,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": @@ -136,7 +136,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -152,8 +152,8 @@ 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, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com", - "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"de6cbad08d95ba3eeba449e9ea2b2eb130d74f97\"", - "include_rfc2369_headers": true, "join_address": "moderate_subs-join@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"60d87955c09ee35a06c8740e9a4474843e083e3a\"", + "include_rfc2369_headers": true, "info": "", "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", "moderator_password": null, "next_digest_number": 1, "no_reply_address": "noreply@example.com", @@ -164,15 +164,15 @@ "[Moderate_subs] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1877'] + content-length: ['1889'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode subscription_policy=moderate + body: !!python/unicode 'subscription_policy=moderate' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PATCH + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'PATCH' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode ''} @@ -180,26 +180,26 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: !!python/unicode email=test%40example.com + body: !!python/unicode 'email=test%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/users/130'] + location: ['http://localhost:9001/3.0/users/11'] status: {code: 201, message: Created} - request: - body: !!python/unicode email=fritz%40example.org + body: !!python/unicode '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/130/addresses + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/users/11/addresses response: body: {string: !!python/unicode ''} headers: @@ -211,41 +211,41 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/130 + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/11 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"5cf0344b4258d988e1343f661b89865d170c33da\"", "is_server_owner": false, - "password": "$6$rounds=710787$0dbhPEGivQukhHoZ$bYRbE4mIQt2nZ.y8nkZH2uM2e1pMED/dheaP438ohZr3XJjjNgF9pO4qGWwbZsPgLp05eUF68nvQy9qoidMTm.", - "self_link": "http://localhost:9001/3.0/users/130", "user_id": 130}'} + "\"96a5f6268c5f33060643bd7fbf8e6c6cf106e3d2\"", "is_server_owner": false, + "password": "$6$rounds=656000$aFn34vHfojijS2H/$8AIfdFpoZGPFT4r3IGVdzLjODgfwSNSzUpkkSUkL5NjmCZaybDnm4v83VoIc2n8a256ErHnRZM3pNXlrVSQxP0", + "self_link": "http://localhost:9001/3.0/users/11", "user_id": 11}'} headers: - content-length: ['328'] + content-length: ['326'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/130/addresses + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/11/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"9a5e995b4e09d41c432fab00342dd3ba98886060\"", "original_email": "fritz@example.org", + "\"1c33f5a2fab5ca57e42cc20acef75bdcd84e8c4d\"", "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/130"}, {"email": "test@example.com", - "http_etag": "\"10a4123cf409068f7f5db76bff636cb40b47d2db\"", "original_email": + "user": "http://localhost:9001/3.0/users/11"}, {"email": "test@example.com", + "http_etag": "\"c0069cae5d04efb49c7546aef78ce21c4d054047\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "user": "http://localhost:9001/3.0/users/130"}], "http_etag": "\"0f2c83c9b044f780908534a5171a2ad955108ee2\"", + "user": "http://localhost:9001/3.0/users/11"}], "http_etag": "\"fdd92802d8043d81ae303cf87bf83c48085c2c5b\"", "start": 0, "total_size": 2}'} headers: - content-length: ['678'] + content-length: ['676'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode POST + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/addresses/fritz@example.org/verify response: body: {string: !!python/unicode ''} @@ -256,7 +256,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode POST + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/addresses/test@example.com/verify response: body: {string: !!python/unicode ''} @@ -267,7 +267,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": @@ -283,7 +283,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -296,7 +296,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -306,11 +306,11 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode display_name=None&list_id=moderate_subs.example.com&pre_confirmed=True&pre_verified=True&subscriber=fritz%40example.org + body: !!python/unicode 'display_name=None&list_id=moderate_subs.example.com&pre_confirmed=True&pre_verified=True&subscriber=fritz%40example.org' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode '{"http_etag": "\"8171955e8578477ccef9f84470dd4b8e2ebb3615\"", @@ -323,7 +323,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/roster/member response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -336,7 +336,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "fritz@example.org", @@ -352,7 +352,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": @@ -368,7 +368,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -381,7 +381,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -394,33 +394,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/member/fritz@example.org - response: - body: {string: !!python/unicode '{}'} - headers: - content-length: ['2'] - content-type: [application/json; charset=UTF-8] - vary: [Accept] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/member/test@example.com - response: - body: {string: !!python/unicode '{}'} - headers: - content-length: ['2'] - content-type: [application/json; charset=UTF-8] - vary: [Accept] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -436,8 +410,8 @@ 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, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com", - "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"076149a4081adb9d7209d6de4b51600ee19b71b6\"", - "include_rfc2369_headers": true, "join_address": "moderate_subs-join@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"1d28c896e12bf6e14713f346c758daecbf86c534\"", + "include_rfc2369_headers": true, "info": "", "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", "moderator_password": null, "next_digest_number": 1, "no_reply_address": "noreply@example.com", @@ -448,14 +422,53 @@ "[Moderate_subs] ", "subscription_policy": "moderate", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1878'] + content-length: ['1890'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/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/moderate_subs.example.com/member/fritz@example.org + response: + body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"} + headers: + content-length: ['32'] + content-type: [application/json; charset=UTF-8] + vary: [Accept] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/member/test@example.com + response: + body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"} + headers: + content-length: ['32'] + content-type: [application/json; charset=UTF-8] + vary: [Accept] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -468,7 +481,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "fritz@example.org", @@ -481,11 +494,11 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode action=discard + body: !!python/unicode 'action=discard' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/requests/0000000000000000000000000000000000000001 response: body: {string: !!python/unicode ''} @@ -496,7 +509,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": @@ -512,7 +525,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode ''} @@ -523,25 +536,25 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"5cf0344b4258d988e1343f661b89865d170c33da\"", "is_server_owner": - false, "password": "$6$rounds=710787$0dbhPEGivQukhHoZ$bYRbE4mIQt2nZ.y8nkZH2uM2e1pMED/dheaP438ohZr3XJjjNgF9pO4qGWwbZsPgLp05eUF68nvQy9qoidMTm.", - "self_link": "http://localhost:9001/3.0/users/130", "user_id": 130}], "http_etag": - "\"5c5e97b88c29fc33b40aa9887e950ff4ec1abe6c\"", "start": 0, "total_size": + "http_etag": "\"96a5f6268c5f33060643bd7fbf8e6c6cf106e3d2\"", "is_server_owner": + false, "password": "$6$rounds=656000$aFn34vHfojijS2H/$8AIfdFpoZGPFT4r3IGVdzLjODgfwSNSzUpkkSUkL5NjmCZaybDnm4v83VoIc2n8a256ErHnRZM3pNXlrVSQxP0", + "self_link": "http://localhost:9001/3.0/users/11", "user_id": 11}], "http_etag": + "\"b84ee8c8fbe17156cb2945e3c74f1296493370d3\"", "start": 0, "total_size": 1}'} headers: - content-length: ['433'] + content-length: ['431'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/130 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/11 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_secondary_open.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_secondary_open.yaml index b01f5fb..54747ab 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_secondary_open.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_secondary_open.yaml @@ -1,10 +1,10 @@ interactions: - request: - body: !!python/unicode mail_host=example.com + body: !!python/unicode 'mail_host=example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode ''} @@ -17,7 +17,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", @@ -27,11 +27,11 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode fqdn_listname=open_list%40example.com + body: !!python/unicode 'fqdn_listname=open_list%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -44,7 +44,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -60,7 +60,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -76,8 +76,8 @@ 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, "footer_uri": "", "fqdn_listname": "open_list@example.com", - "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"87dbf6f784ce7fcba36c92ecc99006b8c1f878eb\"", - "include_rfc2369_headers": true, "join_address": "open_list-join@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"2aed2f0ce4a7f2c86eae4124728f0153fda52dc6\"", + "include_rfc2369_headers": true, "info": "", "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", "moderator_password": null, "next_digest_number": 1, "no_reply_address": "noreply@example.com", "owner_address": "open_list-owner@example.com", @@ -87,15 +87,15 @@ true, "subject_prefix": "[Open_list] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1837'] + content-length: ['1849'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode subscription_policy=open + body: !!python/unicode 'subscription_policy=open' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PATCH + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'PATCH' uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode ''} @@ -103,11 +103,11 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: !!python/unicode fqdn_listname=moderate_subs%40example.com + body: !!python/unicode 'fqdn_listname=moderate_subs%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -120,7 +120,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": @@ -136,7 +136,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -152,8 +152,8 @@ 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, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com", - "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"de6cbad08d95ba3eeba449e9ea2b2eb130d74f97\"", - "include_rfc2369_headers": true, "join_address": "moderate_subs-join@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"60d87955c09ee35a06c8740e9a4474843e083e3a\"", + "include_rfc2369_headers": true, "info": "", "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", "moderator_password": null, "next_digest_number": 1, "no_reply_address": "noreply@example.com", @@ -164,15 +164,15 @@ "[Moderate_subs] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1877'] + content-length: ['1889'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode subscription_policy=moderate + body: !!python/unicode 'subscription_policy=moderate' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PATCH + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'PATCH' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode ''} @@ -180,26 +180,26 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: !!python/unicode email=test%40example.com + body: !!python/unicode 'email=test%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/users/131'] + location: ['http://localhost:9001/3.0/users/12'] status: {code: 201, message: Created} - request: - body: !!python/unicode email=fritz%40example.org + body: !!python/unicode '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/131/addresses + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/users/12/addresses response: body: {string: !!python/unicode ''} headers: @@ -211,41 +211,41 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/131 + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/12 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"227dd4a7bf13c7efdf8b3dedda581a9fa6643afb\"", "is_server_owner": false, - "password": "$6$rounds=652940$S3gYD3KdTEmpi4gi$6DrP1RutxTc2gWRV1tfg9pBMTAsJM5q9RQ.nd3k3NTYQ75eoJ9/hB9h/z.gTdRZUH6Z9A4LSACaoOs7M16vtp.", - "self_link": "http://localhost:9001/3.0/users/131", "user_id": 131}'} + "\"d5e26d47ccecb1c3b926fa46f5fbd2a5c9d0bfef\"", "is_server_owner": false, + "password": "$6$rounds=656000$sjmLUeeqUyCU2U85$4TCgmm9D7YZyAoV1LEdja80GMFQ7MfHWTUXgeibSiOFjFslnPyO2usbdSwoXEI/83T6eEYa1lW71qF3fSKR6m1", + "self_link": "http://localhost:9001/3.0/users/12", "user_id": 12}'} headers: - content-length: ['328'] + content-length: ['326'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/131/addresses + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/12/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"f5f4cb62208fe00b6a6b2517ca6024d05d061fad\"", "original_email": "fritz@example.org", + "\"de45f651ca0c2b01f31bd759ce7b963dae2b0c09\"", "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/131"}, {"email": "test@example.com", - "http_etag": "\"ed44c45c529dfea69924fb7fc91705882a6f9b3a\"", "original_email": + "user": "http://localhost:9001/3.0/users/12"}, {"email": "test@example.com", + "http_etag": "\"7153fc9edd12dfb866876de2d6ff5b66fbd13574\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "user": "http://localhost:9001/3.0/users/131"}], "http_etag": "\"794fe8c64191b78e4c35c45a4a4c73acb2da932d\"", + "user": "http://localhost:9001/3.0/users/12"}], "http_etag": "\"9622288daa6ceeeeb77d9a30775f90ee6fa47a4b\"", "start": 0, "total_size": 2}'} headers: - content-length: ['678'] + content-length: ['676'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode POST + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/addresses/fritz@example.org/verify response: body: {string: !!python/unicode ''} @@ -256,7 +256,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode POST + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/addresses/test@example.com/verify response: body: {string: !!python/unicode ''} @@ -267,7 +267,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -283,7 +283,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -296,7 +296,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -306,41 +306,41 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode display_name=None&list_id=open_list.example.com&pre_confirmed=True&pre_verified=True&subscriber=fritz%40example.org + body: !!python/unicode 'display_name=None&list_id=open_list.example.com&pre_confirmed=True&pre_verified=True&subscriber=fritz%40example.org' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/129'] + location: ['http://localhost:9001/3.0/members/12'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/roster/member response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/fritz@example.org", - "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"930ab26c9ff54f657cc4f4f7791346a192c29d55\"", - "list_id": "open_list.example.com", "member_id": 129, "role": "member", "self_link": - "http://localhost:9001/3.0/members/129", "user": "http://localhost:9001/3.0/users/131"}], - "http_etag": "\"3f67f7de26bb9461fda373a5a077036addc61a33\"", "start": 0, "total_size": + "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"d5a89397121d98dca94571a608efb00fe9e4256b\"", + "list_id": "open_list.example.com", "member_id": 12, "role": "member", "self_link": + "http://localhost:9001/3.0/members/12", "user": "http://localhost:9001/3.0/users/12"}], + "http_etag": "\"e6cf43d609728310c41e1f8bffb5a037c2fefd56\"", "start": 0, "total_size": 1}'} headers: - content-length: ['465'] + content-length: ['462'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -353,7 +353,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -369,7 +369,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -382,7 +382,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -395,22 +395,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/open_list.example.com/member/fritz@example.org - response: - body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/fritz@example.org", - "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"930ab26c9ff54f657cc4f4f7791346a192c29d55\"", - "list_id": "open_list.example.com", "member_id": 129, "role": "member", "self_link": - "http://localhost:9001/3.0/members/129", "user": "http://localhost:9001/3.0/users/131"}'} - headers: - content-length: ['360'] - content-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -426,8 +411,8 @@ 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, "footer_uri": "", "fqdn_listname": "open_list@example.com", - "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"3832519e8672eb7c123e02757f46d3be1080d3fd\"", - "include_rfc2369_headers": true, "join_address": "open_list-join@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"086805127cff33814207a09645d1d14a418fad63\"", + "include_rfc2369_headers": true, "info": "", "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", "moderator_password": null, "next_digest_number": 1, "no_reply_address": "noreply@example.com", "owner_address": "open_list-owner@example.com", @@ -437,14 +422,42 @@ true, "subject_prefix": "[Open_list] ", "subscription_policy": "open", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1834'] + content-length: ['1846'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/open_list.example.com/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/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": "\"d5a89397121d98dca94571a608efb00fe9e4256b\"", + "list_id": "open_list.example.com", "member_id": 12, "role": "member", "self_link": + "http://localhost:9001/3.0/members/12", "user": "http://localhost:9001/3.0/users/12"}'} + headers: + content-length: ['357'] + 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/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -457,7 +470,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -470,7 +483,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": @@ -486,7 +499,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode ''} @@ -497,25 +510,25 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"227dd4a7bf13c7efdf8b3dedda581a9fa6643afb\"", "is_server_owner": - false, "password": "$6$rounds=652940$S3gYD3KdTEmpi4gi$6DrP1RutxTc2gWRV1tfg9pBMTAsJM5q9RQ.nd3k3NTYQ75eoJ9/hB9h/z.gTdRZUH6Z9A4LSACaoOs7M16vtp.", - "self_link": "http://localhost:9001/3.0/users/131", "user_id": 131}], "http_etag": - "\"ca894c75e5654e28f44868c97a207a13097ed9a6\"", "start": 0, "total_size": + "http_etag": "\"d5e26d47ccecb1c3b926fa46f5fbd2a5c9d0bfef\"", "is_server_owner": + false, "password": "$6$rounds=656000$sjmLUeeqUyCU2U85$4TCgmm9D7YZyAoV1LEdja80GMFQ7MfHWTUXgeibSiOFjFslnPyO2usbdSwoXEI/83T6eEYa1lW71qF3fSKR6m1", + "self_link": "http://localhost:9001/3.0/users/12", "user_id": 12}], "http_etag": + "\"71e2267d6c89636d511a88b79588f6acdbb50164\"", "start": 0, "total_size": 1}'} headers: - content-length: ['433'] + content-length: ['431'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/131 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/12 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_already_pending.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_already_pending.yaml index 0e44625..8f8aa6f 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_already_pending.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_already_pending.yaml @@ -1,10 +1,10 @@ interactions: - request: - body: !!python/unicode mail_host=example.com + body: !!python/unicode 'mail_host=example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode ''} @@ -17,7 +17,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", @@ -27,11 +27,11 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode fqdn_listname=open_list%40example.com + body: !!python/unicode 'fqdn_listname=open_list%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -44,7 +44,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -60,7 +60,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -76,8 +76,8 @@ 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, "footer_uri": "", "fqdn_listname": "open_list@example.com", - "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"87dbf6f784ce7fcba36c92ecc99006b8c1f878eb\"", - "include_rfc2369_headers": true, "join_address": "open_list-join@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"2aed2f0ce4a7f2c86eae4124728f0153fda52dc6\"", + "include_rfc2369_headers": true, "info": "", "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", "moderator_password": null, "next_digest_number": 1, "no_reply_address": "noreply@example.com", "owner_address": "open_list-owner@example.com", @@ -87,15 +87,15 @@ true, "subject_prefix": "[Open_list] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1837'] + content-length: ['1849'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode subscription_policy=open + body: !!python/unicode 'subscription_policy=open' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PATCH + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'PATCH' uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode ''} @@ -103,11 +103,11 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: !!python/unicode fqdn_listname=moderate_subs%40example.com + body: !!python/unicode 'fqdn_listname=moderate_subs%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -120,7 +120,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": @@ -136,7 +136,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -152,8 +152,8 @@ 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, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com", - "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"de6cbad08d95ba3eeba449e9ea2b2eb130d74f97\"", - "include_rfc2369_headers": true, "join_address": "moderate_subs-join@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"60d87955c09ee35a06c8740e9a4474843e083e3a\"", + "include_rfc2369_headers": true, "info": "", "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", "moderator_password": null, "next_digest_number": 1, "no_reply_address": "noreply@example.com", @@ -164,15 +164,15 @@ "[Moderate_subs] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1877'] + content-length: ['1889'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode subscription_policy=moderate + body: !!python/unicode 'subscription_policy=moderate' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PATCH + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'PATCH' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode ''} @@ -180,26 +180,26 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: !!python/unicode email=test%40example.com + body: !!python/unicode 'email=test%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/users/132'] + location: ['http://localhost:9001/3.0/users/13'] status: {code: 201, message: Created} - request: - body: !!python/unicode email=fritz%40example.org + body: !!python/unicode '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/132/addresses + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/users/13/addresses response: body: {string: !!python/unicode ''} headers: @@ -211,41 +211,41 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/132 + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/13 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"042ec1711b7c967a44102e1a406829312f918044\"", "is_server_owner": false, - "password": "$6$rounds=680466$WxKGWGi/sCXbElq2$RMxWAh7nUSdjg2Wj8ycikCh/wnE6yMFTGLZFcKyeM.lC.y99xgkFIE16dJrwcr.XybeT7CjBv9lufnx7.LV2K0", - "self_link": "http://localhost:9001/3.0/users/132", "user_id": 132}'} + "\"4fbef5d6939db4aec83ef8ea708125a97d26824b\"", "is_server_owner": false, + "password": "$6$rounds=656000$ijrIEtNiDNhjnDZS$TX4jKRe6b8EJoc3ORDzJ53drnSyaY.cO7SrpMNFB2K/86dbY/B/TjbDL/VUfOCT1gpKxG.rCLncxfHxwmzPMF0", + "self_link": "http://localhost:9001/3.0/users/13", "user_id": 13}'} headers: - content-length: ['328'] + content-length: ['326'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/132/addresses + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/13/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"3e52fe74e2240ceedd9edf85d8d0332a0a6b04fa\"", "original_email": "fritz@example.org", + "\"10e6832981d616ede4ff738c3dc7e69ae060b0c6\"", "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/132"}, {"email": "test@example.com", - "http_etag": "\"0c47a8cc4b54c89048c5f5ea789b841028be29e3\"", "original_email": + "user": "http://localhost:9001/3.0/users/13"}, {"email": "test@example.com", + "http_etag": "\"183bd2070dec2c1087e072dede15f46d64ad4c23\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "user": "http://localhost:9001/3.0/users/132"}], "http_etag": "\"964a2c65e68e324dbaa7f4136ee3a82cb15ae478\"", + "user": "http://localhost:9001/3.0/users/13"}], "http_etag": "\"c815381d58c4e1fb008e9a6b167a5ca14d6e57f4\"", "start": 0, "total_size": 2}'} headers: - content-length: ['678'] + content-length: ['676'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode POST + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/addresses/fritz@example.org/verify response: body: {string: !!python/unicode ''} @@ -256,7 +256,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode POST + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/addresses/test@example.com/verify response: body: {string: !!python/unicode ''} @@ -267,7 +267,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": @@ -283,7 +283,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -296,7 +296,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -306,11 +306,11 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode display_name=None&list_id=moderate_subs.example.com&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com + body: !!python/unicode 'display_name=None&list_id=moderate_subs.example.com&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode '{"http_etag": "\"fbcd5c8df6304a514d4bfa0b753b54857674d8dc\"", @@ -323,7 +323,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/roster/member response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -336,7 +336,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "test@example.com", @@ -352,7 +352,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": @@ -368,7 +368,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -381,7 +381,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -391,14 +391,14 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode display_name=None&list_id=moderate_subs.example.com&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com + body: !!python/unicode 'display_name=None&list_id=moderate_subs.example.com&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: - body: {string: !!python/unicode Subscription request already pending} + body: {string: !!python/unicode 'Subscription request already pending'} headers: content-length: ['36'] content-type: [application/json; charset=UTF-8] @@ -407,7 +407,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/roster/member response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -420,7 +420,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "test@example.com", @@ -436,7 +436,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -449,7 +449,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "test@example.com", @@ -462,11 +462,11 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode action=discard + body: !!python/unicode 'action=discard' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/requests/0000000000000000000000000000000000000002 response: body: {string: !!python/unicode ''} @@ -477,7 +477,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": @@ -493,7 +493,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode ''} @@ -504,25 +504,25 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"042ec1711b7c967a44102e1a406829312f918044\"", "is_server_owner": - false, "password": "$6$rounds=680466$WxKGWGi/sCXbElq2$RMxWAh7nUSdjg2Wj8ycikCh/wnE6yMFTGLZFcKyeM.lC.y99xgkFIE16dJrwcr.XybeT7CjBv9lufnx7.LV2K0", - "self_link": "http://localhost:9001/3.0/users/132", "user_id": 132}], "http_etag": - "\"5b9315f143c1d7e791db65dd5e73cf37444116a0\"", "start": 0, "total_size": + "http_etag": "\"4fbef5d6939db4aec83ef8ea708125a97d26824b\"", "is_server_owner": + false, "password": "$6$rounds=656000$ijrIEtNiDNhjnDZS$TX4jKRe6b8EJoc3ORDzJ53drnSyaY.cO7SrpMNFB2K/86dbY/B/TjbDL/VUfOCT1gpKxG.rCLncxfHxwmzPMF0", + "self_link": "http://localhost:9001/3.0/users/13", "user_id": 13}], "http_etag": + "\"bc6560b708dd633501c140c25fb6fcdb9885cff0\"", "start": 0, "total_size": 1}'} headers: - content-length: ['433'] + content-length: ['431'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/132 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/13 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_mod.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_mod.yaml index 5dbc808..1e04b2c 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_mod.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_mod.yaml @@ -1,10 +1,10 @@ interactions: - request: - body: !!python/unicode mail_host=example.com + body: !!python/unicode 'mail_host=example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode ''} @@ -17,7 +17,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", @@ -27,11 +27,11 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode fqdn_listname=open_list%40example.com + body: !!python/unicode 'fqdn_listname=open_list%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -44,7 +44,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -60,7 +60,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -76,8 +76,8 @@ 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, "footer_uri": "", "fqdn_listname": "open_list@example.com", - "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"87dbf6f784ce7fcba36c92ecc99006b8c1f878eb\"", - "include_rfc2369_headers": true, "join_address": "open_list-join@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"2aed2f0ce4a7f2c86eae4124728f0153fda52dc6\"", + "include_rfc2369_headers": true, "info": "", "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", "moderator_password": null, "next_digest_number": 1, "no_reply_address": "noreply@example.com", "owner_address": "open_list-owner@example.com", @@ -87,15 +87,15 @@ true, "subject_prefix": "[Open_list] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1837'] + content-length: ['1849'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode subscription_policy=open + body: !!python/unicode 'subscription_policy=open' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PATCH + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'PATCH' uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode ''} @@ -103,11 +103,11 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: !!python/unicode fqdn_listname=moderate_subs%40example.com + body: !!python/unicode 'fqdn_listname=moderate_subs%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -120,7 +120,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": @@ -136,7 +136,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -152,8 +152,8 @@ 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, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com", - "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"de6cbad08d95ba3eeba449e9ea2b2eb130d74f97\"", - "include_rfc2369_headers": true, "join_address": "moderate_subs-join@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"60d87955c09ee35a06c8740e9a4474843e083e3a\"", + "include_rfc2369_headers": true, "info": "", "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", "moderator_password": null, "next_digest_number": 1, "no_reply_address": "noreply@example.com", @@ -164,15 +164,15 @@ "[Moderate_subs] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1877'] + content-length: ['1889'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode subscription_policy=moderate + body: !!python/unicode 'subscription_policy=moderate' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PATCH + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'PATCH' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode ''} @@ -180,26 +180,26 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: !!python/unicode email=test%40example.com + body: !!python/unicode 'email=test%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/users/133'] + location: ['http://localhost:9001/3.0/users/14'] status: {code: 201, message: Created} - request: - body: !!python/unicode email=fritz%40example.org + body: !!python/unicode '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/133/addresses + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/users/14/addresses response: body: {string: !!python/unicode ''} headers: @@ -211,41 +211,41 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/133 + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/14 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"ee306af2ad835677708a8a09551bb1aca2573785\"", "is_server_owner": false, - "password": "$6$rounds=643389$ECVmUlGuUnHsBUML$0feC2BjvrbEYTPMbxpiWv9x0HmUx/Kt9JBGmI89d6TGdaMmWROFscSjiQdUHzTaz5jdwBnl0NfZYL318eqpZ2.", - "self_link": "http://localhost:9001/3.0/users/133", "user_id": 133}'} + "\"28f2aefb990d8eb9869940dd998e448c7c75ee1e\"", "is_server_owner": false, + "password": "$6$rounds=656000$5yQDj/4fUtPnnt/i$nGxHJfEbwxJwwHzpE8hSwvn4tAQ7k4Lxa4MX6p57Sj6/sq2QDEbklW662OOdKJLH7DAbxS6WCHj6fad/8qj3j1", + "self_link": "http://localhost:9001/3.0/users/14", "user_id": 14}'} headers: - content-length: ['328'] + content-length: ['326'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/133/addresses + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/14/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"835fd5644c78b527ef604a402de48a56f317af87\"", "original_email": "fritz@example.org", + "\"3d5e331750cd36f5fdc1b83641d1aabc7bb58b84\"", "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/133"}, {"email": "test@example.com", - "http_etag": "\"044f788a1edcc7ce073582d89d3b652fb1694e09\"", "original_email": + "user": "http://localhost:9001/3.0/users/14"}, {"email": "test@example.com", + "http_etag": "\"6c39fd341eea07279f00e7cd3cd0ecd501bc0cec\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "user": "http://localhost:9001/3.0/users/133"}], "http_etag": "\"45b7e74da28c71258a88be1de77abb5aa905c8c8\"", + "user": "http://localhost:9001/3.0/users/14"}], "http_etag": "\"ae4b3ed8795c8e2bf2f74444119e0166dd393ebb\"", "start": 0, "total_size": 2}'} headers: - content-length: ['678'] + content-length: ['676'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode POST + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/addresses/fritz@example.org/verify response: body: {string: !!python/unicode ''} @@ -256,7 +256,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode POST + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/addresses/test@example.com/verify response: body: {string: !!python/unicode ''} @@ -267,7 +267,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": @@ -283,7 +283,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -296,7 +296,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -306,11 +306,11 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode display_name=None&list_id=moderate_subs.example.com&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com + body: !!python/unicode 'display_name=None&list_id=moderate_subs.example.com&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode '{"http_etag": "\"c63c029e701c8257e2a249d1c41d50660434b11f\"", @@ -323,7 +323,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/roster/member response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -336,7 +336,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "test@example.com", @@ -352,7 +352,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": @@ -368,7 +368,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -381,7 +381,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -394,33 +394,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/member/fritz@example.org - response: - body: {string: !!python/unicode '{}'} - headers: - content-length: ['2'] - content-type: [application/json; charset=UTF-8] - vary: [Accept] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/member/test@example.com - response: - body: {string: !!python/unicode '{}'} - headers: - content-length: ['2'] - content-type: [application/json; charset=UTF-8] - vary: [Accept] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -436,8 +410,8 @@ 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, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com", - "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"076149a4081adb9d7209d6de4b51600ee19b71b6\"", - "include_rfc2369_headers": true, "join_address": "moderate_subs-join@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"1d28c896e12bf6e14713f346c758daecbf86c534\"", + "include_rfc2369_headers": true, "info": "", "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", "moderator_password": null, "next_digest_number": 1, "no_reply_address": "noreply@example.com", @@ -448,14 +422,53 @@ "[Moderate_subs] ", "subscription_policy": "moderate", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1878'] + content-length: ['1890'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/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/moderate_subs.example.com/member/fritz@example.org + response: + body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"} + headers: + content-length: ['32'] + content-type: [application/json; charset=UTF-8] + vary: [Accept] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/member/test@example.com + response: + body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"} + headers: + content-length: ['32'] + content-type: [application/json; charset=UTF-8] + vary: [Accept] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -468,7 +481,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "test@example.com", @@ -481,11 +494,11 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode action=discard + body: !!python/unicode 'action=discard' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/requests/0000000000000000000000000000000000000003 response: body: {string: !!python/unicode ''} @@ -496,7 +509,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": @@ -512,7 +525,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode ''} @@ -523,25 +536,25 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"ee306af2ad835677708a8a09551bb1aca2573785\"", "is_server_owner": - false, "password": "$6$rounds=643389$ECVmUlGuUnHsBUML$0feC2BjvrbEYTPMbxpiWv9x0HmUx/Kt9JBGmI89d6TGdaMmWROFscSjiQdUHzTaz5jdwBnl0NfZYL318eqpZ2.", - "self_link": "http://localhost:9001/3.0/users/133", "user_id": 133}], "http_etag": - "\"78a5b1841a13939f45f28284685e919375e41b56\"", "start": 0, "total_size": + "http_etag": "\"28f2aefb990d8eb9869940dd998e448c7c75ee1e\"", "is_server_owner": + false, "password": "$6$rounds=656000$5yQDj/4fUtPnnt/i$nGxHJfEbwxJwwHzpE8hSwvn4tAQ7k4Lxa4MX6p57Sj6/sq2QDEbklW662OOdKJLH7DAbxS6WCHj6fad/8qj3j1", + "self_link": "http://localhost:9001/3.0/users/14", "user_id": 14}], "http_etag": + "\"2f8dd45a3b24dbc2bf9f053de67ab0421adec81f\"", "start": 0, "total_size": 1}'} headers: - content-length: ['433'] + content-length: ['431'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/133 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/14 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_open.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_open.yaml index 0bdfc63..618374c 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_open.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_open.yaml @@ -1,10 +1,10 @@ interactions: - request: - body: !!python/unicode mail_host=example.com + body: !!python/unicode 'mail_host=example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode ''} @@ -17,7 +17,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", @@ -27,11 +27,11 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode fqdn_listname=open_list%40example.com + body: !!python/unicode 'fqdn_listname=open_list%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -44,7 +44,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -60,7 +60,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -76,8 +76,8 @@ 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, "footer_uri": "", "fqdn_listname": "open_list@example.com", - "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"87dbf6f784ce7fcba36c92ecc99006b8c1f878eb\"", - "include_rfc2369_headers": true, "join_address": "open_list-join@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"2aed2f0ce4a7f2c86eae4124728f0153fda52dc6\"", + "include_rfc2369_headers": true, "info": "", "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", "moderator_password": null, "next_digest_number": 1, "no_reply_address": "noreply@example.com", "owner_address": "open_list-owner@example.com", @@ -87,15 +87,15 @@ true, "subject_prefix": "[Open_list] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1837'] + content-length: ['1849'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode subscription_policy=open + body: !!python/unicode 'subscription_policy=open' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PATCH + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'PATCH' uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode ''} @@ -103,11 +103,11 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: !!python/unicode fqdn_listname=moderate_subs%40example.com + body: !!python/unicode 'fqdn_listname=moderate_subs%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -120,7 +120,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": @@ -136,7 +136,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -152,8 +152,8 @@ 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, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com", - "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"de6cbad08d95ba3eeba449e9ea2b2eb130d74f97\"", - "include_rfc2369_headers": true, "join_address": "moderate_subs-join@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"60d87955c09ee35a06c8740e9a4474843e083e3a\"", + "include_rfc2369_headers": true, "info": "", "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", "moderator_password": null, "next_digest_number": 1, "no_reply_address": "noreply@example.com", @@ -164,15 +164,15 @@ "[Moderate_subs] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1877'] + content-length: ['1889'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode subscription_policy=moderate + body: !!python/unicode 'subscription_policy=moderate' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PATCH + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'PATCH' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode ''} @@ -180,26 +180,26 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: !!python/unicode email=test%40example.com + body: !!python/unicode 'email=test%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/users/134'] + location: ['http://localhost:9001/3.0/users/15'] status: {code: 201, message: Created} - request: - body: !!python/unicode email=fritz%40example.org + body: !!python/unicode '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/134/addresses + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/users/15/addresses response: body: {string: !!python/unicode ''} headers: @@ -211,41 +211,41 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/134 + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/15 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"743e526622e40c58bc86c7fa0ce662fe6df6809f\"", "is_server_owner": false, - "password": "$6$rounds=628738$ScquFif.qzCq2NTR$R/qrYgfCNETchRmIA33xyQWrGQkD/kQ.htgrMLWX3GF0CB2mn/.TZViyKHNYp/2YoTaozSbvdGlydDuYcN3vy/", - "self_link": "http://localhost:9001/3.0/users/134", "user_id": 134}'} + "\"2f84b084fc3c4325814efcfed45decefa9ea0a6d\"", "is_server_owner": false, + "password": "$6$rounds=656000$5xho2PHLTYB..rdZ$oG5.apwidsYDhvTy5QVBakCfsEtB9jyPh7dOO6gS.NcI2SfOZ2UZM4EBkhFrTCY7tjXukAIZUhk9F/m6vPhKZ/", + "self_link": "http://localhost:9001/3.0/users/15", "user_id": 15}'} headers: - content-length: ['328'] + content-length: ['326'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/134/addresses + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/15/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"f41a94ae3963b81551dc5b97040d8fd7a0d3f60f\"", "original_email": "fritz@example.org", + "\"f5e7dce17a939b6cd74400155bc8208939e35913\"", "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/134"}, {"email": "test@example.com", - "http_etag": "\"9040f2b4b3d0f36e4445c874a479fa242f78160d\"", "original_email": + "user": "http://localhost:9001/3.0/users/15"}, {"email": "test@example.com", + "http_etag": "\"7e89118330bb8d4cfca6242e4023e3685cfe802f\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "user": "http://localhost:9001/3.0/users/134"}], "http_etag": "\"d01cd42a7617141b5eb73ac5e9afa62c05044010\"", + "user": "http://localhost:9001/3.0/users/15"}], "http_etag": "\"022eb06e8ccdd9d0317e80895bcf7fe7341666d6\"", "start": 0, "total_size": 2}'} headers: - content-length: ['678'] + content-length: ['676'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode POST + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/addresses/fritz@example.org/verify response: body: {string: !!python/unicode ''} @@ -256,7 +256,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode POST + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/addresses/test@example.com/verify response: body: {string: !!python/unicode ''} @@ -267,7 +267,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -283,7 +283,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -296,7 +296,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -306,41 +306,41 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode display_name=None&list_id=open_list.example.com&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com + body: !!python/unicode 'display_name=None&list_id=open_list.example.com&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/130'] + location: ['http://localhost:9001/3.0/members/13'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/roster/member response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/test@example.com", - "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"58199f85d16be120c6af9f2e10716db4d36ce1cd\"", - "list_id": "open_list.example.com", "member_id": 130, "role": "member", "self_link": - "http://localhost:9001/3.0/members/130", "user": "http://localhost:9001/3.0/users/134"}], - "http_etag": "\"94be5d400329745601dbe9fa3026f12d8bcbb9b6\"", "start": 0, "total_size": + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"79cf48313d7f7d8368360b6809a5fff2d828fdb2\"", + "list_id": "open_list.example.com", "member_id": 13, "role": "member", "self_link": + "http://localhost:9001/3.0/members/13", "user": "http://localhost:9001/3.0/users/15"}], + "http_etag": "\"82b9e225f83d1bab689ed3d998623ada1221e87e\"", "start": 0, "total_size": 1}'} headers: - content-length: ['463'] + content-length: ['460'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -353,7 +353,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -369,7 +369,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -382,7 +382,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -395,35 +395,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/open_list.example.com/member/fritz@example.org - response: - body: {string: !!python/unicode '{}'} - headers: - content-length: ['2'] - content-type: [application/json; charset=UTF-8] - vary: [Accept] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/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": "\"58199f85d16be120c6af9f2e10716db4d36ce1cd\"", - "list_id": "open_list.example.com", "member_id": 130, "role": "member", "self_link": - "http://localhost:9001/3.0/members/130", "user": "http://localhost:9001/3.0/users/134"}'} - headers: - content-length: ['358'] - content-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -439,8 +411,8 @@ 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, "footer_uri": "", "fqdn_listname": "open_list@example.com", - "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"3832519e8672eb7c123e02757f46d3be1080d3fd\"", - "include_rfc2369_headers": true, "join_address": "open_list-join@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"086805127cff33814207a09645d1d14a418fad63\"", + "include_rfc2369_headers": true, "info": "", "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", "moderator_password": null, "next_digest_number": 1, "no_reply_address": "noreply@example.com", "owner_address": "open_list-owner@example.com", @@ -450,14 +422,55 @@ true, "subject_prefix": "[Open_list] ", "subscription_policy": "open", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1834'] + content-length: ['1846'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/open_list.example.com/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/open_list.example.com/member/fritz@example.org + response: + body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"} + headers: + content-length: ['32'] + content-type: [application/json; charset=UTF-8] + vary: [Accept] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/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": "\"79cf48313d7f7d8368360b6809a5fff2d828fdb2\"", + "list_id": "open_list.example.com", "member_id": 13, "role": "member", "self_link": + "http://localhost:9001/3.0/members/13", "user": "http://localhost:9001/3.0/users/15"}'} + headers: + content-length: ['355'] + 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/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -470,7 +483,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -483,7 +496,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": @@ -499,7 +512,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode ''} @@ -510,25 +523,25 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"743e526622e40c58bc86c7fa0ce662fe6df6809f\"", "is_server_owner": - false, "password": "$6$rounds=628738$ScquFif.qzCq2NTR$R/qrYgfCNETchRmIA33xyQWrGQkD/kQ.htgrMLWX3GF0CB2mn/.TZViyKHNYp/2YoTaozSbvdGlydDuYcN3vy/", - "self_link": "http://localhost:9001/3.0/users/134", "user_id": 134}], "http_etag": - "\"261478918472cd5a91b753647bbe72f5f1ceadad\"", "start": 0, "total_size": + "http_etag": "\"2f84b084fc3c4325814efcfed45decefa9ea0a6d\"", "is_server_owner": + false, "password": "$6$rounds=656000$5xho2PHLTYB..rdZ$oG5.apwidsYDhvTy5QVBakCfsEtB9jyPh7dOO6gS.NcI2SfOZ2UZM4EBkhFrTCY7tjXukAIZUhk9F/m6vPhKZ/", + "self_link": "http://localhost:9001/3.0/users/15", "user_id": 15}], "http_etag": + "\"0d9fb230d34c4ad093e7dab028997bff5c9ea921\"", "start": 0, "total_size": 1}'} headers: - content-length: ['433'] + content-length: ['431'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/134 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/15 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_with_name.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_with_name.yaml index b83a654..651ad96 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_with_name.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_with_name.yaml @@ -1,10 +1,10 @@ interactions: - request: - body: !!python/unicode mail_host=example.com + body: !!python/unicode 'mail_host=example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode ''} @@ -17,7 +17,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", @@ -27,11 +27,11 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode fqdn_listname=open_list%40example.com + body: !!python/unicode 'fqdn_listname=open_list%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -44,7 +44,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -60,7 +60,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -76,8 +76,8 @@ 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, "footer_uri": "", "fqdn_listname": "open_list@example.com", - "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"87dbf6f784ce7fcba36c92ecc99006b8c1f878eb\"", - "include_rfc2369_headers": true, "join_address": "open_list-join@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"2aed2f0ce4a7f2c86eae4124728f0153fda52dc6\"", + "include_rfc2369_headers": true, "info": "", "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", "moderator_password": null, "next_digest_number": 1, "no_reply_address": "noreply@example.com", "owner_address": "open_list-owner@example.com", @@ -87,15 +87,15 @@ true, "subject_prefix": "[Open_list] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1837'] + content-length: ['1849'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode subscription_policy=open + body: !!python/unicode 'subscription_policy=open' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PATCH + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'PATCH' uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode ''} @@ -103,11 +103,11 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: !!python/unicode fqdn_listname=moderate_subs%40example.com + body: !!python/unicode 'fqdn_listname=moderate_subs%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -120,7 +120,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": @@ -136,7 +136,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -152,8 +152,8 @@ 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, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com", - "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"de6cbad08d95ba3eeba449e9ea2b2eb130d74f97\"", - "include_rfc2369_headers": true, "join_address": "moderate_subs-join@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"60d87955c09ee35a06c8740e9a4474843e083e3a\"", + "include_rfc2369_headers": true, "info": "", "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", "moderator_password": null, "next_digest_number": 1, "no_reply_address": "noreply@example.com", @@ -164,15 +164,15 @@ "[Moderate_subs] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1877'] + content-length: ['1889'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode subscription_policy=moderate + body: !!python/unicode 'subscription_policy=moderate' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PATCH + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'PATCH' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode ''} @@ -180,26 +180,26 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: !!python/unicode email=test%40example.com + body: !!python/unicode 'email=test%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/users/135'] + location: ['http://localhost:9001/3.0/users/16'] status: {code: 201, message: Created} - request: - body: !!python/unicode email=fritz%40example.org + body: !!python/unicode '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/135/addresses + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/users/16/addresses response: body: {string: !!python/unicode ''} headers: @@ -211,41 +211,41 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/135 + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/16 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"36beb30313f9201b8a0852524a54ff8b5e6771ab\"", "is_server_owner": false, - "password": "$6$rounds=697526$r74eGof.ml91rqpp$fz2.Vi.Fuex7UK9NImp2fl7228XsxzB/KZqKpFgKtdDMeBfUfMNaebrQN7tL6dvG6KBOWdRqcqF3I56uUqH45/", - "self_link": "http://localhost:9001/3.0/users/135", "user_id": 135}'} + "\"b46540f2c96d3ee56920d4fb84e6af961424c019\"", "is_server_owner": false, + "password": "$6$rounds=656000$eHZDIHWZZ5hLDEYH$LCESjR4PDPYLNIMpToZy3XzlOgiCrnh5az5I2dPa36.D4KGyF1ZjH1sciKRjhBHAYj54yd6BOFOxbvIFlEhtw0", + "self_link": "http://localhost:9001/3.0/users/16", "user_id": 16}'} headers: - content-length: ['328'] + content-length: ['326'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/135/addresses + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/16/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"6232f55e0c2cad228c3c63ee4c5d272045935a65\"", "original_email": "fritz@example.org", + "\"47baaf790aaea9f7745d134d985a4ef91ce31364\"", "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/135"}, {"email": "test@example.com", - "http_etag": "\"0e040623e340cc0d2384b35f7a9f71adaff3e858\"", "original_email": + "user": "http://localhost:9001/3.0/users/16"}, {"email": "test@example.com", + "http_etag": "\"4f8c6ce236ae784932ac2c3760ac04a842169db0\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "user": "http://localhost:9001/3.0/users/135"}], "http_etag": "\"ed7ac05967a526d0741087106e9ed446753b94c1\"", + "user": "http://localhost:9001/3.0/users/16"}], "http_etag": "\"11ce55ae2224bb093718f1c38d01171787a88fc3\"", "start": 0, "total_size": 2}'} headers: - content-length: ['678'] + content-length: ['676'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode POST + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/addresses/fritz@example.org/verify response: body: {string: !!python/unicode ''} @@ -256,7 +256,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode POST + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/addresses/test@example.com/verify response: body: {string: !!python/unicode ''} @@ -264,24 +264,24 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: !!python/unicode list_id=open_list.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode 'list_id=open_list.example.com&role=owner&subscriber=owner%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/131'] + location: ['http://localhost:9001/3.0/members/14'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -297,24 +297,24 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"7e76ba230d963b2035efa7d898fc0410a9fdfaf9\"", - "list_id": "open_list.example.com", "member_id": 131, "moderation_action": - "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/131", - "user": "http://localhost:9001/3.0/users/136"}], "http_etag": "\"9a184e97ed5b948ec8ebdfd9f0e56d7fe23d2891\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"6f49cc1c958c9cc0581efca097eb457bd6bf3063\"", + "list_id": "open_list.example.com", "member_id": 14, "moderation_action": + "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/14", + "user": "http://localhost:9001/3.0/users/17"}], "http_etag": "\"98136a8f5b4084a55ce75d35df70e50f2646233c\"", "start": 0, "total_size": 1}'} headers: - content-length: ['495'] + content-length: ['492'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -327,7 +327,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -340,226 +340,210 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode display_name=First+Person&list_id=open_list.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test-1%40example.org + body: !!python/unicode 'display_name=First+Person&list_id=open_list.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test-1%40example.org' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/132'] + location: ['http://localhost:9001/3.0/members/15'] status: {code: 201, message: Created} - request: - body: !!python/unicode display_name=Second+Person&list_id=open_list.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test-2%40example.org + body: !!python/unicode 'display_name=Second+Person&list_id=open_list.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test-2%40example.org' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/133'] + location: ['http://localhost:9001/3.0/members/16'] status: {code: 201, message: Created} - request: - body: !!python/unicode display_name=Third+Person&list_id=open_list.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test-3%40example.org + body: !!python/unicode 'display_name=Third+Person&list_id=open_list.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test-3%40example.org' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/134'] + location: ['http://localhost:9001/3.0/members/17'] status: {code: 201, message: Created} - request: - body: !!python/unicode list_id=open_list.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test-4%40example.org + body: !!python/unicode 'list_id=open_list.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test-4%40example.org' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/135'] + location: ['http://localhost:9001/3.0/members/18'] status: {code: 201, message: Created} - request: - body: !!python/unicode list_id=open_list.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test-5%40example.org + body: !!python/unicode 'list_id=open_list.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test-5%40example.org' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/136'] + location: ['http://localhost:9001/3.0/members/19'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/roster/member response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/test-1@example.org", - "delivery_mode": "regular", "email": "test-1@example.org", "http_etag": "\"456a59dade14e23c9aa8cad9cf20b67449360da2\"", - "list_id": "open_list.example.com", "member_id": 132, "role": "member", "self_link": - "http://localhost:9001/3.0/members/132", "user": "http://localhost:9001/3.0/users/137"}, + "delivery_mode": "regular", "email": "test-1@example.org", "http_etag": "\"7570a86a1a9b916f69853d8c43346d194c708767\"", + "list_id": "open_list.example.com", "member_id": 15, "role": "member", "self_link": + "http://localhost:9001/3.0/members/15", "user": "http://localhost:9001/3.0/users/18"}, {"address": "http://localhost:9001/3.0/addresses/test-2@example.org", "delivery_mode": - "regular", "email": "test-2@example.org", "http_etag": "\"c6d513719465691383452657cfc3e094fb011673\"", - "list_id": "open_list.example.com", "member_id": 133, "role": "member", "self_link": - "http://localhost:9001/3.0/members/133", "user": "http://localhost:9001/3.0/users/138"}, + "regular", "email": "test-2@example.org", "http_etag": "\"59efe9fd52849de9bd74bfa6eadad97a54884a60\"", + "list_id": "open_list.example.com", "member_id": 16, "role": "member", "self_link": + "http://localhost:9001/3.0/members/16", "user": "http://localhost:9001/3.0/users/19"}, {"address": "http://localhost:9001/3.0/addresses/test-3@example.org", "delivery_mode": - "regular", "email": "test-3@example.org", "http_etag": "\"c50be66fb1b9e6f2374632e5eef27f0c7e8c31a9\"", - "list_id": "open_list.example.com", "member_id": 134, "role": "member", "self_link": - "http://localhost:9001/3.0/members/134", "user": "http://localhost:9001/3.0/users/139"}, + "regular", "email": "test-3@example.org", "http_etag": "\"266680ae3c95d6ea52873150471100eff532e1e9\"", + "list_id": "open_list.example.com", "member_id": 17, "role": "member", "self_link": + "http://localhost:9001/3.0/members/17", "user": "http://localhost:9001/3.0/users/20"}, {"address": "http://localhost:9001/3.0/addresses/test-4@example.org", "delivery_mode": - "regular", "email": "test-4@example.org", "http_etag": "\"129221aa852c719a52aa63499e0a44887e7c4feb\"", - "list_id": "open_list.example.com", "member_id": 135, "role": "member", "self_link": - "http://localhost:9001/3.0/members/135", "user": "http://localhost:9001/3.0/users/140"}, + "regular", "email": "test-4@example.org", "http_etag": "\"896de42005b6ee7f831bf49e841e043564f8d79a\"", + "list_id": "open_list.example.com", "member_id": 18, "role": "member", "self_link": + "http://localhost:9001/3.0/members/18", "user": "http://localhost:9001/3.0/users/21"}, {"address": "http://localhost:9001/3.0/addresses/test-5@example.org", "delivery_mode": - "regular", "email": "test-5@example.org", "http_etag": "\"4975c9bea012fb07f05d3b86c090c5ef976c2314\"", - "list_id": "open_list.example.com", "member_id": 136, "role": "member", "self_link": - "http://localhost:9001/3.0/members/136", "user": "http://localhost:9001/3.0/users/141"}], - "http_etag": "\"06df31a6e5445b272e1a2da9f47db09e38fbf74f\"", "start": 0, "total_size": + "regular", "email": "test-5@example.org", "http_etag": "\"a9b438451a98a4d9f75afe447c149915578b4b0c\"", + "list_id": "open_list.example.com", "member_id": 19, "role": "member", "self_link": + "http://localhost:9001/3.0/members/19", "user": "http://localhost:9001/3.0/users/22"}], + "http_etag": "\"4bb176a0643ee9276504a4ffa3ed3e18a5343141\"", "start": 0, "total_size": 5}'} headers: - content-length: ['1923'] + content-length: ['1908'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/member/test-1@example.org response: body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/test-1@example.org", - "delivery_mode": "regular", "email": "test-1@example.org", "http_etag": "\"456a59dade14e23c9aa8cad9cf20b67449360da2\"", - "list_id": "open_list.example.com", "member_id": 132, "role": "member", "self_link": - "http://localhost:9001/3.0/members/132", "user": "http://localhost:9001/3.0/users/137"}'} + "delivery_mode": "regular", "email": "test-1@example.org", "http_etag": "\"7570a86a1a9b916f69853d8c43346d194c708767\"", + "list_id": "open_list.example.com", "member_id": 15, "role": "member", "self_link": + "http://localhost:9001/3.0/members/15", "user": "http://localhost:9001/3.0/users/18"}'} headers: - content-length: ['362'] + content-length: ['359'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/member/test-2@example.org response: body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/test-2@example.org", - "delivery_mode": "regular", "email": "test-2@example.org", "http_etag": "\"c6d513719465691383452657cfc3e094fb011673\"", - "list_id": "open_list.example.com", "member_id": 133, "role": "member", "self_link": - "http://localhost:9001/3.0/members/133", "user": "http://localhost:9001/3.0/users/138"}'} + "delivery_mode": "regular", "email": "test-2@example.org", "http_etag": "\"59efe9fd52849de9bd74bfa6eadad97a54884a60\"", + "list_id": "open_list.example.com", "member_id": 16, "role": "member", "self_link": + "http://localhost:9001/3.0/members/16", "user": "http://localhost:9001/3.0/users/19"}'} headers: - content-length: ['362'] + content-length: ['359'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/member/test-3@example.org response: body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/test-3@example.org", - "delivery_mode": "regular", "email": "test-3@example.org", "http_etag": "\"c50be66fb1b9e6f2374632e5eef27f0c7e8c31a9\"", - "list_id": "open_list.example.com", "member_id": 134, "role": "member", "self_link": - "http://localhost:9001/3.0/members/134", "user": "http://localhost:9001/3.0/users/139"}'} + "delivery_mode": "regular", "email": "test-3@example.org", "http_etag": "\"266680ae3c95d6ea52873150471100eff532e1e9\"", + "list_id": "open_list.example.com", "member_id": 17, "role": "member", "self_link": + "http://localhost:9001/3.0/members/17", "user": "http://localhost:9001/3.0/users/20"}'} headers: - content-length: ['362'] + content-length: ['359'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/member/test-4@example.org response: body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/test-4@example.org", - "delivery_mode": "regular", "email": "test-4@example.org", "http_etag": "\"129221aa852c719a52aa63499e0a44887e7c4feb\"", - "list_id": "open_list.example.com", "member_id": 135, "role": "member", "self_link": - "http://localhost:9001/3.0/members/135", "user": "http://localhost:9001/3.0/users/140"}'} + "delivery_mode": "regular", "email": "test-4@example.org", "http_etag": "\"896de42005b6ee7f831bf49e841e043564f8d79a\"", + "list_id": "open_list.example.com", "member_id": 18, "role": "member", "self_link": + "http://localhost:9001/3.0/members/18", "user": "http://localhost:9001/3.0/users/21"}'} headers: - content-length: ['362'] + content-length: ['359'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/member/test-5@example.org response: body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/test-5@example.org", - "delivery_mode": "regular", "email": "test-5@example.org", "http_etag": "\"4975c9bea012fb07f05d3b86c090c5ef976c2314\"", - "list_id": "open_list.example.com", "member_id": 136, "role": "member", "self_link": - "http://localhost:9001/3.0/members/136", "user": "http://localhost:9001/3.0/users/141"}'} + "delivery_mode": "regular", "email": "test-5@example.org", "http_etag": "\"a9b438451a98a4d9f75afe447c149915578b4b0c\"", + "list_id": "open_list.example.com", "member_id": 19, "role": "member", "self_link": + "http://localhost:9001/3.0/members/19", "user": "http://localhost:9001/3.0/users/22"}'} headers: - content-length: ['362'] + content-length: ['359'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/addresses/test-1@example.org response: body: {string: !!python/unicode '{"display_name": "First Person", "email": "test-1@example.org", - "http_etag": "\"d89a1379c611ac6260074305ae7a000dea2b704f\"", "original_email": + "http_etag": "\"91cc84946ee7b71e0bface241cd6284cc821a11d\"", "original_email": "test-1@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": - "http://localhost:9001/3.0/addresses/test-1@example.org", "user": "http://localhost:9001/3.0/users/137", + "http://localhost:9001/3.0/addresses/test-1@example.org", "user": "http://localhost:9001/3.0/users/18", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['360'] + content-length: ['359'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/addresses/test-2@example.org response: body: {string: !!python/unicode '{"display_name": "Second Person", "email": "test-2@example.org", - "http_etag": "\"8e0baa1769736ccaf496974de0c085bcdb01838e\"", "original_email": + "http_etag": "\"d41b695d7d16a42a2942abdfdf93c231daf4de0f\"", "original_email": "test-2@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": - "http://localhost:9001/3.0/addresses/test-2@example.org", "user": "http://localhost:9001/3.0/users/138", - "verified_on": "2005-08-01T07:49:23"}'} - headers: - content-length: ['361'] - content-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/addresses/test-3@example.org - response: - body: {string: !!python/unicode '{"display_name": "Third Person", "email": "test-3@example.org", - "http_etag": "\"a940bf516504ea90468cf900c3df1271ad54ed33\"", "original_email": - "test-3@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": - "http://localhost:9001/3.0/addresses/test-3@example.org", "user": "http://localhost:9001/3.0/users/139", + "http://localhost:9001/3.0/addresses/test-2@example.org", "user": "http://localhost:9001/3.0/users/19", "verified_on": "2005-08-01T07:49:23"}'} headers: content-length: ['360'] @@ -569,37 +553,53 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/addresses/test-3@example.org + response: + body: {string: !!python/unicode '{"display_name": "Third Person", "email": "test-3@example.org", + "http_etag": "\"3a237434436f97e9e3497bd02a3c098deebf1378\"", "original_email": + "test-3@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": + "http://localhost:9001/3.0/addresses/test-3@example.org", "user": "http://localhost:9001/3.0/users/20", + "verified_on": "2005-08-01T07:49:23"}'} + headers: + content-length: ['359'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/addresses/test-4@example.org response: body: {string: !!python/unicode '{"email": "test-4@example.org", "http_etag": - "\"de3fbebb915b816a85b71370d16fb625d5920686\"", "original_email": "test-4@example.org", + "\"9cde7e1445867f2c1017df81e9e328027416cdae\"", "original_email": "test-4@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test-4@example.org", - "user": "http://localhost:9001/3.0/users/140", "verified_on": "2005-08-01T07:49:23"}'} + "user": "http://localhost:9001/3.0/users/21", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['328'] + content-length: ['327'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/addresses/test-5@example.org response: body: {string: !!python/unicode '{"email": "test-5@example.org", "http_etag": - "\"219f4b509ab59da531067b8486ea6331d02eb897\"", "original_email": "test-5@example.org", + "\"486e0c53bb3089ff6aa97607302a1369bfc1ebcc\"", "original_email": "test-5@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test-5@example.org", - "user": "http://localhost:9001/3.0/users/141", "verified_on": "2005-08-01T07:49:23"}'} + "user": "http://localhost:9001/3.0/users/22", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['328'] + content-length: ['327'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -612,7 +612,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -625,7 +625,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": @@ -641,7 +641,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode ''} @@ -652,39 +652,39 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"36beb30313f9201b8a0852524a54ff8b5e6771ab\"", "is_server_owner": - false, "password": "$6$rounds=697526$r74eGof.ml91rqpp$fz2.Vi.Fuex7UK9NImp2fl7228XsxzB/KZqKpFgKtdDMeBfUfMNaebrQN7tL6dvG6KBOWdRqcqF3I56uUqH45/", - "self_link": "http://localhost:9001/3.0/users/135", "user_id": 135}, {"created_on": - "2005-08-01T07:49:23", "http_etag": "\"455e7a28abeca6bf8d1f800f77d39730794f3d34\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/136", - "user_id": 136}, {"created_on": "2005-08-01T07:49:23", "display_name": "First - Person", "http_etag": "\"3f207423096a496272fc25fe3560079cd52b7d3c\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/137", "user_id": 137}, + "http_etag": "\"b46540f2c96d3ee56920d4fb84e6af961424c019\"", "is_server_owner": + false, "password": "$6$rounds=656000$eHZDIHWZZ5hLDEYH$LCESjR4PDPYLNIMpToZy3XzlOgiCrnh5az5I2dPa36.D4KGyF1ZjH1sciKRjhBHAYj54yd6BOFOxbvIFlEhtw0", + "self_link": "http://localhost:9001/3.0/users/16", "user_id": 16}, {"created_on": + "2005-08-01T07:49:23", "http_etag": "\"5ba84a9331a86066b367c0388a143ff681442612\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/17", + "user_id": 17}, {"created_on": "2005-08-01T07:49:23", "display_name": "First + Person", "http_etag": "\"fecd6fdd94fd2ce3df5952a60acfbe4fd32e1b46\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/18", "user_id": 18}, {"created_on": "2005-08-01T07:49:23", "display_name": "Second Person", "http_etag": - "\"06ca8414ec08caab2e2d23fdd541edcfeb4652f5\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/138", "user_id": 138}, {"created_on": - "2005-08-01T07:49:23", "display_name": "Third Person", "http_etag": "\"e9abf61776266a578db42116b1ef27b66006e8c5\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/139", - "user_id": 139}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"7a64578cac590e6a9d57cc98a0ba2d600f0fa509\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/140", - "user_id": 140}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"f830b5904be81b27efe363268e4628fb335ff8b4\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/141", - "user_id": 141}], "http_etag": "\"34e520a3394b2324727b2ccf6e969f259ba6b1d7\"", + "\"876ae42e726c91c684da4b667cb0daa02f4a5c43\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/19", "user_id": 19}, {"created_on": + "2005-08-01T07:49:23", "display_name": "Third Person", "http_etag": "\"bba40743bf7cb91bbdba4ad5b9552dd399e71c5c\"", + "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": "\"6dc3faac46bcef307cb04b877c1cb62ddff20660\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/22", + "user_id": 22}], "http_etag": "\"6eacfada21c5314fe09a74bbc6e1e9eb63c56902\"", "start": 0, "total_size": 7}'} headers: - content-length: ['1694'] + content-length: ['1680'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/135 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/16 response: body: {string: !!python/unicode ''} headers: @@ -694,8 +694,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/136 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/17 response: body: {string: !!python/unicode ''} headers: @@ -705,8 +705,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/137 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/18 response: body: {string: !!python/unicode ''} headers: @@ -716,8 +716,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/138 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/19 response: body: {string: !!python/unicode ''} headers: @@ -727,8 +727,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/139 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/20 response: body: {string: !!python/unicode ''} headers: @@ -738,8 +738,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/140 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/21 response: body: {string: !!python/unicode ''} headers: @@ -749,8 +749,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/141 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/22 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_unknown_address.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_unknown_address.yaml index 94a26e7..dd28485 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_unknown_address.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_unknown_address.yaml @@ -1,10 +1,10 @@ interactions: - request: - body: !!python/unicode mail_host=example.com + body: !!python/unicode 'mail_host=example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode ''} @@ -17,7 +17,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", @@ -27,11 +27,11 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode fqdn_listname=open_list%40example.com + body: !!python/unicode 'fqdn_listname=open_list%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -44,7 +44,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -60,7 +60,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -76,8 +76,8 @@ 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, "footer_uri": "", "fqdn_listname": "open_list@example.com", - "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"87dbf6f784ce7fcba36c92ecc99006b8c1f878eb\"", - "include_rfc2369_headers": true, "join_address": "open_list-join@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"2aed2f0ce4a7f2c86eae4124728f0153fda52dc6\"", + "include_rfc2369_headers": true, "info": "", "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", "moderator_password": null, "next_digest_number": 1, "no_reply_address": "noreply@example.com", "owner_address": "open_list-owner@example.com", @@ -87,15 +87,15 @@ true, "subject_prefix": "[Open_list] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1837'] + content-length: ['1849'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode subscription_policy=open + body: !!python/unicode 'subscription_policy=open' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PATCH + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'PATCH' uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode ''} @@ -103,11 +103,11 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: !!python/unicode fqdn_listname=moderate_subs%40example.com + body: !!python/unicode 'fqdn_listname=moderate_subs%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -120,7 +120,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": @@ -136,7 +136,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -152,8 +152,8 @@ 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, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com", - "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"de6cbad08d95ba3eeba449e9ea2b2eb130d74f97\"", - "include_rfc2369_headers": true, "join_address": "moderate_subs-join@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"60d87955c09ee35a06c8740e9a4474843e083e3a\"", + "include_rfc2369_headers": true, "info": "", "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", "moderator_password": null, "next_digest_number": 1, "no_reply_address": "noreply@example.com", @@ -164,15 +164,15 @@ "[Moderate_subs] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1877'] + content-length: ['1889'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode subscription_policy=moderate + body: !!python/unicode 'subscription_policy=moderate' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PATCH + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'PATCH' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode ''} @@ -180,26 +180,26 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: !!python/unicode email=test%40example.com + body: !!python/unicode 'email=test%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/users/142'] + location: ['http://localhost:9001/3.0/users/23'] status: {code: 201, message: Created} - request: - body: !!python/unicode email=fritz%40example.org + body: !!python/unicode '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/142/addresses + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/users/23/addresses response: body: {string: !!python/unicode ''} headers: @@ -211,41 +211,41 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/142 + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/23 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"b15a5c41771c80b5aa654353f02517e15bf5a074\"", "is_server_owner": false, - "password": "$6$rounds=595759$5awJYv/Sbo3hAS42$Im/xVk2feXLQb6vebiouAfg0s2EIctyVwJBULFWrj56IRDNAFDTWNbjydWC8yxAxu4lZ6JwjmE11rNqFDJETZ/", - "self_link": "http://localhost:9001/3.0/users/142", "user_id": 142}'} + "\"255a2cbb232b9aad077f4b248947e5426e0ef35a\"", "is_server_owner": false, + "password": "$6$rounds=656000$I/OkMHiz6ZSyKO1e$6HE.UxLTvjMGl33KAAZtiB9YIwGJ1/LZZWmQ2ivOGBXPXjLA6tNLi5QerOBY7RkyPbZsnacn1yTjzcAXFFdo91", + "self_link": "http://localhost:9001/3.0/users/23", "user_id": 23}'} headers: - content-length: ['328'] + content-length: ['326'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/142/addresses + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/users/23/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"7cf1e80c95c20e2a171f94ab0ca507b943616600\"", "original_email": "fritz@example.org", + "\"89efc920c3887d314b9bd948d94048d047b58513\"", "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/142"}, {"email": "test@example.com", - "http_etag": "\"13cb56140b795373076e1c415f6b25ee01a4fdc9\"", "original_email": + "user": "http://localhost:9001/3.0/users/23"}, {"email": "test@example.com", + "http_etag": "\"9d692423be94883f59e5670c4b08692451f8395d\"", "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/142"}], "http_etag": "\"d5f0b9a7348a02b949f5dbc8898375acb217d7e9\"", + "user": "http://localhost:9001/3.0/users/23"}], "http_etag": "\"7743fba2d36e767fc21fcc947bf74b9334497eb9\"", "start": 0, "total_size": 2}'} headers: - content-length: ['678'] + content-length: ['676'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode POST + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/addresses/fritz@example.org/verify response: body: {string: !!python/unicode ''} @@ -256,7 +256,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode POST + method: !!python/unicode 'POST' uri: http://localhost:9001/3.0/addresses/test@example.com/verify response: body: {string: !!python/unicode ''} @@ -267,7 +267,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -283,7 +283,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -296,7 +296,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -309,7 +309,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/roster/member response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -322,7 +322,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -335,7 +335,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -351,7 +351,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -364,7 +364,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -377,33 +377,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/open_list.example.com/member/fritz@example.org - response: - body: {string: !!python/unicode '{}'} - headers: - content-length: ['2'] - content-type: [application/json; charset=UTF-8] - vary: [Accept] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/open_list.example.com/member/test@example.com - response: - body: {string: !!python/unicode '{}'} - headers: - content-length: ['2'] - content-type: [application/json; charset=UTF-8] - vary: [Accept] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -419,8 +393,8 @@ 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, "footer_uri": "", "fqdn_listname": "open_list@example.com", - "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"3832519e8672eb7c123e02757f46d3be1080d3fd\"", - "include_rfc2369_headers": true, "join_address": "open_list-join@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"086805127cff33814207a09645d1d14a418fad63\"", + "include_rfc2369_headers": true, "info": "", "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", "moderator_password": null, "next_digest_number": 1, "no_reply_address": "noreply@example.com", "owner_address": "open_list-owner@example.com", @@ -430,14 +404,53 @@ true, "subject_prefix": "[Open_list] ", "subscription_policy": "open", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1834'] + content-length: ['1846'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/open_list.example.com/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/open_list.example.com/member/fritz@example.org + response: + body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"} + headers: + content-length: ['32'] + content-type: [application/json; charset=UTF-8] + vary: [Accept] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/open_list.example.com/member/test@example.com + response: + body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"} + headers: + content-length: ['32'] + content-type: [application/json; charset=UTF-8] + vary: [Accept] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -450,7 +463,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -463,7 +476,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": @@ -479,7 +492,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE + method: !!python/unicode 'DELETE' uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode ''} @@ -490,25 +503,25 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"b15a5c41771c80b5aa654353f02517e15bf5a074\"", "is_server_owner": - false, "password": "$6$rounds=595759$5awJYv/Sbo3hAS42$Im/xVk2feXLQb6vebiouAfg0s2EIctyVwJBULFWrj56IRDNAFDTWNbjydWC8yxAxu4lZ6JwjmE11rNqFDJETZ/", - "self_link": "http://localhost:9001/3.0/users/142", "user_id": 142}], "http_etag": - "\"5a3fac2f3f3877389141423e174a13f7e2fc7bd5\"", "start": 0, "total_size": + "http_etag": "\"255a2cbb232b9aad077f4b248947e5426e0ef35a\"", "is_server_owner": + false, "password": "$6$rounds=656000$I/OkMHiz6ZSyKO1e$6HE.UxLTvjMGl33KAAZtiB9YIwGJ1/LZZWmQ2ivOGBXPXjLA6tNLi5QerOBY7RkyPbZsnacn1yTjzcAXFFdo91", + "self_link": "http://localhost:9001/3.0/users/23", "user_id": 23}], "http_etag": + "\"1baa1ea8e74d100bbb97ce9ae1ae8a9e803b1dca\"", "start": 0, "total_size": 1}'} headers: - content-length: ['433'] + content-length: ['431'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/142 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/23 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/views/list.py b/src/postorius/views/list.py index 57a5542..c3d8238 100644 --- a/src/postorius/views/list.py +++ b/src/postorius/views/list.py @@ -208,6 +208,11 @@ 'hyperkitty_enabled': False} if self.mailing_list.settings['archive_policy'] == 'public': data['public_archive'] = True + if getattr(settings, 'TESTING') and \ + 'hyperkitty' not in settings.INSTALLED_APPS: + # avoid systematic test failure when HyperKitty is installed + # (missing VCR request, see below). + list(self.mailing_list.archivers) if ('hyperkitty' in settings.INSTALLED_APPS and 'hyperkitty' in self.mailing_list.archivers and self.mailing_list.archivers['hyperkitty']):