diff --git a/src/postorius/templates/postorius/lists/metrics.html b/src/postorius/templates/postorius/lists/metrics.html deleted file mode 100644 index c42e6ae..0000000 --- a/src/postorius/templates/postorius/lists/metrics.html +++ /dev/null @@ -1,34 +0,0 @@ -{% extends postorius_base_template %} -{% load i18n %} - -{% block subtitle %} -{% trans "List Metrics | " as page_title %}{{ page_title|add:list.fqdn_listname }} -{% endblock %} - -{% load nav_helpers %} - -{% block main %} - {% list_nav 'list_metrics' 'Metrics' %} - - - - - - - - - - - - - - - - - - - - -
{% trans 'Created at' %}{{list.settings.created_at}}
{% trans 'Last post at' %}{{list.settings.last_post_at}}
{% trans 'Digest last sent at' %}{{list.settings.digest_last_sent_at}}
{% trans 'Volume' %}{{list.settings.volume}}
- -{% endblock main %} diff --git a/src/postorius/templates/postorius/lists/summary.html b/src/postorius/templates/postorius/lists/summary.html index 0551ede..3fbd1a0 100644 --- a/src/postorius/templates/postorius/lists/summary.html +++ b/src/postorius/templates/postorius/lists/summary.html @@ -32,6 +32,32 @@
{% trans 'To contact the list owners, use the following email address:' %}
{{ list.settings.owner_address }}
+ + {% if user.is_authenticated %} + {% if user.is_list_owner or user.is_superuser %} +

{% trans 'List Metrics' %}

