diff --git a/src/postorius/forms.py b/src/postorius/forms.py index a407f88..8687e5b 100644 --- a/src/postorius/forms.py +++ b/src/postorius/forms.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright (C) 2012-2015 by the Free Software Foundation, Inc. +# Copyright (C) 2012-2016 by the Free Software Foundation, Inc. # # This file is part of Postorius. # @@ -365,6 +365,54 @@ 'it gets sent out?')) +class DMARCMitigationsForm(ListSettingsForm): + """ + DMARC Mitigations list settings. + """ + dmarc_mitigate_action = forms.ChoiceField( + label=_('DMARC mitigation action'), + widget=forms.Select(), + required=False, + error_messages={ + 'required': _("Please choose a DMARC mitigation action.")}, + choices=( + ('no_mitigation', _('No DMARC mitigations')), + ('munge_from', _('Replace From: with list address')), + ('wrap_message', + _('Wrap the message in an outer message From: the list.')), + ('reject', _('Reject the message')), + ('discard', _('Discard the message'))), + help_text=_( + 'The action to apply to messages From: a domain publishing a ' + 'DMARC policy of reject or quarantine or to all messages if ' + 'DMARC Mitigate unconditionally is True.')) + dmarc_mitigate_unconditionally = forms.TypedChoiceField( + coerce=lambda x: x == 'True', + choices=((True, _('Yes')), (False, _('No'))), + widget=forms.RadioSelect, + required=False, + label=_('DMARC Mitigate unconditionally'), + help_text=_( + 'If DMARC mitigation action is munge_from or wrap_message, ' + 'should it apply to all messages regardless of the DMARC policy ' + 'of the From: domain.')) + dmarc_moderation_notice = forms.CharField( + label=_('DMARC rejection notice'), + required=False, + widget=forms.Textarea(), + help_text=_( + 'Text to replace the default reason in any rejection notice to ' + 'be sent when DMARC mitigation action of reject applies.')) + dmarc_wrapped_message_text = forms.CharField( + label=_('DMARC wrapped message text'), + required=False, + widget=forms.Textarea(), + help_text=_( + 'Text to be added as a separate text/plain MIME part preceding ' + 'the original message part in the wrapped message when DMARC ' + 'mitigation action of wrap message applies.')) + + class AlterMessagesForm(ListSettingsForm): """ Alter messages list settings. diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_not_accessible_for_moderator.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_not_accessible_for_moderator.yaml index b0e40ff..21dccaf 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_not_accessible_for_moderator.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_not_accessible_for_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,38 +56,38 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=owner%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - 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/75'] + location: ['http://localhost:9001/3.0/members/44'] status: {code: 201, message: Created} - request: - body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com + body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!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/76'] + location: ['http://localhost:9001/3.0/members/45'] 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,14 +102,14 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"11fa9352100caff8415cd6a81a7e0f94f99331d6\"", - "list_id": "foo.example.com", "member_id": 75, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/75", "user": - "http://localhost:9001/3.0/users/69"}], "http_etag": "\"028ecfc7ffbb418a4e13697534b41e694fef678b\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"aba218d3500566bef71cab05f5ac7f38884f52ed\"", + "list_id": "foo.example.com", "member_id": 44, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/44", "user": + "http://localhost:9001/3.0/users/43"}], "http_etag": "\"d83a6aa6ecf6c80e4a03834af53bc15a8c49ae73\"", "start": 0, "total_size": 1}'} headers: content-length: ['486'] @@ -119,15 +119,15 @@ 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/moderator@example.com", "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"38b9d04679b5a1c858248f1629521a82ae31cd7c\"", "list_id": "foo.example.com", - "member_id": 76, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/76", "user": "http://localhost:9001/3.0/users/70"}], - "http_etag": "\"154b6eb7e8e60d7ccabb87180a5725abc2e85110\"", "start": 0, "total_size": + "\"96f15c078b1e53c898a7507a02195fa517a8cbd8\"", "list_id": "foo.example.com", + "member_id": 45, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/45", "user": "http://localhost:9001/3.0/users/44"}], + "http_etag": "\"49fb53c56ccd1a63736bc6c634123a2689a734d0\"", "start": 0, "total_size": 1}'} headers: content-length: ['498'] @@ -137,7 +137,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", @@ -152,14 +152,14 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"11fa9352100caff8415cd6a81a7e0f94f99331d6\"", - "list_id": "foo.example.com", "member_id": 75, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/75", "user": - "http://localhost:9001/3.0/users/69"}], "http_etag": "\"028ecfc7ffbb418a4e13697534b41e694fef678b\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"aba218d3500566bef71cab05f5ac7f38884f52ed\"", + "list_id": "foo.example.com", "member_id": 44, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/44", "user": + "http://localhost:9001/3.0/users/43"}], "http_etag": "\"d83a6aa6ecf6c80e4a03834af53bc15a8c49ae73\"", "start": 0, "total_size": 1}'} headers: content-length: ['486'] @@ -169,15 +169,15 @@ 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/moderator@example.com", "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"38b9d04679b5a1c858248f1629521a82ae31cd7c\"", "list_id": "foo.example.com", - "member_id": 76, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/76", "user": "http://localhost:9001/3.0/users/70"}], - "http_etag": "\"154b6eb7e8e60d7ccabb87180a5725abc2e85110\"", "start": 0, "total_size": + "\"96f15c078b1e53c898a7507a02195fa517a8cbd8\"", "list_id": "foo.example.com", + "member_id": 45, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/45", "user": "http://localhost:9001/3.0/users/44"}], + "http_etag": "\"49fb53c56ccd1a63736bc6c634123a2689a734d0\"", "start": 0, "total_size": 1}'} headers: content-length: ['498'] @@ -187,7 +187,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -202,14 +202,14 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"11fa9352100caff8415cd6a81a7e0f94f99331d6\"", - "list_id": "foo.example.com", "member_id": 75, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/75", "user": - "http://localhost:9001/3.0/users/69"}], "http_etag": "\"028ecfc7ffbb418a4e13697534b41e694fef678b\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"aba218d3500566bef71cab05f5ac7f38884f52ed\"", + "list_id": "foo.example.com", "member_id": 44, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/44", "user": + "http://localhost:9001/3.0/users/43"}], "http_etag": "\"d83a6aa6ecf6c80e4a03834af53bc15a8c49ae73\"", "start": 0, "total_size": 1}'} headers: content-length: ['486'] @@ -219,15 +219,15 @@ 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/moderator@example.com", "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"38b9d04679b5a1c858248f1629521a82ae31cd7c\"", "list_id": "foo.example.com", - "member_id": 76, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/76", "user": "http://localhost:9001/3.0/users/70"}], - "http_etag": "\"154b6eb7e8e60d7ccabb87180a5725abc2e85110\"", "start": 0, "total_size": + "\"96f15c078b1e53c898a7507a02195fa517a8cbd8\"", "list_id": "foo.example.com", + "member_id": 45, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/45", "user": "http://localhost:9001/3.0/users/44"}], + "http_etag": "\"49fb53c56ccd1a63736bc6c634123a2689a734d0\"", "start": 0, "total_size": 1}'} headers: content-length: ['498'] @@ -237,7 +237,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", @@ -252,14 +252,14 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"11fa9352100caff8415cd6a81a7e0f94f99331d6\"", - "list_id": "foo.example.com", "member_id": 75, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/75", "user": - "http://localhost:9001/3.0/users/69"}], "http_etag": "\"028ecfc7ffbb418a4e13697534b41e694fef678b\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"aba218d3500566bef71cab05f5ac7f38884f52ed\"", + "list_id": "foo.example.com", "member_id": 44, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/44", "user": + "http://localhost:9001/3.0/users/43"}], "http_etag": "\"d83a6aa6ecf6c80e4a03834af53bc15a8c49ae73\"", "start": 0, "total_size": 1}'} headers: content-length: ['486'] @@ -269,15 +269,15 @@ 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/moderator@example.com", "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"38b9d04679b5a1c858248f1629521a82ae31cd7c\"", "list_id": "foo.example.com", - "member_id": 76, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/76", "user": "http://localhost:9001/3.0/users/70"}], - "http_etag": "\"154b6eb7e8e60d7ccabb87180a5725abc2e85110\"", "start": 0, "total_size": + "\"96f15c078b1e53c898a7507a02195fa517a8cbd8\"", "list_id": "foo.example.com", + "member_id": 45, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/45", "user": "http://localhost:9001/3.0/users/44"}], + "http_etag": "\"49fb53c56ccd1a63736bc6c634123a2689a734d0\"", "start": 0, "total_size": 1}'} headers: content-length: ['498'] @@ -287,7 +287,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", @@ -302,14 +302,14 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"11fa9352100caff8415cd6a81a7e0f94f99331d6\"", - "list_id": "foo.example.com", "member_id": 75, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/75", "user": - "http://localhost:9001/3.0/users/69"}], "http_etag": "\"028ecfc7ffbb418a4e13697534b41e694fef678b\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"aba218d3500566bef71cab05f5ac7f38884f52ed\"", + "list_id": "foo.example.com", "member_id": 44, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/44", "user": + "http://localhost:9001/3.0/users/43"}], "http_etag": "\"d83a6aa6ecf6c80e4a03834af53bc15a8c49ae73\"", "start": 0, "total_size": 1}'} headers: content-length: ['486'] @@ -319,15 +319,15 @@ 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/moderator@example.com", "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"38b9d04679b5a1c858248f1629521a82ae31cd7c\"", "list_id": "foo.example.com", - "member_id": 76, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/76", "user": "http://localhost:9001/3.0/users/70"}], - "http_etag": "\"154b6eb7e8e60d7ccabb87180a5725abc2e85110\"", "start": 0, "total_size": + "\"96f15c078b1e53c898a7507a02195fa517a8cbd8\"", "list_id": "foo.example.com", + "member_id": 45, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/45", "user": "http://localhost:9001/3.0/users/44"}], + "http_etag": "\"49fb53c56ccd1a63736bc6c634123a2689a734d0\"", "start": 0, "total_size": 1}'} headers: content-length: ['498'] @@ -337,7 +337,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", @@ -352,14 +352,14 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"11fa9352100caff8415cd6a81a7e0f94f99331d6\"", - "list_id": "foo.example.com", "member_id": 75, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/75", "user": - "http://localhost:9001/3.0/users/69"}], "http_etag": "\"028ecfc7ffbb418a4e13697534b41e694fef678b\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"aba218d3500566bef71cab05f5ac7f38884f52ed\"", + "list_id": "foo.example.com", "member_id": 44, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/44", "user": + "http://localhost:9001/3.0/users/43"}], "http_etag": "\"d83a6aa6ecf6c80e4a03834af53bc15a8c49ae73\"", "start": 0, "total_size": 1}'} headers: content-length: ['486'] @@ -369,15 +369,15 @@ 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/moderator@example.com", "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"38b9d04679b5a1c858248f1629521a82ae31cd7c\"", "list_id": "foo.example.com", - "member_id": 76, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/76", "user": "http://localhost:9001/3.0/users/70"}], - "http_etag": "\"154b6eb7e8e60d7ccabb87180a5725abc2e85110\"", "start": 0, "total_size": + "\"96f15c078b1e53c898a7507a02195fa517a8cbd8\"", "list_id": "foo.example.com", + "member_id": 45, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/45", "user": "http://localhost:9001/3.0/users/44"}], + "http_etag": "\"49fb53c56ccd1a63736bc6c634123a2689a734d0\"", "start": 0, "total_size": 1}'} headers: content-length: ['498'] @@ -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/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -402,14 +402,14 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"11fa9352100caff8415cd6a81a7e0f94f99331d6\"", - "list_id": "foo.example.com", "member_id": 75, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/75", "user": - "http://localhost:9001/3.0/users/69"}], "http_etag": "\"028ecfc7ffbb418a4e13697534b41e694fef678b\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"aba218d3500566bef71cab05f5ac7f38884f52ed\"", + "list_id": "foo.example.com", "member_id": 44, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/44", "user": + "http://localhost:9001/3.0/users/43"}], "http_etag": "\"d83a6aa6ecf6c80e4a03834af53bc15a8c49ae73\"", "start": 0, "total_size": 1}'} headers: content-length: ['486'] @@ -419,15 +419,15 @@ 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/moderator@example.com", "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"38b9d04679b5a1c858248f1629521a82ae31cd7c\"", "list_id": "foo.example.com", - "member_id": 76, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/76", "user": "http://localhost:9001/3.0/users/70"}], - "http_etag": "\"154b6eb7e8e60d7ccabb87180a5725abc2e85110\"", "start": 0, "total_size": + "\"96f15c078b1e53c898a7507a02195fa517a8cbd8\"", "list_id": "foo.example.com", + "member_id": 45, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/45", "user": "http://localhost:9001/3.0/users/44"}], + "http_etag": "\"49fb53c56ccd1a63736bc6c634123a2689a734d0\"", "start": 0, "total_size": 1}'} headers: content-length: ['498'] @@ -437,7 +437,57 @@ 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", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"aba218d3500566bef71cab05f5ac7f38884f52ed\"", + "list_id": "foo.example.com", "member_id": 44, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/44", "user": + "http://localhost:9001/3.0/users/43"}], "http_etag": "\"d83a6aa6ecf6c80e4a03834af53bc15a8c49ae73\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['486'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"96f15c078b1e53c898a7507a02195fa517a8cbd8\"", "list_id": "foo.example.com", + "member_id": 45, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/45", "user": "http://localhost:9001/3.0/users/44"}], + "http_etag": "\"49fb53c56ccd1a63736bc6c634123a2689a734d0\"", "start": 0, "total_size": + 1}'} + headers: + content-length: ['498'] + 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": @@ -453,7 +503,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 ''} @@ -464,15 +514,15 @@ 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": "\"9a4eb09d5f278d468d727006ee5ad139e637be67\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/69", "user_id": 69}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"249816557a9c4603b3a04540d95e78b327b715c3\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/70", - "user_id": 70}], "http_etag": "\"4eeab9f934f7fd8947d503ba94dc82036dc6ed69\"", + "http_etag": "\"8baa884afd4f798ea7a841b7db104287b4f1175a\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/43", "user_id": 43}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"6d612d2536821ffdb84398d1385fa03883c014cf\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/44", + "user_id": 44}], "http_etag": "\"a814c9af37c3cf5a0676ccc6a8f43537cdb17da1\"", "start": 0, "total_size": 2}'} headers: content-length: ['487'] @@ -482,8 +532,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/69 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/43 response: body: {string: !!python/unicode ''} headers: @@ -493,8 +543,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/70 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/44 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_accessible_for_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_accessible_for_owner.yaml index d8cbaea..eda469a 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_accessible_for_owner.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_accessible_for_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,38 +56,38 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=owner%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - 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/77'] + location: ['http://localhost:9001/3.0/members/42'] status: {code: 201, message: Created} - request: - body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com + body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!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/78'] + location: ['http://localhost:9001/3.0/members/43'] 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,14 +102,14 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"3387447319c22a67b7e5981cd6cecd35b94148c3\"", - "list_id": "foo.example.com", "member_id": 77, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/77", "user": - "http://localhost:9001/3.0/users/71"}], "http_etag": "\"9975c7911b2f350d824da194686c2351dea35c98\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"310b150e602b357e829fbe91272883e246675ed5\"", + "list_id": "foo.example.com", "member_id": 42, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/42", "user": + "http://localhost:9001/3.0/users/41"}], "http_etag": "\"2f706d8efa6a49a4186c9773a8c1440cbb05e516\"", "start": 0, "total_size": 1}'} headers: content-length: ['486'] @@ -119,15 +119,15 @@ 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/moderator@example.com", "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"dcd0a782c44cefa364cc0127c97d821e48b1f4fc\"", "list_id": "foo.example.com", - "member_id": 78, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/78", "user": "http://localhost:9001/3.0/users/72"}], - "http_etag": "\"a88ba50973cd2660129553c0e38485f62166b09e\"", "start": 0, "total_size": + "\"516055c376593828d3349d50df130052c8094352\"", "list_id": "foo.example.com", + "member_id": 43, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/43", "user": "http://localhost:9001/3.0/users/42"}], + "http_etag": "\"37f1f4348093cc2966f95df0d8d5838eee29f794\"", "start": 0, "total_size": 1}'} headers: content-length: ['498'] @@ -137,7 +137,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", @@ -152,7 +152,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": @@ -166,10 +166,12 @@ "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": "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": + "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation", + "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text": + "", "filter_content": false, "first_strip_reply_to": false, "footer_uri": + "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri": + "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "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": @@ -179,14 +181,14 @@ "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1777'] + content-length: ['1937'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -201,14 +203,14 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"3387447319c22a67b7e5981cd6cecd35b94148c3\"", - "list_id": "foo.example.com", "member_id": 77, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/77", "user": - "http://localhost:9001/3.0/users/71"}], "http_etag": "\"9975c7911b2f350d824da194686c2351dea35c98\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"310b150e602b357e829fbe91272883e246675ed5\"", + "list_id": "foo.example.com", "member_id": 42, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/42", "user": + "http://localhost:9001/3.0/users/41"}], "http_etag": "\"2f706d8efa6a49a4186c9773a8c1440cbb05e516\"", "start": 0, "total_size": 1}'} headers: content-length: ['486'] @@ -218,15 +220,15 @@ 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/moderator@example.com", "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"dcd0a782c44cefa364cc0127c97d821e48b1f4fc\"", "list_id": "foo.example.com", - "member_id": 78, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/78", "user": "http://localhost:9001/3.0/users/72"}], - "http_etag": "\"a88ba50973cd2660129553c0e38485f62166b09e\"", "start": 0, "total_size": + "\"516055c376593828d3349d50df130052c8094352\"", "list_id": "foo.example.com", + "member_id": 43, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/43", "user": "http://localhost:9001/3.0/users/42"}], + "http_etag": "\"37f1f4348093cc2966f95df0d8d5838eee29f794\"", "start": 0, "total_size": 1}'} headers: content-length: ['498'] @@ -236,7 +238,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", @@ -251,7 +253,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": @@ -265,10 +267,12 @@ "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": "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": + "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation", + "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text": + "", "filter_content": false, "first_strip_reply_to": false, "footer_uri": + "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri": + "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "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": @@ -278,509 +282,14 @@ "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1777'] + content-length: ['1937'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner - response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"3387447319c22a67b7e5981cd6cecd35b94148c3\"", - "list_id": "foo.example.com", "member_id": 77, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/77", "user": - "http://localhost:9001/3.0/users/71"}], "http_etag": "\"9975c7911b2f350d824da194686c2351dea35c98\"", - "start": 0, "total_size": 1}'} - headers: - content-length: ['486'] - content-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator - response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", - "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"dcd0a782c44cefa364cc0127c97d821e48b1f4fc\"", "list_id": "foo.example.com", - "member_id": 78, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/78", "user": "http://localhost:9001/3.0/users/72"}], - "http_etag": "\"a88ba50973cd2660129553c0e38485f62166b09e\"", "start": 0, "total_size": - 1}'} - headers: - content-length: ['498'] - content-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo@example.com/config - response: - body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": - true, "admin_notify_mchanges": false, "administrivia": true, "advertised": - true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": - "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": - "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", - "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": - "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": - false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_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": "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", - "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-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner - response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"3387447319c22a67b7e5981cd6cecd35b94148c3\"", - "list_id": "foo.example.com", "member_id": 77, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/77", "user": - "http://localhost:9001/3.0/users/71"}], "http_etag": "\"9975c7911b2f350d824da194686c2351dea35c98\"", - "start": 0, "total_size": 1}'} - headers: - content-length: ['486'] - content-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator - response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", - "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"dcd0a782c44cefa364cc0127c97d821e48b1f4fc\"", "list_id": "foo.example.com", - "member_id": 78, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/78", "user": "http://localhost:9001/3.0/users/72"}], - "http_etag": "\"a88ba50973cd2660129553c0e38485f62166b09e\"", "start": 0, "total_size": - 1}'} - headers: - content-length: ['498'] - content-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo@example.com/config - response: - body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": - true, "admin_notify_mchanges": false, "administrivia": true, "advertised": - true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": - "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": - "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", - "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": - "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": - false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_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": "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", - "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-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner - response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"3387447319c22a67b7e5981cd6cecd35b94148c3\"", - "list_id": "foo.example.com", "member_id": 77, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/77", "user": - "http://localhost:9001/3.0/users/71"}], "http_etag": "\"9975c7911b2f350d824da194686c2351dea35c98\"", - "start": 0, "total_size": 1}'} - headers: - content-length: ['486'] - content-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator - response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", - "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"dcd0a782c44cefa364cc0127c97d821e48b1f4fc\"", "list_id": "foo.example.com", - "member_id": 78, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/78", "user": "http://localhost:9001/3.0/users/72"}], - "http_etag": "\"a88ba50973cd2660129553c0e38485f62166b09e\"", "start": 0, "total_size": - 1}'} - headers: - content-length: ['498'] - content-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo@example.com/config - response: - body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": - true, "admin_notify_mchanges": false, "administrivia": true, "advertised": - true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": - "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": - "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", - "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": - "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": - false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_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": "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", - "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-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner - response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"3387447319c22a67b7e5981cd6cecd35b94148c3\"", - "list_id": "foo.example.com", "member_id": 77, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/77", "user": - "http://localhost:9001/3.0/users/71"}], "http_etag": "\"9975c7911b2f350d824da194686c2351dea35c98\"", - "start": 0, "total_size": 1}'} - headers: - content-length: ['486'] - content-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator - response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", - "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"dcd0a782c44cefa364cc0127c97d821e48b1f4fc\"", "list_id": "foo.example.com", - "member_id": 78, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/78", "user": "http://localhost:9001/3.0/users/72"}], - "http_etag": "\"a88ba50973cd2660129553c0e38485f62166b09e\"", "start": 0, "total_size": - 1}'} - headers: - content-length: ['498'] - content-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo@example.com/config - response: - body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": - true, "admin_notify_mchanges": false, "administrivia": true, "advertised": - true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": - "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": - "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", - "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": - "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": - false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_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": "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", - "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-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner - response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"3387447319c22a67b7e5981cd6cecd35b94148c3\"", - "list_id": "foo.example.com", "member_id": 77, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/77", "user": - "http://localhost:9001/3.0/users/71"}], "http_etag": "\"9975c7911b2f350d824da194686c2351dea35c98\"", - "start": 0, "total_size": 1}'} - headers: - content-length: ['486'] - content-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator - response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", - "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"dcd0a782c44cefa364cc0127c97d821e48b1f4fc\"", "list_id": "foo.example.com", - "member_id": 78, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/78", "user": "http://localhost:9001/3.0/users/72"}], - "http_etag": "\"a88ba50973cd2660129553c0e38485f62166b09e\"", "start": 0, "total_size": - 1}'} - headers: - content-length: ['498'] - content-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo@example.com/config - response: - body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": - true, "admin_notify_mchanges": false, "administrivia": true, "advertised": - true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": - "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": - "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", - "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": - "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": - false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_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": "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", - "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-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\"", @@ -793,7 +302,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/archivers response: body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", @@ -806,7 +315,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/archivers response: body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", @@ -819,7 +328,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/archivers response: body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", @@ -832,7 +341,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/archivers response: body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", @@ -845,7 +354,613 @@ 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", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"310b150e602b357e829fbe91272883e246675ed5\"", + "list_id": "foo.example.com", "member_id": 42, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/42", "user": + "http://localhost:9001/3.0/users/41"}], "http_etag": "\"2f706d8efa6a49a4186c9773a8c1440cbb05e516\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['486'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"516055c376593828d3349d50df130052c8094352\"", "list_id": "foo.example.com", + "member_id": 43, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/43", "user": "http://localhost:9001/3.0/users/42"}], + "http_etag": "\"37f1f4348093cc2966f95df0d8d5838eee29f794\"", "start": 0, "total_size": + 1}'} + headers: + content-length: ['498'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_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": "Foo", "dmarc_mitigate_action": "no_mitigation", + "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text": + "", "filter_content": false, "first_strip_reply_to": false, "footer_uri": + "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri": + "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "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: ['1937'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"310b150e602b357e829fbe91272883e246675ed5\"", + "list_id": "foo.example.com", "member_id": 42, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/42", "user": + "http://localhost:9001/3.0/users/41"}], "http_etag": "\"2f706d8efa6a49a4186c9773a8c1440cbb05e516\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['486'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"516055c376593828d3349d50df130052c8094352\"", "list_id": "foo.example.com", + "member_id": 43, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/43", "user": "http://localhost:9001/3.0/users/42"}], + "http_etag": "\"37f1f4348093cc2966f95df0d8d5838eee29f794\"", "start": 0, "total_size": + 1}'} + headers: + content-length: ['498'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_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": "Foo", "dmarc_mitigate_action": "no_mitigation", + "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text": + "", "filter_content": false, "first_strip_reply_to": false, "footer_uri": + "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri": + "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "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: ['1937'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"310b150e602b357e829fbe91272883e246675ed5\"", + "list_id": "foo.example.com", "member_id": 42, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/42", "user": + "http://localhost:9001/3.0/users/41"}], "http_etag": "\"2f706d8efa6a49a4186c9773a8c1440cbb05e516\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['486'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"516055c376593828d3349d50df130052c8094352\"", "list_id": "foo.example.com", + "member_id": 43, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/43", "user": "http://localhost:9001/3.0/users/42"}], + "http_etag": "\"37f1f4348093cc2966f95df0d8d5838eee29f794\"", "start": 0, "total_size": + 1}'} + headers: + content-length: ['498'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_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": "Foo", "dmarc_mitigate_action": "no_mitigation", + "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text": + "", "filter_content": false, "first_strip_reply_to": false, "footer_uri": + "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri": + "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "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: ['1937'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"310b150e602b357e829fbe91272883e246675ed5\"", + "list_id": "foo.example.com", "member_id": 42, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/42", "user": + "http://localhost:9001/3.0/users/41"}], "http_etag": "\"2f706d8efa6a49a4186c9773a8c1440cbb05e516\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['486'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"516055c376593828d3349d50df130052c8094352\"", "list_id": "foo.example.com", + "member_id": 43, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/43", "user": "http://localhost:9001/3.0/users/42"}], + "http_etag": "\"37f1f4348093cc2966f95df0d8d5838eee29f794\"", "start": 0, "total_size": + 1}'} + headers: + content-length: ['498'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_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": "Foo", "dmarc_mitigate_action": "no_mitigation", + "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text": + "", "filter_content": false, "first_strip_reply_to": false, "footer_uri": + "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri": + "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "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: ['1937'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"310b150e602b357e829fbe91272883e246675ed5\"", + "list_id": "foo.example.com", "member_id": 42, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/42", "user": + "http://localhost:9001/3.0/users/41"}], "http_etag": "\"2f706d8efa6a49a4186c9773a8c1440cbb05e516\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['486'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"516055c376593828d3349d50df130052c8094352\"", "list_id": "foo.example.com", + "member_id": 43, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/43", "user": "http://localhost:9001/3.0/users/42"}], + "http_etag": "\"37f1f4348093cc2966f95df0d8d5838eee29f794\"", "start": 0, "total_size": + 1}'} + headers: + content-length: ['498'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_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": "Foo", "dmarc_mitigate_action": "no_mitigation", + "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text": + "", "filter_content": false, "first_strip_reply_to": false, "footer_uri": + "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri": + "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "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: ['1937'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"310b150e602b357e829fbe91272883e246675ed5\"", + "list_id": "foo.example.com", "member_id": 42, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/42", "user": + "http://localhost:9001/3.0/users/41"}], "http_etag": "\"2f706d8efa6a49a4186c9773a8c1440cbb05e516\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['486'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"516055c376593828d3349d50df130052c8094352\"", "list_id": "foo.example.com", + "member_id": 43, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/43", "user": "http://localhost:9001/3.0/users/42"}], + "http_etag": "\"37f1f4348093cc2966f95df0d8d5838eee29f794\"", "start": 0, "total_size": + 1}'} + headers: + content-length: ['498'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_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": "Foo", "dmarc_mitigate_action": "no_mitigation", + "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text": + "", "filter_content": false, "first_strip_reply_to": false, "footer_uri": + "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri": + "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "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: ['1937'] + 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": @@ -861,7 +976,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 ''} @@ -872,15 +987,15 @@ 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": "\"aaf21b548c16ce156ecd1316ead130ff9710729a\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/71", "user_id": 71}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"108eeb0cd5d01bafaf1f4b6b9a14a7cac7ba53ae\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/72", - "user_id": 72}], "http_etag": "\"a45d1fe8f349a409091378881fbc39ab9bd68967\"", + "http_etag": "\"6071df37f4a4cb86be05c478f66ec256e9e02896\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/41", "user_id": 41}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"61ff2561963f4a48a5bbe30d2c4168b52c485752\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/42", + "user_id": 42}], "http_etag": "\"7518f9dd0a97eb7e3beb7d7d44012cd5236461e2\"", "start": 0, "total_size": 2}'} headers: content-length: ['487'] @@ -890,8 +1005,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/71 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/41 response: body: {string: !!python/unicode ''} headers: @@ -901,8 +1016,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/72 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/42 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_accessible_for_superuser.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_accessible_for_superuser.yaml index f002ae2..0a131eb 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_accessible_for_superuser.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_accessible_for_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", @@ -56,38 +56,38 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=owner%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - 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/79'] + location: ['http://localhost:9001/3.0/members/40'] status: {code: 201, message: Created} - request: - body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com + body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!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/80'] + location: ['http://localhost:9001/3.0/members/41'] 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/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -116,10 +116,12 @@ "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": "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": + "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation", + "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text": + "", "filter_content": false, "first_strip_reply_to": false, "footer_uri": + "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri": + "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "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": @@ -129,14 +131,14 @@ "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1777'] + content-length: ['1937'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -151,7 +153,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -165,10 +167,12 @@ "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": "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": + "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation", + "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text": + "", "filter_content": false, "first_strip_reply_to": false, "footer_uri": + "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri": + "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "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": @@ -178,14 +182,14 @@ "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1777'] + content-length: ['1937'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -200,7 +204,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": @@ -214,10 +218,12 @@ "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": "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": + "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation", + "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text": + "", "filter_content": false, "first_strip_reply_to": false, "footer_uri": + "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri": + "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "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": @@ -227,14 +233,14 @@ "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1777'] + content-length: ['1937'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -249,7 +255,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -263,10 +269,12 @@ "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": "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": + "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation", + "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text": + "", "filter_content": false, "first_strip_reply_to": false, "footer_uri": + "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri": + "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "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": @@ -276,14 +284,14 @@ "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1777'] + content-length: ['1937'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -298,7 +306,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": @@ -312,10 +320,12 @@ "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": "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": + "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation", + "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text": + "", "filter_content": false, "first_strip_reply_to": false, "footer_uri": + "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri": + "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "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": @@ -325,112 +335,14 @@ "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1777'] + content-length: ['1937'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo@example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo@example.com/config - response: - body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": - true, "admin_notify_mchanges": false, "administrivia": true, "advertised": - true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": - "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": - "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", - "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": - "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": - false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_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": "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", - "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-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo@example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo@example.com/config - response: - body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": - true, "admin_notify_mchanges": false, "administrivia": true, "advertised": - true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": - "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": - "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", - "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": - "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": - false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_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": "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", - "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-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\"", @@ -443,7 +355,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/archivers response: body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", @@ -456,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/foo.example.com/archivers response: body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", @@ -469,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/foo.example.com/archivers response: body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", @@ -482,7 +394,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/archivers response: body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", @@ -495,7 +407,160 @@ 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", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_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": "Foo", "dmarc_mitigate_action": "no_mitigation", + "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text": + "", "filter_content": false, "first_strip_reply_to": false, "footer_uri": + "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri": + "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "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: ['1937'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_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": "Foo", "dmarc_mitigate_action": "no_mitigation", + "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text": + "", "filter_content": false, "first_strip_reply_to": false, "footer_uri": + "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri": + "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "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: ['1937'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_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": "Foo", "dmarc_mitigate_action": "no_mitigation", + "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text": + "", "filter_content": false, "first_strip_reply_to": false, "footer_uri": + "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri": + "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "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: ['1937'] + 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": @@ -511,7 +576,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 ''} @@ -522,15 +587,15 @@ 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": "\"473b2615aa0b3a19fe77bc4c88fa9c56294b797b\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/73", "user_id": 73}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"9bddc6c5439c7622ae030a2f5a3e159589e132e7\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/74", - "user_id": 74}], "http_etag": "\"66eb3b9bb1edf1e028919d3868ae081dbac54a0a\"", + "http_etag": "\"cf8014263ef08f63a4cfea4d0d8b0170e725df07\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/39", "user_id": 39}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"2a531149c67abd4d7972f411361758c9f4235bb1\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/40", + "user_id": 40}], "http_etag": "\"27e3c1a2d092ff6bb39bca76aa61f6d7a053274d\"", "start": 0, "total_size": 2}'} headers: content-length: ['487'] @@ -540,8 +605,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/73 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/39 response: body: {string: !!python/unicode ''} headers: @@ -551,8 +616,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/74 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/40 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_not_accessible_for_unprivileged_users.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_not_accessible_for_unprivileged_users.yaml index dacd093..94c84cc 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_not_accessible_for_unprivileged_users.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_not_accessible_for_unprivileged_users.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,38 +56,38 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=owner%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - 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/81'] + location: ['http://localhost:9001/3.0/members/38'] status: {code: 201, message: Created} - request: - body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com + body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com' headers: accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST + !!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/82'] + location: ['http://localhost:9001/3.0/members/39'] 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,14 +102,14 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"16ecf3ac701f4feb4503519e869b5818bfe87561\"", - "list_id": "foo.example.com", "member_id": 81, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/81", "user": - "http://localhost:9001/3.0/users/75"}], "http_etag": "\"d47c0277fe2e003b69424d88ec6f8c5b9c6342b6\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"5f3abddc18b5d77b60bd55b31f7b84d5399becf7\"", + "list_id": "foo.example.com", "member_id": 38, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/38", "user": + "http://localhost:9001/3.0/users/37"}], "http_etag": "\"3b74d3e147c9a68b2078e2f0dd7ae447dccdebd5\"", "start": 0, "total_size": 1}'} headers: content-length: ['486'] @@ -119,15 +119,15 @@ 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/moderator@example.com", "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"e3a43736799bd65ae764104685715a3c36a9211d\"", "list_id": "foo.example.com", - "member_id": 82, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/82", "user": "http://localhost:9001/3.0/users/76"}], - "http_etag": "\"18d3b2b1ee0409ad7423a534dccd15efa6345496\"", "start": 0, "total_size": + "\"7745226a1570da68fbd0886194fbc3a2ebe1f664\"", "list_id": "foo.example.com", + "member_id": 39, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/39", "user": "http://localhost:9001/3.0/users/38"}], + "http_etag": "\"d0c7f4988bbd537beb5593585270899adaa1a7e7\"", "start": 0, "total_size": 1}'} headers: content-length: ['498'] @@ -137,7 +137,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", @@ -152,14 +152,14 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"16ecf3ac701f4feb4503519e869b5818bfe87561\"", - "list_id": "foo.example.com", "member_id": 81, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/81", "user": - "http://localhost:9001/3.0/users/75"}], "http_etag": "\"d47c0277fe2e003b69424d88ec6f8c5b9c6342b6\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"5f3abddc18b5d77b60bd55b31f7b84d5399becf7\"", + "list_id": "foo.example.com", "member_id": 38, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/38", "user": + "http://localhost:9001/3.0/users/37"}], "http_etag": "\"3b74d3e147c9a68b2078e2f0dd7ae447dccdebd5\"", "start": 0, "total_size": 1}'} headers: content-length: ['486'] @@ -169,15 +169,15 @@ 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/moderator@example.com", "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"e3a43736799bd65ae764104685715a3c36a9211d\"", "list_id": "foo.example.com", - "member_id": 82, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/82", "user": "http://localhost:9001/3.0/users/76"}], - "http_etag": "\"18d3b2b1ee0409ad7423a534dccd15efa6345496\"", "start": 0, "total_size": + "\"7745226a1570da68fbd0886194fbc3a2ebe1f664\"", "list_id": "foo.example.com", + "member_id": 39, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/39", "user": "http://localhost:9001/3.0/users/38"}], + "http_etag": "\"d0c7f4988bbd537beb5593585270899adaa1a7e7\"", "start": 0, "total_size": 1}'} headers: content-length: ['498'] @@ -187,7 +187,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -202,14 +202,14 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"16ecf3ac701f4feb4503519e869b5818bfe87561\"", - "list_id": "foo.example.com", "member_id": 81, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/81", "user": - "http://localhost:9001/3.0/users/75"}], "http_etag": "\"d47c0277fe2e003b69424d88ec6f8c5b9c6342b6\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"5f3abddc18b5d77b60bd55b31f7b84d5399becf7\"", + "list_id": "foo.example.com", "member_id": 38, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/38", "user": + "http://localhost:9001/3.0/users/37"}], "http_etag": "\"3b74d3e147c9a68b2078e2f0dd7ae447dccdebd5\"", "start": 0, "total_size": 1}'} headers: content-length: ['486'] @@ -219,15 +219,15 @@ 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/moderator@example.com", "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"e3a43736799bd65ae764104685715a3c36a9211d\"", "list_id": "foo.example.com", - "member_id": 82, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/82", "user": "http://localhost:9001/3.0/users/76"}], - "http_etag": "\"18d3b2b1ee0409ad7423a534dccd15efa6345496\"", "start": 0, "total_size": + "\"7745226a1570da68fbd0886194fbc3a2ebe1f664\"", "list_id": "foo.example.com", + "member_id": 39, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/39", "user": "http://localhost:9001/3.0/users/38"}], + "http_etag": "\"d0c7f4988bbd537beb5593585270899adaa1a7e7\"", "start": 0, "total_size": 1}'} headers: content-length: ['498'] @@ -237,7 +237,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", @@ -252,14 +252,14 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"16ecf3ac701f4feb4503519e869b5818bfe87561\"", - "list_id": "foo.example.com", "member_id": 81, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/81", "user": - "http://localhost:9001/3.0/users/75"}], "http_etag": "\"d47c0277fe2e003b69424d88ec6f8c5b9c6342b6\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"5f3abddc18b5d77b60bd55b31f7b84d5399becf7\"", + "list_id": "foo.example.com", "member_id": 38, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/38", "user": + "http://localhost:9001/3.0/users/37"}], "http_etag": "\"3b74d3e147c9a68b2078e2f0dd7ae447dccdebd5\"", "start": 0, "total_size": 1}'} headers: content-length: ['486'] @@ -269,15 +269,15 @@ 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/moderator@example.com", "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"e3a43736799bd65ae764104685715a3c36a9211d\"", "list_id": "foo.example.com", - "member_id": 82, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/82", "user": "http://localhost:9001/3.0/users/76"}], - "http_etag": "\"18d3b2b1ee0409ad7423a534dccd15efa6345496\"", "start": 0, "total_size": + "\"7745226a1570da68fbd0886194fbc3a2ebe1f664\"", "list_id": "foo.example.com", + "member_id": 39, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/39", "user": "http://localhost:9001/3.0/users/38"}], + "http_etag": "\"d0c7f4988bbd537beb5593585270899adaa1a7e7\"", "start": 0, "total_size": 1}'} headers: content-length: ['498'] @@ -287,7 +287,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", @@ -302,14 +302,14 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"16ecf3ac701f4feb4503519e869b5818bfe87561\"", - "list_id": "foo.example.com", "member_id": 81, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/81", "user": - "http://localhost:9001/3.0/users/75"}], "http_etag": "\"d47c0277fe2e003b69424d88ec6f8c5b9c6342b6\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"5f3abddc18b5d77b60bd55b31f7b84d5399becf7\"", + "list_id": "foo.example.com", "member_id": 38, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/38", "user": + "http://localhost:9001/3.0/users/37"}], "http_etag": "\"3b74d3e147c9a68b2078e2f0dd7ae447dccdebd5\"", "start": 0, "total_size": 1}'} headers: content-length: ['486'] @@ -319,15 +319,15 @@ 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/moderator@example.com", "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"e3a43736799bd65ae764104685715a3c36a9211d\"", "list_id": "foo.example.com", - "member_id": 82, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/82", "user": "http://localhost:9001/3.0/users/76"}], - "http_etag": "\"18d3b2b1ee0409ad7423a534dccd15efa6345496\"", "start": 0, "total_size": + "\"7745226a1570da68fbd0886194fbc3a2ebe1f664\"", "list_id": "foo.example.com", + "member_id": 39, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/39", "user": "http://localhost:9001/3.0/users/38"}], + "http_etag": "\"d0c7f4988bbd537beb5593585270899adaa1a7e7\"", "start": 0, "total_size": 1}'} headers: content-length: ['498'] @@ -337,7 +337,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", @@ -352,14 +352,14 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"16ecf3ac701f4feb4503519e869b5818bfe87561\"", - "list_id": "foo.example.com", "member_id": 81, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/81", "user": - "http://localhost:9001/3.0/users/75"}], "http_etag": "\"d47c0277fe2e003b69424d88ec6f8c5b9c6342b6\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"5f3abddc18b5d77b60bd55b31f7b84d5399becf7\"", + "list_id": "foo.example.com", "member_id": 38, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/38", "user": + "http://localhost:9001/3.0/users/37"}], "http_etag": "\"3b74d3e147c9a68b2078e2f0dd7ae447dccdebd5\"", "start": 0, "total_size": 1}'} headers: content-length: ['486'] @@ -369,15 +369,15 @@ 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/moderator@example.com", "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"e3a43736799bd65ae764104685715a3c36a9211d\"", "list_id": "foo.example.com", - "member_id": 82, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/82", "user": "http://localhost:9001/3.0/users/76"}], - "http_etag": "\"18d3b2b1ee0409ad7423a534dccd15efa6345496\"", "start": 0, "total_size": + "\"7745226a1570da68fbd0886194fbc3a2ebe1f664\"", "list_id": "foo.example.com", + "member_id": 39, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/39", "user": "http://localhost:9001/3.0/users/38"}], + "http_etag": "\"d0c7f4988bbd537beb5593585270899adaa1a7e7\"", "start": 0, "total_size": 1}'} headers: content-length: ['498'] @@ -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/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -402,14 +402,14 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET + method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"16ecf3ac701f4feb4503519e869b5818bfe87561\"", - "list_id": "foo.example.com", "member_id": 81, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/81", "user": - "http://localhost:9001/3.0/users/75"}], "http_etag": "\"d47c0277fe2e003b69424d88ec6f8c5b9c6342b6\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"5f3abddc18b5d77b60bd55b31f7b84d5399becf7\"", + "list_id": "foo.example.com", "member_id": 38, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/38", "user": + "http://localhost:9001/3.0/users/37"}], "http_etag": "\"3b74d3e147c9a68b2078e2f0dd7ae447dccdebd5\"", "start": 0, "total_size": 1}'} headers: content-length: ['486'] @@ -419,15 +419,15 @@ 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/moderator@example.com", "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"e3a43736799bd65ae764104685715a3c36a9211d\"", "list_id": "foo.example.com", - "member_id": 82, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/82", "user": "http://localhost:9001/3.0/users/76"}], - "http_etag": "\"18d3b2b1ee0409ad7423a534dccd15efa6345496\"", "start": 0, "total_size": + "\"7745226a1570da68fbd0886194fbc3a2ebe1f664\"", "list_id": "foo.example.com", + "member_id": 39, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/39", "user": "http://localhost:9001/3.0/users/38"}], + "http_etag": "\"d0c7f4988bbd537beb5593585270899adaa1a7e7\"", "start": 0, "total_size": 1}'} headers: content-length: ['498'] @@ -437,23 +437,75 @@ 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", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"5f3abddc18b5d77b60bd55b31f7b84d5399becf7\"", + "list_id": "foo.example.com", "member_id": 38, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/38", "user": + "http://localhost:9001/3.0/users/37"}], "http_etag": "\"3b74d3e147c9a68b2078e2f0dd7ae447dccdebd5\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['486'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"7745226a1570da68fbd0886194fbc3a2ebe1f664\"", "list_id": "foo.example.com", + "member_id": 39, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/39", "user": "http://localhost:9001/3.0/users/38"}], + "http_etag": "\"d0c7f4988bbd537beb5593585270899adaa1a7e7\"", "start": 0, "total_size": + 1}'} + headers: + content-length: ['498'] + 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": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", - "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": - "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": - 1}'} + "self_link": "http://localhost:9001/3.0/domains/example.com"}, {"description": + "A domain", "http_etag": "\"358c8287c146ffc78ff716e20c820c34a9d727e9\"", "mail_host": + "msapiro.net", "self_link": "http://localhost:9001/3.0/domains/msapiro.net"}], + "http_etag": "\"1917136cfdad0622195e100efdda8f6426f16b47\"", "start": 0, "total_size": + 2}'} headers: - content-length: ['277'] + content-length: ['457'] 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/domains/example.com response: body: {string: !!python/unicode ''} @@ -464,26 +516,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users - response: - body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"135bcc249458348f1154332ff3ef40ec6e11c1af\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/75", "user_id": 75}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"33391283e97aba9adb14b967d9f9f20b9c753a07\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/76", - "user_id": 76}], "http_etag": "\"8f80114522f0b4696ffc7efa0ad6364f6753ee70\"", - "start": 0, "total_size": 2}'} - headers: - content-length: ['487'] - 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/75 + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/domains/msapiro.net response: body: {string: !!python/unicode ''} headers: @@ -493,8 +527,50 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/76 + 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": "\"ac340829f7769de8826d5096491b69aabe732430\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/36", "user_id": 36}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"746af64fb3c343d4cbe089a4b44d52e65fa99133\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/37", + "user_id": 37}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"54d21bebe42e4c00bce51a7839dfb0bb7a74e22e\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/38", + "user_id": 38}], "http_etag": "\"edc5927bb16c58fbe21c62ded9ce68971a25fb0a\"", + "start": 0, "total_size": 3}'} + headers: + content-length: ['679'] + 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/36 + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/37 + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/users/38 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/views/list.py b/src/postorius/views/list.py index 254253f..ecc55d9 100644 --- a/src/postorius/views/list.py +++ b/src/postorius/views/list.py @@ -44,7 +44,8 @@ ListSubscriptionPolicyForm, ArchiveSettingsForm, MessageAcceptanceForm, DigestSettingsForm, AlterMessagesForm, ListAutomaticResponsesForm, ListIdentityForm, ListMassSubscription, ListMassRemoval, ListAddBanForm, - ListHeaderMatchForm, ListHeaderMatchFormset, MemberModeration) + ListHeaderMatchForm, ListHeaderMatchFormset, MemberModeration, + DMARCMitigationsForm) from postorius.models import Domain, List, MailmanApiError, Mailman404Error from postorius.auth.decorators import ( list_owner_required, list_moderator_required, superuser_required) @@ -649,6 +650,7 @@ ('list_identity', _('List Identity')), ('automatic_responses', _('Automatic Responses')), ('alter_messages', _('Alter Messages')), + ('dmarc_mitigations', _('DMARC Mitigations')), ('digest', _('Digest')), ('message_acceptance', _('Message Acceptance')), ('archiving', _('Archiving')), @@ -659,6 +661,7 @@ 'list_identity': ListIdentityForm, 'automatic_responses': ListAutomaticResponsesForm, 'alter_messages': AlterMessagesForm, + 'dmarc_mitigations': DMARCMitigationsForm, 'digest': DigestSettingsForm, 'message_acceptance': MessageAcceptanceForm, 'archiving': ArchiveSettingsForm,