+ + + + + + + + + + + + + + + + + + + +
{% trans 'Created at' %}{{list.settings.created_at}}
{% trans 'Last post at' %}{{list.settings.last_post_at}}
{% trans 'Digest last sent at' %}{{list.settings.digest_last_sent_at}}
{% trans 'Volume' %}{{list.settings.volume}}
+ {% endif %} + {% endif %} diff --git a/src/postorius/tests/fixtures/vcr_cassettes/archival_options.yaml b/src/postorius/tests/fixtures/vcr_cassettes/archival_options.yaml index 0acf7b8..0715abb 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/archival_options.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/archival_options.yaml @@ -3,8 +3,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -16,7 +16,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -31,7 +31,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -46,8 +46,8 @@ body: fqdn_listname=test_list%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -59,7 +59,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": @@ -75,20 +75,20 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers response: - body: {string: !!python/unicode '{"http_etag": "\"dfd159ec866aff2f484eb6399b59057ba112d3e5\"", - "mail-archive": true, "mhonarc": true, "prototype": false}'} + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: - content-length: ['120'] + content-length: ['119'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": @@ -104,7 +104,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/test_list@example.com response: body: {string: !!python/unicode ''} diff --git a/src/postorius/tests/fixtures/vcr_cassettes/list_members_access.yaml b/src/postorius/tests/fixtures/vcr_cassettes/list_members_access.yaml index a98869c..acfffd3 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/list_members_access.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/list_members_access.yaml @@ -3,8 +3,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -16,7 +16,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -31,7 +31,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -46,8 +46,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -59,7 +59,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -71,36 +71,36 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: role=owner&list_id=foo.example.com&subscriber=owner%40example.com + body: subscriber=owner%40example.com&role=owner&list_id=foo.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/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/3'] + location: ['http://localhost:9001/3.0/members/1062'] status: {code: 201, message: Created} - request: - body: role=moderator&list_id=foo.example.com&subscriber=moderator%40example.com + body: subscriber=moderator%40example.com&role=moderator&list_id=foo.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/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/4'] + location: ['http://localhost:9001/3.0/members/1063'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} @@ -111,8 +111,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -124,7 +124,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -139,7 +139,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -154,8 +154,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -167,7 +167,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -179,36 +179,36 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: role=owner&list_id=foo.example.com&subscriber=owner%40example.com + body: subscriber=owner%40example.com&role=owner&list_id=foo.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/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/5'] + location: ['http://localhost:9001/3.0/members/1064'] status: {code: 201, message: Created} - request: - body: role=moderator&list_id=foo.example.com&subscriber=moderator%40example.com + body: subscriber=moderator%40example.com&role=moderator&list_id=foo.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/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/6'] + location: ['http://localhost:9001/3.0/members/1065'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} @@ -219,8 +219,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -232,7 +232,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -247,7 +247,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -262,8 +262,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -275,7 +275,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -287,36 +287,36 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: role=owner&list_id=foo.example.com&subscriber=owner%40example.com + body: subscriber=owner%40example.com&role=owner&list_id=foo.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/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/7'] + location: ['http://localhost:9001/3.0/members/1066'] status: {code: 201, message: Created} - request: - body: role=moderator&list_id=foo.example.com&subscriber=moderator%40example.com + body: subscriber=moderator%40example.com&role=moderator&list_id=foo.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/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/8'] + location: ['http://localhost:9001/3.0/members/1067'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} @@ -327,8 +327,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -340,7 +340,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -355,7 +355,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -370,8 +370,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -383,7 +383,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -395,36 +395,36 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: role=owner&list_id=foo.example.com&subscriber=owner%40example.com + body: subscriber=owner%40example.com&role=owner&list_id=foo.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/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/9'] + location: ['http://localhost:9001/3.0/members/1068'] status: {code: 201, message: Created} - request: - body: role=moderator&list_id=foo.example.com&subscriber=moderator%40example.com + body: subscriber=moderator%40example.com&role=moderator&list_id=foo.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/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/10'] + location: ['http://localhost:9001/3.0/members/1069'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -439,10 +439,10 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '404 Not Found'} + body: {string: !!python/unicode 404 Not Found} headers: content-length: ['13'] content-type: [application/json; charset=utf-8] @@ -451,41 +451,41 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"59d5e8296eb69536fce594ae50bfd1665a5ddf5b\"", - "list_id": "foo.example.com", "member_id": 9, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/9", "user": "http://localhost:9001/3.0/users/3"}], - "http_etag": "\"8f28e897cbe50c5a4cc72ed33dbf5c42633a0a75\"", "start": 0, "total_size": + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"2e2caefd97aec00836f21b3ba6233dbde0652443\"", + "list_id": "foo.example.com", "member_id": 1068, "role": "owner", "self_link": + "http://localhost:9001/3.0/members/1068", "user": "http://localhost:9001/3.0/users/721"}], + "http_etag": "\"b7bac46940cd4396c235766b4e0965a5565567e4\"", "start": 0, "total_size": 1}'} headers: - content-length: ['452'] + content-length: ['460'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/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": - "\"ceeeb15a5f8a6006ddf4e41e59b4ba3db184dde2\"", "list_id": "foo.example.com", - "member_id": 10, "role": "moderator", "self_link": "http://localhost:9001/3.0/members/10", - "user": "http://localhost:9001/3.0/users/4"}], "http_etag": "\"f52eca4135786bd79c2f8a533b8ca0e17253eaef\"", + "\"9a9d1568f1cca82aceb8ac008100e82b50b53a2b\"", "list_id": "foo.example.com", + "member_id": 1069, "role": "moderator", "self_link": "http://localhost:9001/3.0/members/1069", + "user": "http://localhost:9001/3.0/users/722"}], "http_etag": "\"fd63413c7ef0962da0a1b1727d5aa2597f5583a6\"", "start": 0, "total_size": 1}'} headers: - content-length: ['466'] + content-length: ['472'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} @@ -496,8 +496,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -509,7 +509,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -524,7 +524,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -539,8 +539,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -552,7 +552,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", @@ -564,36 +564,36 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: role=owner&list_id=foo.example.com&subscriber=owner%40example.com + body: subscriber=owner%40example.com&role=owner&list_id=foo.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/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/11'] + location: ['http://localhost:9001/3.0/members/1070'] status: {code: 201, message: Created} - request: - body: role=moderator&list_id=foo.example.com&subscriber=moderator%40example.com + body: subscriber=moderator%40example.com&role=moderator&list_id=foo.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/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/12'] + location: ['http://localhost:9001/3.0/members/1071'] 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", @@ -608,7 +608,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} diff --git a/src/postorius/tests/fixtures/vcr_cassettes/list_members_page.yaml b/src/postorius/tests/fixtures/vcr_cassettes/list_members_page.yaml index ba10623..31e28a9 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/list_members_page.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/list_members_page.yaml @@ -3,7 +3,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -18,87 +18,87 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users/moderator@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"c1dcbf16536eb2e2151441f4bce2989ab1dab30b\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/4", "user_id": 4}'} + "\"f0f06a596368f3735b71d2d3a267630745581782\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/722", "user_id": 722}'} headers: - content-length: ['188'] + content-length: ['192'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/4/addresses + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/722/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "moderator@example.com", - "http_etag": "\"ba611cc4c3b0e81985dd5c0a30f4d1982655080d\"", "original_email": + "http_etag": "\"c6a4869dbb94a88186408cd2e9f33a08a8197fc9\"", "original_email": "moderator@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": - "http://localhost:9001/3.0/addresses/moderator@example.com", "user": "http://localhost:9001/3.0/users/4"}], - "http_etag": "\"e2bc3f4fb43fd53e3a100811566a55c726b03899\"", "start": 0, "total_size": + "http://localhost:9001/3.0/addresses/moderator@example.com", "user": "http://localhost:9001/3.0/users/722"}], + "http_etag": "\"3165fbeebcf28809e7c3b681174aa52ae7008aaf\"", "start": 0, "total_size": 1}'} headers: - content-length: ['402'] + content-length: ['404'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/moderator@example.com response: body: {string: !!python/unicode '{"email": "moderator@example.com", "http_etag": - "\"ba611cc4c3b0e81985dd5c0a30f4d1982655080d\"", "original_email": "moderator@example.com", + "\"c6a4869dbb94a88186408cd2e9f33a08a8197fc9\"", "original_email": "moderator@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/moderator@example.com", - "user": "http://localhost:9001/3.0/users/4"}'} + "user": "http://localhost:9001/3.0/users/722"}'} headers: - content-length: ['297'] + content-length: ['299'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"f6d2dffce29565ab02ba58a26b9c649089723455\"", - "list_id": "foo.example.com", "member_id": 3, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/3", "user": "http://localhost:9001/3.0/users/3"}], - "http_etag": "\"05d3104622b0b3cd967b0fa7061ec2d0d52d7705\"", "start": 0, "total_size": + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"434be7154b2958907148bfe9a94777b813220f0a\"", + "list_id": "foo.example.com", "member_id": 1062, "role": "owner", "self_link": + "http://localhost:9001/3.0/members/1062", "user": "http://localhost:9001/3.0/users/721"}], + "http_etag": "\"de782d5fff7aa3120557f7634f4520c0a1d35fa6\"", "start": 0, "total_size": 1}'} headers: - content-length: ['452'] + content-length: ['460'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/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": - "\"e69aaaa35af65b808b239d8ccaaeff77d8862340\"", "list_id": "foo.example.com", - "member_id": 4, "role": "moderator", "self_link": "http://localhost:9001/3.0/members/4", - "user": "http://localhost:9001/3.0/users/4"}], "http_etag": "\"cd19b172cbfcb5674e685edaca042533f728dfae\"", + "\"07f792647bb5ba09b7c0b0893268d49e4f366e51\"", "list_id": "foo.example.com", + "member_id": 1063, "role": "moderator", "self_link": "http://localhost:9001/3.0/members/1063", + "user": "http://localhost:9001/3.0/users/722"}], "http_etag": "\"c809c06988c88cd46c60eae4823070f5043a7934\"", "start": 0, "total_size": 1}'} headers: - content-length: ['464'] + content-length: ['472'] 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", @@ -113,86 +113,86 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"bb1c2e6094a96b17e2d5dbf487291f7667f69f75\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/3", "user_id": 3}'} + "\"f206325454526c0a6fdc5973a6347af757e9210e\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/721", "user_id": 721}'} headers: - content-length: ['188'] + content-length: ['192'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/3/addresses + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/721/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"9b7e4ba7721338ab16619f69a74fdf6b7921c289\"", "original_email": "owner@example.com", + "\"a4461ee2fa89e7ad435613eec55609b343f456af\"", "original_email": "owner@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/owner@example.com", - "user": "http://localhost:9001/3.0/users/3"}], "http_etag": "\"b217d5409fbf8befcb8c31825a74e70470e5f5a2\"", + "user": "http://localhost:9001/3.0/users/721"}], "http_etag": "\"6314318bdc10678ff38b184ceacb6579cfd1ab57\"", "start": 0, "total_size": 1}'} headers: - content-length: ['390'] + content-length: ['392'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/owner@example.com response: - body: {string: !!python/unicode '{"email": "owner@example.com", "http_etag": "\"9b7e4ba7721338ab16619f69a74fdf6b7921c289\"", + body: {string: !!python/unicode '{"email": "owner@example.com", "http_etag": "\"a4461ee2fa89e7ad435613eec55609b343f456af\"", "original_email": "owner@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/owner@example.com", "user": - "http://localhost:9001/3.0/users/3"}'} + "http://localhost:9001/3.0/users/721"}'} headers: - content-length: ['285'] + content-length: ['287'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"1786fc718a465f2377ceb5cbba78c32b2635ec58\"", - "list_id": "foo.example.com", "member_id": 5, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/5", "user": "http://localhost:9001/3.0/users/3"}], - "http_etag": "\"8c621bcf03467c9ac2bbac2d8fc7c0f0e1fa3815\"", "start": 0, "total_size": + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"56afc31ca548fc3e56bceaed587e71fd702aa5a4\"", + "list_id": "foo.example.com", "member_id": 1064, "role": "owner", "self_link": + "http://localhost:9001/3.0/members/1064", "user": "http://localhost:9001/3.0/users/721"}], + "http_etag": "\"60caf9ca79c993abc8e9eaabec3656ee56a105e0\"", "start": 0, "total_size": 1}'} headers: - content-length: ['452'] + content-length: ['460'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/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": - "\"d925ce139c90b7f55886909ecdd2923ffbc46033\"", "list_id": "foo.example.com", - "member_id": 6, "role": "moderator", "self_link": "http://localhost:9001/3.0/members/6", - "user": "http://localhost:9001/3.0/users/4"}], "http_etag": "\"26e954439f2dc9045d5584731b2f00abb9fab07f\"", + "\"93a1fefd02bb3f34878729964be9e8459e011483\"", "list_id": "foo.example.com", + "member_id": 1065, "role": "moderator", "self_link": "http://localhost:9001/3.0/members/1065", + "user": "http://localhost:9001/3.0/users/722"}], "http_etag": "\"aa1f7831b6026bf145ac0090abec10508c947635\"", "start": 0, "total_size": 1}'} headers: - content-length: ['464'] + content-length: ['472'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=1&page=1 response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -205,7 +205,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=25&page=1 response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -218,41 +218,41 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"1786fc718a465f2377ceb5cbba78c32b2635ec58\"", - "list_id": "foo.example.com", "member_id": 5, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/5", "user": "http://localhost:9001/3.0/users/3"}], - "http_etag": "\"8c621bcf03467c9ac2bbac2d8fc7c0f0e1fa3815\"", "start": 0, "total_size": + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"56afc31ca548fc3e56bceaed587e71fd702aa5a4\"", + "list_id": "foo.example.com", "member_id": 1064, "role": "owner", "self_link": + "http://localhost:9001/3.0/members/1064", "user": "http://localhost:9001/3.0/users/721"}], + "http_etag": "\"60caf9ca79c993abc8e9eaabec3656ee56a105e0\"", "start": 0, "total_size": 1}'} headers: - content-length: ['452'] + content-length: ['460'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/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": - "\"d925ce139c90b7f55886909ecdd2923ffbc46033\"", "list_id": "foo.example.com", - "member_id": 6, "role": "moderator", "self_link": "http://localhost:9001/3.0/members/6", - "user": "http://localhost:9001/3.0/users/4"}], "http_etag": "\"26e954439f2dc9045d5584731b2f00abb9fab07f\"", + "\"93a1fefd02bb3f34878729964be9e8459e011483\"", "list_id": "foo.example.com", + "member_id": 1065, "role": "moderator", "self_link": "http://localhost:9001/3.0/members/1065", + "user": "http://localhost:9001/3.0/users/722"}], "http_etag": "\"aa1f7831b6026bf145ac0090abec10508c947635\"", "start": 0, "total_size": 1}'} headers: - content-length: ['464'] + content-length: ['472'] 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", @@ -267,53 +267,86 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users/su@example.com response: - body: {string: !!python/unicode '404 Not Found'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"f3ae14975cc188a94c91842fc7474da4c2f8b1dd\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/718", "user_id": 718}'} headers: - content-length: ['13'] - content-type: [application/json; charset=utf-8] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner - response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"c0b03e505d3d6d96c2c01834e83180c13abefadc\"", - "list_id": "foo.example.com", "member_id": 7, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/7", "user": "http://localhost:9001/3.0/users/3"}], - "http_etag": "\"f8b2068bb17c42b3e9544a6fb79e0adf29b93190\"", "start": 0, "total_size": - 1}'} - headers: - content-length: ['452'] + content-length: ['192'] 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/users/718/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag": + "\"f3c90224dfc2b451d7ce91be4f12d72b1d25822b\"", "original_email": "su@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", + "user": "http://localhost:9001/3.0/users/718"}], "http_etag": "\"bdc70f878525ca6c9a5cccc82a4e3f9a008dc77a\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['383'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/addresses/su@example.com + response: + body: {string: !!python/unicode '{"email": "su@example.com", "http_etag": "\"f3c90224dfc2b451d7ce91be4f12d72b1d25822b\"", + "original_email": "su@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/su@example.com", "user": + "http://localhost:9001/3.0/users/718"}'} + headers: + content-length: ['278'] + 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": "\"1d4af4945aafefe7e5d34a913e3d5bdcde6c472a\"", + "list_id": "foo.example.com", "member_id": 1066, "role": "owner", "self_link": + "http://localhost:9001/3.0/members/1066", "user": "http://localhost:9001/3.0/users/721"}], + "http_etag": "\"f89ab4265b4ef2989a3a2b2d51a72e3c74e1ecc3\"", "start": 0, "total_size": + 1}'} + headers: + content-length: ['460'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET 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": - "\"dc9d6af9c1b062fb008b046269953e387d3cfd0f\"", "list_id": "foo.example.com", - "member_id": 8, "role": "moderator", "self_link": "http://localhost:9001/3.0/members/8", - "user": "http://localhost:9001/3.0/users/4"}], "http_etag": "\"ac4902a25fc1d51f844f1c5844e20c5ab4986294\"", + "\"8d32135df22827d0d16cc457dd969fb5fa63a1c8\"", "list_id": "foo.example.com", + "member_id": 1067, "role": "moderator", "self_link": "http://localhost:9001/3.0/members/1067", + "user": "http://localhost:9001/3.0/users/722"}], "http_etag": "\"76d3f79bec07dab0f7f6ee4faec636f104e3ab1c\"", "start": 0, "total_size": 1}'} headers: - content-length: ['464'] + content-length: ['472'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=1&page=1 response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -326,7 +359,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=25&page=1 response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -339,34 +372,34 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"c0b03e505d3d6d96c2c01834e83180c13abefadc\"", - "list_id": "foo.example.com", "member_id": 7, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/7", "user": "http://localhost:9001/3.0/users/3"}], - "http_etag": "\"f8b2068bb17c42b3e9544a6fb79e0adf29b93190\"", "start": 0, "total_size": + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"1d4af4945aafefe7e5d34a913e3d5bdcde6c472a\"", + "list_id": "foo.example.com", "member_id": 1066, "role": "owner", "self_link": + "http://localhost:9001/3.0/members/1066", "user": "http://localhost:9001/3.0/users/721"}], + "http_etag": "\"f89ab4265b4ef2989a3a2b2d51a72e3c74e1ecc3\"", "start": 0, "total_size": 1}'} headers: - content-length: ['452'] + content-length: ['460'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/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": - "\"dc9d6af9c1b062fb008b046269953e387d3cfd0f\"", "list_id": "foo.example.com", - "member_id": 8, "role": "moderator", "self_link": "http://localhost:9001/3.0/members/8", - "user": "http://localhost:9001/3.0/users/4"}], "http_etag": "\"ac4902a25fc1d51f844f1c5844e20c5ab4986294\"", + "\"8d32135df22827d0d16cc457dd969fb5fa63a1c8\"", "list_id": "foo.example.com", + "member_id": 1067, "role": "moderator", "self_link": "http://localhost:9001/3.0/members/1067", + "user": "http://localhost:9001/3.0/users/722"}], "http_etag": "\"76d3f79bec07dab0f7f6ee4faec636f104e3ab1c\"", "start": 0, "total_size": 1}'} headers: - content-length: ['464'] + content-length: ['472'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_change_subscription-2.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_change_subscription-2.yaml index 7e34ae9..0fc466f 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_change_subscription-2.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_change_subscription-2.yaml @@ -3,7 +3,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -15,15 +15,15 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: display_name=None&subscriber=test%40example.com&list_id=foo.example.com + body: subscriber=test%40example.com&display_name=None&list_id=foo.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/members response: - body: {string: !!python/unicode '{"http_etag": "\"303797ed3a8ac42974b07de6044c1a1368ca2c4f\"", - "token": "084f92b292bd4d5eff20dc24692685852ca66bf2", "token_owner": "subscriber"}'} + body: {string: !!python/unicode '{"http_etag": "\"89e239d266b1828bfc170ffeb73dd2eb71795646\"", + "token": "006b54a8299bc2d8cbb45f2455b9d57c366dbf6b", "token_owner": "subscriber"}'} headers: content-length: ['143'] content-type: [application/json; charset=utf-8] @@ -32,23 +32,23 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "display_name": - "None", "http_etag": "\"0b279530a26f451f002e7274f6182ec4f7b10218\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/15", "user_id": 15}'} + "None", "http_etag": "\"41efc9e9766b57122fcfc47a7f238f992794c501\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/732", "user_id": 732}'} headers: - content-length: ['214'] + content-length: ['216'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: email=anotheremail%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/users/15/addresses + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/users/732/addresses response: body: {string: !!python/unicode ''} headers: @@ -59,7 +59,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'POST' + method: !!python/unicode POST uri: http://localhost:9001/3.0/addresses/anotheremail@example.com/verify response: body: {string: !!python/unicode ''} @@ -70,7 +70,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -85,71 +85,71 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "display_name": - "None", "http_etag": "\"0b279530a26f451f002e7274f6182ec4f7b10218\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/15", "user_id": 15}'} + "None", "http_etag": "\"41efc9e9766b57122fcfc47a7f238f992794c501\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/732", "user_id": 732}'} headers: - content-length: ['214'] + content-length: ['216'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/15/addresses + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/732/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "anotheremail@example.com", - "http_etag": "\"d652d3593551672385cb4c02a31cf9401c4134e7\"", "original_email": + "http_etag": "\"7156d8ec3024db9741530e1efc4fead0ccdb47f4\"", "original_email": "anotheremail@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": - "http://localhost:9001/3.0/addresses/anotheremail@example.com", "user": "http://localhost:9001/3.0/users/15", + "http://localhost:9001/3.0/addresses/anotheremail@example.com", "user": "http://localhost:9001/3.0/users/732", "verified_on": "2005-08-01T07:49:23"}, {"display_name": "None", "email": "test@example.com", - "http_etag": "\"4eaecf52f78464d20b516333704c6a7950b94d8a\"", "original_email": + "http_etag": "\"11dd5a3e6f450a0d39ff0171ae7e2397e5cfd02e\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "user": "http://localhost:9001/3.0/users/15"}], "http_etag": "\"9d65f1333e146976f2ffc9a218437cf2eec344a3\"", + "user": "http://localhost:9001/3.0/users/732"}], "http_etag": "\"8574ca48f5ee3221235cb194fdfc4e58b94f84b1\"", "start": 0, "total_size": 2}'} headers: - content-length: ['759'] + content-length: ['761'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/anotheremail@example.com response: body: {string: !!python/unicode '{"email": "anotheremail@example.com", "http_etag": - "\"d652d3593551672385cb4c02a31cf9401c4134e7\"", "original_email": "anotheremail@example.com", + "\"7156d8ec3024db9741530e1efc4fead0ccdb47f4\"", "original_email": "anotheremail@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/anotheremail@example.com", - "user": "http://localhost:9001/3.0/users/15", "verified_on": "2005-08-01T07:49:23"}'} + "user": "http://localhost:9001/3.0/users/732", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['345'] + content-length: ['346'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/test@example.com response: body: {string: !!python/unicode '{"display_name": "None", "email": "test@example.com", - "http_etag": "\"4eaecf52f78464d20b516333704c6a7950b94d8a\"", "original_email": + "http_etag": "\"11dd5a3e6f450a0d39ff0171ae7e2397e5cfd02e\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "user": "http://localhost:9001/3.0/users/15"}'} + "user": "http://localhost:9001/3.0/users/732"}'} headers: - content-length: ['307'] + content-length: ['308'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -162,7 +162,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -175,7 +175,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com response: body: {string: !!python/unicode '{}'} @@ -187,7 +187,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/member/anotheremail@example.com response: body: {string: !!python/unicode '{}'} @@ -199,7 +199,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_change_subscription.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_change_subscription.yaml index fe9dfaa..0113046 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_change_subscription.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_change_subscription.yaml @@ -3,7 +3,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -15,23 +15,23 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: pre_confirmed=True&pre_verified=True&display_name=None&subscriber=test%40example.com&list_id=foo.example.com + body: subscriber=test%40example.com&pre_confirmed=True&pre_verified=True&display_name=None&list_id=foo.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/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/15'] + location: ['http://localhost:9001/3.0/members/1073'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -46,54 +46,54 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "display_name": - "None", "http_etag": "\"7966e6f59bfd84a47cf7558bdc7cda9e70d9bc95\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/10", "user_id": 10}'} + "None", "http_etag": "\"2e7ffc36f680e19d93e21c7c7992d6cb1e6351b6\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/725", "user_id": 725}'} headers: - content-length: ['214'] + content-length: ['216'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/10/addresses + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/725/addresses response: body: {string: !!python/unicode '{"entries": [{"display_name": "None", "email": - "test@example.com", "http_etag": "\"8deb0780609569a4e1c32d76b4644572a59b8d40\"", + "test@example.com", "http_etag": "\"95168435f4958d498685533cd0a9aea118579ef2\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/10", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"721f23f3bed1a7bb0089c9b4bd470159d96ad0a2\"", "start": 0, "total_size": + "http://localhost:9001/3.0/users/725", "verified_on": "2005-08-01T07:49:23"}], + "http_etag": "\"b9774637c895ed8a2307e5ddb6e9591d7c655cae\"", "start": 0, "total_size": 1}'} headers: - content-length: ['450'] + content-length: ['451'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/test@example.com response: body: {string: !!python/unicode '{"display_name": "None", "email": "test@example.com", - "http_etag": "\"8deb0780609569a4e1c32d76b4644572a59b8d40\"", "original_email": + "http_etag": "\"95168435f4958d498685533cd0a9aea118579ef2\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "user": "http://localhost:9001/3.0/users/10", "verified_on": "2005-08-01T07:49:23"}'} + "user": "http://localhost:9001/3.0/users/725", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['345'] + content-length: ['346'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -106,7 +106,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -119,22 +119,22 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com response: body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/test@example.com", - "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"900f1773b273f5fb79c8ae8aa15e900b46ad236e\"", - "list_id": "foo.example.com", "member_id": 15, "role": "member", "self_link": - "http://localhost:9001/3.0/members/15", "user": "http://localhost:9001/3.0/users/10"}'} + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"5d6b189413a7b3618ffa8942edcf5cc83a855f51\"", + "list_id": "foo.example.com", "member_id": 1073, "role": "member", "self_link": + "http://localhost:9001/3.0/members/1073", "user": "http://localhost:9001/3.0/users/725"}'} headers: - content-length: ['349'] + content-length: ['354'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_archival_options.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_archival_options.yaml index 9d5de35..99d2901 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_archival_options.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_archival_options.yaml @@ -3,105 +3,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/domains - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/domains/example.com'] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} - headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: fqdn_listname=test_list%40example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/lists/test_list.example.com'] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/test_list.example.com - response: - body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": - "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1}'} - headers: - content-length: ['324'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers - response: - body: {string: !!python/unicode '{"http_etag": "\"dfd159ec866aff2f484eb6399b59057ba112d3e5\"", - "mail-archive": true, "mhonarc": true, "prototype": false}'} - headers: - content-length: ['120'] - 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/test_list.example.com - response: - body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": - "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1}'} - headers: - content-length: ['324'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/lists/test_list@example.com - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: mail_host=example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -113,7 +16,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -128,7 +31,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -143,8 +46,8 @@ body: fqdn_listname=test_list%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -156,7 +59,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": @@ -172,20 +75,20 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers response: - body: {string: !!python/unicode '{"http_etag": "\"dfd159ec866aff2f484eb6399b59057ba112d3e5\"", - "mail-archive": true, "mhonarc": true, "prototype": false}'} + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: - content-length: ['120'] + content-length: ['119'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": @@ -201,7 +104,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/test_list@example.com response: body: {string: !!python/unicode ''} @@ -212,8 +115,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -225,7 +128,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -240,7 +143,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -255,8 +158,8 @@ body: fqdn_listname=test_list%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -268,7 +171,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": @@ -284,20 +187,132 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers response: - body: {string: !!python/unicode '{"http_etag": "\"dfd159ec866aff2f484eb6399b59057ba112d3e5\"", - "mail-archive": true, "mhonarc": true, "prototype": false}'} + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: - content-length: ['120'] + content-length: ['119'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/test_list.example.com + response: + body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": + "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", + "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", + "volume": 1}'} + headers: + content-length: ['324'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/lists/test_list@example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode 'Duplicate email host: example.com'} + headers: + content-length: ['33'] + content-type: [application/json; charset=utf-8] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} + headers: + content-length: ['233'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} + headers: + content-length: ['233'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=test_list%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/lists/test_list.example.com'] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/test_list.example.com + response: + body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": + "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", + "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", + "volume": 1}'} + headers: + content-length: ['324'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers + response: + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} + headers: + content-length: ['119'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/test_list@example.com response: body: {string: !!python/unicode ''} diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_archival_options_disable_archiver.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_archival_options_disable_archiver.yaml index 17fc64a..0fe100f 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_archival_options_disable_archiver.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_archival_options_disable_archiver.yaml @@ -3,7 +3,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": @@ -19,63 +19,51 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers response: - body: {string: !!python/unicode '{"http_etag": "\"dfd159ec866aff2f484eb6399b59057ba112d3e5\"", - "mail-archive": true, "mhonarc": true, "prototype": false}'} + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} + headers: + content-length: ['119'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: mail-archive=False&prototype=True&mhonarc=True + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode PUT + uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers + response: + body: {string: !!python/unicode '{"http_etag": "\"9f3e82fa9d7dc70277565c9703a90ad3fbeb9a03\"", + "mail-archive": false, "mhonarc": true, "prototype": true}'} headers: content-length: ['120'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: prototype=True&mail-archive=True&mhonarc=True - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'PUT' - uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: prototype=True&mail-archive=False&mhonarc=True - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'PUT' - uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers response: - body: {string: !!python/unicode '{"http_etag": "\"95f97f6e3c57d856b8048a96844ddc64a972f96d\"", - "mail-archive": false, "mhonarc": true, "prototype": false}'} + body: {string: !!python/unicode '{"http_etag": "\"9f3e82fa9d7dc70277565c9703a90ad3fbeb9a03\"", + "mail-archive": false, "mhonarc": true, "prototype": true}'} headers: - content-length: ['121'] - 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/test_list.example.com/archivers - response: - body: {string: !!python/unicode '{"http_etag": "\"95f97f6e3c57d856b8048a96844ddc64a972f96d\"", - "mail-archive": false, "mhonarc": true, "prototype": false}'} - headers: - content-length: ['121'] + content-length: ['120'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_archival_options_enable_archiver.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_archival_options_enable_archiver.yaml index 6c70652..ce832d4 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_archival_options_enable_archiver.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_archival_options_enable_archiver.yaml @@ -3,7 +3,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": @@ -19,21 +19,21 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers response: - body: {string: !!python/unicode '{"http_etag": "\"95f97f6e3c57d856b8048a96844ddc64a972f96d\"", - "mail-archive": false, "mhonarc": true, "prototype": false}'} + body: {string: !!python/unicode '{"http_etag": "\"9f3e82fa9d7dc70277565c9703a90ad3fbeb9a03\"", + "mail-archive": false, "mhonarc": true, "prototype": true}'} headers: - content-length: ['121'] + content-length: ['120'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: prototype=False&mail-archive=True&mhonarc=True + body: mail-archive=True&prototype=True&mhonarc=True headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'PUT' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode PUT uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers response: body: {string: !!python/unicode ''} @@ -41,11 +41,23 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: prototype=False&mail-archive=True&mhonarc=False + body: mail-archive=True&prototype=False&mhonarc=True headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'PUT' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode PUT + uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: mail-archive=True&prototype=False&mhonarc=False + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode PUT uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers response: body: {string: !!python/unicode ''} @@ -56,7 +68,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers response: body: {string: !!python/unicode '{"http_etag": "\"de68e13c430d856461d2b39a5b5d5286d91528bc\"", @@ -69,7 +81,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers response: body: {string: !!python/unicode '{"http_etag": "\"de68e13c430d856461d2b39a5b5d5286d91528bc\"", diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_creation.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_creation.yaml index 006de91..827a883 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_creation.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_creation.yaml @@ -3,8 +3,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -16,7 +16,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -31,7 +31,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", @@ -47,7 +47,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -62,7 +62,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -77,7 +77,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -92,8 +92,8 @@ body: fqdn_listname=a_new_list%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -105,7 +105,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/a_new_list.example.com response: body: {string: !!python/unicode '{"display_name": "A_new_list", "fqdn_listname": @@ -118,23 +118,23 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: role=owner&list_id=a_new_list.example.com&subscriber=owner%40example.com + body: subscriber=owner%40example.com&role=owner&list_id=a_new_list.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/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/20'] + location: ['http://localhost:9001/3.0/members/1072'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/a_new_list@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -163,11 +163,11 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: anonymous_list=False&autorespond_postings=none&display_name=A_new_list&admin_immed_notify=True&convert_html_to_plaintext=False&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&default_member_action=defer&digest_size_threshold=30.0&default_nonmember_action=hold&subscription_policy=confirm&first_strip_reply_to=False&collapse_alternatives=True&admin_notify_mchanges=False&autorespond_owner=none&include_rfc2369_headers=True&autoresponse_postings_text=&reply_to_address=&autoresponse_request_text=&autoresponse_grace_period=90d&filter_content=False&description=A+new+list.&administrivia=True&archive_policy=public&posting_pipeline=default-posting-pipeline&autoresponse_owner_text=&reply_goes_to_list=no_munging&subject_prefix=%5BA_new_list%5D+&advertised=True&allow_list_posts=True&autorespond_requests=none&send_welcome_message=True + body: anonymous_list=False&allow_list_posts=True&advertised=True&description=A+new+list.&digest_size_threshold=30.0&autorespond_postings=none&send_welcome_message=True&autoresponse_postings_text=&autorespond_owner=none&include_rfc2369_headers=True&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&collapse_alternatives=True&filter_content=False&first_strip_reply_to=False&reply_to_address=&display_name=A_new_list&posting_pipeline=default-posting-pipeline&reply_goes_to_list=no_munging&admin_notify_mchanges=False&autoresponse_grace_period=90d&autorespond_requests=none&autoresponse_request_text=&admin_immed_notify=True&subject_prefix=%5BA_new_list%5D+&administrivia=True&convert_html_to_plaintext=False&archive_policy=public&default_nonmember_action=hold&default_member_action=defer&autoresponse_owner_text=&subscription_policy=confirm headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'PATCH' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode PATCH uri: http://localhost:9001/3.0/lists/a_new_list@example.com/config response: body: {string: !!python/unicode ''} @@ -178,7 +178,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/a_new_list@example.com response: body: {string: !!python/unicode '{"display_name": "A_new_list", "fqdn_listname": @@ -194,24 +194,24 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/a_new_list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"f0f6b53233263797d15fac048f7758f2546c3219\"", - "list_id": "a_new_list.example.com", "member_id": 20, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/20", "user": "http://localhost:9001/3.0/users/17"}], - "http_etag": "\"43ba1ca06f474e563470bf17d3d931ac74fff6fa\"", "start": 0, "total_size": + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"ef1299745a1acba735c33ed96962c09c62b36284\"", + "list_id": "a_new_list.example.com", "member_id": 1072, "role": "owner", "self_link": + "http://localhost:9001/3.0/members/1072", "user": "http://localhost:9001/3.0/users/724"}], + "http_etag": "\"9bf5e42c7356ae65e0be758dd843eaf7a6d730e9\"", "start": 0, "total_size": 1}'} headers: - content-length: ['462'] + content-length: ['467'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode '{"entries": [{"display_name": "A_new_list", "fqdn_listname": @@ -228,7 +228,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/a_new_list@example.com response: body: {string: !!python/unicode ''} @@ -239,8 +239,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -252,7 +252,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -267,7 +267,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_index.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_index.yaml index 0242ada..add0422 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_index.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_index.yaml @@ -3,8 +3,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -16,7 +16,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -31,7 +31,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -46,8 +46,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -59,8 +59,8 @@ body: fqdn_listname=bar%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -72,7 +72,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": @@ -93,7 +93,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -124,7 +124,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/bar@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -155,7 +155,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", @@ -171,7 +171,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -186,7 +186,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": @@ -207,7 +207,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} @@ -218,7 +218,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/bar@example.com response: body: {string: !!python/unicode ''} diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_add_moderator.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_add_moderator.yaml index c5d2fd5..7152d70 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_add_moderator.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_add_moderator.yaml @@ -3,8 +3,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -16,7 +16,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -31,7 +31,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -46,8 +46,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -59,7 +59,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -74,10 +74,10 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users/su@example.com response: - body: {string: !!python/unicode '404 Not Found'} + body: {string: !!python/unicode 404 Not Found} headers: content-length: ['13'] content-type: [application/json; charset=utf-8] @@ -86,7 +86,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -99,7 +99,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -109,23 +109,23 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: role=moderator&list_id=foo.example.com&subscriber=newmod%40example.com + body: subscriber=newmod%40example.com&role=moderator&list_id=foo.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/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1'] + location: ['http://localhost:9001/3.0/members/1054'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=1&page=1 response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -138,7 +138,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=25&page=1 response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -151,7 +151,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -164,41 +164,41 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newmod@example.com", - "delivery_mode": "regular", "email": "newmod@example.com", "http_etag": "\"0ac194fc14b8bfc1066b82dc95d43a73f7b044ca\"", - "list_id": "foo.example.com", "member_id": 1, "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/1", "user": "http://localhost:9001/3.0/users/1"}], - "http_etag": "\"b616f26f17d6e33316118a6fdd85848554283784\"", "start": 0, "total_size": + "delivery_mode": "regular", "email": "newmod@example.com", "http_etag": "\"c3fe25f1c9583e2b9a0c66e60cab9d60a8267fc0\"", + "list_id": "foo.example.com", "member_id": 1054, "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/1054", "user": "http://localhost:9001/3.0/users/717"}], + "http_etag": "\"4e44c3bf09967ae365b4fad262ceaccd5a1ce7b4\"", "start": 0, "total_size": 1}'} headers: - content-length: ['458'] + content-length: ['466'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newmod@example.com", - "delivery_mode": "regular", "email": "newmod@example.com", "http_etag": "\"0ac194fc14b8bfc1066b82dc95d43a73f7b044ca\"", - "list_id": "foo.example.com", "member_id": 1, "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/1", "user": "http://localhost:9001/3.0/users/1"}], - "http_etag": "\"b616f26f17d6e33316118a6fdd85848554283784\"", "start": 0, "total_size": + "delivery_mode": "regular", "email": "newmod@example.com", "http_etag": "\"c3fe25f1c9583e2b9a0c66e60cab9d60a8267fc0\"", + "list_id": "foo.example.com", "member_id": 1054, "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/1054", "user": "http://localhost:9001/3.0/users/717"}], + "http_etag": "\"4e44c3bf09967ae365b4fad262ceaccd5a1ce7b4\"", "start": 0, "total_size": 1}'} headers: - content-length: ['458'] + content-length: ['466'] 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", @@ -213,7 +213,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_new_moderator_added.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_new_moderator_added.yaml index b051d25..c649310 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_new_moderator_added.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_new_moderator_added.yaml @@ -3,17 +3,17 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newmod@example.com", - "delivery_mode": "regular", "email": "newmod@example.com", "http_etag": "\"0ac194fc14b8bfc1066b82dc95d43a73f7b044ca\"", - "list_id": "foo.example.com", "member_id": 1, "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/1", "user": "http://localhost:9001/3.0/users/1"}], - "http_etag": "\"b616f26f17d6e33316118a6fdd85848554283784\"", "start": 0, "total_size": + "delivery_mode": "regular", "email": "newmod@example.com", "http_etag": "\"c3fe25f1c9583e2b9a0c66e60cab9d60a8267fc0\"", + "list_id": "foo.example.com", "member_id": 1054, "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/1054", "user": "http://localhost:9001/3.0/users/717"}], + "http_etag": "\"4e44c3bf09967ae365b4fad262ceaccd5a1ce7b4\"", "start": 0, "total_size": 1}'} headers: - content-length: ['458'] + content-length: ['466'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner.yaml index a019608..ab9437f 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner.yaml @@ -3,103 +3,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/domains - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/domains/example.com'] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} - headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: fqdn_listname=foo%40example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/lists/foo.example.com'] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo@example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: subscriber=su%40example.com&role=owner&list_id=foo.example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/members - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1'] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/lists/foo@example.com - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: mail_host=example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -111,7 +16,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -126,7 +31,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -141,8 +46,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -154,7 +59,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -169,20 +74,20 @@ body: subscriber=su%40example.com&role=owner&list_id=foo.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/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/3'] + location: ['http://localhost:9001/3.0/members/1055'] 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", @@ -197,7 +102,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} @@ -208,8 +113,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -221,7 +126,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -236,7 +141,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -251,8 +156,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -264,7 +169,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -279,20 +184,20 @@ body: subscriber=su%40example.com&role=owner&list_id=foo.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/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/6'] + location: ['http://localhost:9001/3.0/members/1057'] 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", @@ -307,7 +212,117 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode 'Duplicate email host: example.com'} + headers: + content-length: ['33'] + content-type: [application/json; charset=utf-8] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} + headers: + content-length: ['233'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} + headers: + content-length: ['233'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=foo%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/lists/foo.example.com'] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "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: subscriber=su%40example.com&role=owner&list_id=foo.example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/members + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/members/1060'] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner_add_remove.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner_add_remove.yaml index 5071c60..f65e6c4 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner_add_remove.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner_add_remove.yaml @@ -3,7 +3,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -18,69 +18,69 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users/su@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"eb591d9720aa0ac944b49315b6af1c950410b54c\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}'} + "\"f3ae14975cc188a94c91842fc7474da4c2f8b1dd\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/718", "user_id": 718}'} headers: - content-length: ['188'] + content-length: ['192'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/1/addresses + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/718/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag": - "\"639f603b44bc4e3f588ffb045be45e858421b98e\"", "original_email": "su@example.com", + "\"f3c90224dfc2b451d7ce91be4f12d72b1d25822b\"", "original_email": "su@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", - "user": "http://localhost:9001/3.0/users/1"}], "http_etag": "\"a6e81d562465e6007ef87e1a4af8366feac12d19\"", + "user": "http://localhost:9001/3.0/users/718"}], "http_etag": "\"bdc70f878525ca6c9a5cccc82a4e3f9a008dc77a\"", "start": 0, "total_size": 1}'} headers: - content-length: ['381'] + content-length: ['383'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/su@example.com response: - body: {string: !!python/unicode '{"email": "su@example.com", "http_etag": "\"639f603b44bc4e3f588ffb045be45e858421b98e\"", + body: {string: !!python/unicode '{"email": "su@example.com", "http_etag": "\"f3c90224dfc2b451d7ce91be4f12d72b1d25822b\"", "original_email": "su@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", "user": - "http://localhost:9001/3.0/users/1"}'} + "http://localhost:9001/3.0/users/718"}'} headers: - content-length: ['276'] + content-length: ['278'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"72e5bacea555ad25032c9d529b12ac9404eadf57\"", - "list_id": "foo.example.com", "member_id": 1, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1", "user": "http://localhost:9001/3.0/users/1"}], - "http_etag": "\"412a6358fd93e549c57c67c316f6fd823329ff99\"", "start": 0, "total_size": + "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"e94f9260c5e5e3fac5cf12b8e80629e57b657ce7\"", + "list_id": "foo.example.com", "member_id": 1055, "role": "owner", "self_link": + "http://localhost:9001/3.0/members/1055", "user": "http://localhost:9001/3.0/users/718"}], + "http_etag": "\"536e839d0f3b3595b962604a3c758bf2e061e531\"", "start": 0, "total_size": 1}'} headers: - content-length: ['446'] + content-length: ['454'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -93,20 +93,20 @@ body: subscriber=newowner%40example.com&role=owner&list_id=foo.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/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/2'] + location: ['http://localhost:9001/3.0/members/1056'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=1&page=1 response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -119,7 +119,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=25&page=1 response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -132,28 +132,28 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com", "delivery_mode": "regular", "email": "newowner@example.com", "http_etag": - "\"3cd95533f48bade9cf7cd736dc8610586e170db5\"", "list_id": "foo.example.com", - "member_id": 2, "role": "owner", "self_link": "http://localhost:9001/3.0/members/2", - "user": "http://localhost:9001/3.0/users/2"}, {"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"72e5bacea555ad25032c9d529b12ac9404eadf57\"", - "list_id": "foo.example.com", "member_id": 1, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1", "user": "http://localhost:9001/3.0/users/1"}], - "http_etag": "\"c8683b1fae7a2ad2c5fa0b1e4bdadbf5e94fb1e4\"", "start": 0, "total_size": + "\"15ea02b1533d2632421e4836590b51d07b2c41cb\"", "list_id": "foo.example.com", + "member_id": 1056, "role": "owner", "self_link": "http://localhost:9001/3.0/members/1056", + "user": "http://localhost:9001/3.0/users/719"}, {"address": "http://localhost:9001/3.0/addresses/su@example.com", + "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"e94f9260c5e5e3fac5cf12b8e80629e57b657ce7\"", + "list_id": "foo.example.com", "member_id": 1055, "role": "owner", "self_link": + "http://localhost:9001/3.0/members/1055", "user": "http://localhost:9001/3.0/users/718"}], + "http_etag": "\"cc33901d1469be83133bba510a18cada49098453\"", "start": 0, "total_size": 2}'} headers: - content-length: ['801'] + content-length: ['817'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -166,28 +166,28 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com", "delivery_mode": "regular", "email": "newowner@example.com", "http_etag": - "\"3cd95533f48bade9cf7cd736dc8610586e170db5\"", "list_id": "foo.example.com", - "member_id": 2, "role": "owner", "self_link": "http://localhost:9001/3.0/members/2", - "user": "http://localhost:9001/3.0/users/2"}, {"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"72e5bacea555ad25032c9d529b12ac9404eadf57\"", - "list_id": "foo.example.com", "member_id": 1, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1", "user": "http://localhost:9001/3.0/users/1"}], - "http_etag": "\"c8683b1fae7a2ad2c5fa0b1e4bdadbf5e94fb1e4\"", "start": 0, "total_size": + "\"15ea02b1533d2632421e4836590b51d07b2c41cb\"", "list_id": "foo.example.com", + "member_id": 1056, "role": "owner", "self_link": "http://localhost:9001/3.0/members/1056", + "user": "http://localhost:9001/3.0/users/719"}, {"address": "http://localhost:9001/3.0/addresses/su@example.com", + "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"e94f9260c5e5e3fac5cf12b8e80629e57b657ce7\"", + "list_id": "foo.example.com", "member_id": 1055, "role": "owner", "self_link": + "http://localhost:9001/3.0/members/1055", "user": "http://localhost:9001/3.0/users/718"}], + "http_etag": "\"cc33901d1469be83133bba510a18cada49098453\"", "start": 0, "total_size": 2}'} headers: - content-length: ['801'] + content-length: ['817'] 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", @@ -202,28 +202,28 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com", "delivery_mode": "regular", "email": "newowner@example.com", "http_etag": - "\"3cd95533f48bade9cf7cd736dc8610586e170db5\"", "list_id": "foo.example.com", - "member_id": 2, "role": "owner", "self_link": "http://localhost:9001/3.0/members/2", - "user": "http://localhost:9001/3.0/users/2"}, {"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"72e5bacea555ad25032c9d529b12ac9404eadf57\"", - "list_id": "foo.example.com", "member_id": 1, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1", "user": "http://localhost:9001/3.0/users/1"}], - "http_etag": "\"c8683b1fae7a2ad2c5fa0b1e4bdadbf5e94fb1e4\"", "start": 0, "total_size": + "\"15ea02b1533d2632421e4836590b51d07b2c41cb\"", "list_id": "foo.example.com", + "member_id": 1056, "role": "owner", "self_link": "http://localhost:9001/3.0/members/1056", + "user": "http://localhost:9001/3.0/users/719"}, {"address": "http://localhost:9001/3.0/addresses/su@example.com", + "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"e94f9260c5e5e3fac5cf12b8e80629e57b657ce7\"", + "list_id": "foo.example.com", "member_id": 1055, "role": "owner", "self_link": + "http://localhost:9001/3.0/members/1055", "user": "http://localhost:9001/3.0/users/718"}], + "http_etag": "\"cc33901d1469be83133bba510a18cada49098453\"", "start": 0, "total_size": 2}'} headers: - content-length: ['801'] + content-length: ['817'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/foo@example.com/owner/newowner@example.com response: body: {string: !!python/unicode ''} @@ -234,17 +234,17 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"72e5bacea555ad25032c9d529b12ac9404eadf57\"", - "list_id": "foo.example.com", "member_id": 1, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1", "user": "http://localhost:9001/3.0/users/1"}], - "http_etag": "\"412a6358fd93e549c57c67c316f6fd823329ff99\"", "start": 0, "total_size": + "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"e94f9260c5e5e3fac5cf12b8e80629e57b657ce7\"", + "list_id": "foo.example.com", "member_id": 1055, "role": "owner", "self_link": + "http://localhost:9001/3.0/members/1055", "user": "http://localhost:9001/3.0/users/718"}], + "http_etag": "\"536e839d0f3b3595b962604a3c758bf2e061e531\"", "start": 0, "total_size": 1}'} headers: - content-length: ['446'] + content-length: ['454'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner_by_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner_by_owner.yaml index 4a5f1ac..ddc50a8 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner_by_owner.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner_by_owner.yaml @@ -3,24 +3,24 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"f570d93af485c52ddf371499a144c1c1b556b29e\"", - "list_id": "foo.example.com", "member_id": 6, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/6", "user": "http://localhost:9001/3.0/users/1"}], - "http_etag": "\"1daaff607f9263f3a6c60227c18dc27553b3db81\"", "start": 0, "total_size": + "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"f847b4e3a05ab1448c6fd40dfe781f8bd53fcfc7\"", + "list_id": "foo.example.com", "member_id": 1060, "role": "owner", "self_link": + "http://localhost:9001/3.0/members/1060", "user": "http://localhost:9001/3.0/users/718"}], + "http_etag": "\"5f1c07bcd7ff4e2d964df55b55c78ef68dcf746c\"", "start": 0, "total_size": 1}'} headers: - content-length: ['446'] + content-length: ['454'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -35,69 +35,69 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users/su@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"eb591d9720aa0ac944b49315b6af1c950410b54c\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}'} + "\"f3ae14975cc188a94c91842fc7474da4c2f8b1dd\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/718", "user_id": 718}'} headers: - content-length: ['188'] + content-length: ['192'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/1/addresses + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/718/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag": - "\"639f603b44bc4e3f588ffb045be45e858421b98e\"", "original_email": "su@example.com", + "\"f3c90224dfc2b451d7ce91be4f12d72b1d25822b\"", "original_email": "su@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", - "user": "http://localhost:9001/3.0/users/1"}], "http_etag": "\"a6e81d562465e6007ef87e1a4af8366feac12d19\"", + "user": "http://localhost:9001/3.0/users/718"}], "http_etag": "\"bdc70f878525ca6c9a5cccc82a4e3f9a008dc77a\"", "start": 0, "total_size": 1}'} headers: - content-length: ['381'] + content-length: ['383'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/su@example.com response: - body: {string: !!python/unicode '{"email": "su@example.com", "http_etag": "\"639f603b44bc4e3f588ffb045be45e858421b98e\"", + body: {string: !!python/unicode '{"email": "su@example.com", "http_etag": "\"f3c90224dfc2b451d7ce91be4f12d72b1d25822b\"", "original_email": "su@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", "user": - "http://localhost:9001/3.0/users/1"}'} + "http://localhost:9001/3.0/users/718"}'} headers: - content-length: ['276'] + content-length: ['278'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"f570d93af485c52ddf371499a144c1c1b556b29e\"", - "list_id": "foo.example.com", "member_id": 6, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/6", "user": "http://localhost:9001/3.0/users/1"}], - "http_etag": "\"1daaff607f9263f3a6c60227c18dc27553b3db81\"", "start": 0, "total_size": + "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"f847b4e3a05ab1448c6fd40dfe781f8bd53fcfc7\"", + "list_id": "foo.example.com", "member_id": 1060, "role": "owner", "self_link": + "http://localhost:9001/3.0/members/1060", "user": "http://localhost:9001/3.0/users/718"}], + "http_etag": "\"5f1c07bcd7ff4e2d964df55b55c78ef68dcf746c\"", "start": 0, "total_size": 1}'} headers: - content-length: ['446'] + content-length: ['454'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -110,20 +110,20 @@ body: subscriber=newowner%40example.com&role=owner&list_id=foo.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/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/7'] + location: ['http://localhost:9001/3.0/members/1061'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=1&page=1 response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -136,7 +136,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=25&page=1 response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -149,28 +149,28 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com", "delivery_mode": "regular", "email": "newowner@example.com", "http_etag": - "\"93a70792332bdd5f8d27604b168494b7c74308da\"", "list_id": "foo.example.com", - "member_id": 7, "role": "owner", "self_link": "http://localhost:9001/3.0/members/7", - "user": "http://localhost:9001/3.0/users/2"}, {"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"f570d93af485c52ddf371499a144c1c1b556b29e\"", - "list_id": "foo.example.com", "member_id": 6, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/6", "user": "http://localhost:9001/3.0/users/1"}], - "http_etag": "\"e602be4824c6dfd69e52a03609210db4b2295ed6\"", "start": 0, "total_size": + "\"f3bd9de00f9a9487a4b1aa5c6e7a9eeba667255d\"", "list_id": "foo.example.com", + "member_id": 1061, "role": "owner", "self_link": "http://localhost:9001/3.0/members/1061", + "user": "http://localhost:9001/3.0/users/719"}, {"address": "http://localhost:9001/3.0/addresses/su@example.com", + "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"f847b4e3a05ab1448c6fd40dfe781f8bd53fcfc7\"", + "list_id": "foo.example.com", "member_id": 1060, "role": "owner", "self_link": + "http://localhost:9001/3.0/members/1060", "user": "http://localhost:9001/3.0/users/718"}], + "http_etag": "\"2849c1b85b4f91b0d6664665f8d3fc891317164f\"", "start": 0, "total_size": 2}'} headers: - content-length: ['801'] + content-length: ['817'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -183,28 +183,28 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com", "delivery_mode": "regular", "email": "newowner@example.com", "http_etag": - "\"93a70792332bdd5f8d27604b168494b7c74308da\"", "list_id": "foo.example.com", - "member_id": 7, "role": "owner", "self_link": "http://localhost:9001/3.0/members/7", - "user": "http://localhost:9001/3.0/users/2"}, {"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"f570d93af485c52ddf371499a144c1c1b556b29e\"", - "list_id": "foo.example.com", "member_id": 6, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/6", "user": "http://localhost:9001/3.0/users/1"}], - "http_etag": "\"e602be4824c6dfd69e52a03609210db4b2295ed6\"", "start": 0, "total_size": + "\"f3bd9de00f9a9487a4b1aa5c6e7a9eeba667255d\"", "list_id": "foo.example.com", + "member_id": 1061, "role": "owner", "self_link": "http://localhost:9001/3.0/members/1061", + "user": "http://localhost:9001/3.0/users/719"}, {"address": "http://localhost:9001/3.0/addresses/su@example.com", + "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"f847b4e3a05ab1448c6fd40dfe781f8bd53fcfc7\"", + "list_id": "foo.example.com", "member_id": 1060, "role": "owner", "self_link": + "http://localhost:9001/3.0/members/1060", "user": "http://localhost:9001/3.0/users/718"}], + "http_etag": "\"2849c1b85b4f91b0d6664665f8d3fc891317164f\"", "start": 0, "total_size": 2}'} headers: - content-length: ['801'] + content-length: ['817'] 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", @@ -219,73 +219,73 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users/su@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"eb591d9720aa0ac944b49315b6af1c950410b54c\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}'} + "\"f3ae14975cc188a94c91842fc7474da4c2f8b1dd\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/718", "user_id": 718}'} headers: - content-length: ['188'] + content-length: ['192'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/1/addresses + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/718/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag": - "\"639f603b44bc4e3f588ffb045be45e858421b98e\"", "original_email": "su@example.com", + "\"f3c90224dfc2b451d7ce91be4f12d72b1d25822b\"", "original_email": "su@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", - "user": "http://localhost:9001/3.0/users/1"}], "http_etag": "\"a6e81d562465e6007ef87e1a4af8366feac12d19\"", + "user": "http://localhost:9001/3.0/users/718"}], "http_etag": "\"bdc70f878525ca6c9a5cccc82a4e3f9a008dc77a\"", "start": 0, "total_size": 1}'} headers: - content-length: ['381'] + content-length: ['383'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/su@example.com response: - body: {string: !!python/unicode '{"email": "su@example.com", "http_etag": "\"639f603b44bc4e3f588ffb045be45e858421b98e\"", + body: {string: !!python/unicode '{"email": "su@example.com", "http_etag": "\"f3c90224dfc2b451d7ce91be4f12d72b1d25822b\"", "original_email": "su@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", "user": - "http://localhost:9001/3.0/users/1"}'} + "http://localhost:9001/3.0/users/718"}'} headers: - content-length: ['276'] + content-length: ['278'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com", "delivery_mode": "regular", "email": "newowner@example.com", "http_etag": - "\"93a70792332bdd5f8d27604b168494b7c74308da\"", "list_id": "foo.example.com", - "member_id": 7, "role": "owner", "self_link": "http://localhost:9001/3.0/members/7", - "user": "http://localhost:9001/3.0/users/2"}, {"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"f570d93af485c52ddf371499a144c1c1b556b29e\"", - "list_id": "foo.example.com", "member_id": 6, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/6", "user": "http://localhost:9001/3.0/users/1"}], - "http_etag": "\"e602be4824c6dfd69e52a03609210db4b2295ed6\"", "start": 0, "total_size": + "\"f3bd9de00f9a9487a4b1aa5c6e7a9eeba667255d\"", "list_id": "foo.example.com", + "member_id": 1061, "role": "owner", "self_link": "http://localhost:9001/3.0/members/1061", + "user": "http://localhost:9001/3.0/users/719"}, {"address": "http://localhost:9001/3.0/addresses/su@example.com", + "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"f847b4e3a05ab1448c6fd40dfe781f8bd53fcfc7\"", + "list_id": "foo.example.com", "member_id": 1060, "role": "owner", "self_link": + "http://localhost:9001/3.0/members/1060", "user": "http://localhost:9001/3.0/users/718"}], + "http_etag": "\"2849c1b85b4f91b0d6664665f8d3fc891317164f\"", "start": 0, "total_size": 2}'} headers: - content-length: ['801'] + content-length: ['817'] 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", @@ -300,28 +300,28 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com", "delivery_mode": "regular", "email": "newowner@example.com", "http_etag": - "\"93a70792332bdd5f8d27604b168494b7c74308da\"", "list_id": "foo.example.com", - "member_id": 7, "role": "owner", "self_link": "http://localhost:9001/3.0/members/7", - "user": "http://localhost:9001/3.0/users/2"}, {"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"f570d93af485c52ddf371499a144c1c1b556b29e\"", - "list_id": "foo.example.com", "member_id": 6, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/6", "user": "http://localhost:9001/3.0/users/1"}], - "http_etag": "\"e602be4824c6dfd69e52a03609210db4b2295ed6\"", "start": 0, "total_size": + "\"f3bd9de00f9a9487a4b1aa5c6e7a9eeba667255d\"", "list_id": "foo.example.com", + "member_id": 1061, "role": "owner", "self_link": "http://localhost:9001/3.0/members/1061", + "user": "http://localhost:9001/3.0/users/719"}, {"address": "http://localhost:9001/3.0/addresses/su@example.com", + "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"f847b4e3a05ab1448c6fd40dfe781f8bd53fcfc7\"", + "list_id": "foo.example.com", "member_id": 1060, "role": "owner", "self_link": + "http://localhost:9001/3.0/members/1060", "user": "http://localhost:9001/3.0/users/718"}], + "http_etag": "\"2849c1b85b4f91b0d6664665f8d3fc891317164f\"", "start": 0, "total_size": 2}'} headers: - content-length: ['801'] + content-length: ['817'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/foo@example.com/owner/newowner@example.com response: body: {string: !!python/unicode ''} @@ -332,17 +332,17 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"f570d93af485c52ddf371499a144c1c1b556b29e\"", - "list_id": "foo.example.com", "member_id": 6, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/6", "user": "http://localhost:9001/3.0/users/1"}], - "http_etag": "\"1daaff607f9263f3a6c60227c18dc27553b3db81\"", "start": 0, "total_size": + "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"f847b4e3a05ab1448c6fd40dfe781f8bd53fcfc7\"", + "list_id": "foo.example.com", "member_id": 1060, "role": "owner", "self_link": + "http://localhost:9001/3.0/members/1060", "user": "http://localhost:9001/3.0/users/718"}], + "http_etag": "\"5f1c07bcd7ff4e2d964df55b55c78ef68dcf746c\"", "start": 0, "total_size": 1}'} headers: - content-length: ['446'] + content-length: ['454'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner_self_last.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner_self_last.yaml index 3083e25..5f136cb 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner_self_last.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner_self_last.yaml @@ -3,7 +3,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -18,62 +18,62 @@ body: subscriber=otherowner%40example.com&role=owner&list_id=foo.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/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/4'] + location: ['http://localhost:9001/3.0/members/1058'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/otherowner@example.com", "delivery_mode": "regular", "email": "otherowner@example.com", "http_etag": - "\"a15e19b1dcc07084d19912891fd589f133600fed\"", "list_id": "foo.example.com", - "member_id": 4, "role": "owner", "self_link": "http://localhost:9001/3.0/members/4", - "user": "http://localhost:9001/3.0/users/3"}, {"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"b723c1cd6f1b1eed1df6410474e5968bc3fdd6d9\"", - "list_id": "foo.example.com", "member_id": 3, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/3", "user": "http://localhost:9001/3.0/users/1"}], - "http_etag": "\"ea6a45e2a044b02a945b6d89d3d016c6ac64f780\"", "start": 0, "total_size": + "\"b5c3dfcb6f4a914af6e6e85d80f3cb37910c8d04\"", "list_id": "foo.example.com", + "member_id": 1058, "role": "owner", "self_link": "http://localhost:9001/3.0/members/1058", + "user": "http://localhost:9001/3.0/users/720"}, {"address": "http://localhost:9001/3.0/addresses/su@example.com", + "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"f78cce581e587ccfc847945e3aa35f5c9af63c95\"", + "list_id": "foo.example.com", "member_id": 1057, "role": "owner", "self_link": + "http://localhost:9001/3.0/members/1057", "user": "http://localhost:9001/3.0/users/718"}], + "http_etag": "\"58246a0decd6bcc87e0c4e4874b7e6d17c532cbe\"", "start": 0, "total_size": 2}'} headers: - content-length: ['805'] + content-length: ['821'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/otherowner@example.com", "delivery_mode": "regular", "email": "otherowner@example.com", "http_etag": - "\"a15e19b1dcc07084d19912891fd589f133600fed\"", "list_id": "foo.example.com", - "member_id": 4, "role": "owner", "self_link": "http://localhost:9001/3.0/members/4", - "user": "http://localhost:9001/3.0/users/3"}, {"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"b723c1cd6f1b1eed1df6410474e5968bc3fdd6d9\"", - "list_id": "foo.example.com", "member_id": 3, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/3", "user": "http://localhost:9001/3.0/users/1"}], - "http_etag": "\"ea6a45e2a044b02a945b6d89d3d016c6ac64f780\"", "start": 0, "total_size": + "\"b5c3dfcb6f4a914af6e6e85d80f3cb37910c8d04\"", "list_id": "foo.example.com", + "member_id": 1058, "role": "owner", "self_link": "http://localhost:9001/3.0/members/1058", + "user": "http://localhost:9001/3.0/users/720"}, {"address": "http://localhost:9001/3.0/addresses/su@example.com", + "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"f78cce581e587ccfc847945e3aa35f5c9af63c95\"", + "list_id": "foo.example.com", "member_id": 1057, "role": "owner", "self_link": + "http://localhost:9001/3.0/members/1057", "user": "http://localhost:9001/3.0/users/718"}], + "http_etag": "\"58246a0decd6bcc87e0c4e4874b7e6d17c532cbe\"", "start": 0, "total_size": 2}'} headers: - content-length: ['805'] + content-length: ['821'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -88,28 +88,28 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/otherowner@example.com", "delivery_mode": "regular", "email": "otherowner@example.com", "http_etag": - "\"a15e19b1dcc07084d19912891fd589f133600fed\"", "list_id": "foo.example.com", - "member_id": 4, "role": "owner", "self_link": "http://localhost:9001/3.0/members/4", - "user": "http://localhost:9001/3.0/users/3"}, {"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"b723c1cd6f1b1eed1df6410474e5968bc3fdd6d9\"", - "list_id": "foo.example.com", "member_id": 3, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/3", "user": "http://localhost:9001/3.0/users/1"}], - "http_etag": "\"ea6a45e2a044b02a945b6d89d3d016c6ac64f780\"", "start": 0, "total_size": + "\"b5c3dfcb6f4a914af6e6e85d80f3cb37910c8d04\"", "list_id": "foo.example.com", + "member_id": 1058, "role": "owner", "self_link": "http://localhost:9001/3.0/members/1058", + "user": "http://localhost:9001/3.0/users/720"}, {"address": "http://localhost:9001/3.0/addresses/su@example.com", + "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"f78cce581e587ccfc847945e3aa35f5c9af63c95\"", + "list_id": "foo.example.com", "member_id": 1057, "role": "owner", "self_link": + "http://localhost:9001/3.0/members/1057", "user": "http://localhost:9001/3.0/users/718"}], + "http_etag": "\"58246a0decd6bcc87e0c4e4874b7e6d17c532cbe\"", "start": 0, "total_size": 2}'} headers: - content-length: ['805'] + content-length: ['821'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/foo@example.com/owner/su@example.com response: body: {string: !!python/unicode ''} @@ -120,37 +120,37 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/otherowner@example.com", "delivery_mode": "regular", "email": "otherowner@example.com", "http_etag": - "\"a15e19b1dcc07084d19912891fd589f133600fed\"", "list_id": "foo.example.com", - "member_id": 4, "role": "owner", "self_link": "http://localhost:9001/3.0/members/4", - "user": "http://localhost:9001/3.0/users/3"}], "http_etag": "\"59f61bd554b0f44923fec3f7828f86cfd0918450\"", + "\"b5c3dfcb6f4a914af6e6e85d80f3cb37910c8d04\"", "list_id": "foo.example.com", + "member_id": 1058, "role": "owner", "self_link": "http://localhost:9001/3.0/members/1058", + "user": "http://localhost:9001/3.0/users/720"}], "http_etag": "\"3030b6bde4809132ffe48174384cca4fbb9090ba\"", "start": 0, "total_size": 1}'} headers: - content-length: ['462'] + content-length: ['470'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: subscriber=su%40example.com&role=owner&list_id=foo.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/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/5'] + location: ['http://localhost:9001/3.0/members/1059'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/foo@example.com/owner/otherowner@example.com response: body: {string: !!python/unicode ''} @@ -161,41 +161,41 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"132c238a15f75daef82541cd9ed0bca29cd10fb9\"", - "list_id": "foo.example.com", "member_id": 5, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/5", "user": "http://localhost:9001/3.0/users/1"}], - "http_etag": "\"f503aaf599ea1f0cc6f71f8cbdef68a3cc1bee89\"", "start": 0, "total_size": + "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"b8a3518b89b8a2fce07c4abdd6a55674540c8955\"", + "list_id": "foo.example.com", "member_id": 1059, "role": "owner", "self_link": + "http://localhost:9001/3.0/members/1059", "user": "http://localhost:9001/3.0/users/718"}], + "http_etag": "\"5b391a38aab9a39cb92d41c6d07cdace16742c71\"", "start": 0, "total_size": 1}'} headers: - content-length: ['446'] + content-length: ['454'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"132c238a15f75daef82541cd9ed0bca29cd10fb9\"", - "list_id": "foo.example.com", "member_id": 5, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/5", "user": "http://localhost:9001/3.0/users/1"}], - "http_etag": "\"f503aaf599ea1f0cc6f71f8cbdef68a3cc1bee89\"", "start": 0, "total_size": + "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"b8a3518b89b8a2fce07c4abdd6a55674540c8955\"", + "list_id": "foo.example.com", "member_id": 1059, "role": "owner", "self_link": + "http://localhost:9001/3.0/members/1059", "user": "http://localhost:9001/3.0/users/718"}], + "http_etag": "\"5b391a38aab9a39cb92d41c6d07cdace16742c71\"", "start": 0, "total_size": 1}'} headers: - content-length: ['446'] + content-length: ['454'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -210,34 +210,34 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"132c238a15f75daef82541cd9ed0bca29cd10fb9\"", - "list_id": "foo.example.com", "member_id": 5, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/5", "user": "http://localhost:9001/3.0/users/1"}], - "http_etag": "\"f503aaf599ea1f0cc6f71f8cbdef68a3cc1bee89\"", "start": 0, "total_size": + "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"b8a3518b89b8a2fce07c4abdd6a55674540c8955\"", + "list_id": "foo.example.com", "member_id": 1059, "role": "owner", "self_link": + "http://localhost:9001/3.0/members/1059", "user": "http://localhost:9001/3.0/users/718"}], + "http_etag": "\"5b391a38aab9a39cb92d41c6d07cdace16742c71\"", "start": 0, "total_size": 1}'} headers: - content-length: ['446'] + content-length: ['454'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"132c238a15f75daef82541cd9ed0bca29cd10fb9\"", - "list_id": "foo.example.com", "member_id": 5, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/5", "user": "http://localhost:9001/3.0/users/1"}], - "http_etag": "\"f503aaf599ea1f0cc6f71f8cbdef68a3cc1bee89\"", "start": 0, "total_size": + "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"b8a3518b89b8a2fce07c4abdd6a55674540c8955\"", + "list_id": "foo.example.com", "member_id": 1059, "role": "owner", "self_link": + "http://localhost:9001/3.0/members/1059", "user": "http://localhost:9001/3.0/users/718"}], + "http_etag": "\"5b391a38aab9a39cb92d41c6d07cdace16742c71\"", "start": 0, "total_size": 1}'} headers: - content-length: ['446'] + content-length: ['454'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_metrics.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_metrics.yaml deleted file mode 100644 index 5fa7329..0000000 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_metrics.yaml +++ /dev/null @@ -1,258 +0,0 @@ -interactions: -- request: - body: mail_host=example.org - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/domains - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/domains/example.org'] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.org - response: - body: {string: !!python/unicode '{"base_url": "http://example.org", "description": - null, "http_etag": "\"f8247f55d4a0a1d987c89cc238bb0dbc2c0e1089\"", "mail_host": - "example.org", "self_link": "http://localhost:9001/3.0/domains/example.org", - "url_host": "example.org"}'} - headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: fqdn_listname=test%40example.org - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/lists/test.example.org'] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/test@example.org - response: - body: {string: !!python/unicode '{"display_name": "Test", "fqdn_listname": "test@example.org", - "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\"", "list_id": "test.example.org", - "list_name": "test", "mail_host": "example.org", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/test.example.org", "volume": 1}'} - headers: - content-length: ['299'] - 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/test@example.org - response: - body: {string: !!python/unicode '{"display_name": "Test", "fqdn_listname": "test@example.org", - "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\"", "list_id": "test.example.org", - "list_name": "test", "mail_host": "example.org", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/test.example.org", "volume": 1}'} - headers: - content-length: ['299'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/su@example.com - response: - body: {string: !!python/unicode '404 Not Found'} - headers: - content-length: ['13'] - content-type: [application/json; charset=utf-8] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/test.example.org/roster/owner - response: - body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/test.example.org/roster/moderator - response: - body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/test@example.org/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": - "test-bounces@example.org", "collapse_alternatives": true, "convert_html_to_plaintext": - false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_size_threshold": 30.0, "display_name": "Test", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "test@example.org", - "http_etag": "\"6569a8f462dabe7d7366ed8075432b5c25aeb0c7\"", "include_rfc2369_headers": - true, "join_address": "test-join@example.org", "last_post_at": null, "leave_address": - "test-leave@example.org", "list_name": "test", "mail_host": "example.org", - "next_digest_number": 1, "no_reply_address": "noreply@example.org", "owner_address": - "test-owner@example.org", "post_id": 1, "posting_address": "test@example.org", - "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": "no_munging", - "reply_to_address": "", "request_address": "test-request@example.org", "scheme": - "http", "send_welcome_message": true, "subject_prefix": "[Test] ", "subscription_policy": - "confirm", "volume": 1, "web_host": "example.org", "welcome_message_uri": - "mailman:///welcome.txt"}'} - headers: - content-length: ['1620'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/lists/test@example.org - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/domains/example.org - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: mail_host=example.org - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/domains - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/domains/example.org'] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.org - response: - body: {string: !!python/unicode '{"base_url": "http://example.org", "description": - null, "http_etag": "\"f8247f55d4a0a1d987c89cc238bb0dbc2c0e1089\"", "mail_host": - "example.org", "self_link": "http://localhost:9001/3.0/domains/example.org", - "url_host": "example.org"}'} - headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: fqdn_listname=test%40example.org - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/lists/test.example.org'] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/test@example.org - response: - body: {string: !!python/unicode '{"display_name": "Test", "fqdn_listname": "test@example.org", - "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\"", "list_id": "test.example.org", - "list_name": "test", "mail_host": "example.org", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/test.example.org", "volume": 1}'} - headers: - content-length: ['299'] - 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/test@example.org - response: - body: {string: !!python/unicode '{"display_name": "Test", "fqdn_listname": "test@example.org", - "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\"", "list_id": "test.example.org", - "list_name": "test", "mail_host": "example.org", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/test.example.org", "volume": 1}'} - headers: - content-length: ['299'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/lists/test@example.org - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/domains/example.org - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription.yaml index 3fcfcc0..42bafac 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription.yaml @@ -3,8 +3,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -16,7 +16,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -31,7 +31,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -46,8 +46,8 @@ body: fqdn_listname=open_list%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -59,7 +59,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -75,7 +75,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -104,11 +104,11 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: anonymous_list=False&autorespond_postings=none&display_name=Open_list&admin_immed_notify=True&convert_html_to_plaintext=False&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&default_member_action=defer&digest_size_threshold=30.0&default_nonmember_action=hold&subscription_policy=open&first_strip_reply_to=False&collapse_alternatives=True&admin_notify_mchanges=False&autorespond_owner=none&include_rfc2369_headers=True&autoresponse_postings_text=&reply_to_address=&autoresponse_request_text=&autoresponse_grace_period=90d&filter_content=False&description=&administrivia=True&archive_policy=public&posting_pipeline=default-posting-pipeline&autoresponse_owner_text=&reply_goes_to_list=no_munging&subject_prefix=%5BOpen_list%5D+&advertised=True&allow_list_posts=True&autorespond_requests=none&send_welcome_message=True + body: anonymous_list=False&allow_list_posts=True&advertised=True&description=&digest_size_threshold=30.0&autorespond_postings=none&send_welcome_message=True&autoresponse_postings_text=&autorespond_owner=none&include_rfc2369_headers=True&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&collapse_alternatives=True&filter_content=False&first_strip_reply_to=False&reply_to_address=&display_name=Open_list&posting_pipeline=default-posting-pipeline&reply_goes_to_list=no_munging&admin_notify_mchanges=False&autoresponse_grace_period=90d&autorespond_requests=none&autoresponse_request_text=&admin_immed_notify=True&subject_prefix=%5BOpen_list%5D+&administrivia=True&convert_html_to_plaintext=False&archive_policy=public&default_nonmember_action=hold&default_member_action=defer&autoresponse_owner_text=&subscription_policy=open headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'PATCH' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode PATCH uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode ''} @@ -119,8 +119,8 @@ body: fqdn_listname=moderate_subs%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -132,7 +132,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": @@ -148,7 +148,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -177,11 +177,11 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: anonymous_list=False&autorespond_postings=none&display_name=Moderate_subs&admin_immed_notify=True&convert_html_to_plaintext=False&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&default_member_action=defer&digest_size_threshold=30.0&default_nonmember_action=hold&subscription_policy=moderate&first_strip_reply_to=False&collapse_alternatives=True&admin_notify_mchanges=False&autorespond_owner=none&include_rfc2369_headers=True&autoresponse_postings_text=&reply_to_address=&autoresponse_request_text=&autoresponse_grace_period=90d&filter_content=False&description=&administrivia=True&archive_policy=public&posting_pipeline=default-posting-pipeline&autoresponse_owner_text=&reply_goes_to_list=no_munging&subject_prefix=%5BModerate_subs%5D+&advertised=True&allow_list_posts=True&autorespond_requests=none&send_welcome_message=True + body: anonymous_list=False&allow_list_posts=True&advertised=True&description=&digest_size_threshold=30.0&autorespond_postings=none&send_welcome_message=True&autoresponse_postings_text=&autorespond_owner=none&include_rfc2369_headers=True&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&collapse_alternatives=True&filter_content=False&first_strip_reply_to=False&reply_to_address=&display_name=Moderate_subs&posting_pipeline=default-posting-pipeline&reply_goes_to_list=no_munging&admin_notify_mchanges=False&autoresponse_grace_period=90d&autorespond_requests=none&autoresponse_request_text=&admin_immed_notify=True&subject_prefix=%5BModerate_subs%5D+&administrivia=True&convert_html_to_plaintext=False&archive_policy=public&default_nonmember_action=hold&default_member_action=defer&autoresponse_owner_text=&subscription_policy=moderate headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'PATCH' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode PATCH uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode ''} @@ -192,22 +192,22 @@ body: password=&display_name=&email=test%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/5'] + location: ['http://localhost:9001/3.0/users/712'] status: {code: 201, message: Created} - request: body: email=fritz%40example.org headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/users/5/addresses + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/users/712/addresses response: body: {string: !!python/unicode ''} headers: @@ -218,7 +218,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'POST' + method: !!python/unicode POST uri: http://localhost:9001/3.0/addresses/fritz@example.org/verify response: body: {string: !!python/unicode ''} @@ -229,7 +229,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -242,13 +242,13 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "fritz@example.org", - "http_etag": "\"aa0a3a60758fb587bd9b698839c58d23b5dbeac1\"", "list_id": "moderate_subs.example.com", - "token": "44cc7158fa32f05de01a09e1140a4b437f28b01f", "token_owner": "moderator", - "when": "2005-08-01T07:49:23"}], "http_etag": "\"b6655624de25438f74064513e16b91ee8e74d5b4\"", + "http_etag": "\"3d1c95859c703bf3eabe0ee8bd8f0f26c798774e\"", "list_id": "moderate_subs.example.com", + "token": "7946b2dea66cf4c977638062e61fede9f846a570", "token_owner": "moderator", + "when": "2005-08-01T07:49:23"}], "http_etag": "\"8946d86966536d5b3353df3addf76381053e2a03\"", "start": 0, "total_size": 1}'} headers: content-length: ['368'] @@ -258,9 +258,9 @@ body: action=discard headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/requests/44cc7158fa32f05de01a09e1140a4b437f28b01f + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/requests/7946b2dea66cf4c977638062e61fede9f846a570 response: body: {string: !!python/unicode ''} headers: @@ -270,7 +270,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/open_list@example.com response: body: {string: !!python/unicode ''} @@ -281,7 +281,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/moderate_subs@example.com response: body: {string: !!python/unicode ''} @@ -292,8 +292,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/5 + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/712 response: body: {string: !!python/unicode ''} headers: @@ -303,8 +303,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -316,7 +316,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -331,7 +331,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -346,8 +346,8 @@ body: fqdn_listname=open_list%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -359,7 +359,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -375,7 +375,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -404,11 +404,11 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: anonymous_list=False&autorespond_postings=none&display_name=Open_list&admin_immed_notify=True&convert_html_to_plaintext=False&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&default_member_action=defer&digest_size_threshold=30.0&default_nonmember_action=hold&subscription_policy=open&first_strip_reply_to=False&collapse_alternatives=True&admin_notify_mchanges=False&autorespond_owner=none&include_rfc2369_headers=True&autoresponse_postings_text=&reply_to_address=&autoresponse_request_text=&autoresponse_grace_period=90d&filter_content=False&description=&administrivia=True&archive_policy=public&posting_pipeline=default-posting-pipeline&autoresponse_owner_text=&reply_goes_to_list=no_munging&subject_prefix=%5BOpen_list%5D+&advertised=True&allow_list_posts=True&autorespond_requests=none&send_welcome_message=True + body: anonymous_list=False&allow_list_posts=True&advertised=True&description=&digest_size_threshold=30.0&autorespond_postings=none&send_welcome_message=True&autoresponse_postings_text=&autorespond_owner=none&include_rfc2369_headers=True&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&collapse_alternatives=True&filter_content=False&first_strip_reply_to=False&reply_to_address=&display_name=Open_list&posting_pipeline=default-posting-pipeline&reply_goes_to_list=no_munging&admin_notify_mchanges=False&autoresponse_grace_period=90d&autorespond_requests=none&autoresponse_request_text=&admin_immed_notify=True&subject_prefix=%5BOpen_list%5D+&administrivia=True&convert_html_to_plaintext=False&archive_policy=public&default_nonmember_action=hold&default_member_action=defer&autoresponse_owner_text=&subscription_policy=open headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'PATCH' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode PATCH uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode ''} @@ -419,8 +419,8 @@ body: fqdn_listname=moderate_subs%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -432,7 +432,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": @@ -448,7 +448,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -477,11 +477,11 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: anonymous_list=False&autorespond_postings=none&display_name=Moderate_subs&admin_immed_notify=True&convert_html_to_plaintext=False&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&default_member_action=defer&digest_size_threshold=30.0&default_nonmember_action=hold&subscription_policy=moderate&first_strip_reply_to=False&collapse_alternatives=True&admin_notify_mchanges=False&autorespond_owner=none&include_rfc2369_headers=True&autoresponse_postings_text=&reply_to_address=&autoresponse_request_text=&autoresponse_grace_period=90d&filter_content=False&description=&administrivia=True&archive_policy=public&posting_pipeline=default-posting-pipeline&autoresponse_owner_text=&reply_goes_to_list=no_munging&subject_prefix=%5BModerate_subs%5D+&advertised=True&allow_list_posts=True&autorespond_requests=none&send_welcome_message=True + body: anonymous_list=False&allow_list_posts=True&advertised=True&description=&digest_size_threshold=30.0&autorespond_postings=none&send_welcome_message=True&autoresponse_postings_text=&autorespond_owner=none&include_rfc2369_headers=True&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&collapse_alternatives=True&filter_content=False&first_strip_reply_to=False&reply_to_address=&display_name=Moderate_subs&posting_pipeline=default-posting-pipeline&reply_goes_to_list=no_munging&admin_notify_mchanges=False&autoresponse_grace_period=90d&autorespond_requests=none&autoresponse_request_text=&admin_immed_notify=True&subject_prefix=%5BModerate_subs%5D+&administrivia=True&convert_html_to_plaintext=False&archive_policy=public&default_nonmember_action=hold&default_member_action=defer&autoresponse_owner_text=&subscription_policy=moderate headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'PATCH' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode PATCH uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode ''} @@ -492,22 +492,22 @@ body: password=&display_name=&email=test%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/6'] + location: ['http://localhost:9001/3.0/users/713'] status: {code: 201, message: Created} - request: body: email=fritz%40example.org headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/users/6/addresses + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/users/713/addresses response: body: {string: !!python/unicode ''} headers: @@ -518,7 +518,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'POST' + method: !!python/unicode POST uri: http://localhost:9001/3.0/addresses/fritz@example.org/verify response: body: {string: !!python/unicode ''} @@ -529,7 +529,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -542,7 +542,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -555,7 +555,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/open_list@example.com response: body: {string: !!python/unicode ''} @@ -566,7 +566,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/moderate_subs@example.com response: body: {string: !!python/unicode ''} @@ -577,8 +577,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/6 + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/713 response: body: {string: !!python/unicode ''} headers: @@ -588,8 +588,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -601,7 +601,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -616,7 +616,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -631,8 +631,8 @@ body: fqdn_listname=open_list%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -644,7 +644,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -660,7 +660,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -689,11 +689,11 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: anonymous_list=False&autorespond_postings=none&display_name=Open_list&admin_immed_notify=True&convert_html_to_plaintext=False&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&default_member_action=defer&digest_size_threshold=30.0&default_nonmember_action=hold&subscription_policy=open&first_strip_reply_to=False&collapse_alternatives=True&admin_notify_mchanges=False&autorespond_owner=none&include_rfc2369_headers=True&autoresponse_postings_text=&reply_to_address=&autoresponse_request_text=&autoresponse_grace_period=90d&filter_content=False&description=&administrivia=True&archive_policy=public&posting_pipeline=default-posting-pipeline&autoresponse_owner_text=&reply_goes_to_list=no_munging&subject_prefix=%5BOpen_list%5D+&advertised=True&allow_list_posts=True&autorespond_requests=none&send_welcome_message=True + body: anonymous_list=False&allow_list_posts=True&advertised=True&description=&digest_size_threshold=30.0&autorespond_postings=none&send_welcome_message=True&autoresponse_postings_text=&autorespond_owner=none&include_rfc2369_headers=True&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&collapse_alternatives=True&filter_content=False&first_strip_reply_to=False&reply_to_address=&display_name=Open_list&posting_pipeline=default-posting-pipeline&reply_goes_to_list=no_munging&admin_notify_mchanges=False&autoresponse_grace_period=90d&autorespond_requests=none&autoresponse_request_text=&admin_immed_notify=True&subject_prefix=%5BOpen_list%5D+&administrivia=True&convert_html_to_plaintext=False&archive_policy=public&default_nonmember_action=hold&default_member_action=defer&autoresponse_owner_text=&subscription_policy=open headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'PATCH' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode PATCH uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode ''} @@ -704,8 +704,8 @@ body: fqdn_listname=moderate_subs%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -717,7 +717,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": @@ -733,7 +733,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -762,11 +762,11 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: anonymous_list=False&autorespond_postings=none&display_name=Moderate_subs&admin_immed_notify=True&convert_html_to_plaintext=False&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&default_member_action=defer&digest_size_threshold=30.0&default_nonmember_action=hold&subscription_policy=moderate&first_strip_reply_to=False&collapse_alternatives=True&admin_notify_mchanges=False&autorespond_owner=none&include_rfc2369_headers=True&autoresponse_postings_text=&reply_to_address=&autoresponse_request_text=&autoresponse_grace_period=90d&filter_content=False&description=&administrivia=True&archive_policy=public&posting_pipeline=default-posting-pipeline&autoresponse_owner_text=&reply_goes_to_list=no_munging&subject_prefix=%5BModerate_subs%5D+&advertised=True&allow_list_posts=True&autorespond_requests=none&send_welcome_message=True + body: anonymous_list=False&allow_list_posts=True&advertised=True&description=&digest_size_threshold=30.0&autorespond_postings=none&send_welcome_message=True&autoresponse_postings_text=&autorespond_owner=none&include_rfc2369_headers=True&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&collapse_alternatives=True&filter_content=False&first_strip_reply_to=False&reply_to_address=&display_name=Moderate_subs&posting_pipeline=default-posting-pipeline&reply_goes_to_list=no_munging&admin_notify_mchanges=False&autoresponse_grace_period=90d&autorespond_requests=none&autoresponse_request_text=&admin_immed_notify=True&subject_prefix=%5BModerate_subs%5D+&administrivia=True&convert_html_to_plaintext=False&archive_policy=public&default_nonmember_action=hold&default_member_action=defer&autoresponse_owner_text=&subscription_policy=moderate headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'PATCH' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode PATCH uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode ''} @@ -777,22 +777,22 @@ body: password=&display_name=&email=test%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/7'] + location: ['http://localhost:9001/3.0/users/714'] status: {code: 201, message: Created} - request: body: email=fritz%40example.org headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/users/7/addresses + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/users/714/addresses response: body: {string: !!python/unicode ''} headers: @@ -803,7 +803,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'POST' + method: !!python/unicode POST uri: http://localhost:9001/3.0/addresses/fritz@example.org/verify response: body: {string: !!python/unicode ''} @@ -814,7 +814,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -827,13 +827,13 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "test@example.com", - "http_etag": "\"dc4929d089922ed834b6ca55db444af35b0c55ee\"", "list_id": "moderate_subs.example.com", - "token": "6a911c419c74c6d5b4721505351f49080650bf18", "token_owner": "moderator", - "when": "2005-08-01T07:49:23"}], "http_etag": "\"c72c9da6f9f5fce71fac30dd2722c5810d64e891\"", + "http_etag": "\"56a5943001f7b1382170bdd54bf1c76c34b18b06\"", "list_id": "moderate_subs.example.com", + "token": "f983ffd56bfabec80fb701b991ce867f16612133", "token_owner": "moderator", + "when": "2005-08-01T07:49:23"}], "http_etag": "\"1a78ce4c916cfea39c07335b6c9aaf474132727f\"", "start": 0, "total_size": 1}'} headers: content-length: ['367'] @@ -843,9 +843,9 @@ body: action=discard headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/requests/6a911c419c74c6d5b4721505351f49080650bf18 + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/requests/f983ffd56bfabec80fb701b991ce867f16612133 response: body: {string: !!python/unicode ''} headers: @@ -855,7 +855,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/open_list@example.com response: body: {string: !!python/unicode ''} @@ -866,7 +866,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/moderate_subs@example.com response: body: {string: !!python/unicode ''} @@ -877,8 +877,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/7 + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/714 response: body: {string: !!python/unicode ''} headers: @@ -888,8 +888,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -901,7 +901,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -916,7 +916,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -931,8 +931,8 @@ body: fqdn_listname=open_list%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -944,7 +944,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -960,7 +960,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -989,11 +989,11 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: anonymous_list=False&autorespond_postings=none&display_name=Open_list&admin_immed_notify=True&convert_html_to_plaintext=False&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&default_member_action=defer&digest_size_threshold=30.0&default_nonmember_action=hold&subscription_policy=open&first_strip_reply_to=False&collapse_alternatives=True&admin_notify_mchanges=False&autorespond_owner=none&include_rfc2369_headers=True&autoresponse_postings_text=&reply_to_address=&autoresponse_request_text=&autoresponse_grace_period=90d&filter_content=False&description=&administrivia=True&archive_policy=public&posting_pipeline=default-posting-pipeline&autoresponse_owner_text=&reply_goes_to_list=no_munging&subject_prefix=%5BOpen_list%5D+&advertised=True&allow_list_posts=True&autorespond_requests=none&send_welcome_message=True + body: anonymous_list=False&allow_list_posts=True&advertised=True&description=&digest_size_threshold=30.0&autorespond_postings=none&send_welcome_message=True&autoresponse_postings_text=&autorespond_owner=none&include_rfc2369_headers=True&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&collapse_alternatives=True&filter_content=False&first_strip_reply_to=False&reply_to_address=&display_name=Open_list&posting_pipeline=default-posting-pipeline&reply_goes_to_list=no_munging&admin_notify_mchanges=False&autoresponse_grace_period=90d&autorespond_requests=none&autoresponse_request_text=&admin_immed_notify=True&subject_prefix=%5BOpen_list%5D+&administrivia=True&convert_html_to_plaintext=False&archive_policy=public&default_nonmember_action=hold&default_member_action=defer&autoresponse_owner_text=&subscription_policy=open headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'PATCH' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode PATCH uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode ''} @@ -1004,8 +1004,8 @@ body: fqdn_listname=moderate_subs%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -1017,7 +1017,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": @@ -1033,7 +1033,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -1062,11 +1062,11 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: anonymous_list=False&autorespond_postings=none&display_name=Moderate_subs&admin_immed_notify=True&convert_html_to_plaintext=False&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&default_member_action=defer&digest_size_threshold=30.0&default_nonmember_action=hold&subscription_policy=moderate&first_strip_reply_to=False&collapse_alternatives=True&admin_notify_mchanges=False&autorespond_owner=none&include_rfc2369_headers=True&autoresponse_postings_text=&reply_to_address=&autoresponse_request_text=&autoresponse_grace_period=90d&filter_content=False&description=&administrivia=True&archive_policy=public&posting_pipeline=default-posting-pipeline&autoresponse_owner_text=&reply_goes_to_list=no_munging&subject_prefix=%5BModerate_subs%5D+&advertised=True&allow_list_posts=True&autorespond_requests=none&send_welcome_message=True + body: anonymous_list=False&allow_list_posts=True&advertised=True&description=&digest_size_threshold=30.0&autorespond_postings=none&send_welcome_message=True&autoresponse_postings_text=&autorespond_owner=none&include_rfc2369_headers=True&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&collapse_alternatives=True&filter_content=False&first_strip_reply_to=False&reply_to_address=&display_name=Moderate_subs&posting_pipeline=default-posting-pipeline&reply_goes_to_list=no_munging&admin_notify_mchanges=False&autoresponse_grace_period=90d&autorespond_requests=none&autoresponse_request_text=&admin_immed_notify=True&subject_prefix=%5BModerate_subs%5D+&administrivia=True&convert_html_to_plaintext=False&archive_policy=public&default_nonmember_action=hold&default_member_action=defer&autoresponse_owner_text=&subscription_policy=moderate headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'PATCH' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode PATCH uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode ''} @@ -1077,22 +1077,22 @@ body: password=&display_name=&email=test%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/8'] + location: ['http://localhost:9001/3.0/users/715'] status: {code: 201, message: Created} - request: body: email=fritz%40example.org headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/users/8/addresses + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/users/715/addresses response: body: {string: !!python/unicode ''} headers: @@ -1103,7 +1103,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'POST' + method: !!python/unicode POST uri: http://localhost:9001/3.0/addresses/fritz@example.org/verify response: body: {string: !!python/unicode ''} @@ -1114,7 +1114,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -1127,7 +1127,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -1140,7 +1140,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/open_list@example.com response: body: {string: !!python/unicode ''} @@ -1151,7 +1151,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/moderate_subs@example.com response: body: {string: !!python/unicode ''} @@ -1162,8 +1162,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/8 + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/715 response: body: {string: !!python/unicode ''} headers: @@ -1173,8 +1173,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -1186,7 +1186,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -1201,7 +1201,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -1216,8 +1216,8 @@ body: fqdn_listname=open_list%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -1229,7 +1229,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -1245,7 +1245,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -1274,11 +1274,11 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: anonymous_list=False&autorespond_postings=none&display_name=Open_list&admin_immed_notify=True&convert_html_to_plaintext=False&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&default_member_action=defer&digest_size_threshold=30.0&default_nonmember_action=hold&subscription_policy=open&first_strip_reply_to=False&collapse_alternatives=True&admin_notify_mchanges=False&autorespond_owner=none&include_rfc2369_headers=True&autoresponse_postings_text=&reply_to_address=&autoresponse_request_text=&autoresponse_grace_period=90d&filter_content=False&description=&administrivia=True&archive_policy=public&posting_pipeline=default-posting-pipeline&autoresponse_owner_text=&reply_goes_to_list=no_munging&subject_prefix=%5BOpen_list%5D+&advertised=True&allow_list_posts=True&autorespond_requests=none&send_welcome_message=True + body: anonymous_list=False&allow_list_posts=True&advertised=True&description=&digest_size_threshold=30.0&autorespond_postings=none&send_welcome_message=True&autoresponse_postings_text=&autorespond_owner=none&include_rfc2369_headers=True&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&collapse_alternatives=True&filter_content=False&first_strip_reply_to=False&reply_to_address=&display_name=Open_list&posting_pipeline=default-posting-pipeline&reply_goes_to_list=no_munging&admin_notify_mchanges=False&autoresponse_grace_period=90d&autorespond_requests=none&autoresponse_request_text=&admin_immed_notify=True&subject_prefix=%5BOpen_list%5D+&administrivia=True&convert_html_to_plaintext=False&archive_policy=public&default_nonmember_action=hold&default_member_action=defer&autoresponse_owner_text=&subscription_policy=open headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'PATCH' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode PATCH uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode ''} @@ -1289,8 +1289,8 @@ body: fqdn_listname=moderate_subs%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -1302,7 +1302,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": @@ -1318,7 +1318,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -1347,11 +1347,11 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: anonymous_list=False&autorespond_postings=none&display_name=Moderate_subs&admin_immed_notify=True&convert_html_to_plaintext=False&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&default_member_action=defer&digest_size_threshold=30.0&default_nonmember_action=hold&subscription_policy=moderate&first_strip_reply_to=False&collapse_alternatives=True&admin_notify_mchanges=False&autorespond_owner=none&include_rfc2369_headers=True&autoresponse_postings_text=&reply_to_address=&autoresponse_request_text=&autoresponse_grace_period=90d&filter_content=False&description=&administrivia=True&archive_policy=public&posting_pipeline=default-posting-pipeline&autoresponse_owner_text=&reply_goes_to_list=no_munging&subject_prefix=%5BModerate_subs%5D+&advertised=True&allow_list_posts=True&autorespond_requests=none&send_welcome_message=True + body: anonymous_list=False&allow_list_posts=True&advertised=True&description=&digest_size_threshold=30.0&autorespond_postings=none&send_welcome_message=True&autoresponse_postings_text=&autorespond_owner=none&include_rfc2369_headers=True&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&collapse_alternatives=True&filter_content=False&first_strip_reply_to=False&reply_to_address=&display_name=Moderate_subs&posting_pipeline=default-posting-pipeline&reply_goes_to_list=no_munging&admin_notify_mchanges=False&autoresponse_grace_period=90d&autorespond_requests=none&autoresponse_request_text=&admin_immed_notify=True&subject_prefix=%5BModerate_subs%5D+&administrivia=True&convert_html_to_plaintext=False&archive_policy=public&default_nonmember_action=hold&default_member_action=defer&autoresponse_owner_text=&subscription_policy=moderate headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'PATCH' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode PATCH uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode ''} @@ -1362,22 +1362,22 @@ body: password=&display_name=&email=test%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/9'] + location: ['http://localhost:9001/3.0/users/716'] status: {code: 201, message: Created} - request: body: email=fritz%40example.org headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/users/9/addresses + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/users/716/addresses response: body: {string: !!python/unicode ''} headers: @@ -1388,7 +1388,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'POST' + method: !!python/unicode POST uri: http://localhost:9001/3.0/addresses/fritz@example.org/verify response: body: {string: !!python/unicode ''} @@ -1399,7 +1399,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -1412,7 +1412,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -1425,7 +1425,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/open_list@example.com response: body: {string: !!python/unicode ''} @@ -1436,7 +1436,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/moderate_subs@example.com response: body: {string: !!python/unicode ''} @@ -1447,8 +1447,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/9 + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/716 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_mod_primary.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_mod_primary.yaml index f7916a9..c4df661 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_mod_primary.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_mod_primary.yaml @@ -3,7 +3,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": @@ -19,72 +19,72 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"826a7dbc854ad57b21be295fd53815e8c656fc3d\"", "is_server_owner": false, - "password": "$6$rounds=607175$SG9Aj8e6kBvnczxa$DV5kVd4WjInjsQFcqTsGvZz5jpiRyn52Eb0JN8yR4EiCW99fzxjOmCf73vKwCp6IYu/AiZCQ0VdtvVJzvnXip0", - "self_link": "http://localhost:9001/3.0/users/7", "user_id": 7}'} + "\"d507ae9ce5b7873093642e22eeac06b5b76d3c5e\"", "is_server_owner": false, + "password": "$6$rounds=673225$NVN44Usxp8mJ3l2A$Bs4Y2HEqumXKaa/BVIVz3orV2XF56rCUcG7/eJAD6jG63C2WOLmWyVcT3/iGucFig8irNU501UJKNmZrPQfY4/", + "self_link": "http://localhost:9001/3.0/users/714", "user_id": 714}'} headers: - content-length: ['324'] + content-length: ['328'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/7/addresses + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/714/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"544d5d4924c00a67b82f8d7cddaa5d2ccfd25bb9\"", "original_email": "fritz@example.org", + "\"30a5d7c841b03ca88e2aa60948d58f356577ebc2\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/7", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"deab7596aa4fed8d7db92cd9fc477a4e0fa412f6\"", + "user": "http://localhost:9001/3.0/users/714", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"c81de9c33e234637c7fff444af11b2a4821f8798\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/7"}], "http_etag": "\"6b96ef3d16bab5a374e8964c90fc1f34ca35f3e7\"", + "http://localhost:9001/3.0/users/714"}], "http_etag": "\"9e6390fd1b2b701c3ac19931f88c94d18112621c\"", "start": 0, "total_size": 2}'} headers: - content-length: ['712'] + content-length: ['716'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/fritz@example.org response: - body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"544d5d4924c00a67b82f8d7cddaa5d2ccfd25bb9\"", + body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"30a5d7c841b03ca88e2aa60948d58f356577ebc2\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "user": - "http://localhost:9001/3.0/users/7", "verified_on": "2005-08-01T07:49:23"}'} + "http://localhost:9001/3.0/users/714", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['323'] + content-length: ['325'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/test@example.com response: - body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"deab7596aa4fed8d7db92cd9fc477a4e0fa412f6\"", + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"c81de9c33e234637c7fff444af11b2a4821f8798\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/7"}'} + "http://localhost:9001/3.0/users/714"}'} headers: - content-length: ['282'] + content-length: ['284'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -97,7 +97,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -107,15 +107,15 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: pre_confirmed=True&pre_verified=True&display_name=None&subscriber=test%40example.com&list_id=moderate_subs.example.com + body: subscriber=test%40example.com&pre_confirmed=True&pre_verified=True&display_name=None&list_id=moderate_subs.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/members response: - body: {string: !!python/unicode '{"http_etag": "\"173e8f13bfe80fc48e51e982ee1abd295ddcd930\"", - "token": "6a911c419c74c6d5b4721505351f49080650bf18", "token_owner": "moderator"}'} + body: {string: !!python/unicode '{"http_etag": "\"bb41c8a8c02395cfa61d0166f062e8fecaf774bb\"", + "token": "f983ffd56bfabec80fb701b991ce867f16612133", "token_owner": "moderator"}'} headers: content-length: ['142'] content-type: [application/json; charset=utf-8] @@ -124,7 +124,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/roster/member response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -137,13 +137,13 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "test@example.com", - "http_etag": "\"dc4929d089922ed834b6ca55db444af35b0c55ee\"", "list_id": "moderate_subs.example.com", - "token": "6a911c419c74c6d5b4721505351f49080650bf18", "token_owner": "moderator", - "when": "2005-08-01T07:49:23"}], "http_etag": "\"c72c9da6f9f5fce71fac30dd2722c5810d64e891\"", + "http_etag": "\"56a5943001f7b1382170bdd54bf1c76c34b18b06\"", "list_id": "moderate_subs.example.com", + "token": "f983ffd56bfabec80fb701b991ce867f16612133", "token_owner": "moderator", + "when": "2005-08-01T07:49:23"}], "http_etag": "\"1a78ce4c916cfea39c07335b6c9aaf474132727f\"", "start": 0, "total_size": 1}'} headers: content-length: ['367'] @@ -153,7 +153,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": @@ -169,73 +169,73 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"826a7dbc854ad57b21be295fd53815e8c656fc3d\"", "is_server_owner": false, - "password": "$6$rounds=607175$SG9Aj8e6kBvnczxa$DV5kVd4WjInjsQFcqTsGvZz5jpiRyn52Eb0JN8yR4EiCW99fzxjOmCf73vKwCp6IYu/AiZCQ0VdtvVJzvnXip0", - "self_link": "http://localhost:9001/3.0/users/7", "user_id": 7}'} + "\"d507ae9ce5b7873093642e22eeac06b5b76d3c5e\"", "is_server_owner": false, + "password": "$6$rounds=673225$NVN44Usxp8mJ3l2A$Bs4Y2HEqumXKaa/BVIVz3orV2XF56rCUcG7/eJAD6jG63C2WOLmWyVcT3/iGucFig8irNU501UJKNmZrPQfY4/", + "self_link": "http://localhost:9001/3.0/users/714", "user_id": 714}'} headers: - content-length: ['324'] + content-length: ['328'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/7/addresses + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/714/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"544d5d4924c00a67b82f8d7cddaa5d2ccfd25bb9\"", "original_email": "fritz@example.org", + "\"30a5d7c841b03ca88e2aa60948d58f356577ebc2\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/7", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"61b7b0e8ffc236d34de50c013b09c99eb7ee6f64\"", + "user": "http://localhost:9001/3.0/users/714", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"1d8a58f8ad05fbce5979d09fd8925d9724ac3717\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/7", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"cd7965a44a60e1c43b736a4c2bf90265059a6283\"", "start": 0, "total_size": + "http://localhost:9001/3.0/users/714", "verified_on": "2005-08-01T07:49:23"}], + "http_etag": "\"95971ba929ea5d7f6e20ded2fe6b55bb0b6e1dcd\"", "start": 0, "total_size": 2}'} headers: - content-length: ['750'] + content-length: ['754'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/fritz@example.org response: - body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"544d5d4924c00a67b82f8d7cddaa5d2ccfd25bb9\"", + body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"30a5d7c841b03ca88e2aa60948d58f356577ebc2\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "user": - "http://localhost:9001/3.0/users/7", "verified_on": "2005-08-01T07:49:23"}'} + "http://localhost:9001/3.0/users/714", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['323'] + content-length: ['325'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/test@example.com response: - body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"61b7b0e8ffc236d34de50c013b09c99eb7ee6f64\"", + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"1d8a58f8ad05fbce5979d09fd8925d9724ac3717\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/7", "verified_on": "2005-08-01T07:49:23"}'} + "http://localhost:9001/3.0/users/714", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['320'] + content-length: ['322'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -248,7 +248,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -261,7 +261,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/member/test@example.com response: body: {string: !!python/unicode '{}'} @@ -273,7 +273,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/member/fritz@example.org response: body: {string: !!python/unicode '{}'} @@ -285,7 +285,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_mod_secondary.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_mod_secondary.yaml index d3f04e0..82b2d8f 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_mod_secondary.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_mod_secondary.yaml @@ -3,7 +3,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": @@ -19,72 +19,72 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"e4109490476eda2334028e7b5ebd0922ea91bacb\"", "is_server_owner": false, - "password": "$6$rounds=653979$/McqqMA7jakWaySi$282XS1AM4wcHWJRLCcVdEadqwSe6JMSfpPrXzeCX53oe1If3ru93AYLL.Dyx1wKTQYz1JIVoCxgLGOiiIG8DN0", - "self_link": "http://localhost:9001/3.0/users/5", "user_id": 5}'} + "\"ac9803591a721530b5c95a251e7ac560f19a6cbd\"", "is_server_owner": false, + "password": "$6$rounds=601235$lazMStdgQZaeeza6$h1KfsMCxlf54jA49MWgnWxbw.peT/QEsPP6hc1YaR/7LWv4ga/MwanvcYNPcFAdvCTjiSwSjIi2ba6/4m1O4s/", + "self_link": "http://localhost:9001/3.0/users/712", "user_id": 712}'} headers: - content-length: ['324'] + content-length: ['328'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/5/addresses + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/712/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"543b42cc5a515857d1b11ec1b3152411d9e8724e\"", "original_email": "fritz@example.org", + "\"d1c726bfc23dc68bf43774e65d8e18b4b4384e5f\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/5", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"ab97396c1c0303d5a821163e7610952e207ae1fc\"", + "user": "http://localhost:9001/3.0/users/712", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"ee2997629ec667173910a09b6f3e66f6663c8118\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/5"}], "http_etag": "\"492e6d34d9256576addb94a7321c75dd1329a7a8\"", + "http://localhost:9001/3.0/users/712"}], "http_etag": "\"dcd507883ae28151ddbcdf7514b355c7500bf29c\"", "start": 0, "total_size": 2}'} headers: - content-length: ['712'] + content-length: ['716'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/fritz@example.org response: - body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"543b42cc5a515857d1b11ec1b3152411d9e8724e\"", + body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"d1c726bfc23dc68bf43774e65d8e18b4b4384e5f\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "user": - "http://localhost:9001/3.0/users/5", "verified_on": "2005-08-01T07:49:23"}'} + "http://localhost:9001/3.0/users/712", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['323'] + content-length: ['325'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/test@example.com response: - body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"ab97396c1c0303d5a821163e7610952e207ae1fc\"", + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"ee2997629ec667173910a09b6f3e66f6663c8118\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/5"}'} + "http://localhost:9001/3.0/users/712"}'} headers: - content-length: ['282'] + content-length: ['284'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -97,7 +97,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -107,15 +107,15 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: pre_confirmed=True&pre_verified=True&display_name=None&subscriber=fritz%40example.org&list_id=moderate_subs.example.com + body: subscriber=fritz%40example.org&pre_confirmed=True&pre_verified=True&display_name=None&list_id=moderate_subs.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/members response: - body: {string: !!python/unicode '{"http_etag": "\"ebaab40a197ee4cebc1948841d06fd20b6ccf7c6\"", - "token": "44cc7158fa32f05de01a09e1140a4b437f28b01f", "token_owner": "moderator"}'} + body: {string: !!python/unicode '{"http_etag": "\"f47f7d7e2f262d1eb2a779554aab3f3b2bcd0317\"", + "token": "7946b2dea66cf4c977638062e61fede9f846a570", "token_owner": "moderator"}'} headers: content-length: ['142'] content-type: [application/json; charset=utf-8] @@ -124,7 +124,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/roster/member response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -137,13 +137,13 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "fritz@example.org", - "http_etag": "\"aa0a3a60758fb587bd9b698839c58d23b5dbeac1\"", "list_id": "moderate_subs.example.com", - "token": "44cc7158fa32f05de01a09e1140a4b437f28b01f", "token_owner": "moderator", - "when": "2005-08-01T07:49:23"}], "http_etag": "\"b6655624de25438f74064513e16b91ee8e74d5b4\"", + "http_etag": "\"3d1c95859c703bf3eabe0ee8bd8f0f26c798774e\"", "list_id": "moderate_subs.example.com", + "token": "7946b2dea66cf4c977638062e61fede9f846a570", "token_owner": "moderator", + "when": "2005-08-01T07:49:23"}], "http_etag": "\"8946d86966536d5b3353df3addf76381053e2a03\"", "start": 0, "total_size": 1}'} headers: content-length: ['368'] @@ -153,7 +153,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": @@ -169,72 +169,72 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"e4109490476eda2334028e7b5ebd0922ea91bacb\"", "is_server_owner": false, - "password": "$6$rounds=653979$/McqqMA7jakWaySi$282XS1AM4wcHWJRLCcVdEadqwSe6JMSfpPrXzeCX53oe1If3ru93AYLL.Dyx1wKTQYz1JIVoCxgLGOiiIG8DN0", - "self_link": "http://localhost:9001/3.0/users/5", "user_id": 5}'} + "\"ac9803591a721530b5c95a251e7ac560f19a6cbd\"", "is_server_owner": false, + "password": "$6$rounds=601235$lazMStdgQZaeeza6$h1KfsMCxlf54jA49MWgnWxbw.peT/QEsPP6hc1YaR/7LWv4ga/MwanvcYNPcFAdvCTjiSwSjIi2ba6/4m1O4s/", + "self_link": "http://localhost:9001/3.0/users/712", "user_id": 712}'} headers: - content-length: ['324'] + content-length: ['328'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/5/addresses + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/712/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"543b42cc5a515857d1b11ec1b3152411d9e8724e\"", "original_email": "fritz@example.org", + "\"d1c726bfc23dc68bf43774e65d8e18b4b4384e5f\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/5", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"ab97396c1c0303d5a821163e7610952e207ae1fc\"", + "user": "http://localhost:9001/3.0/users/712", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"ee2997629ec667173910a09b6f3e66f6663c8118\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/5"}], "http_etag": "\"492e6d34d9256576addb94a7321c75dd1329a7a8\"", + "http://localhost:9001/3.0/users/712"}], "http_etag": "\"dcd507883ae28151ddbcdf7514b355c7500bf29c\"", "start": 0, "total_size": 2}'} headers: - content-length: ['712'] + content-length: ['716'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/fritz@example.org response: - body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"543b42cc5a515857d1b11ec1b3152411d9e8724e\"", + body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"d1c726bfc23dc68bf43774e65d8e18b4b4384e5f\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "user": - "http://localhost:9001/3.0/users/5", "verified_on": "2005-08-01T07:49:23"}'} + "http://localhost:9001/3.0/users/712", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['323'] + content-length: ['325'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/test@example.com response: - body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"ab97396c1c0303d5a821163e7610952e207ae1fc\"", + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"ee2997629ec667173910a09b6f3e66f6663c8118\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/5"}'} + "http://localhost:9001/3.0/users/712"}'} headers: - content-length: ['282'] + content-length: ['284'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -247,7 +247,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -260,7 +260,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/member/test@example.com response: body: {string: !!python/unicode '{}'} @@ -272,7 +272,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/member/fritz@example.org response: body: {string: !!python/unicode '{}'} @@ -284,7 +284,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_open_primary.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_open_primary.yaml index 3b1a535..3c93416 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_open_primary.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_open_primary.yaml @@ -3,7 +3,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -19,72 +19,72 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"5069210111f0bea3d480abba552bd68c7addf54f\"", "is_server_owner": false, - "password": "$6$rounds=617756$iLhNGRBEKtnGdij4$g/CDqV51YF02gVAM6ExGDAkr1tRfe.EdUlzv/nxS9JwsSnFfc4.OpFDJXhfKTjCeRmiD1dx91v9PeOa6//rzT0", - "self_link": "http://localhost:9001/3.0/users/8", "user_id": 8}'} + "\"d27e6962dae39444880e7d6c2da1bc374087a6c9\"", "is_server_owner": false, + "password": "$6$rounds=703030$3ZeWTk3urzEtoCvC$Zmlz7JWQuQCdcgVflzdqNbqattF.pqVKTTaFDyOTPaAoYNO6m5yT9kyqQQIYgCClwJanpQCTYSVMQHNp7CCBu/", + "self_link": "http://localhost:9001/3.0/users/715", "user_id": 715}'} headers: - content-length: ['324'] + content-length: ['328'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/8/addresses + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/715/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"daa00b2c01031e3acab906927ca2edd5b5557399\"", "original_email": "fritz@example.org", + "\"ca8ad6211c254d2b12b27e6afbf7c5e68985a256\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/8", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"ddda9833ea38cea61dbf611f3cf46fd118cba777\"", + "user": "http://localhost:9001/3.0/users/715", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"c1c8be6c984bce8b549195d54efcff56469956ca\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/8"}], "http_etag": "\"9e159c2ae2863bc8ff50f8475e6cb154967eba0c\"", + "http://localhost:9001/3.0/users/715"}], "http_etag": "\"43a451785e892245b1d27f211e6779fcf3dd9e24\"", "start": 0, "total_size": 2}'} headers: - content-length: ['712'] + content-length: ['716'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/fritz@example.org response: - body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"daa00b2c01031e3acab906927ca2edd5b5557399\"", + body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"ca8ad6211c254d2b12b27e6afbf7c5e68985a256\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "user": - "http://localhost:9001/3.0/users/8", "verified_on": "2005-08-01T07:49:23"}'} + "http://localhost:9001/3.0/users/715", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['323'] + content-length: ['325'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/test@example.com response: - body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"ddda9833ea38cea61dbf611f3cf46fd118cba777\"", + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"c1c8be6c984bce8b549195d54efcff56469956ca\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/8"}'} + "http://localhost:9001/3.0/users/715"}'} headers: - content-length: ['282'] + content-length: ['284'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -97,7 +97,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -107,40 +107,40 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: pre_confirmed=True&pre_verified=True&display_name=None&subscriber=test%40example.com&list_id=open_list.example.com + body: subscriber=test%40example.com&pre_confirmed=True&pre_verified=True&display_name=None&list_id=open_list.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/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/14'] + location: ['http://localhost:9001/3.0/members/1053'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@example.com/roster/member response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/test@example.com", - "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"bd30b866d76909a27b30d69385955ef32ab5b4d9\"", - "list_id": "open_list.example.com", "member_id": 14, "role": "member", "self_link": - "http://localhost:9001/3.0/members/14", "user": "http://localhost:9001/3.0/users/8"}], - "http_etag": "\"8742e38a8a5ef2d2a7d43a36c238a305c782c593\"", "start": 0, "total_size": + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"ce181de8a8ae40f51e4f0213bed04ec3356df4be\"", + "list_id": "open_list.example.com", "member_id": 1053, "role": "member", "self_link": + "http://localhost:9001/3.0/members/1053", "user": "http://localhost:9001/3.0/users/715"}], + "http_etag": "\"35315cd5572b1fe37664e86e123612b13506a47c\"", "start": 0, "total_size": 1}'} headers: - content-length: ['459'] + content-length: ['465'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -153,7 +153,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -169,73 +169,73 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"5069210111f0bea3d480abba552bd68c7addf54f\"", "is_server_owner": false, - "password": "$6$rounds=617756$iLhNGRBEKtnGdij4$g/CDqV51YF02gVAM6ExGDAkr1tRfe.EdUlzv/nxS9JwsSnFfc4.OpFDJXhfKTjCeRmiD1dx91v9PeOa6//rzT0", - "self_link": "http://localhost:9001/3.0/users/8", "user_id": 8}'} + "\"d27e6962dae39444880e7d6c2da1bc374087a6c9\"", "is_server_owner": false, + "password": "$6$rounds=703030$3ZeWTk3urzEtoCvC$Zmlz7JWQuQCdcgVflzdqNbqattF.pqVKTTaFDyOTPaAoYNO6m5yT9kyqQQIYgCClwJanpQCTYSVMQHNp7CCBu/", + "self_link": "http://localhost:9001/3.0/users/715", "user_id": 715}'} headers: - content-length: ['324'] + content-length: ['328'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/8/addresses + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/715/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"daa00b2c01031e3acab906927ca2edd5b5557399\"", "original_email": "fritz@example.org", + "\"ca8ad6211c254d2b12b27e6afbf7c5e68985a256\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/8", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"9f73a0586e712ffb6e4a59c53090f38aba156bcb\"", + "user": "http://localhost:9001/3.0/users/715", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"d39470b4490b8733e8f18ffc052f1cd5864d2bf8\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/8", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"0ef0000948f82250eb9d26b515749037d580cfca\"", "start": 0, "total_size": + "http://localhost:9001/3.0/users/715", "verified_on": "2005-08-01T07:49:23"}], + "http_etag": "\"a81b52f8f881896852e9f4a4088c7c7dfc7e02c5\"", "start": 0, "total_size": 2}'} headers: - content-length: ['750'] + content-length: ['754'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/fritz@example.org response: - body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"daa00b2c01031e3acab906927ca2edd5b5557399\"", + body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"ca8ad6211c254d2b12b27e6afbf7c5e68985a256\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "user": - "http://localhost:9001/3.0/users/8", "verified_on": "2005-08-01T07:49:23"}'} + "http://localhost:9001/3.0/users/715", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['323'] + content-length: ['325'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/test@example.com response: - body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"9f73a0586e712ffb6e4a59c53090f38aba156bcb\"", + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"d39470b4490b8733e8f18ffc052f1cd5864d2bf8\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/8", "verified_on": "2005-08-01T07:49:23"}'} + "http://localhost:9001/3.0/users/715", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['320'] + content-length: ['322'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -248,7 +248,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -261,22 +261,22 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com/member/test@example.com response: body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/test@example.com", - "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"bd30b866d76909a27b30d69385955ef32ab5b4d9\"", - "list_id": "open_list.example.com", "member_id": 14, "role": "member", "self_link": - "http://localhost:9001/3.0/members/14", "user": "http://localhost:9001/3.0/users/8"}'} + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"ce181de8a8ae40f51e4f0213bed04ec3356df4be\"", + "list_id": "open_list.example.com", "member_id": 1053, "role": "member", "self_link": + "http://localhost:9001/3.0/members/1053", "user": "http://localhost:9001/3.0/users/715"}'} headers: - content-length: ['354'] + content-length: ['360'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_open_secondary.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_open_secondary.yaml index b53dfcd..885a5a7 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_open_secondary.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_open_secondary.yaml @@ -3,7 +3,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -19,72 +19,72 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"b4eff18912cd37407623c7d90cfea428c6d59b8e\"", "is_server_owner": false, - "password": "$6$rounds=663182$jW7EPq.JfwahwWPy$l8rZ1Wp8ABUiF/rPaM9vGZ.w3VGWb6i9rrgGHgFn5VDmH8ShNBtGL82SaaYt65aGjgfF5ZI3kT2AmIXzZJh/c/", - "self_link": "http://localhost:9001/3.0/users/6", "user_id": 6}'} + "\"2a43f39fc89975438b6d7acff6a9ed25d4efbd00\"", "is_server_owner": false, + "password": "$6$rounds=623033$oneFpAmM3KMpPkIU$kkeQNfGBFfeuzgkBuHgbMBJzNBgrvJV6iJTUR3/sQoYixkHeNiBBiVEi/zJKOcQJHJtF2Oi9m2F5twhZWGnkl1", + "self_link": "http://localhost:9001/3.0/users/713", "user_id": 713}'} headers: - content-length: ['324'] + content-length: ['328'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/6/addresses + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/713/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"d19795a66bdb062d4cadc434145e217d9bcc0108\"", "original_email": "fritz@example.org", + "\"7b2b1cca004b071c70ec1773414d0ba356e7f97a\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/6", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"d5238d960c86cf84782d10c3459a0ac7c33de01f\"", + "user": "http://localhost:9001/3.0/users/713", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"d2ebf1eecc4d6b4b400a6985a321c23e3272aeec\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/6"}], "http_etag": "\"8a15df442b74561ee9a7242c013b0c8b0d474146\"", + "http://localhost:9001/3.0/users/713"}], "http_etag": "\"3746763ba5ad0ccc5fa73b9240480f1c1b5e89f9\"", "start": 0, "total_size": 2}'} headers: - content-length: ['712'] + content-length: ['716'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/fritz@example.org response: - body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"d19795a66bdb062d4cadc434145e217d9bcc0108\"", + body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"7b2b1cca004b071c70ec1773414d0ba356e7f97a\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "user": - "http://localhost:9001/3.0/users/6", "verified_on": "2005-08-01T07:49:23"}'} + "http://localhost:9001/3.0/users/713", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['323'] + content-length: ['325'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/test@example.com response: - body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"d5238d960c86cf84782d10c3459a0ac7c33de01f\"", + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"d2ebf1eecc4d6b4b400a6985a321c23e3272aeec\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/6"}'} + "http://localhost:9001/3.0/users/713"}'} headers: - content-length: ['282'] + content-length: ['284'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -97,7 +97,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -107,40 +107,40 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: pre_confirmed=True&pre_verified=True&display_name=None&subscriber=fritz%40example.org&list_id=open_list.example.com + body: subscriber=fritz%40example.org&pre_confirmed=True&pre_verified=True&display_name=None&list_id=open_list.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/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/13'] + location: ['http://localhost:9001/3.0/members/1052'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@example.com/roster/member response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/fritz@example.org", - "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"523eb2649ddf50ad7c40b29179e5fc8e4fe2c8f1\"", - "list_id": "open_list.example.com", "member_id": 13, "role": "member", "self_link": - "http://localhost:9001/3.0/members/13", "user": "http://localhost:9001/3.0/users/6"}], - "http_etag": "\"992ff0a27ac7aebb741cb8b256fb5d4e5a78ad31\"", "start": 0, "total_size": + "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"c3beee4ae2c52094cc571bca6d9da3da7398eeaf\"", + "list_id": "open_list.example.com", "member_id": 1052, "role": "member", "self_link": + "http://localhost:9001/3.0/members/1052", "user": "http://localhost:9001/3.0/users/713"}], + "http_etag": "\"a964b4dfeadfac1f37af38202d8a11f241ef6180\"", "start": 0, "total_size": 1}'} headers: - content-length: ['461'] + content-length: ['467'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -153,7 +153,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -169,72 +169,72 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"b4eff18912cd37407623c7d90cfea428c6d59b8e\"", "is_server_owner": false, - "password": "$6$rounds=663182$jW7EPq.JfwahwWPy$l8rZ1Wp8ABUiF/rPaM9vGZ.w3VGWb6i9rrgGHgFn5VDmH8ShNBtGL82SaaYt65aGjgfF5ZI3kT2AmIXzZJh/c/", - "self_link": "http://localhost:9001/3.0/users/6", "user_id": 6}'} + "\"2a43f39fc89975438b6d7acff6a9ed25d4efbd00\"", "is_server_owner": false, + "password": "$6$rounds=623033$oneFpAmM3KMpPkIU$kkeQNfGBFfeuzgkBuHgbMBJzNBgrvJV6iJTUR3/sQoYixkHeNiBBiVEi/zJKOcQJHJtF2Oi9m2F5twhZWGnkl1", + "self_link": "http://localhost:9001/3.0/users/713", "user_id": 713}'} headers: - content-length: ['324'] + content-length: ['328'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/6/addresses + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/713/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"d19795a66bdb062d4cadc434145e217d9bcc0108\"", "original_email": "fritz@example.org", + "\"7b2b1cca004b071c70ec1773414d0ba356e7f97a\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/6", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"d5238d960c86cf84782d10c3459a0ac7c33de01f\"", + "user": "http://localhost:9001/3.0/users/713", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"d2ebf1eecc4d6b4b400a6985a321c23e3272aeec\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/6"}], "http_etag": "\"8a15df442b74561ee9a7242c013b0c8b0d474146\"", + "http://localhost:9001/3.0/users/713"}], "http_etag": "\"3746763ba5ad0ccc5fa73b9240480f1c1b5e89f9\"", "start": 0, "total_size": 2}'} headers: - content-length: ['712'] + content-length: ['716'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/fritz@example.org response: - body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"d19795a66bdb062d4cadc434145e217d9bcc0108\"", + body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"7b2b1cca004b071c70ec1773414d0ba356e7f97a\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "user": - "http://localhost:9001/3.0/users/6", "verified_on": "2005-08-01T07:49:23"}'} + "http://localhost:9001/3.0/users/713", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['323'] + content-length: ['325'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/test@example.com response: - body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"d5238d960c86cf84782d10c3459a0ac7c33de01f\"", + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"d2ebf1eecc4d6b4b400a6985a321c23e3272aeec\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/6"}'} + "http://localhost:9001/3.0/users/713"}'} headers: - content-length: ['282'] + content-length: ['284'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -247,7 +247,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -260,7 +260,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com/member/test@example.com response: body: {string: !!python/unicode '{}'} @@ -272,22 +272,22 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com/member/fritz@example.org response: body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/fritz@example.org", - "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"523eb2649ddf50ad7c40b29179e5fc8e4fe2c8f1\"", - "list_id": "open_list.example.com", "member_id": 13, "role": "member", "self_link": - "http://localhost:9001/3.0/members/13", "user": "http://localhost:9001/3.0/users/6"}'} + "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"c3beee4ae2c52094cc571bca6d9da3da7398eeaf\"", + "list_id": "open_list.example.com", "member_id": 1052, "role": "member", "self_link": + "http://localhost:9001/3.0/members/1052", "user": "http://localhost:9001/3.0/users/713"}'} headers: - content-length: ['356'] + content-length: ['362'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_unknown.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_unknown.yaml index 005a926..9ef9fb9 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_unknown.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_unknown.yaml @@ -3,7 +3,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -19,72 +19,72 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"95cd787b4b5d16c0ab83ba757b3c83a1f4ffaeae\"", "is_server_owner": false, - "password": "$6$rounds=661971$qUQfwiJS826sAD4m$ScmKYNkPXPW9wQUu6yxCIhaUU/phNE2Q08tbYZqw8xomvg./xF8fdIn4GZ.sML.M8DOiJYUuhAlPdzani0HPU0", - "self_link": "http://localhost:9001/3.0/users/9", "user_id": 9}'} + "\"03091a3a77f5d591c268ab78c748eac6e72b8f3f\"", "is_server_owner": false, + "password": "$6$rounds=613866$6o.DPoYUze/jsw50$IwE6c/74GM0yCMo7gfb/6h8qdsko4JswaUu2L8gv8Lk/84x74zzJ6R4k3l9QREBJiPDolE5He95y8tnTsG6Js.", + "self_link": "http://localhost:9001/3.0/users/716", "user_id": 716}'} headers: - content-length: ['324'] + content-length: ['328'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/9/addresses + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/716/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"8d3a06e7ab49e4715967bd3b56099967748b6868\"", "original_email": "fritz@example.org", + "\"effa8fc5c6a196f976736c7da67b8d3f44a88fa8\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/9", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"83c6dfb813c2b4484f0c15eb434e104521bb2409\"", + "user": "http://localhost:9001/3.0/users/716", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"d4305bc8cb94b271c3ee89d9684c28140d3bb9a4\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/9"}], "http_etag": "\"f936e2df1794def099840486f4b0cf7a24e838c8\"", + "http://localhost:9001/3.0/users/716"}], "http_etag": "\"f0246027d03aa1d4ec42c65223727ef57b26b70d\"", "start": 0, "total_size": 2}'} headers: - content-length: ['712'] + content-length: ['716'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/fritz@example.org response: - body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"8d3a06e7ab49e4715967bd3b56099967748b6868\"", + body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"effa8fc5c6a196f976736c7da67b8d3f44a88fa8\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "user": - "http://localhost:9001/3.0/users/9", "verified_on": "2005-08-01T07:49:23"}'} + "http://localhost:9001/3.0/users/716", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['323'] + content-length: ['325'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/test@example.com response: - body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"83c6dfb813c2b4484f0c15eb434e104521bb2409\"", + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"d4305bc8cb94b271c3ee89d9684c28140d3bb9a4\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/9"}'} + "http://localhost:9001/3.0/users/716"}'} headers: - content-length: ['282'] + content-length: ['284'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -97,7 +97,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -110,7 +110,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@example.com/roster/member response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -123,7 +123,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -136,7 +136,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -152,72 +152,72 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"95cd787b4b5d16c0ab83ba757b3c83a1f4ffaeae\"", "is_server_owner": false, - "password": "$6$rounds=661971$qUQfwiJS826sAD4m$ScmKYNkPXPW9wQUu6yxCIhaUU/phNE2Q08tbYZqw8xomvg./xF8fdIn4GZ.sML.M8DOiJYUuhAlPdzani0HPU0", - "self_link": "http://localhost:9001/3.0/users/9", "user_id": 9}'} + "\"03091a3a77f5d591c268ab78c748eac6e72b8f3f\"", "is_server_owner": false, + "password": "$6$rounds=613866$6o.DPoYUze/jsw50$IwE6c/74GM0yCMo7gfb/6h8qdsko4JswaUu2L8gv8Lk/84x74zzJ6R4k3l9QREBJiPDolE5He95y8tnTsG6Js.", + "self_link": "http://localhost:9001/3.0/users/716", "user_id": 716}'} headers: - content-length: ['324'] + content-length: ['328'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/9/addresses + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/716/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"8d3a06e7ab49e4715967bd3b56099967748b6868\"", "original_email": "fritz@example.org", + "\"effa8fc5c6a196f976736c7da67b8d3f44a88fa8\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/9", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"83c6dfb813c2b4484f0c15eb434e104521bb2409\"", + "user": "http://localhost:9001/3.0/users/716", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"d4305bc8cb94b271c3ee89d9684c28140d3bb9a4\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/9"}], "http_etag": "\"f936e2df1794def099840486f4b0cf7a24e838c8\"", + "http://localhost:9001/3.0/users/716"}], "http_etag": "\"f0246027d03aa1d4ec42c65223727ef57b26b70d\"", "start": 0, "total_size": 2}'} headers: - content-length: ['712'] + content-length: ['716'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/fritz@example.org response: - body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"8d3a06e7ab49e4715967bd3b56099967748b6868\"", + body: {string: !!python/unicode '{"email": "fritz@example.org", "http_etag": "\"effa8fc5c6a196f976736c7da67b8d3f44a88fa8\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "user": - "http://localhost:9001/3.0/users/9", "verified_on": "2005-08-01T07:49:23"}'} + "http://localhost:9001/3.0/users/716", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['323'] + content-length: ['325'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/test@example.com response: - body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"83c6dfb813c2b4484f0c15eb434e104521bb2409\"", + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"d4305bc8cb94b271c3ee89d9684c28140d3bb9a4\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/9"}'} + "http://localhost:9001/3.0/users/716"}'} headers: - content-length: ['282'] + content-length: ['284'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -230,7 +230,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -243,7 +243,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com/member/test@example.com response: body: {string: !!python/unicode '{}'} @@ -255,7 +255,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com/member/fritz@example.org response: body: {string: !!python/unicode '{}'} @@ -267,7 +267,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary.yaml index f326f90..bde7e37 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary.yaml @@ -3,8 +3,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -16,7 +16,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -31,7 +31,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -46,8 +46,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -59,7 +59,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": @@ -76,7 +76,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} @@ -87,33 +87,27 @@ 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": "\"eb591d9720aa0ac944b49315b6af1c950410b54c\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}, {"created_on": - "2005-08-01T07:49:23", "http_etag": "\"b36f8ca1d91d583901c768dc116815282d469c66\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/2", - "user_id": 2}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"bb1c2e6094a96b17e2d5dbf487291f7667f69f75\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3", - "user_id": 3}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"c1dcbf16536eb2e2151441f4bce2989ab1dab30b\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/4", - "user_id": 4}, {"created_on": "2005-08-01T07:49:23", "display_name": "None", - "http_etag": "\"7966e6f59bfd84a47cf7558bdc7cda9e70d9bc95\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/10", "user_id": 10}], - "http_etag": "\"67f2892d700936a58f23b8d8063126762186ddc5\"", "start": 0, "total_size": - 5}'} + "http_etag": "\"3c3c9f0a9733f127ec9ea68e6c64faf1d58b5927\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/724", "user_id": 724}, + {"created_on": "2005-08-01T07:49:23", "display_name": "None", "http_etag": + "\"2e7ffc36f680e19d93e21c7c7992d6cb1e6351b6\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/725", "user_id": 725}], "http_etag": + "\"7cc3efb637fc6820a512085660ea704863dc2f03\"", "start": 0, "total_size": + 2}'} headers: - content-length: ['1079'] + content-length: ['515'] 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/1 + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/724 response: body: {string: !!python/unicode ''} headers: @@ -123,41 +117,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/10 - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/2 - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/3 - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/4 + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/725 response: body: {string: !!python/unicode ''} headers: @@ -167,8 +128,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -180,7 +141,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -195,7 +156,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -210,8 +171,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -223,7 +184,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": @@ -240,7 +201,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} @@ -251,25 +212,24 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"81a6a45c37a5fd98d7d20f54ffaa80eb536ec875\"", "is_server_owner": - false, "password": "$6$rounds=635766$arI5HaMYUcUkT4mt$1KV3LyoedGaGwduG6o5wPhjIx2T8iL0eID9euHLDYRfq0PvSOIt2pHZu7M2kW9XrnT/3M5U.l5vHFFX6NxeEC/", - "self_link": "http://localhost:9001/3.0/users/11", "user_id": 11}], "http_etag": - "\"fae45dfa2ce00eb292fdbcda163b71ed4c95ed74\"", "start": 0, "total_size": + "http_etag": "\"7c8a27b690a19c27eba94737e8fdebcb66f16a32\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/726", "user_id": 726}], + "http_etag": "\"47dc08e34c68477d214481e5907d39b967fa48c6\"", "start": 0, "total_size": 1}'} headers: - content-length: ['431'] + content-length: ['297'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/11 + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/726 response: body: {string: !!python/unicode ''} headers: @@ -279,8 +239,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -292,7 +252,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -307,7 +267,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -322,8 +282,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -335,7 +295,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": @@ -352,7 +312,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} @@ -363,36 +323,21 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users response: - body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"676ed6cf948f851553a68e939da0b4d1294d0ad5\"", "is_server_owner": - false, "password": "$6$rounds=719066$phL55NILdqpgTC1n$Z6.akbtmAVREHNP9iu1ziGTr8/75x/B5UBdTAAbEixvlRlpqovk.zFAEB1noEpK0p.OyiMcm7yP60LtYRRQJo0", - "self_link": "http://localhost:9001/3.0/users/12", "user_id": 12}], "http_etag": - "\"89b0f8ccd3d005ca3e312865adb795f141ed8aa7\"", "start": 0, "total_size": - 1}'} + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} headers: - content-length: ['431'] + content-length: ['90'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/12 - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -404,7 +349,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -419,7 +364,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -434,8 +379,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -447,7 +392,342 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": + "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_id": "foo.example.com", "list_name": "foo", "mail_host": "example.com", + "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['399'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users + response: + body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", + "http_etag": "\"3debaf04d1aec31525390e1c875210a171b6be34\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/727", "user_id": 727}], + "http_etag": "\"38e0e3da0f4bc18e32908c306311364aef2135a8\"", "start": 0, "total_size": + 1}'} + headers: + content-length: ['297'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/727 + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode 'Duplicate email host: example.com'} + headers: + content-length: ['33'] + content-type: [application/json; charset=utf-8] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} + headers: + content-length: ['233'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} + headers: + content-length: ['233'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=foo%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/lists/foo.example.com'] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": + "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_id": "foo.example.com", "list_name": "foo", "mail_host": "example.com", + "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['399'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users + response: + body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", + "http_etag": "\"8ee914045b21ef8b55de46b1cdecd1e693126b5f\"", "is_server_owner": + false, "password": "$6$rounds=672459$.5XzeE9JOTlYa5yS$..MZ5ovo6hcQ8q4T3SlptW3LVvmXQoC6K3gDTsgjZ.EVai9jLVRBdhDhXnPvFn0wBNJ4fVPiJMM.PUm2GMKjg.", + "self_link": "http://localhost:9001/3.0/users/728", "user_id": 728}], "http_etag": + "\"782b355831918fec415383b851a8ef37aefc67f7\"", "start": 0, "total_size": + 1}'} + headers: + content-length: ['433'] + 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/728 + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode 'Duplicate email host: example.com'} + headers: + content-length: ['33'] + content-type: [application/json; charset=utf-8] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} + headers: + content-length: ['233'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} + headers: + content-length: ['233'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=foo%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/lists/foo.example.com'] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": + "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_id": "foo.example.com", "list_name": "foo", "mail_host": "example.com", + "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['399'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users + response: + body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", + "http_etag": "\"b56a8c15a0b1748e4d44c0888c9b0eb422e37bf9\"", "is_server_owner": + false, "password": "$6$rounds=636938$M8zqh7f9xl5gfu9e$vifOszUC5Wj3DpuFjmxcllX097Iixt9eijHZEjdWDOoN9A9lpMpVqK6yVuu6/5zuPpk4IX3xQYyatRcZCS/Np1", + "self_link": "http://localhost:9001/3.0/users/729", "user_id": 729}], "http_etag": + "\"4c5776b21a6f3660aea4669ed225d7f9e05b06dc\"", "start": 0, "total_size": + 1}'} + headers: + content-length: ['433'] + 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/729 + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode 'Duplicate email host: example.com'} + headers: + content-length: ['33'] + content-type: [application/json; charset=utf-8] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} + headers: + content-length: ['233'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} + headers: + content-length: ['233'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=foo%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/lists/foo.example.com'] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -462,10 +742,10 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '404 Not Found'} + body: {string: !!python/unicode 404 Not Found} headers: content-length: ['13'] content-type: [application/json; charset=utf-8] @@ -474,7 +754,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -487,7 +767,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -500,7 +780,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com response: body: {string: !!python/unicode '{}'} @@ -512,7 +792,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": @@ -543,7 +823,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": @@ -560,7 +840,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} @@ -571,7 +851,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -584,8 +864,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -597,7 +877,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -612,7 +892,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -627,8 +907,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -640,7 +920,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", @@ -655,7 +935,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": @@ -686,7 +966,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": @@ -703,7 +983,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} @@ -714,7 +994,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -727,8 +1007,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -740,7 +1020,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -755,7 +1035,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -770,8 +1050,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -783,7 +1063,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": @@ -800,7 +1080,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} @@ -811,25 +1091,25 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"a7a3c57597447c2443ed1101f1097bb2ec2b4110\"", "is_server_owner": - false, "password": "$6$rounds=604483$BkDgwrJ0Z7pthTXV$ObkFQ/SKljM0MSbFzcJAelWxC67ZHSh0U2gi9HPQrLq3OWe..g3Gz4GCI0J25KYfnjGzPTvtJ9eIvdUoXp.G61", - "self_link": "http://localhost:9001/3.0/users/13", "user_id": 13}], "http_etag": - "\"1ea35eb2e9d3b5d4c0a5c49985c1e5b17979cb01\"", "start": 0, "total_size": + "http_etag": "\"616225adf1f009f6255e4f0f6a0be5762e6b6642\"", "is_server_owner": + false, "password": "$6$rounds=681732$r1o3130JXF3hnxWi$l.mXElTVt0XklVo7CmqwcGtuhy8bMXk2DVdNUrloRUYNmVXNnGXePBbfD1hc3K73zBC8R3YNzOIRpQfhkAFCP.", + "self_link": "http://localhost:9001/3.0/users/730", "user_id": 730}], "http_etag": + "\"3152064e554acb97c3ba059edb20d4263a6b582f\"", "start": 0, "total_size": 1}'} headers: - content-length: ['431'] + content-length: ['433'] 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/13 + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/730 response: body: {string: !!python/unicode ''} headers: @@ -839,8 +1119,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -852,7 +1132,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -867,7 +1147,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -882,8 +1162,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -895,7 +1175,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": @@ -912,7 +1192,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} @@ -923,25 +1203,25 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"caa019711dcaafe68735a01a212f4fc3244f0183\"", "is_server_owner": - false, "password": "$6$rounds=646646$c5qqiWUJsSZgDbRE$Bal1PTO/T/WjfBR2ctnYQcpdw19PH/ZHi1gfeup9Ktb2kvvbjjEYIL02B3wuPVebgVnt18dBELIQk4Ndr9tCV1", - "self_link": "http://localhost:9001/3.0/users/14", "user_id": 14}], "http_etag": - "\"9653c3d39b89ce38d1c9d9e726f421a94c959f49\"", "start": 0, "total_size": + "http_etag": "\"f3f19eb684e6bf3f831ccc0ef50f3c38b307b198\"", "is_server_owner": + false, "password": "$6$rounds=619532$Qu9RRa.GJuLJj5cw$MfkWYNWrsx27.fLxsdTLVzS1Nj/r4WylFiepfHASJ3eosE7O61RHuCoZFy3Ekwu03rYBmjc/Mtc/5Z5kMF5un0", + "self_link": "http://localhost:9001/3.0/users/731", "user_id": 731}], "http_etag": + "\"e1f0c8b32b01a3970ff5946c3e29f531acd60654\"", "start": 0, "total_size": 1}'} headers: - content-length: ['431'] + content-length: ['433'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/14 + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/731 response: body: {string: !!python/unicode ''} headers: @@ -951,8 +1231,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -964,7 +1244,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -979,7 +1259,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -994,8 +1274,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -1007,7 +1287,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": @@ -1024,7 +1304,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} @@ -1035,27 +1315,124 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "display_name": "None", "http_etag": "\"0b279530a26f451f002e7274f6182ec4f7b10218\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/15", - "user_id": 15}], "http_etag": "\"a8eee06b197fc6dabec80d515fdc8c0d06a3c15f\"", + "display_name": "None", "http_etag": "\"41efc9e9766b57122fcfc47a7f238f992794c501\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/732", + "user_id": 732}], "http_etag": "\"8895f84a831b0ef9d3c2b4232cb1e86982c2def2\"", "start": 0, "total_size": 1}'} headers: - content-length: ['319'] + content-length: ['321'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/15 + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/732 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] status: {code: 204, message: No Content} +- request: + body: mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode 'Duplicate email host: example.com'} + headers: + content-length: ['33'] + content-type: [application/json; charset=utf-8] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} + headers: + content-length: ['233'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} + headers: + content-length: ['233'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=foo%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/lists/foo.example.com'] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": + "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_id": "foo.example.com", "list_name": "foo", "mail_host": "example.com", + "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['399'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users + response: + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_anonymous.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_anonymous.yaml new file mode 100644 index 0000000..2e723bc --- /dev/null +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_anonymous.yaml @@ -0,0 +1,48 @@ +interactions: +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_size_threshold": 30.0, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"f24060c0fd5762da0d17009ff8b6f303bee3cd2f\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + headers: + content-length: ['1610'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_moderator.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_moderator.yaml new file mode 100644 index 0000000..021ebbe --- /dev/null +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_moderator.yaml @@ -0,0 +1,163 @@ +interactions: +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: subscriber=test%40example.com&role=moderator&list_id=foo.example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/members + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/members/1075'] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/test@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"3debaf04d1aec31525390e1c875210a171b6be34\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/727", "user_id": 727}'} + headers: + content-length: ['192'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/727/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag": + "\"094b2b94eceb47db61cfab8978a9ce2e3063ecfd\"", "original_email": "test@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", + "user": "http://localhost:9001/3.0/users/727"}], "http_etag": "\"c020b87557a8ab64ae9676605e5642f63ebbc4d1\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['389'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/addresses/test@example.com + response: + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"094b2b94eceb47db61cfab8978a9ce2e3063ecfd\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/727"}'} + headers: + content-length: ['284'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/test@example.com", + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"919f130cb98e49f3e8101d86368aca8743ba7ae4\"", + "list_id": "foo.example.com", "member_id": 1075, "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/1075", "user": "http://localhost:9001/3.0/users/727"}], + "http_etag": "\"6d1c79a6d89cf8a2a5d4128016bc1639af12831c\"", "start": 0, "total_size": + 1}'} + headers: + content-length: ['462'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com + response: + body: {string: !!python/unicode '{}'} + headers: + content-length: ['2'] + content-type: [application/json] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_size_threshold": 30.0, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"f24060c0fd5762da0d17009ff8b6f303bee3cd2f\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + headers: + content-length: ['1610'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_owner.yaml new file mode 100644 index 0000000..624f684 --- /dev/null +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_owner.yaml @@ -0,0 +1,163 @@ +interactions: +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: subscriber=test%40example.com&role=owner&list_id=foo.example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/members + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/members/1074'] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/test@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"7c8a27b690a19c27eba94737e8fdebcb66f16a32\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/726", "user_id": 726}'} + headers: + content-length: ['192'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/726/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag": + "\"9d8b313b0036e2adfcd0a2913f35372dfe49788b\"", "original_email": "test@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", + "user": "http://localhost:9001/3.0/users/726"}], "http_etag": "\"61888c81ebe6a0610fb4910397a446059cb7b58f\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['389'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/addresses/test@example.com + response: + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"9d8b313b0036e2adfcd0a2913f35372dfe49788b\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/726"}'} + headers: + content-length: ['284'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/test@example.com", + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"67d42fa2d999d61bd1118fb10127e348e8e64bff\"", + "list_id": "foo.example.com", "member_id": 1074, "role": "owner", "self_link": + "http://localhost:9001/3.0/members/1074", "user": "http://localhost:9001/3.0/users/726"}], + "http_etag": "\"3d770af5a6815c2a064fa13775d47641a037c3cb\"", "start": 0, "total_size": + 1}'} + headers: + content-length: ['458'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com + response: + body: {string: !!python/unicode '{}'} + headers: + content-length: ['2'] + content-type: [application/json] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_size_threshold": 30.0, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"f24060c0fd5762da0d17009ff8b6f303bee3cd2f\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + headers: + content-length: ['1610'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_superuser.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_superuser.yaml new file mode 100644 index 0000000..2749ff3 --- /dev/null +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_superuser.yaml @@ -0,0 +1,113 @@ +interactions: +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/testadmin@example.com + response: + body: {string: !!python/unicode 404 Not Found} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com/member/testadmin@example.com + response: + body: {string: !!python/unicode '{}'} + headers: + content-length: ['2'] + content-type: [application/json] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_size_threshold": 30.0, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"f24060c0fd5762da0d17009ff8b6f303bee3cd2f\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + headers: + content-length: ['1610'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_moderator.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_moderator.yaml index 8862a81..4581039 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_moderator.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_moderator.yaml @@ -3,20 +3,20 @@ body: password=None&display_name=&email=test%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/13'] + location: ['http://localhost:9001/3.0/users/730'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -28,23 +28,23 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: role=moderator&list_id=foo.example.com&subscriber=test%40example.com + body: subscriber=test%40example.com&role=moderator&list_id=foo.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/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/18'] + location: ['http://localhost:9001/3.0/members/1078'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -59,53 +59,53 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"a7a3c57597447c2443ed1101f1097bb2ec2b4110\"", "is_server_owner": false, - "password": "$6$rounds=604483$BkDgwrJ0Z7pthTXV$ObkFQ/SKljM0MSbFzcJAelWxC67ZHSh0U2gi9HPQrLq3OWe..g3Gz4GCI0J25KYfnjGzPTvtJ9eIvdUoXp.G61", - "self_link": "http://localhost:9001/3.0/users/13", "user_id": 13}'} + "\"616225adf1f009f6255e4f0f6a0be5762e6b6642\"", "is_server_owner": false, + "password": "$6$rounds=681732$r1o3130JXF3hnxWi$l.mXElTVt0XklVo7CmqwcGtuhy8bMXk2DVdNUrloRUYNmVXNnGXePBbfD1hc3K73zBC8R3YNzOIRpQfhkAFCP.", + "self_link": "http://localhost:9001/3.0/users/730", "user_id": 730}'} headers: - content-length: ['326'] + content-length: ['328'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/13/addresses + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/730/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag": - "\"183bd2070dec2c1087e072dede15f46d64ad4c23\"", "original_email": "test@example.com", + "\"03c5a2c56522c84dd8c084c7a6d64920469cf680\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "user": "http://localhost:9001/3.0/users/13"}], "http_etag": "\"b92fe879e91887ed2a5e9d8fbbfa1d827c984395\"", + "user": "http://localhost:9001/3.0/users/730"}], "http_etag": "\"ef456b15b9e53f15f0cd2a1102dfadd8fe0e2b65\"", "start": 0, "total_size": 1}'} headers: - content-length: ['388'] + content-length: ['389'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/test@example.com response: - body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"183bd2070dec2c1087e072dede15f46d64ad4c23\"", + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"03c5a2c56522c84dd8c084c7a6d64920469cf680\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/13"}'} + "http://localhost:9001/3.0/users/730"}'} headers: - content-length: ['283'] + content-length: ['284'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -118,24 +118,24 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/test@example.com", - "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"7a5e82df811d3d28574261af1543548066ce3fe8\"", - "list_id": "foo.example.com", "member_id": 18, "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/18", "user": "http://localhost:9001/3.0/users/13"}], - "http_etag": "\"9dfa5492b331f6e004d14603252957862de41666\"", "start": 0, "total_size": + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"1aa3823ad68eee70547a1d9afbce56f450663db7\"", + "list_id": "foo.example.com", "member_id": 1078, "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/1078", "user": "http://localhost:9001/3.0/users/730"}], + "http_etag": "\"8d5674890e2b076c78185329166bd4a1374d3447\"", "start": 0, "total_size": 1}'} headers: - content-length: ['457'] + content-length: ['462'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com response: body: {string: !!python/unicode '{}'} @@ -147,7 +147,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_owner.yaml index 0af05b2..3b3bc36 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_owner.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_owner.yaml @@ -3,20 +3,20 @@ body: password=None&display_name=&email=test%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/14'] + location: ['http://localhost:9001/3.0/users/731'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -28,23 +28,23 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: role=owner&list_id=foo.example.com&subscriber=test%40example.com + body: subscriber=test%40example.com&role=owner&list_id=foo.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/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/19'] + location: ['http://localhost:9001/3.0/members/1079'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -59,70 +59,70 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"caa019711dcaafe68735a01a212f4fc3244f0183\"", "is_server_owner": false, - "password": "$6$rounds=646646$c5qqiWUJsSZgDbRE$Bal1PTO/T/WjfBR2ctnYQcpdw19PH/ZHi1gfeup9Ktb2kvvbjjEYIL02B3wuPVebgVnt18dBELIQk4Ndr9tCV1", - "self_link": "http://localhost:9001/3.0/users/14", "user_id": 14}'} + "\"f3f19eb684e6bf3f831ccc0ef50f3c38b307b198\"", "is_server_owner": false, + "password": "$6$rounds=619532$Qu9RRa.GJuLJj5cw$MfkWYNWrsx27.fLxsdTLVzS1Nj/r4WylFiepfHASJ3eosE7O61RHuCoZFy3Ekwu03rYBmjc/Mtc/5Z5kMF5un0", + "self_link": "http://localhost:9001/3.0/users/731", "user_id": 731}'} headers: - content-length: ['326'] + content-length: ['328'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/14/addresses + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/731/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag": - "\"6c39fd341eea07279f00e7cd3cd0ecd501bc0cec\"", "original_email": "test@example.com", + "\"66993cf2bb3fb5afdf0833140a65de20c66444e3\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "user": "http://localhost:9001/3.0/users/14"}], "http_etag": "\"90fbccbf73f5e633883d07ed7e6b4f1f1217a341\"", + "user": "http://localhost:9001/3.0/users/731"}], "http_etag": "\"7202446153c6866c735177eadee03f5186ddb9c1\"", "start": 0, "total_size": 1}'} headers: - content-length: ['388'] + content-length: ['389'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/test@example.com response: - body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"6c39fd341eea07279f00e7cd3cd0ecd501bc0cec\"", + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"66993cf2bb3fb5afdf0833140a65de20c66444e3\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/14"}'} + "http://localhost:9001/3.0/users/731"}'} headers: - content-length: ['283'] + content-length: ['284'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/test@example.com", - "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"d77459548aacd98e7e899b0da31054b770f62b7a\"", - "list_id": "foo.example.com", "member_id": 19, "role": "owner", "self_link": - "http://localhost:9001/3.0/members/19", "user": "http://localhost:9001/3.0/users/14"}], - "http_etag": "\"dfd2ca47d1059f55dd52d1bd3ec6d6c2de061024\"", "start": 0, "total_size": + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"92770c9a13050ec10ec0e327d55d8a6a3614ed9d\"", + "list_id": "foo.example.com", "member_id": 1079, "role": "owner", "self_link": + "http://localhost:9001/3.0/members/1079", "user": "http://localhost:9001/3.0/users/731"}], + "http_etag": "\"537358392cf67ba600e45c6f554b26367f46e314\"", "start": 0, "total_size": 1}'} headers: - content-length: ['453'] + content-length: ['458'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -135,7 +135,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com response: body: {string: !!python/unicode '{}'} @@ -147,7 +147,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_secondary_moderator.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_secondary_moderator.yaml index 9636ae0..0ba7f4d 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_secondary_moderator.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_secondary_moderator.yaml @@ -3,22 +3,22 @@ body: password=None&display_name=&email=test%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/11'] + location: ['http://localhost:9001/3.0/users/728'] status: {code: 201, message: Created} - request: body: email=anotheremail%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/users/11/addresses + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/users/728/addresses response: body: {string: !!python/unicode ''} headers: @@ -29,7 +29,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'POST' + method: !!python/unicode POST uri: http://localhost:9001/3.0/addresses/anotheremail@example.com/verify response: body: {string: !!python/unicode ''} @@ -40,7 +40,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -52,23 +52,23 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: role=moderator&list_id=foo.example.com&subscriber=anotheremail%40example.com + body: subscriber=anotheremail%40example.com&role=moderator&list_id=foo.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/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/16'] + location: ['http://localhost:9001/3.0/members/1076'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -83,72 +83,72 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"81a6a45c37a5fd98d7d20f54ffaa80eb536ec875\"", "is_server_owner": false, - "password": "$6$rounds=635766$arI5HaMYUcUkT4mt$1KV3LyoedGaGwduG6o5wPhjIx2T8iL0eID9euHLDYRfq0PvSOIt2pHZu7M2kW9XrnT/3M5U.l5vHFFX6NxeEC/", - "self_link": "http://localhost:9001/3.0/users/11", "user_id": 11}'} + "\"8ee914045b21ef8b55de46b1cdecd1e693126b5f\"", "is_server_owner": false, + "password": "$6$rounds=672459$.5XzeE9JOTlYa5yS$..MZ5ovo6hcQ8q4T3SlptW3LVvmXQoC6K3gDTsgjZ.EVai9jLVRBdhDhXnPvFn0wBNJ4fVPiJMM.PUm2GMKjg.", + "self_link": "http://localhost:9001/3.0/users/728", "user_id": 728}'} headers: - content-length: ['326'] + content-length: ['328'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/11/addresses + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/728/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "anotheremail@example.com", - "http_etag": "\"a4e95a1b0bb38032015c89f7fedebd75e5346b81\"", "original_email": + "http_etag": "\"8f2efac8726dacb09c3905e74ca61579e571ba64\"", "original_email": "anotheremail@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": - "http://localhost:9001/3.0/addresses/anotheremail@example.com", "user": "http://localhost:9001/3.0/users/11", + "http://localhost:9001/3.0/addresses/anotheremail@example.com", "user": "http://localhost:9001/3.0/users/728", "verified_on": "2005-08-01T07:49:23"}, {"email": "test@example.com", "http_etag": - "\"c0069cae5d04efb49c7546aef78ce21c4d054047\"", "original_email": "test@example.com", + "\"9dd4d9d336f357698f2e77d9cb844b4325614efd\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "user": "http://localhost:9001/3.0/users/11"}], "http_etag": "\"4474fece478b21913bafd6444eaaf7169027ebab\"", + "user": "http://localhost:9001/3.0/users/728"}], "http_etag": "\"9c1fde44ce1dac6dfc3a0833422801e7fe61c2e3\"", "start": 0, "total_size": 2}'} headers: - content-length: ['735'] + content-length: ['737'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/anotheremail@example.com response: body: {string: !!python/unicode '{"email": "anotheremail@example.com", "http_etag": - "\"a4e95a1b0bb38032015c89f7fedebd75e5346b81\"", "original_email": "anotheremail@example.com", + "\"8f2efac8726dacb09c3905e74ca61579e571ba64\"", "original_email": "anotheremail@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/anotheremail@example.com", - "user": "http://localhost:9001/3.0/users/11", "verified_on": "2005-08-01T07:49:23"}'} + "user": "http://localhost:9001/3.0/users/728", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['345'] + content-length: ['346'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/test@example.com response: - body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"c0069cae5d04efb49c7546aef78ce21c4d054047\"", + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"9dd4d9d336f357698f2e77d9cb844b4325614efd\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/11"}'} + "http://localhost:9001/3.0/users/728"}'} headers: - content-length: ['283'] + content-length: ['284'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -161,24 +161,24 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/anotheremail@example.com", "delivery_mode": "regular", "email": "anotheremail@example.com", "http_etag": - "\"5e8ef308ea65a28cf7a6aa38d17668742c04bb62\"", "list_id": "foo.example.com", - "member_id": 16, "role": "moderator", "self_link": "http://localhost:9001/3.0/members/16", - "user": "http://localhost:9001/3.0/users/11"}], "http_etag": "\"703b35e455f307c5b9ceeae4b798274967f82cbf\"", + "\"7fdddc81f40030bcbc855c5377b78459158ad6b8\"", "list_id": "foo.example.com", + "member_id": 1076, "role": "moderator", "self_link": "http://localhost:9001/3.0/members/1076", + "user": "http://localhost:9001/3.0/users/728"}], "http_etag": "\"b9d303db741677b13488dd8fc606dbf622dd30f8\"", "start": 0, "total_size": 1}'} headers: - content-length: ['473'] + content-length: ['478'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com response: body: {string: !!python/unicode '{}'} @@ -190,7 +190,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/member/anotheremail@example.com response: body: {string: !!python/unicode '{}'} @@ -202,7 +202,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_secondary_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_secondary_owner.yaml index db82890..d934713 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_secondary_owner.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_secondary_owner.yaml @@ -3,22 +3,22 @@ body: password=None&display_name=&email=test%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/12'] + location: ['http://localhost:9001/3.0/users/729'] status: {code: 201, message: Created} - request: body: email=anotheremail%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/users/12/addresses + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/users/729/addresses response: body: {string: !!python/unicode ''} headers: @@ -29,7 +29,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'POST' + method: !!python/unicode POST uri: http://localhost:9001/3.0/addresses/anotheremail@example.com/verify response: body: {string: !!python/unicode ''} @@ -40,7 +40,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -52,23 +52,23 @@ content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: role=owner&list_id=foo.example.com&subscriber=anotheremail%40example.com + body: subscriber=anotheremail%40example.com&role=owner&list_id=foo.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/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/17'] + location: ['http://localhost:9001/3.0/members/1077'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -83,89 +83,89 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"676ed6cf948f851553a68e939da0b4d1294d0ad5\"", "is_server_owner": false, - "password": "$6$rounds=719066$phL55NILdqpgTC1n$Z6.akbtmAVREHNP9iu1ziGTr8/75x/B5UBdTAAbEixvlRlpqovk.zFAEB1noEpK0p.OyiMcm7yP60LtYRRQJo0", - "self_link": "http://localhost:9001/3.0/users/12", "user_id": 12}'} + "\"b56a8c15a0b1748e4d44c0888c9b0eb422e37bf9\"", "is_server_owner": false, + "password": "$6$rounds=636938$M8zqh7f9xl5gfu9e$vifOszUC5Wj3DpuFjmxcllX097Iixt9eijHZEjdWDOoN9A9lpMpVqK6yVuu6/5zuPpk4IX3xQYyatRcZCS/Np1", + "self_link": "http://localhost:9001/3.0/users/729", "user_id": 729}'} headers: - content-length: ['326'] + content-length: ['328'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/12/addresses + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/729/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "anotheremail@example.com", - "http_etag": "\"87757bcc49341afdc0afe3bd0d36f36e78df20ac\"", "original_email": + "http_etag": "\"c753b48ebe378f7c00041af27eb96069e6f416bf\"", "original_email": "anotheremail@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": - "http://localhost:9001/3.0/addresses/anotheremail@example.com", "user": "http://localhost:9001/3.0/users/12", + "http://localhost:9001/3.0/addresses/anotheremail@example.com", "user": "http://localhost:9001/3.0/users/729", "verified_on": "2005-08-01T07:49:23"}, {"email": "test@example.com", "http_etag": - "\"7153fc9edd12dfb866876de2d6ff5b66fbd13574\"", "original_email": "test@example.com", + "\"c89307cf5842c50ec41550ae5b0ae852673b3e79\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "user": "http://localhost:9001/3.0/users/12"}], "http_etag": "\"cbdc9b29a0361770b4d4ef099804fafac8658e9f\"", + "user": "http://localhost:9001/3.0/users/729"}], "http_etag": "\"c539bea6c5bfda3b796903419f0d417916026173\"", "start": 0, "total_size": 2}'} headers: - content-length: ['735'] + content-length: ['737'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/anotheremail@example.com response: body: {string: !!python/unicode '{"email": "anotheremail@example.com", "http_etag": - "\"87757bcc49341afdc0afe3bd0d36f36e78df20ac\"", "original_email": "anotheremail@example.com", + "\"c753b48ebe378f7c00041af27eb96069e6f416bf\"", "original_email": "anotheremail@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/anotheremail@example.com", - "user": "http://localhost:9001/3.0/users/12", "verified_on": "2005-08-01T07:49:23"}'} + "user": "http://localhost:9001/3.0/users/729", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['345'] + content-length: ['346'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/test@example.com response: - body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"7153fc9edd12dfb866876de2d6ff5b66fbd13574\"", + body: {string: !!python/unicode '{"email": "test@example.com", "http_etag": "\"c89307cf5842c50ec41550ae5b0ae852673b3e79\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/12"}'} + "http://localhost:9001/3.0/users/729"}'} headers: - content-length: ['283'] + content-length: ['284'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/anotheremail@example.com", "delivery_mode": "regular", "email": "anotheremail@example.com", "http_etag": - "\"1dcdea21d162b2b7b661ed38d56abad16aa0f86d\"", "list_id": "foo.example.com", - "member_id": 17, "role": "owner", "self_link": "http://localhost:9001/3.0/members/17", - "user": "http://localhost:9001/3.0/users/12"}], "http_etag": "\"d00c11a75be20062250c88f1f98890c9ba1886cb\"", + "\"28b1a158be5f5be301971e3ddb1736b6a862e000\"", "list_id": "foo.example.com", + "member_id": 1077, "role": "owner", "self_link": "http://localhost:9001/3.0/members/1077", + "user": "http://localhost:9001/3.0/users/729"}], "http_etag": "\"a89ea6787c1831197eb9b969691a585a8f3bf6cb\"", "start": 0, "total_size": 1}'} headers: - content-length: ['469'] + content-length: ['474'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -178,7 +178,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com response: body: {string: !!python/unicode '{}'} @@ -190,7 +190,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/member/anotheremail@example.com response: body: {string: !!python/unicode '{}'} @@ -202,7 +202,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_model-2.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_model-2.yaml index d8ec665..b97e37c 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_model-2.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_model-2.yaml @@ -3,10 +3,10 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '404 Not Found'} + body: {string: !!python/unicode 404 Not Found} headers: content-length: ['13'] content-type: [application/json; charset=utf-8] diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_model.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_model.yaml index 09a05ee..1f8249e 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_model.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_model.yaml @@ -3,8 +3,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -16,7 +16,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -31,7 +31,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -46,8 +46,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -59,52 +59,52 @@ body: password=None&display_name=None&email=test%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/16'] + location: ['http://localhost:9001/3.0/users/723'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "display_name": - "None", "http_etag": "\"e93956f9532de05e56a12587aed2ca225c7e6967\"", "is_server_owner": - false, "password": "$6$rounds=620475$U/k4mNqtbM.RfQUG$afK7WjAvMDH6No8.sJFC.gDc9mQiPh2g/AayiJlnWjdh3FVJ9oMCJz8qTG7xVzXFzcKB/ZBhMgSI0XvUmngNZ1", - "self_link": "http://localhost:9001/3.0/users/16", "user_id": 16}'} + "None", "http_etag": "\"10bce4e08f42e79f4f4697710109a892495ec457\"", "is_server_owner": + false, "password": "$6$rounds=617066$BNEPM0lB8jcr1k4a$iMYvG5Opb0vi5qExN4BeC7f3SCt1kclbp5RoL2bGc1HNvElObSga4auz6j.AFCotRsvqsSLznFDYVGihVYb640", + "self_link": "http://localhost:9001/3.0/users/723", "user_id": 723}'} headers: - content-length: ['350'] + content-length: ['352'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/16/addresses + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/723/addresses response: body: {string: !!python/unicode '{"entries": [{"display_name": "None", "email": - "test@example.com", "http_etag": "\"24f2e8b58e4114eaf200d809478de7780bec45d3\"", + "test@example.com", "http_etag": "\"65d52404f595b812eba1db559314b643e8aa39c7\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/16"}], "http_etag": "\"a397078704b2ee81925e19d23f3f9a74684b5ac7\"", + "http://localhost:9001/3.0/users/723"}], "http_etag": "\"413f827548a808d7e3d9e18a31ae502a79ec6533\"", "start": 0, "total_size": 1}'} headers: - content-length: ['412'] + content-length: ['413'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": @@ -121,7 +121,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} @@ -132,25 +132,104 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "display_name": "None", "http_etag": "\"e93956f9532de05e56a12587aed2ca225c7e6967\"", - "is_server_owner": false, "password": "$6$rounds=620475$U/k4mNqtbM.RfQUG$afK7WjAvMDH6No8.sJFC.gDc9mQiPh2g/AayiJlnWjdh3FVJ9oMCJz8qTG7xVzXFzcKB/ZBhMgSI0XvUmngNZ1", - "self_link": "http://localhost:9001/3.0/users/16", "user_id": 16}], "http_etag": - "\"c7fffba8116f03e8cbc2aa91d4ce22d33278c70c\"", "start": 0, "total_size": - 1}'} + "http_etag": "\"1bd866f2360ae18d1b4eb5694c41049dfc6123c1\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/717", "user_id": 717}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"f3ae14975cc188a94c91842fc7474da4c2f8b1dd\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/718", + "user_id": 718}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"5abeb37f37cb2e34a199877ebd478c8ff0e5c4d3\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/719", + "user_id": 719}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"97cdadef28b0f30a2a0df71695104ae4f08e0981\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/720", + "user_id": 720}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"f206325454526c0a6fdc5973a6347af757e9210e\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/721", + "user_id": 721}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"f0f06a596368f3735b71d2d3a267630745581782\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/722", + "user_id": 722}, {"created_on": "2005-08-01T07:49:23", "display_name": "None", + "http_etag": "\"10bce4e08f42e79f4f4697710109a892495ec457\"", "is_server_owner": + false, "password": "$6$rounds=617066$BNEPM0lB8jcr1k4a$iMYvG5Opb0vi5qExN4BeC7f3SCt1kclbp5RoL2bGc1HNvElObSga4auz6j.AFCotRsvqsSLznFDYVGihVYb640", + "self_link": "http://localhost:9001/3.0/users/723", "user_id": 723}], "http_etag": + "\"c29865cf522a5342f98666e227baf1dcdbc09699\"", "start": 0, "total_size": + 7}'} headers: - content-length: ['455'] + content-length: ['1621'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/16 + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/717 + 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/718 + 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/719 + 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/720 + 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/721 + 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/722 + 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/723 response: body: {string: !!python/unicode ''} headers: @@ -160,8 +239,8 @@ body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode 'Duplicate email host: example.com'} @@ -173,7 +252,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -188,7 +267,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode '{"base_url": "http://example.com", "description": @@ -203,8 +282,8 @@ body: fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} @@ -216,7 +295,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": @@ -233,7 +312,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode ''} @@ -244,7 +323,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", diff --git a/src/postorius/tests/mailman_api_tests/test_list_metrics.py b/src/postorius/tests/mailman_api_tests/test_list_metrics.py deleted file mode 100644 index 4c6ed20..0000000 --- a/src/postorius/tests/mailman_api_tests/test_list_metrics.py +++ /dev/null @@ -1,64 +0,0 @@ -from __future__ import ( - absolute_import, division, print_function, unicode_literals) - - -import six -import logging - - -from django.conf import settings -from django.contrib.auth.models import User -from django.core.urlresolvers import reverse -from django.test import Client, SimpleTestCase -from django.test.utils import override_settings -from six.moves.urllib_error import HTTPError -from six.moves.urllib_parse import quote - -from postorius.utils import get_client -from postorius.tests import MM_VCR, API_CREDENTIALS - - -logger = logging.getLogger(__name__) -vcr_log = logging.getLogger('vcr') -vcr_log.setLevel(logging.WARNING) - - - -@override_settings(**API_CREDENTIALS) -class TestListMetrics(SimpleTestCase): - - @MM_VCR.use_cassette('test_list_metrics.yaml') - def setUp(self): - self.mm_client = get_client() - try: - self.domain = self.mm_client.create_domain('example.org') - except HTTPError: - self.domain = self.mm_client.get_domain('example.org') - self.domain.create_list('test') - self.test_list = self.mm_client.get_list('test@example.org') - User.objects.filter(username='su').delete() - self.superuser = User.objects.create_superuser( - 'su', 'su@example.com', 'pwd') - - @MM_VCR.use_cassette('test_list_metrics.yaml') - def test_metrics_page_not_accessible_to_anonymous(self): - url = reverse('list_metrics', args=['test@example.org']) - response = self.client.get(url) - if "%40" not in url: # Django < 1.8 - url = quote(url) - expected_redirect = "http://testserver%s?next=%s" % ( - reverse(settings.LOGIN_URL), url) - self.assertEqual(response.status_code, 302) - self.assertEqual(response["location"], expected_redirect) - - @MM_VCR.use_cassette('test_list_metrics.yaml') - def test_metrics_page_contains_metrics(self): - self.client.login(username='su', password='pwd') - response = self.client.get(reverse('list_metrics', args=['test@example.org'])) - self.assertEqual(response.status_code, 200) - - @MM_VCR.use_cassette('test_list_metrics.yaml') - def tearDown(self): - self.superuser.delete() - self.test_list.delete() - self.mm_client.delete_domain('example.org') diff --git a/src/postorius/tests/mailman_api_tests/test_list_summary.py b/src/postorius/tests/mailman_api_tests/test_list_summary.py index c2e9a85..87eefc3 100644 --- a/src/postorius/tests/mailman_api_tests/test_list_summary.py +++ b/src/postorius/tests/mailman_api_tests/test_list_summary.py @@ -162,3 +162,32 @@ args=('foo@example.com', ))) self.assertEqual(response.status_code, 200) self.assertContains(response, '
  • ', count=3) + + @MM_VCR.use_cassette('test_list_summary_metrics_anonymous.yaml') + def test_metrics_not_displayed_to_anonymous(self): + response = self.client.get(reverse('list_summary', args=('foo@example.com',))) + self.assertNotContains(response, '

    List Metrics

    ') + + @MM_VCR.use_cassette('test_list_summary_metrics_moderator.yaml') + def test_list_metrics_not_displayed_to_moderator(self): + mlist = self.mmclient.get_list('foo@example.com') + mlist.add_moderator('test@example.com') + self.client.login(username='testuser', password='testpass') + response = self.client.get(reverse('list_summary', args=('foo@example.com',))) + self.assertNotContains(response, '

    List Metrics

    ') + + @MM_VCR.use_cassette('test_list_summary_metrics_owner.yaml') + def test_list_metrics_displayed_to_owner(self): + mlist = self.mmclient.get_list('foo@example.com') + mlist.add_owner('test@example.com') + self.client.login(username='testuser', password='testpass') + response = self.client.get(reverse('list_summary', args=('foo@example.com',))) + self.assertContains(response, '

    List Metrics

    ') + + @MM_VCR.use_cassette('test_list_summary_metrics_superuser.yaml') + def test_list_metrics_displayed_to_superuser(self): + mlist = self.mmclient.get_list('foo@example.com') + User.objects.create_superuser('testadminuser', 'testadmin@example.com', 'testpass') + self.assertTrue(self.client.login(username='testadminuser', password='testpass')) + response = self.client.get(reverse('list_summary', args=('foo@example.com',))) + self.assertContains(response, '

    List Metrics

    ') diff --git a/src/postorius/urls.py b/src/postorius/urls.py index a91020a..59dd81c 100644 --- a/src/postorius/urls.py +++ b/src/postorius/urls.py @@ -35,9 +35,6 @@ url(r'^members/options/(?P[^/]+)/$', ListMemberOptionsView.as_view( ), name='list_member_options'), - url(r'^metrics$', - ListMetricsView.as_view( - ), name='list_metrics'), url(r'^$', ListSummaryView.as_view( ), name='list_summary'), diff --git a/src/postorius/views/list.py b/src/postorius/views/list.py index cfbd19b..fad1254 100644 --- a/src/postorius/views/list.py +++ b/src/postorius/views/list.py @@ -170,35 +170,16 @@ context_instance=RequestContext(request)) -class ListMetricsView(MailingListView): - - """Shows common list metrics. - """ - - @method_decorator(login_required) - @method_decorator(list_owner_required) - def get(self, request, list_id): - return render_to_response('postorius/lists/metrics.html', - {'list': self.mailing_list}, - context_instance=RequestContext(request)) - - class ListSummaryView(MailingListView): """Shows common list metrics. """ def get(self, request, list_id): - if request.user.is_authenticated(): - user_emails = [request.user.email] + request.user.other_emails - else: - user_emails = None - - userSubscribed = False - subscribed_address = None data = {'list': self.mailing_list, 'userSubscribed': False, 'subscribed_address': None} if request.user.is_authenticated(): + user_emails = [request.user.email] + request.user.other_emails for address in user_emails: try: self.mailing_list.get_member(address) @@ -212,6 +193,7 @@ user_emails, initial={'email': data['subscribed_address']}) data['subscribe_form'] = ListSubscribe(user_emails) else: + user_emails = None data['change_subscription_form'] = None return render_to_response( 'postorius/lists/summary.html', data,