diff --git a/src/postorius/forms.py b/src/postorius/forms.py
index 8687e5b..3e7634c 100644
--- a/src/postorius/forms.py
+++ b/src/postorius/forms.py
@@ -26,6 +26,8 @@
from django.utils.version import get_complete_version
from django.contrib.sites.models import Site
+from django_mailman3.lib.mailman import get_mailman_client
+
ACTION_CHOICES = (
("hold", _("Hold for moderation")),
@@ -219,6 +221,24 @@
for address in user_emails)
+class ListAnonymousSubscribe(forms.Form):
+ """Form fields to join an existing list as an anonymous user.
+ """
+
+ email = forms.CharField(
+ label=_('Your email address'),
+ validators=[validate_email],
+ error_messages={
+ 'required': _('Please enter an email address.'),
+ 'invalid': _('Please enter a valid email address.')})
+
+ display_name = forms.CharField(
+ label=_('Your name (optional)'), required=False)
+
+ def __init__(self, *args, **kwargs):
+ super(ListAnonymousSubscribe, self).__init__(*args, **kwargs)
+
+
class ListSettingsForm(forms.Form):
"""
Base class for list settings forms.
@@ -537,10 +557,8 @@
required=False,
error_messages={
'required': _("Please choose a reply-to action.")},
- choices=(
- ('default-owner-pipeline', _('default-owner-pipeline')),
- ('default-posting-pipeline', _('default-posting-pipeline')),
- ('virgin', _('virgin'))),
+ choices=lambda: ((p, p) for p in get_mailman_client()
+ .pipelines['pipelines']),
help_text=_('Type of pipeline you want to use for this mailing list'))
diff --git a/src/postorius/middleware.py b/src/postorius/middleware.py
index 2c1f874..4dc9f59 100644
--- a/src/postorius/middleware.py
+++ b/src/postorius/middleware.py
@@ -20,10 +20,12 @@
from postorius import utils
from postorius.models import MailmanApiError
+from mailmanclient import MailmanConnectionError
class PostoriusMiddleware(object):
def process_exception(self, request, exception):
- if isinstance(exception, MailmanApiError):
+ if isinstance(exception, MailmanApiError) or isinstance(
+ exception, MailmanConnectionError):
return utils.render_api_error(request)
diff --git a/src/postorius/templates/postorius/lists/summary.html b/src/postorius/templates/postorius/lists/summary.html
index 6dc2a77..699a934 100644
--- a/src/postorius/templates/postorius/lists/summary.html
+++ b/src/postorius/templates/postorius/lists/summary.html
@@ -38,7 +38,7 @@
{# Subscription #}
{% if user.is_authenticated %}
- {% if userSubscribed %}
+ {% if user_subscribed %}
{% trans 'Subscription' %}
{% trans 'You are subscribed to this list with the following address:' %} {{ subscribed_address }}
@@ -56,6 +56,8 @@
{% trans 'Unsubscribe' %}
+ {% elif user_request_pending %}
+ {% trans "You have a subscription request pending. If you don't hear back soon, please contact the list owners." %}
{% else %}
{% trans 'Subscribe to this list' %}
@@ -70,8 +72,23 @@
{% endif %}
{% else %}
-
{% trans 'If you want to subscribe to this list, you have to log in first.' %}
+
+
{% trans 'If you want to subscribe to this list and you have an account, please log in first.' %}
{% trans 'Log In' %}
+
+
+
+
+ {% blocktrans %}
+ However you can also subscribe without creating an account.
+ If you wish to to so, please use the form below.
+ {% endblocktrans%}
+
+
+
{% endif %}
{# List metrics #}
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/AddModeratorTest.test_new_moderator_added.yaml b/src/postorius/tests/fixtures/vcr_cassettes/AddModeratorTest.test_new_moderator_added.yaml
index 9d6d186..2284611 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/AddModeratorTest.test_new_moderator_added.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/AddModeratorTest.test_new_moderator_added.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo@example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -56,24 +56,24 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=newmod%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=newmod%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/1']
+ location: ['http://localhost:9001/3.0/members/5518']
status: {code: 201, message: Created}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo@example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -88,41 +88,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": "\"c8c71cc3e29d53d13e916dcb627e952627f1ca18\"",
- "list_id": "foo.example.com", "member_id": 1, "moderation_action": "accept",
- "role": "moderator", "self_link": "http://localhost:9001/3.0/members/1", "user":
- "http://localhost:9001/3.0/users/1"}], "http_etag": "\"34e4cec6c6315ead2e60d99bf4c13485e3a09be9\"",
+ "delivery_mode": "regular", "email": "newmod@example.com", "http_etag": "\"8ded74b6a7fe87ae82c46a6492fcf6ee0e246779\"",
+ "list_id": "foo.example.com", "member_id": 5518, "moderation_action": "accept",
+ "role": "moderator", "self_link": "http://localhost:9001/3.0/members/5518",
+ "user": "http://localhost:9001/3.0/users/3629"}], "http_etag": "\"e1f73e5c9c2c0637ab5ac69cfc1132b71cb07f44\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['489']
+ content-length: ['498']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ 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": "\"c8c71cc3e29d53d13e916dcb627e952627f1ca18\"",
- "list_id": "foo.example.com", "member_id": 1, "moderation_action": "accept",
- "role": "moderator", "self_link": "http://localhost:9001/3.0/members/1", "user":
- "http://localhost:9001/3.0/users/1"}], "http_etag": "\"34e4cec6c6315ead2e60d99bf4c13485e3a09be9\"",
+ "delivery_mode": "regular", "email": "newmod@example.com", "http_etag": "\"8ded74b6a7fe87ae82c46a6492fcf6ee0e246779\"",
+ "list_id": "foo.example.com", "member_id": 5518, "moderation_action": "accept",
+ "role": "moderator", "self_link": "http://localhost:9001/3.0/members/5518",
+ "user": "http://localhost:9001/3.0/users/3629"}], "http_etag": "\"e1f73e5c9c2c0637ab5ac69cfc1132b71cb07f44\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['489']
+ content-length: ['498']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode ''}
@@ -133,7 +133,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/AddRemoveOwnerTest.test_add_remove_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/AddRemoveOwnerTest.test_add_remove_owner.yaml
index 1d21574..d539a44 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/AddRemoveOwnerTest.test_add_remove_owner.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/AddRemoveOwnerTest.test_add_remove_owner.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo@example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -56,24 +56,24 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=su%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=su%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/2']
+ location: ['http://localhost:9001/3.0/members/5519']
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",
@@ -85,24 +85,24 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=newowner%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=newowner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/3']
+ location: ['http://localhost:9001/3.0/members/5520']
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",
@@ -117,51 +117,51 @@
body: 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":
- "\"c360c4bc48bbbcee07c1671e1017747feba62e4c\"", "list_id": "foo.example.com",
- "member_id": 3, "moderation_action": "accept", "role": "owner", "self_link":
- "http://localhost:9001/3.0/members/3", "user": "http://localhost:9001/3.0/users/3"},
+ "\"cbf031f344cc98ac4050a0b5c74a9e9e9e7db5b1\"", "list_id": "foo.example.com",
+ "member_id": 5520, "moderation_action": "accept", "role": "owner", "self_link":
+ "http://localhost:9001/3.0/members/5520", "user": "http://localhost:9001/3.0/users/3631"},
{"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode":
- "regular", "email": "su@example.com", "http_etag": "\"6d988707f754565f2549feb10fb8d43ba08b7fc0\"",
- "list_id": "foo.example.com", "member_id": 2, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/2", "user":
- "http://localhost:9001/3.0/users/2"}], "http_etag": "\"a22da6e895b3ece1bba80b58412640036aa3b856\"",
+ "regular", "email": "su@example.com", "http_etag": "\"d790e27306d3c47093d91900c72e8582f278f0b5\"",
+ "list_id": "foo.example.com", "member_id": 5519, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5519", "user":
+ "http://localhost:9001/3.0/users/3630"}], "http_etag": "\"d812d6e367d502c3ead5b69d3df0dc682c59fd28\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['863']
+ content-length: ['881']
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":
- "\"c360c4bc48bbbcee07c1671e1017747feba62e4c\"", "list_id": "foo.example.com",
- "member_id": 3, "moderation_action": "accept", "role": "owner", "self_link":
- "http://localhost:9001/3.0/members/3", "user": "http://localhost:9001/3.0/users/3"},
+ "\"cbf031f344cc98ac4050a0b5c74a9e9e9e7db5b1\"", "list_id": "foo.example.com",
+ "member_id": 5520, "moderation_action": "accept", "role": "owner", "self_link":
+ "http://localhost:9001/3.0/members/5520", "user": "http://localhost:9001/3.0/users/3631"},
{"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode":
- "regular", "email": "su@example.com", "http_etag": "\"6d988707f754565f2549feb10fb8d43ba08b7fc0\"",
- "list_id": "foo.example.com", "member_id": 2, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/2", "user":
- "http://localhost:9001/3.0/users/2"}], "http_etag": "\"a22da6e895b3ece1bba80b58412640036aa3b856\"",
+ "regular", "email": "su@example.com", "http_etag": "\"d790e27306d3c47093d91900c72e8582f278f0b5\"",
+ "list_id": "foo.example.com", "member_id": 5519, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5519", "user":
+ "http://localhost:9001/3.0/users/3630"}], "http_etag": "\"d812d6e367d502c3ead5b69d3df0dc682c59fd28\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['863']
+ content-length: ['881']
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",
@@ -176,29 +176,29 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com",
"delivery_mode": "regular", "email": "newowner@example.com", "http_etag":
- "\"c360c4bc48bbbcee07c1671e1017747feba62e4c\"", "list_id": "foo.example.com",
- "member_id": 3, "moderation_action": "accept", "role": "owner", "self_link":
- "http://localhost:9001/3.0/members/3", "user": "http://localhost:9001/3.0/users/3"},
+ "\"cbf031f344cc98ac4050a0b5c74a9e9e9e7db5b1\"", "list_id": "foo.example.com",
+ "member_id": 5520, "moderation_action": "accept", "role": "owner", "self_link":
+ "http://localhost:9001/3.0/members/5520", "user": "http://localhost:9001/3.0/users/3631"},
{"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode":
- "regular", "email": "su@example.com", "http_etag": "\"6d988707f754565f2549feb10fb8d43ba08b7fc0\"",
- "list_id": "foo.example.com", "member_id": 2, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/2", "user":
- "http://localhost:9001/3.0/users/2"}], "http_etag": "\"a22da6e895b3ece1bba80b58412640036aa3b856\"",
+ "regular", "email": "su@example.com", "http_etag": "\"d790e27306d3c47093d91900c72e8582f278f0b5\"",
+ "list_id": "foo.example.com", "member_id": 5519, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5519", "user":
+ "http://localhost:9001/3.0/users/3630"}], "http_etag": "\"d812d6e367d502c3ead5b69d3df0dc682c59fd28\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['863']
+ content-length: ['881']
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 ''}
@@ -209,25 +209,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": "\"6d988707f754565f2549feb10fb8d43ba08b7fc0\"",
- "list_id": "foo.example.com", "member_id": 2, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/2", "user":
- "http://localhost:9001/3.0/users/2"}], "http_etag": "\"d2cbb6fb6355e9524edc8e386f081c430375c54c\"",
+ "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"d790e27306d3c47093d91900c72e8582f278f0b5\"",
+ "list_id": "foo.example.com", "member_id": 5519, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5519", "user":
+ "http://localhost:9001/3.0/users/3630"}], "http_etag": "\"046919c1cff364aa824d4431c68d8e15051c595d\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['477']
+ content-length: ['486']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/lists/foo.example.com
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/domains
+ response:
+ body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
+ "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com",
+ "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag":
+ "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size":
+ 1}'}
+ headers:
+ content-length: ['277']
+ 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/domains/example.com
response:
body: {string: !!python/unicode ''}
headers:
@@ -237,8 +253,50 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/domains/example.com
+ 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": "\"c4048126a1ebe8ee12edd12d90c1c4e85791462b\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3629", "user_id": 3629},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"4f09d50242a0ab3441ded4846ffacc8838057892\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3630",
+ "user_id": 3630}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"0f9b492d8733bc06df33cd11be861754032e2fe0\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3631",
+ "user_id": 3631}], "http_etag": "\"6bed130b339176e3c9660c861c2d9516025601cc\"",
+ "start": 0, "total_size": 3}'}
+ headers:
+ content-length: ['691']
+ 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/3629
+ 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/3630
+ 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/3631
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/AddRemoveOwnerTest.test_remove_owner_as_owner_self_last.yaml b/src/postorius/tests/fixtures/vcr_cassettes/AddRemoveOwnerTest.test_remove_owner_as_owner_self_last.yaml
index 358dd25..8c75ea4 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/AddRemoveOwnerTest.test_remove_owner_as_owner_self_last.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/AddRemoveOwnerTest.test_remove_owner_as_owner_self_last.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo@example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -56,24 +56,24 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=su%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=su%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/4']
+ location: ['http://localhost:9001/3.0/members/5521']
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",
@@ -85,68 +85,68 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=otherowner%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=otherowner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/5']
+ location: ['http://localhost:9001/3.0/members/5522']
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":
- "\"39455ab3883c5cb41d206acfc6f5f9d34d8977ad\"", "list_id": "foo.example.com",
- "member_id": 5, "moderation_action": "accept", "role": "owner", "self_link":
- "http://localhost:9001/3.0/members/5", "user": "http://localhost:9001/3.0/users/4"},
+ "\"b2ea17288225aae5e067c6a90b092e7e38eb6fb6\"", "list_id": "foo.example.com",
+ "member_id": 5522, "moderation_action": "accept", "role": "owner", "self_link":
+ "http://localhost:9001/3.0/members/5522", "user": "http://localhost:9001/3.0/users/3633"},
{"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode":
- "regular", "email": "su@example.com", "http_etag": "\"10c27e9e6dc556f9516987be57ab48241c56912e\"",
- "list_id": "foo.example.com", "member_id": 4, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/4", "user":
- "http://localhost:9001/3.0/users/2"}], "http_etag": "\"71540af6234005a7ae65241748770c8e6a80357c\"",
+ "regular", "email": "su@example.com", "http_etag": "\"9a1b04e6e6bcda9e51301e66d41d6085c2f35b12\"",
+ "list_id": "foo.example.com", "member_id": 5521, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5521", "user":
+ "http://localhost:9001/3.0/users/3632"}], "http_etag": "\"01223dd6afe2456cf25aeaa07d5246c17013417f\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['867']
+ content-length: ['885']
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":
- "\"39455ab3883c5cb41d206acfc6f5f9d34d8977ad\"", "list_id": "foo.example.com",
- "member_id": 5, "moderation_action": "accept", "role": "owner", "self_link":
- "http://localhost:9001/3.0/members/5", "user": "http://localhost:9001/3.0/users/4"},
+ "\"b2ea17288225aae5e067c6a90b092e7e38eb6fb6\"", "list_id": "foo.example.com",
+ "member_id": 5522, "moderation_action": "accept", "role": "owner", "self_link":
+ "http://localhost:9001/3.0/members/5522", "user": "http://localhost:9001/3.0/users/3633"},
{"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode":
- "regular", "email": "su@example.com", "http_etag": "\"10c27e9e6dc556f9516987be57ab48241c56912e\"",
- "list_id": "foo.example.com", "member_id": 4, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/4", "user":
- "http://localhost:9001/3.0/users/2"}], "http_etag": "\"71540af6234005a7ae65241748770c8e6a80357c\"",
+ "regular", "email": "su@example.com", "http_etag": "\"9a1b04e6e6bcda9e51301e66d41d6085c2f35b12\"",
+ "list_id": "foo.example.com", "member_id": 5521, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5521", "user":
+ "http://localhost:9001/3.0/users/3632"}], "http_etag": "\"01223dd6afe2456cf25aeaa07d5246c17013417f\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['867']
+ content-length: ['885']
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",
@@ -161,29 +161,29 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/otherowner@example.com",
"delivery_mode": "regular", "email": "otherowner@example.com", "http_etag":
- "\"39455ab3883c5cb41d206acfc6f5f9d34d8977ad\"", "list_id": "foo.example.com",
- "member_id": 5, "moderation_action": "accept", "role": "owner", "self_link":
- "http://localhost:9001/3.0/members/5", "user": "http://localhost:9001/3.0/users/4"},
+ "\"b2ea17288225aae5e067c6a90b092e7e38eb6fb6\"", "list_id": "foo.example.com",
+ "member_id": 5522, "moderation_action": "accept", "role": "owner", "self_link":
+ "http://localhost:9001/3.0/members/5522", "user": "http://localhost:9001/3.0/users/3633"},
{"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode":
- "regular", "email": "su@example.com", "http_etag": "\"10c27e9e6dc556f9516987be57ab48241c56912e\"",
- "list_id": "foo.example.com", "member_id": 4, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/4", "user":
- "http://localhost:9001/3.0/users/2"}], "http_etag": "\"71540af6234005a7ae65241748770c8e6a80357c\"",
+ "regular", "email": "su@example.com", "http_etag": "\"9a1b04e6e6bcda9e51301e66d41d6085c2f35b12\"",
+ "list_id": "foo.example.com", "member_id": 5521, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5521", "user":
+ "http://localhost:9001/3.0/users/3632"}], "http_etag": "\"01223dd6afe2456cf25aeaa07d5246c17013417f\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['867']
+ content-length: ['885']
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 ''}
@@ -194,39 +194,39 @@
body: 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":
- "\"39455ab3883c5cb41d206acfc6f5f9d34d8977ad\"", "list_id": "foo.example.com",
- "member_id": 5, "moderation_action": "accept", "role": "owner", "self_link":
- "http://localhost:9001/3.0/members/5", "user": "http://localhost:9001/3.0/users/4"}],
- "http_etag": "\"6129b0373898970dfff1cf574ce14c0ee30b84ca\"", "start": 0, "total_size":
+ "\"b2ea17288225aae5e067c6a90b092e7e38eb6fb6\"", "list_id": "foo.example.com",
+ "member_id": 5522, "moderation_action": "accept", "role": "owner", "self_link":
+ "http://localhost:9001/3.0/members/5522", "user": "http://localhost:9001/3.0/users/3633"}],
+ "http_etag": "\"e0b421b79b500081012c6868b8d36d2e17c17eda\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['493']
+ content-length: ['502']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=su%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=su%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/6']
+ location: ['http://localhost:9001/3.0/members/5523']
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 ''}
@@ -237,41 +237,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": "\"3b037df8d9ab871f6a55ce119b3f3f7e2b1ea69d\"",
- "list_id": "foo.example.com", "member_id": 6, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/6", "user":
- "http://localhost:9001/3.0/users/2"}], "http_etag": "\"3b23baf8158b66e778e6cfbf22afb7a26aafcab3\"",
+ "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"bee223fcb4b9d606582d236537a044f82d085989\"",
+ "list_id": "foo.example.com", "member_id": 5523, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5523", "user":
+ "http://localhost:9001/3.0/users/3632"}], "http_etag": "\"8c475a27dd8b6885dbfe2fcde5fc779b6d82ad2a\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['477']
+ content-length: ['486']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ 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": "\"3b037df8d9ab871f6a55ce119b3f3f7e2b1ea69d\"",
- "list_id": "foo.example.com", "member_id": 6, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/6", "user":
- "http://localhost:9001/3.0/users/2"}], "http_etag": "\"3b23baf8158b66e778e6cfbf22afb7a26aafcab3\"",
+ "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"bee223fcb4b9d606582d236537a044f82d085989\"",
+ "list_id": "foo.example.com", "member_id": 5523, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5523", "user":
+ "http://localhost:9001/3.0/users/3632"}], "http_etag": "\"8c475a27dd8b6885dbfe2fcde5fc779b6d82ad2a\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['477']
+ content-length: ['486']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ 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",
@@ -286,42 +286,58 @@
body: 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": "\"3b037df8d9ab871f6a55ce119b3f3f7e2b1ea69d\"",
- "list_id": "foo.example.com", "member_id": 6, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/6", "user":
- "http://localhost:9001/3.0/users/2"}], "http_etag": "\"3b23baf8158b66e778e6cfbf22afb7a26aafcab3\"",
+ "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"bee223fcb4b9d606582d236537a044f82d085989\"",
+ "list_id": "foo.example.com", "member_id": 5523, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5523", "user":
+ "http://localhost:9001/3.0/users/3632"}], "http_etag": "\"8c475a27dd8b6885dbfe2fcde5fc779b6d82ad2a\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['477']
+ content-length: ['486']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ 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": "\"3b037df8d9ab871f6a55ce119b3f3f7e2b1ea69d\"",
- "list_id": "foo.example.com", "member_id": 6, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/6", "user":
- "http://localhost:9001/3.0/users/2"}], "http_etag": "\"3b23baf8158b66e778e6cfbf22afb7a26aafcab3\"",
+ "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"bee223fcb4b9d606582d236537a044f82d085989\"",
+ "list_id": "foo.example.com", "member_id": 5523, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5523", "user":
+ "http://localhost:9001/3.0/users/3632"}], "http_etag": "\"8c475a27dd8b6885dbfe2fcde5fc779b6d82ad2a\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['477']
+ content-length: ['486']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/lists/foo.example.com
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/domains
+ response:
+ body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
+ "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com",
+ "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag":
+ "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size":
+ 1}'}
+ headers:
+ content-length: ['277']
+ 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/domains/example.com
response:
body: {string: !!python/unicode ''}
headers:
@@ -331,8 +347,37 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/domains/example.com
+ 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": "\"f922e1811663a99ce2ce3422f3ec4933a675b2ff\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3632", "user_id": 3632},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"7688dc9f3172414e5a9a5d60d997da0498efb4c9\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3633",
+ "user_id": 3633}], "http_etag": "\"89e40482ab441d17742779bb3188849b3c6cf29c\"",
+ "start": 0, "total_size": 2}'}
+ headers:
+ content-length: ['495']
+ 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/3632
+ 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/3633
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/AddRemoveOwnerTest.test_remove_owner_by_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/AddRemoveOwnerTest.test_remove_owner_by_owner.yaml
index 669bacb..6c656e6 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/AddRemoveOwnerTest.test_remove_owner_by_owner.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/AddRemoveOwnerTest.test_remove_owner_by_owner.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo@example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -56,41 +56,41 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=su%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=su%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/7']
+ location: ['http://localhost:9001/3.0/members/5524']
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/su@example.com",
- "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"41d57890ce496889a5e5228b4fe371df4c366828\"",
- "list_id": "foo.example.com", "member_id": 7, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/7", "user":
- "http://localhost:9001/3.0/users/2"}], "http_etag": "\"cad820684c756eb04bc8968d4f91288f13498e66\"",
+ "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"cd536cce9f38bed7d970e749f4300b0a6dea9a1e\"",
+ "list_id": "foo.example.com", "member_id": 5524, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5524", "user":
+ "http://localhost:9001/3.0/users/3634"}], "http_etag": "\"0e7d70353b8f762a475b0bf70fc9cafb9b8fff9e\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['477']
+ content-length: ['486']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ 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",
@@ -105,24 +105,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": "\"41d57890ce496889a5e5228b4fe371df4c366828\"",
- "list_id": "foo.example.com", "member_id": 7, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/7", "user":
- "http://localhost:9001/3.0/users/2"}], "http_etag": "\"cad820684c756eb04bc8968d4f91288f13498e66\"",
+ "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"cd536cce9f38bed7d970e749f4300b0a6dea9a1e\"",
+ "list_id": "foo.example.com", "member_id": 5524, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5524", "user":
+ "http://localhost:9001/3.0/users/3634"}], "http_etag": "\"0e7d70353b8f762a475b0bf70fc9cafb9b8fff9e\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['477']
+ content-length: ['486']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ 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
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -147,24 +147,24 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=newowner%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=newowner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/8']
+ location: ['http://localhost:9001/3.0/members/5525']
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",
@@ -179,29 +179,29 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com",
"delivery_mode": "regular", "email": "newowner@example.com", "http_etag":
- "\"cb2189f8ba0ef7b4c13784d0d4bd22d7fc1056bf\"", "list_id": "foo.example.com",
- "member_id": 8, "moderation_action": "accept", "role": "owner", "self_link":
- "http://localhost:9001/3.0/members/8", "user": "http://localhost:9001/3.0/users/3"},
+ "\"1fd7a5385983fabdf2780120078e357d297eb8cd\"", "list_id": "foo.example.com",
+ "member_id": 5525, "moderation_action": "accept", "role": "owner", "self_link":
+ "http://localhost:9001/3.0/members/5525", "user": "http://localhost:9001/3.0/users/3635"},
{"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode":
- "regular", "email": "su@example.com", "http_etag": "\"41d57890ce496889a5e5228b4fe371df4c366828\"",
- "list_id": "foo.example.com", "member_id": 7, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/7", "user":
- "http://localhost:9001/3.0/users/2"}], "http_etag": "\"e6c44c2170ac8bf35b3c83f0bf8fbd3f35549e16\"",
+ "regular", "email": "su@example.com", "http_etag": "\"cd536cce9f38bed7d970e749f4300b0a6dea9a1e\"",
+ "list_id": "foo.example.com", "member_id": 5524, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5524", "user":
+ "http://localhost:9001/3.0/users/3634"}], "http_etag": "\"427b93093a4c77082a2099fd5d0a9ae47058264a\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['863']
+ content-length: ['881']
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\"",
@@ -214,7 +214,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo@example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -229,51 +229,51 @@
body: 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":
- "\"cb2189f8ba0ef7b4c13784d0d4bd22d7fc1056bf\"", "list_id": "foo.example.com",
- "member_id": 8, "moderation_action": "accept", "role": "owner", "self_link":
- "http://localhost:9001/3.0/members/8", "user": "http://localhost:9001/3.0/users/3"},
+ "\"1fd7a5385983fabdf2780120078e357d297eb8cd\"", "list_id": "foo.example.com",
+ "member_id": 5525, "moderation_action": "accept", "role": "owner", "self_link":
+ "http://localhost:9001/3.0/members/5525", "user": "http://localhost:9001/3.0/users/3635"},
{"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode":
- "regular", "email": "su@example.com", "http_etag": "\"41d57890ce496889a5e5228b4fe371df4c366828\"",
- "list_id": "foo.example.com", "member_id": 7, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/7", "user":
- "http://localhost:9001/3.0/users/2"}], "http_etag": "\"e6c44c2170ac8bf35b3c83f0bf8fbd3f35549e16\"",
+ "regular", "email": "su@example.com", "http_etag": "\"cd536cce9f38bed7d970e749f4300b0a6dea9a1e\"",
+ "list_id": "foo.example.com", "member_id": 5524, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5524", "user":
+ "http://localhost:9001/3.0/users/3634"}], "http_etag": "\"427b93093a4c77082a2099fd5d0a9ae47058264a\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['863']
+ content-length: ['881']
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":
- "\"cb2189f8ba0ef7b4c13784d0d4bd22d7fc1056bf\"", "list_id": "foo.example.com",
- "member_id": 8, "moderation_action": "accept", "role": "owner", "self_link":
- "http://localhost:9001/3.0/members/8", "user": "http://localhost:9001/3.0/users/3"},
+ "\"1fd7a5385983fabdf2780120078e357d297eb8cd\"", "list_id": "foo.example.com",
+ "member_id": 5525, "moderation_action": "accept", "role": "owner", "self_link":
+ "http://localhost:9001/3.0/members/5525", "user": "http://localhost:9001/3.0/users/3635"},
{"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode":
- "regular", "email": "su@example.com", "http_etag": "\"41d57890ce496889a5e5228b4fe371df4c366828\"",
- "list_id": "foo.example.com", "member_id": 7, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/7", "user":
- "http://localhost:9001/3.0/users/2"}], "http_etag": "\"e6c44c2170ac8bf35b3c83f0bf8fbd3f35549e16\"",
+ "regular", "email": "su@example.com", "http_etag": "\"cd536cce9f38bed7d970e749f4300b0a6dea9a1e\"",
+ "list_id": "foo.example.com", "member_id": 5524, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5524", "user":
+ "http://localhost:9001/3.0/users/3634"}], "http_etag": "\"427b93093a4c77082a2099fd5d0a9ae47058264a\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['863']
+ content-length: ['881']
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",
@@ -288,29 +288,29 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com",
"delivery_mode": "regular", "email": "newowner@example.com", "http_etag":
- "\"cb2189f8ba0ef7b4c13784d0d4bd22d7fc1056bf\"", "list_id": "foo.example.com",
- "member_id": 8, "moderation_action": "accept", "role": "owner", "self_link":
- "http://localhost:9001/3.0/members/8", "user": "http://localhost:9001/3.0/users/3"},
+ "\"1fd7a5385983fabdf2780120078e357d297eb8cd\"", "list_id": "foo.example.com",
+ "member_id": 5525, "moderation_action": "accept", "role": "owner", "self_link":
+ "http://localhost:9001/3.0/members/5525", "user": "http://localhost:9001/3.0/users/3635"},
{"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode":
- "regular", "email": "su@example.com", "http_etag": "\"41d57890ce496889a5e5228b4fe371df4c366828\"",
- "list_id": "foo.example.com", "member_id": 7, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/7", "user":
- "http://localhost:9001/3.0/users/2"}], "http_etag": "\"e6c44c2170ac8bf35b3c83f0bf8fbd3f35549e16\"",
+ "regular", "email": "su@example.com", "http_etag": "\"cd536cce9f38bed7d970e749f4300b0a6dea9a1e\"",
+ "list_id": "foo.example.com", "member_id": 5524, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5524", "user":
+ "http://localhost:9001/3.0/users/3634"}], "http_etag": "\"427b93093a4c77082a2099fd5d0a9ae47058264a\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['863']
+ content-length: ['881']
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\"",
@@ -323,7 +323,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo@example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -338,29 +338,29 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com",
"delivery_mode": "regular", "email": "newowner@example.com", "http_etag":
- "\"cb2189f8ba0ef7b4c13784d0d4bd22d7fc1056bf\"", "list_id": "foo.example.com",
- "member_id": 8, "moderation_action": "accept", "role": "owner", "self_link":
- "http://localhost:9001/3.0/members/8", "user": "http://localhost:9001/3.0/users/3"},
+ "\"1fd7a5385983fabdf2780120078e357d297eb8cd\"", "list_id": "foo.example.com",
+ "member_id": 5525, "moderation_action": "accept", "role": "owner", "self_link":
+ "http://localhost:9001/3.0/members/5525", "user": "http://localhost:9001/3.0/users/3635"},
{"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode":
- "regular", "email": "su@example.com", "http_etag": "\"41d57890ce496889a5e5228b4fe371df4c366828\"",
- "list_id": "foo.example.com", "member_id": 7, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/7", "user":
- "http://localhost:9001/3.0/users/2"}], "http_etag": "\"e6c44c2170ac8bf35b3c83f0bf8fbd3f35549e16\"",
+ "regular", "email": "su@example.com", "http_etag": "\"cd536cce9f38bed7d970e749f4300b0a6dea9a1e\"",
+ "list_id": "foo.example.com", "member_id": 5524, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5524", "user":
+ "http://localhost:9001/3.0/users/3634"}], "http_etag": "\"427b93093a4c77082a2099fd5d0a9ae47058264a\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['863']
+ content-length: ['881']
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 ''}
@@ -371,25 +371,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": "\"41d57890ce496889a5e5228b4fe371df4c366828\"",
- "list_id": "foo.example.com", "member_id": 7, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/7", "user":
- "http://localhost:9001/3.0/users/2"}], "http_etag": "\"cad820684c756eb04bc8968d4f91288f13498e66\"",
+ "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"cd536cce9f38bed7d970e749f4300b0a6dea9a1e\"",
+ "list_id": "foo.example.com", "member_id": 5524, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5524", "user":
+ "http://localhost:9001/3.0/users/3634"}], "http_etag": "\"0e7d70353b8f762a475b0bf70fc9cafb9b8fff9e\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['477']
+ content-length: ['486']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/lists/foo.example.com
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/domains
+ response:
+ body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
+ "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com",
+ "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag":
+ "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size":
+ 1}'}
+ headers:
+ content-length: ['277']
+ 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/domains/example.com
response:
body: {string: !!python/unicode ''}
headers:
@@ -399,8 +415,37 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/domains/example.com
+ 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": "\"e43e4ea508965b0a0b6928b6671e9ad22924b168\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3634", "user_id": 3634},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"2d127f3ce12eccc9cb67b4743683184a28c6ea2e\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3635",
+ "user_id": 3635}], "http_etag": "\"3f05d4129af3e33f42449ad4d9fd28e4d036822c\"",
+ "start": 0, "total_size": 2}'}
+ headers:
+ content-length: ['495']
+ 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/3634
+ 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/3635
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/DomainCreationTest.test_new_domain_created_with_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/DomainCreationTest.test_new_domain_created_with_owner.yaml
index 321bf7c..8eb415c 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/DomainCreationTest.test_new_domain_created_with_owner.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/DomainCreationTest.test_new_domain_created_with_owner.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode description=A+new+Domain.&mail_host=example.com&owner=su%40example.com
+ body: !!python/unicode 'description=A+new+Domain.&mail_host=example.com&owner=su%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/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": "A new Domain.",
@@ -33,7 +33,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": "A new Domain.", "http_etag":
@@ -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 '{"description": "A new Domain.", "http_etag":
@@ -61,7 +61,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": "A new Domain.", "http_etag":
@@ -75,37 +75,37 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com/owners
response:
body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23",
- "http_etag": "\"217ae20e01d0696223ce2359757cb6076aebb31c\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/125", "user_id": 125}],
- "http_etag": "\"f513400c649b8c2ccdf4aa8160113d3b586d146f\"", "start": 0, "total_size":
+ "http_etag": "\"197704edf200b777417e75b01809af2dc0e036dc\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3706", "user_id": 3706}],
+ "http_etag": "\"3799ae94522f6f38816feab632ccb536c8775308\"", "start": 0, "total_size":
1}'}
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/users/su@example.com
response:
body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
- "\"217ae20e01d0696223ce2359757cb6076aebb31c\"", "is_server_owner": false,
- "self_link": "http://localhost:9001/3.0/users/125", "user_id": 125}'}
+ "\"197704edf200b777417e75b01809af2dc0e036dc\"", "is_server_owner": false,
+ "self_link": "http://localhost:9001/3.0/users/3706", "user_id": 3706}'}
headers:
- content-length: ['192']
+ content-length: ['194']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -116,7 +116,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 '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
@@ -129,24 +129,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": "\"217ae20e01d0696223ce2359757cb6076aebb31c\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/125", "user_id": 125}],
- "http_etag": "\"f513400c649b8c2ccdf4aa8160113d3b586d146f\"", "start": 0, "total_size":
+ "http_etag": "\"197704edf200b777417e75b01809af2dc0e036dc\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3706", "user_id": 3706}],
+ "http_etag": "\"3799ae94522f6f38816feab632ccb536c8775308\"", "start": 0, "total_size":
1}'}
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 DELETE
- uri: http://localhost:9001/3.0/users/125
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3706
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/DomainCreationTest.test_permission_denied.yaml b/src/postorius/tests/fixtures/vcr_cassettes/DomainCreationTest.test_permission_denied.yaml
index c442bed..0783055 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/DomainCreationTest.test_permission_denied.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/DomainCreationTest.test_permission_denied.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/domains
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
@@ -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/users
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/DomainCreationTest.test_validation_of_mail_host.yaml b/src/postorius/tests/fixtures/vcr_cassettes/DomainCreationTest.test_validation_of_mail_host.yaml
index c442bed..0783055 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/DomainCreationTest.test_validation_of_mail_host.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/DomainCreationTest.test_validation_of_mail_host.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/domains
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
@@ -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/users
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_access_anonymous.yaml b/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_access_anonymous.yaml
index a442a89..d082f06 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_access_anonymous.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_access_anonymous.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -56,38 +56,38 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/57']
+ location: ['http://localhost:9001/3.0/members/5580']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/58']
+ location: ['http://localhost:9001/3.0/members/5581']
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/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -103,7 +103,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -114,26 +114,26 @@
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": "\"4a285f1759e20051233a71c5eb314755ec29e5cf\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/51", "user_id": 51},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"694e7c8ddb0f934aebafa60d0d62e309edd4dff2\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/52",
- "user_id": 52}], "http_etag": "\"746e4528f0fab9207f3fe7c097561f61c95c8218\"",
+ "http_etag": "\"8c0cdf16ba8526de52f346ced0b7460e0cbc0b06\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3694", "user_id": 3694},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"affe9cbf10e8b2e30978ff6a2d307cf3a6206b47\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3695",
+ "user_id": 3695}], "http_etag": "\"746584d4ce7dc47f07f6e8338dd500bc62ecfadf\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['487']
+ content-length: ['495']
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/51
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3694
response:
body: {string: !!python/unicode ''}
headers:
@@ -143,8 +143,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/52
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3695
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_access_basic_user.yaml b/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_access_basic_user.yaml
index 2322207..bb28674 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_access_basic_user.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_access_basic_user.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -56,38 +56,38 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/59']
+ location: ['http://localhost:9001/3.0/members/5582']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/60']
+ location: ['http://localhost:9001/3.0/members/5583']
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/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -103,7 +103,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -114,26 +114,26 @@
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": "\"3c60293ff607ebcfa12ba62a87e1117e055aaf2c\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/53", "user_id": 53},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"9b874ad1cfcec0e350cc73b74e146dc62885865e\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/54",
- "user_id": 54}], "http_etag": "\"5a286d573915987075c6f319c91edc27df798dc0\"",
+ "http_etag": "\"cd7082de677edffe8cbfffee0ce369308318d802\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3696", "user_id": 3696},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"c0ae854b3c65902646b16ab75fc3ac1a5cf18a96\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3697",
+ "user_id": 3697}], "http_etag": "\"f3d67ada5a422a222eb55b72faea4404e5a1d61e\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['487']
+ content-length: ['495']
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/53
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3696
response:
body: {string: !!python/unicode ''}
headers:
@@ -143,8 +143,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/54
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3697
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_access_moderators.yaml b/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_access_moderators.yaml
index 5fb5912..bee937c 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_access_moderators.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_access_moderators.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -56,38 +56,38 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/61']
+ location: ['http://localhost:9001/3.0/members/5584']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/62']
+ location: ['http://localhost:9001/3.0/members/5585']
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/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -103,7 +103,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -114,26 +114,26 @@
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": "\"df64d4f4adfafc9332703c75e9d7e02ec7b26df1\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/55", "user_id": 55},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"cbdda1bcd01756e0b9654f511f969d9c0db788c7\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/56",
- "user_id": 56}], "http_etag": "\"b7ff27c642290d6746e06631fded9bccff9a832d\"",
+ "http_etag": "\"e05baa18696c2a6f56dc6969dd4bbcf91926dee1\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3698", "user_id": 3698},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"c04b8cc5877ead393cc0794034cdaaa444818e6d\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3699",
+ "user_id": 3699}], "http_etag": "\"39c204ba870949ba143b57546dc93ece21c0c957\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['487']
+ content-length: ['495']
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/55
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3698
response:
body: {string: !!python/unicode ''}
headers:
@@ -143,8 +143,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/56
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3699
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_access_owners.yaml b/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_access_owners.yaml
index 2421c97..a5b280d 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_access_owners.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_access_owners.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -56,38 +56,38 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/63']
+ location: ['http://localhost:9001/3.0/members/5586']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/64']
+ location: ['http://localhost:9001/3.0/members/5587']
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/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -103,7 +103,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -114,26 +114,26 @@
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": "\"a0047420445e969e94930347b9942e863350bcd2\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/57", "user_id": 57},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"132e9119809986bfb1a371e9b8548ddb69655407\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/58",
- "user_id": 58}], "http_etag": "\"543abea76f6ba4e4984e13ea09a437610dbb8808\"",
+ "http_etag": "\"f50a86edd00e42a39c9380da702b8e8d97bc095e\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3700", "user_id": 3700},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"c415aafa429fe2237911745bb3ef0802563215a7\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3701",
+ "user_id": 3701}], "http_etag": "\"cdc7a72bbbca83df3fa6e05d328173883d0d8f52\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['487']
+ content-length: ['495']
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/57
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3700
response:
body: {string: !!python/unicode ''}
headers:
@@ -143,8 +143,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/58
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3701
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_domain_delete.yaml b/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_domain_delete.yaml
index 00140e2..14ba072 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_domain_delete.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_domain_delete.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -56,38 +56,38 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/65']
+ location: ['http://localhost:9001/3.0/members/5588']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/66']
+ location: ['http://localhost:9001/3.0/members/5589']
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/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -100,7 +100,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -111,7 +111,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 '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
@@ -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
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
@@ -137,7 +137,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
@@ -150,7 +150,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 '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
@@ -163,26 +163,26 @@
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": "\"a0a537fff1aaea3eb7a9eb7a6abfae830eff26c0\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/59", "user_id": 59},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"de1e4c89e338b15e8968d576d8687c538471c14c\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/60",
- "user_id": 60}], "http_etag": "\"916ad71170e4c94b350bde7995771ccd6f478e96\"",
+ "http_etag": "\"08e20c095f844be3cc98dbde2a366ca09272df94\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3702", "user_id": 3702},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"ab961e4c9e1fb9da7d4cbecba5b5b46db65f3520\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3703",
+ "user_id": 3703}], "http_etag": "\"e45bb9fb2a113d78c430b0dd2fff6e34f92daa09\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['487']
+ content-length: ['495']
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/59
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3702
response:
body: {string: !!python/unicode ''}
headers:
@@ -192,8 +192,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/60
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3703
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_domain_delete_confirm.yaml b/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_domain_delete_confirm.yaml
index cc18a6f..95986f4 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_domain_delete_confirm.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_domain_delete_confirm.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -56,38 +56,38 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/67']
+ location: ['http://localhost:9001/3.0/members/5590']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/68']
+ location: ['http://localhost:9001/3.0/members/5591']
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/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -103,7 +103,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":
@@ -120,7 +120,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -136,7 +136,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -147,26 +147,26 @@
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": "\"1c60ef8b0c095eafe42cc79e85750834e6f25739\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/61", "user_id": 61},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"f4c118620518f77057364d55ff3113d1e549d5fd\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/62",
- "user_id": 62}], "http_etag": "\"8b37b75c619ffa40573c6e74ce8926256218bb8d\"",
+ "http_etag": "\"408b07f1310051929ff8d43c230b8757dc51084d\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3704", "user_id": 3704},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"520a07cf69366800244828571df29894dc39ac96\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3705",
+ "user_id": 3705}], "http_etag": "\"e1e1f37d7e26cbcd966adf52edf1ea954433f12d\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['487']
+ content-length: ['495']
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/61
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3704
response:
body: {string: !!python/unicode ''}
headers:
@@ -176,8 +176,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/62
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3705
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_contains_domains_and_site.yaml b/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_contains_domains_and_site.yaml
index 7ae002d..db12cf7 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_contains_domains_and_site.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_contains_domains_and_site.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -56,38 +56,38 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/114']
+ location: ['http://localhost:9001/3.0/members/5540']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/115']
+ location: ['http://localhost:9001/3.0/members/5541']
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/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -103,7 +103,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -116,7 +116,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -132,7 +132,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -143,26 +143,31 @@
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": "\"562a0d26c257705a22902c5a8cd196ab62f7ced1\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/115", "user_id": 115},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"ce2c375de7d732a159dcd47a5d9ffebbe27a4091\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/116",
- "user_id": 116}], "http_etag": "\"cab28cf9697db1ef375c2f1b3ca55622bf7997c2\"",
- "start": 0, "total_size": 2}'}
+ "display_name": "None", "http_etag": "\"be451474c9c7dd08870bd5113103fc2583c65419\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3646",
+ "user_id": 3646}, {"created_on": "2005-08-01T07:49:23", "display_name": "None",
+ "http_etag": "\"fbff4a2ebc11321eed5d24e4479ee7e9f8f7b906\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3647", "user_id": 3647},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"8b325330b4f83372fb10d89f79f645e1603232f1\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3648",
+ "user_id": 3648}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"02ee0d95e9ffef24b21515d80f0664dba8f30b31\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3649",
+ "user_id": 3649}], "http_etag": "\"dbe3c1a05f134e648943965f591c03e425c269d2\"",
+ "start": 0, "total_size": 4}'}
headers:
- content-length: ['491']
+ content-length: ['935']
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/115
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3646
response:
body: {string: !!python/unicode ''}
headers:
@@ -172,8 +177,30 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/116
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3647
+ 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/3648
+ 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/3649
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_not_accessible_to_moderators.yaml b/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_not_accessible_to_moderators.yaml
index bea9546..55d730a 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_not_accessible_to_moderators.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_not_accessible_to_moderators.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -56,38 +56,38 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/116']
+ location: ['http://localhost:9001/3.0/members/5542']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/117']
+ location: ['http://localhost:9001/3.0/members/5543']
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/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -103,7 +103,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -114,26 +114,26 @@
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": "\"d87649f27b1fac7ffd78a81e3665ac8ed67c18a1\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/117", "user_id": 117},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"ad44224458a738fa483628a7c989fa3e09c57929\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/118",
- "user_id": 118}], "http_etag": "\"65a67aa6ef83b05c58bc86c06b1514bbddce6fb0\"",
+ "http_etag": "\"656d889178110caa2be8beb941c621307cf1e72f\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3650", "user_id": 3650},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"9d84c7e108a70ee079fee038c1be8126005939a5\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3651",
+ "user_id": 3651}], "http_etag": "\"15befa96afb7f5268734f913a4e0d93568ea6eff\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['491']
+ content-length: ['495']
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/117
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3650
response:
body: {string: !!python/unicode ''}
headers:
@@ -143,8 +143,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/118
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3651
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_not_accessible_to_owners.yaml b/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_not_accessible_to_owners.yaml
index a5d7fec..9758837 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_not_accessible_to_owners.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_not_accessible_to_owners.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -56,38 +56,38 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/118']
+ location: ['http://localhost:9001/3.0/members/5544']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/119']
+ location: ['http://localhost:9001/3.0/members/5545']
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/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -103,7 +103,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -114,26 +114,26 @@
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": "\"49eb09bdcfba92ddb869657bd4d475f4b6763533\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/119", "user_id": 119},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"06c2625563d54f5dac58c8b8b87ed80b586862fd\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/120",
- "user_id": 120}], "http_etag": "\"eaa3bc715d3a3616362ce9d64e408581c876ea6b\"",
+ "http_etag": "\"9bb162ea93987e71f1c57474989e15b2f4d3f59f\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3652", "user_id": 3652},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"a6287af367b7698c739d16eb5657a3aaaef57c9a\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3653",
+ "user_id": 3653}], "http_etag": "\"15cd1accc2e3232c80d1af1c47360c395fb3c475\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['491']
+ content-length: ['495']
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/119
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3652
response:
body: {string: !!python/unicode ''}
headers:
@@ -143,8 +143,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/120
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3653
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_not_accessible_to_public.yaml b/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_not_accessible_to_public.yaml
index 200c730..bc951c6 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_not_accessible_to_public.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_not_accessible_to_public.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -56,38 +56,38 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/120']
+ location: ['http://localhost:9001/3.0/members/5546']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/121']
+ location: ['http://localhost:9001/3.0/members/5547']
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/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -103,7 +103,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -114,26 +114,26 @@
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": "\"ce983ccffb26405fd2ec62e5f38f51aabb3ee697\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/121", "user_id": 121},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"17f3034b96dfb14bb83ad930c9cb6f83a51bce6f\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/122",
- "user_id": 122}], "http_etag": "\"c15b3a62a85c85b1b258ba42de8225a5e981a46b\"",
+ "http_etag": "\"d15161947b6a0a497a2734b072d8ea42423b6914\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3654", "user_id": 3654},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"ba45a139d875d3eda288a12563db217f113c03e2\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3655",
+ "user_id": 3655}], "http_etag": "\"0181d3381e07cadf6b29db4fd436072d4a533734\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['491']
+ content-length: ['495']
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/121
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3654
response:
body: {string: !!python/unicode ''}
headers:
@@ -143,8 +143,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/122
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3655
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_not_accessible_to_unpriveleged_user.yaml b/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_not_accessible_to_unpriveleged_user.yaml
index 081210c..e6f087f 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_not_accessible_to_unpriveleged_user.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_not_accessible_to_unpriveleged_user.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -56,38 +56,38 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/122']
+ location: ['http://localhost:9001/3.0/members/5548']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/123']
+ location: ['http://localhost:9001/3.0/members/5549']
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/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -103,7 +103,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -114,26 +114,26 @@
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": "\"2bdd1deff3c6749ca774a5589d8b6e2c40d164cb\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/123", "user_id": 123},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"39ea9156496f2970f184967c90e2312324b8ce44\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/124",
- "user_id": 124}], "http_etag": "\"a3663522ff64e7142d256037f8ec0c95263356f4\"",
+ "http_etag": "\"c4fcc7d110dc43550b7ce1aef666c8eb794cc589\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3656", "user_id": 3656},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"5b0022e3561a331861f5d37dc7726e81df827b89\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3657",
+ "user_id": 3657}], "http_etag": "\"48a62e4dd813430627499e75f853a281f6e47c2c\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['491']
+ content-length: ['495']
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/123
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3656
response:
body: {string: !!python/unicode ''}
headers:
@@ -143,8 +143,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/124
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3657
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_access_for_superuser.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_access_for_superuser.yaml
index 8dee231..9d4f980 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_access_for_superuser.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_access_for_superuser.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=test_list%40example.com
+ body: !!python/unicode 'fqdn_listname=test_list%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/test_list.example.com
response:
body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname":
@@ -60,7 +60,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/test_list.example.com/bans
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
@@ -73,7 +73,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -89,7 +89,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -100,7 +100,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_add_ban.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_add_ban.yaml
index b481a36..fa9e4ac 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_add_ban.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_add_ban.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=test_list%40example.com
+ body: !!python/unicode 'fqdn_listname=test_list%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/test_list.example.com
response:
body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname":
@@ -57,11 +57,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode email=banned%40example.com
+ body: !!python/unicode 'email=banned%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/test_list.example.com/bans
response:
body: {string: !!python/unicode ''}
@@ -74,7 +74,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":
@@ -90,7 +90,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/bans
response:
body: {string: !!python/unicode '{"entries": [{"email": "banned@example.com",
@@ -106,23 +106,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
- uri: http://localhost:9001/3.0/lists/test_list.example.com/bans
- response:
- body: {string: !!python/unicode '{"entries": [{"email": "banned@example.com",
- "http_etag": "\"f97c7e71d9d67fe90f1f8d98429c3fa6a5c76f3d\"", "list_id": "test_list.example.com",
- "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned@example.com"}],
- "http_etag": "\"3f2107d752512a58b966f626957a8a21f2280abd\"", "start": 0, "total_size":
- 1}'}
- headers:
- content-length: ['327']
- content-type: [application/json; charset=UTF-8]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/test_list.example.com
response:
body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname":
@@ -138,7 +122,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/bans/banned@example.com
response:
body: {string: !!python/unicode '{"email": "banned@example.com", "http_etag":
@@ -152,7 +136,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -168,7 +152,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -179,7 +163,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_add_ban_duplicate.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_add_ban_duplicate.yaml
index 845b361..3c82fbc 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_add_ban_duplicate.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_add_ban_duplicate.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=test_list%40example.com
+ body: !!python/unicode 'fqdn_listname=test_list%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/test_list.example.com
response:
body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname":
@@ -57,11 +57,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode email=banned%40example.com
+ body: !!python/unicode 'email=banned%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/test_list.example.com/bans
response:
body: {string: !!python/unicode ''}
@@ -74,7 +74,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/bans/banned@example.com
response:
body: {string: !!python/unicode '{"email": "banned@example.com", "http_etag":
@@ -88,7 +88,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/test_list.example.com
response:
body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname":
@@ -101,14 +101,14 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode email=banned%40example.com
+ body: !!python/unicode 'email=banned%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/test_list.example.com/bans
response:
- body: {string: !!python/unicode Address is already banned}
+ body: {string: !!python/unicode 'Address is already banned'}
headers:
content-length: ['25']
content-type: [application/json; charset=UTF-8]
@@ -117,7 +117,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":
@@ -133,7 +133,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/bans
response:
body: {string: !!python/unicode '{"entries": [{"email": "banned@example.com",
@@ -149,23 +149,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
- uri: http://localhost:9001/3.0/lists/test_list.example.com/bans
- response:
- body: {string: !!python/unicode '{"entries": [{"email": "banned@example.com",
- "http_etag": "\"f97c7e71d9d67fe90f1f8d98429c3fa6a5c76f3d\"", "list_id": "test_list.example.com",
- "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned@example.com"}],
- "http_etag": "\"3f2107d752512a58b966f626957a8a21f2280abd\"", "start": 0, "total_size":
- 1}'}
- headers:
- content-length: ['327']
- content-type: [application/json; charset=UTF-8]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -181,7 +165,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -192,7 +176,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_context_contains_create_form.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_context_contains_create_form.yaml
index 8dee231..9d4f980 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_context_contains_create_form.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_context_contains_create_form.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=test_list%40example.com
+ body: !!python/unicode 'fqdn_listname=test_list%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/test_list.example.com
response:
body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname":
@@ -60,7 +60,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/test_list.example.com/bans
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
@@ -73,7 +73,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -89,7 +89,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -100,7 +100,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_context_contains_delete_forms.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_context_contains_delete_forms.yaml
index f1e7167..17da6f1 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_context_contains_delete_forms.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_context_contains_delete_forms.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=test_list%40example.com
+ body: !!python/unicode 'fqdn_listname=test_list%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/test_list.example.com
response:
body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname":
@@ -57,11 +57,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode email=banned1%40example.com
+ body: !!python/unicode 'email=banned1%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/test_list.example.com/bans
response:
body: {string: !!python/unicode ''}
@@ -71,11 +71,11 @@
location: ['http://localhost:9001/3.0/lists/test_list.example.com/bans/banned1@example.com']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode email=banned2%40example.com
+ body: !!python/unicode 'email=banned2%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/test_list.example.com/bans
response:
body: {string: !!python/unicode ''}
@@ -85,11 +85,11 @@
location: ['http://localhost:9001/3.0/lists/test_list.example.com/bans/banned2@example.com']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode email=banned3%40example.com
+ body: !!python/unicode 'email=banned3%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/test_list.example.com/bans
response:
body: {string: !!python/unicode ''}
@@ -99,11 +99,11 @@
location: ['http://localhost:9001/3.0/lists/test_list.example.com/bans/banned3@example.com']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode email=banned4%40example.com
+ body: !!python/unicode 'email=banned4%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/test_list.example.com/bans
response:
body: {string: !!python/unicode ''}
@@ -113,11 +113,11 @@
location: ['http://localhost:9001/3.0/lists/test_list.example.com/bans/banned4@example.com']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode email=banned5%40example.com
+ body: !!python/unicode 'email=banned5%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/test_list.example.com/bans
response:
body: {string: !!python/unicode ''}
@@ -127,11 +127,11 @@
location: ['http://localhost:9001/3.0/lists/test_list.example.com/bans/banned5@example.com']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode email=banned6%40example.com
+ body: !!python/unicode 'email=banned6%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/test_list.example.com/bans
response:
body: {string: !!python/unicode ''}
@@ -141,11 +141,11 @@
location: ['http://localhost:9001/3.0/lists/test_list.example.com/bans/banned6@example.com']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode email=banned7%40example.com
+ body: !!python/unicode 'email=banned7%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/test_list.example.com/bans
response:
body: {string: !!python/unicode ''}
@@ -155,11 +155,11 @@
location: ['http://localhost:9001/3.0/lists/test_list.example.com/bans/banned7@example.com']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode email=banned8%40example.com
+ body: !!python/unicode 'email=banned8%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/test_list.example.com/bans
response:
body: {string: !!python/unicode ''}
@@ -169,11 +169,11 @@
location: ['http://localhost:9001/3.0/lists/test_list.example.com/bans/banned8@example.com']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode email=banned9%40example.com
+ body: !!python/unicode 'email=banned9%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/test_list.example.com/bans
response:
body: {string: !!python/unicode ''}
@@ -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/test_list.example.com
response:
body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname":
@@ -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/test_list.example.com/bans
response:
body: {string: !!python/unicode '{"entries": [{"email": "banned1@example.com",
@@ -234,39 +234,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
- uri: http://localhost:9001/3.0/lists/test_list.example.com/bans
- response:
- body: {string: !!python/unicode '{"entries": [{"email": "banned1@example.com",
- "http_etag": "\"31fd4b12c69f84bd2bda2111c15b15eced1f890f\"", "list_id": "test_list.example.com",
- "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned1@example.com"},
- {"email": "banned2@example.com", "http_etag": "\"ba6d0d5c1d9a927137dcb6b29d74ab571449be86\"",
- "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned2@example.com"},
- {"email": "banned3@example.com", "http_etag": "\"c659ef9d7966a17bd73be06cec34fe7eedffe518\"",
- "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned3@example.com"},
- {"email": "banned4@example.com", "http_etag": "\"f7f52a9b77481b0221e185b2ad1ac0e92be1df5e\"",
- "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned4@example.com"},
- {"email": "banned5@example.com", "http_etag": "\"e8c1f85a8852257519387b125c10b195a02b37fd\"",
- "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned5@example.com"},
- {"email": "banned6@example.com", "http_etag": "\"f4d4a3159b921ecc7fcb0ac4736ab592d66ac85f\"",
- "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned6@example.com"},
- {"email": "banned7@example.com", "http_etag": "\"24739d710562601a44c0c7ef70f18c473d099a9e\"",
- "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned7@example.com"},
- {"email": "banned8@example.com", "http_etag": "\"aa77f6b65a38219393dbdf81fff7ce94e67ea4bb\"",
- "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned8@example.com"},
- {"email": "banned9@example.com", "http_etag": "\"51bbc9a5717cac6db2d258e677e8fcaeb0863355\"",
- "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned9@example.com"}],
- "http_etag": "\"e4ba18e67f3919a7a8d4fa7ed61bf1432bae9f12\"", "start": 0, "total_size":
- 9}'}
- headers:
- content-length: ['2137']
- 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/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -282,7 +250,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -293,7 +261,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_del_ban.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_del_ban.yaml
index 7625ef8..7fe5a5e 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_del_ban.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_del_ban.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=test_list%40example.com
+ body: !!python/unicode 'fqdn_listname=test_list%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/test_list.example.com
response:
body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname":
@@ -57,11 +57,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode email=banned%40example.com
+ body: !!python/unicode 'email=banned%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/test_list.example.com/bans
response:
body: {string: !!python/unicode ''}
@@ -74,7 +74,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/bans/banned@example.com
response:
body: {string: !!python/unicode '{"email": "banned@example.com", "http_etag":
@@ -88,7 +88,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/test_list.example.com
response:
body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname":
@@ -104,7 +104,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/test_list.example.com/bans
response:
body: {string: !!python/unicode '{"entries": [{"email": "banned@example.com",
@@ -120,7 +120,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/lists/test_list.example.com/bans/banned@example.com
response:
body: {string: !!python/unicode ''}
@@ -131,7 +131,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":
@@ -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/test_list.example.com/bans
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
@@ -160,7 +160,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/bans/banned@example.com
response:
body: {string: !!python/unicode 'Email is not banned: banned@example.com'}
@@ -172,7 +172,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -188,7 +188,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -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/users
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_del_unknown_ban.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_del_unknown_ban.yaml
index 4eb096f..4136005 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_del_unknown_ban.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_del_unknown_ban.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=test_list%40example.com
+ body: !!python/unicode 'fqdn_listname=test_list%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/test_list.example.com
response:
body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname":
@@ -60,7 +60,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/test_list.example.com/bans/banned@example.com
response:
body: {string: !!python/unicode 'Email is not banned: banned@example.com'}
@@ -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/test_list.example.com
response:
body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname":
@@ -88,7 +88,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/test_list.example.com/bans
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
@@ -101,7 +101,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/test_list.example.com
response:
body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname":
@@ -117,7 +117,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/bans
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
@@ -130,7 +130,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -146,7 +146,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -157,7 +157,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_login_redirect_for_anonymous.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_login_redirect_for_anonymous.yaml
index f74812f..9c6cc43 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_login_redirect_for_anonymous.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_login_redirect_for_anonymous.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=test_list%40example.com
+ body: !!python/unicode 'fqdn_listname=test_list%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -60,7 +60,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -71,7 +71,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_no_access_for_basic_user.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_no_access_for_basic_user.yaml
index 1cec94e..2f8b6f6 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_no_access_for_basic_user.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_no_access_for_basic_user.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=test_list%40example.com
+ body: !!python/unicode 'fqdn_listname=test_list%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/test_list.example.com
response:
body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname":
@@ -60,7 +60,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/test_list.example.com/roster/owner
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
@@ -73,7 +73,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/test_list.example.com/roster/moderator
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
@@ -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/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -102,7 +102,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -113,7 +113,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListCreationTest.test_listname_validation.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListCreationTest.test_listname_validation.yaml
index 2fee847..2b51242 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListCreationTest.test_listname_validation.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListCreationTest.test_listname_validation.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -33,7 +33,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -46,7 +46,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -62,7 +62,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -73,7 +73,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListCreationTest.test_new_list_created_with_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListCreationTest.test_new_list_created_with_owner.yaml
index 9d85a76..2339bc1 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListCreationTest.test_new_list_created_with_owner.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListCreationTest.test_new_list_created_with_owner.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -33,7 +33,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -46,7 +46,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -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/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -69,11 +69,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=a_new_list%40example.com
+ body: !!python/unicode '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 ''}
@@ -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/a_new_list.example.com
response:
body: {string: !!python/unicode '{"display_name": "A_new_list", "fqdn_listname":
@@ -99,24 +99,24 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=a_new_list.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=a_new_list.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/124']
+ location: ['http://localhost:9001/3.0/members/5517']
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":
@@ -130,10 +130,12 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "A_new_list", "filter_content": false,
- "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "a_new_list@example.com",
- "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"a63fa14d96314f1896c4b2225f9d66eafab6b39b\"",
- "include_rfc2369_headers": true, "join_address": "a_new_list-join@example.com",
+ "digests_enabled": true, "display_name": "A_new_list", "dmarc_mitigate_action":
+ "no_mitigation", "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice":
+ "", "dmarc_wrapped_message_text": "", "filter_content": false, "first_strip_reply_to":
+ false, "footer_uri": "", "fqdn_listname": "a_new_list@example.com", "goodbye_message_uri":
+ "", "header_uri": "", "http_etag": "\"accb9ab902c5ee5aee6299b24f10aeb5a03d48a6\"",
+ "include_rfc2369_headers": true, "info": "", "join_address": "a_new_list-join@example.com",
"last_post_at": null, "leave_address": "a_new_list-leave@example.com", "list_name":
"a_new_list", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
1, "no_reply_address": "noreply@example.com", "owner_address": "a_new_list-owner@example.com",
@@ -143,15 +145,15 @@
true, "subject_prefix": "[A_new_list] ", "subscription_policy": "confirm",
"volume": 1, "welcome_message_uri": ""}'}
headers:
- content-length: ['1847']
+ content-length: ['2007']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode advertised=True&description=A+new+list.
+ body: !!python/unicode 'advertised=True&description=A+new+list.'
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 ''}
@@ -162,7 +164,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":
@@ -178,24 +180,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": "\"4846a8b9d96758900ab5b9a7653014e212d01b73\"",
- "list_id": "a_new_list.example.com", "member_id": 124, "moderation_action":
- "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/124",
- "user": "http://localhost:9001/3.0/users/127"}], "http_etag": "\"737bca63c160aefa4bbd379cbe85365ea0840270\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"0f4d302b9df34514c02e7561518d254393654d78\"",
+ "list_id": "a_new_list.example.com", "member_id": 5517, "moderation_action":
+ "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/5517",
+ "user": "http://localhost:9001/3.0/users/3628"}], "http_etag": "\"c6a5af406417867f0c70cd0efdf66d132f956ae1\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['496']
+ content-length: ['499']
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/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -211,7 +213,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -222,24 +224,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": "\"6fb6f8b7416c57fd5648ed71883df43590b0e8da\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/127", "user_id": 127}],
- "http_etag": "\"9b19062fce777ed7c62ff9a9dd15b1ee0bdae458\"", "start": 0, "total_size":
+ "http_etag": "\"e790f1a911030dbfd58325dc8a5fce1783591bbc\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3628", "user_id": 3628}],
+ "http_etag": "\"d79eee15029cbc12b89cd06c12d9b79269b06434\"", "start": 0, "total_size":
1}'}
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 DELETE
- uri: http://localhost:9001/3.0/users/127
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3628
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListCreationTest.test_permission_denied.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListCreationTest.test_permission_denied.yaml
index 6269e5e..1a0f95c 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListCreationTest.test_permission_denied.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListCreationTest.test_permission_denied.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -33,7 +33,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add.yaml
index 2cd6def..bb62b71 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=list%40example.com
+ body: !!python/unicode 'fqdn_listname=list%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -56,38 +56,38 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=list.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=list.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/23']
+ location: ['http://localhost:9001/3.0/members/5592']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=list.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=list.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/24']
+ location: ['http://localhost:9001/3.0/members/5593']
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/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -102,42 +102,42 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/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": "\"3deff56d1af6284a79dfca309f328ac1c14b37eb\"",
- "list_id": "list.example.com", "member_id": 23, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/23", "user":
- "http://localhost:9001/3.0/users/17"}], "http_etag": "\"0007ae531c7a225f437bb1af12de46944dfc4ea3\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"353a277fe23cb88904d6f764999d549ee7bfc99b\"",
+ "list_id": "list.example.com", "member_id": 5592, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5592", "user":
+ "http://localhost:9001/3.0/users/3707"}], "http_etag": "\"e2a27f5e2fba58aa25af96e1df19586176450e10\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['487']
+ content-length: ['493']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.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":
- "\"e7ddbc9cbb4d97662834325a64e8a843a9127241\"", "list_id": "list.example.com",
- "member_id": 24, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/24", "user": "http://localhost:9001/3.0/users/18"}],
- "http_etag": "\"d753c9634fea3065fd8aef71ef8f572ddd8457d1\"", "start": 0, "total_size":
+ "\"c8004bae26130a8e421876f6361e17b8321bebff\"", "list_id": "list.example.com",
+ "member_id": 5593, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5593", "user": "http://localhost:9001/3.0/users/3708"}],
+ "http_etag": "\"cf162a8d1cad2d08ed78bb799f5fe68d00a69609\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['499']
+ content-length: ['505']
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/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -152,7 +152,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
@@ -165,7 +165,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode ''}
@@ -173,11 +173,11 @@
content-length: ['0']
status: {code: 204, message: No Content}
- request:
- body: !!python/unicode action=discard&header=testheader&pattern=testpattern
+ body: !!python/unicode 'action=discard&header=testheader&pattern=testpattern'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!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/list.example.com/header-matches
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/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -205,42 +205,42 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/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": "\"3deff56d1af6284a79dfca309f328ac1c14b37eb\"",
- "list_id": "list.example.com", "member_id": 23, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/23", "user":
- "http://localhost:9001/3.0/users/17"}], "http_etag": "\"0007ae531c7a225f437bb1af12de46944dfc4ea3\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"353a277fe23cb88904d6f764999d549ee7bfc99b\"",
+ "list_id": "list.example.com", "member_id": 5592, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5592", "user":
+ "http://localhost:9001/3.0/users/3707"}], "http_etag": "\"e2a27f5e2fba58aa25af96e1df19586176450e10\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['487']
+ content-length: ['493']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.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":
- "\"e7ddbc9cbb4d97662834325a64e8a843a9127241\"", "list_id": "list.example.com",
- "member_id": 24, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/24", "user": "http://localhost:9001/3.0/users/18"}],
- "http_etag": "\"d753c9634fea3065fd8aef71ef8f572ddd8457d1\"", "start": 0, "total_size":
+ "\"c8004bae26130a8e421876f6361e17b8321bebff\"", "list_id": "list.example.com",
+ "member_id": 5593, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5593", "user": "http://localhost:9001/3.0/users/3708"}],
+ "http_etag": "\"cf162a8d1cad2d08ed78bb799f5fe68d00a69609\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['499']
+ content-length: ['505']
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/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -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/list.example.com/header-matches
response:
body: {string: !!python/unicode '{"entries": [{"action": "discard", "header":
@@ -271,7 +271,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode '{"entries": [{"action": "discard", "header":
@@ -287,7 +287,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode '{"entries": [{"action": "discard", "header":
@@ -303,7 +303,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -319,7 +319,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -330,31 +330,26 @@
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}, {"created_on": "2005-08-01T07:49:23", "display_name": "None",
- "http_etag": "\"9dc22141539f02a297f9950f28fa8f68b59c075c\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/16", "user_id": 16},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"5ba84a9331a86066b367c0388a143ff681442612\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/17",
- "user_id": 17}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"9e9ec0bee5e8d3005e3e51a29a0f628cf28f7db0\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/18",
- "user_id": 18}], "http_etag": "\"cff16063f412846e97efa09b1c5c3f52f63bbf0c\"",
- "start": 0, "total_size": 4}'}
+ "http_etag": "\"2d53d24297ace0eb957fde61ceb3fac130c09bca\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3707", "user_id": 3707},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"d4b0e427adb278b3e4e82d63751ec4d03631fa5e\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3708",
+ "user_id": 3708}], "http_etag": "\"ac012cc9d89017f2548bbea38772323f3de0d12e\"",
+ "start": 0, "total_size": 2}'}
headers:
- content-length: ['919']
+ content-length: ['495']
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/3707
response:
body: {string: !!python/unicode ''}
headers:
@@ -364,30 +359,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/16
- response:
- body: {string: !!python/unicode ''}
- headers:
- content-length: ['0']
- status: {code: 204, message: No Content}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/17
- 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/18
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3708
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add_empty.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add_empty.yaml
index 2f90350..27748cb 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add_empty.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add_empty.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=list%40example.com
+ body: !!python/unicode 'fqdn_listname=list%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -56,38 +56,38 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=list.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=list.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/25']
+ location: ['http://localhost:9001/3.0/members/5594']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=list.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=list.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/26']
+ location: ['http://localhost:9001/3.0/members/5595']
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/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -102,42 +102,42 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/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": "\"40561d7688929e990e45dd94be6bf03ab7c95bf9\"",
- "list_id": "list.example.com", "member_id": 25, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/25", "user":
- "http://localhost:9001/3.0/users/19"}], "http_etag": "\"98b82553134e1a2b2648acad9da8bc948086e911\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"662ba28a3c25cce6491e9d1a9e6c5a62f8752af8\"",
+ "list_id": "list.example.com", "member_id": 5594, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5594", "user":
+ "http://localhost:9001/3.0/users/3709"}], "http_etag": "\"6f3a1092e6aea71052da123b3cceb3c396237d1a\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['487']
+ content-length: ['493']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.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":
- "\"4a8f0c410ef48ca134d2287c5e01ad8ebe1155fc\"", "list_id": "list.example.com",
- "member_id": 26, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/26", "user": "http://localhost:9001/3.0/users/20"}],
- "http_etag": "\"e6d1aa12c741b1c908d4b3db4d855e9fed4295ef\"", "start": 0, "total_size":
+ "\"23887e4bb4c4dc3f627d6c5bdf87940b2e135206\"", "list_id": "list.example.com",
+ "member_id": 5595, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5595", "user": "http://localhost:9001/3.0/users/3710"}],
+ "http_etag": "\"d270dcb91c51b9bbf397a6d573cd633ebe3eed5e\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['499']
+ content-length: ['505']
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/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -152,7 +152,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
@@ -165,7 +165,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -180,42 +180,42 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/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": "\"40561d7688929e990e45dd94be6bf03ab7c95bf9\"",
- "list_id": "list.example.com", "member_id": 25, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/25", "user":
- "http://localhost:9001/3.0/users/19"}], "http_etag": "\"98b82553134e1a2b2648acad9da8bc948086e911\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"662ba28a3c25cce6491e9d1a9e6c5a62f8752af8\"",
+ "list_id": "list.example.com", "member_id": 5594, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5594", "user":
+ "http://localhost:9001/3.0/users/3709"}], "http_etag": "\"6f3a1092e6aea71052da123b3cceb3c396237d1a\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['487']
+ content-length: ['493']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.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":
- "\"4a8f0c410ef48ca134d2287c5e01ad8ebe1155fc\"", "list_id": "list.example.com",
- "member_id": 26, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/26", "user": "http://localhost:9001/3.0/users/20"}],
- "http_etag": "\"e6d1aa12c741b1c908d4b3db4d855e9fed4295ef\"", "start": 0, "total_size":
+ "\"23887e4bb4c4dc3f627d6c5bdf87940b2e135206\"", "list_id": "list.example.com",
+ "member_id": 5595, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5595", "user": "http://localhost:9001/3.0/users/3710"}],
+ "http_etag": "\"d270dcb91c51b9bbf397a6d573cd633ebe3eed5e\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['499']
+ content-length: ['505']
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/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -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/list.example.com/header-matches
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/list.example.com/header-matches
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
@@ -256,7 +256,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -272,7 +272,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -283,26 +283,26 @@
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": "\"f01a45c6984d9e4639cb6d338286307c11624e4f\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/19", "user_id": 19},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"9fa1761ddc1bccdf97e502e936612292fa46492e\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/20",
- "user_id": 20}], "http_etag": "\"6ff8f8dc97749e9cea6b5a4c04794299e0b6b122\"",
+ "http_etag": "\"ea261e7570176a6c9fe5b79d5417db35a689e718\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3709", "user_id": 3709},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"9bc741932b294c914410b37f3ac232b0047a9ddb\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3710",
+ "user_id": 3710}], "http_etag": "\"d15ff63f84dae8dff7db7708240a2ec4f3206236\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['487']
+ content-length: ['495']
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/19
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3709
response:
body: {string: !!python/unicode ''}
headers:
@@ -312,8 +312,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/20
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3710
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add_empty_header.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add_empty_header.yaml
index af1eaaf..e982b21 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add_empty_header.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add_empty_header.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=list%40example.com
+ body: !!python/unicode 'fqdn_listname=list%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -56,38 +56,38 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=list.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=list.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/27']
+ location: ['http://localhost:9001/3.0/members/5596']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=list.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=list.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/28']
+ location: ['http://localhost:9001/3.0/members/5597']
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/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -102,42 +102,42 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/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": "\"0ee63015a97befe3b37b8ab6ca9d631573afe804\"",
- "list_id": "list.example.com", "member_id": 27, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/27", "user":
- "http://localhost:9001/3.0/users/21"}], "http_etag": "\"f7e03acb5a48c588503dc82004849424cb703cfa\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"5b5f4725c4978d01d836794fd350e71e982900c9\"",
+ "list_id": "list.example.com", "member_id": 5596, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5596", "user":
+ "http://localhost:9001/3.0/users/3711"}], "http_etag": "\"4eccef35d0f14dce3faded80bd37609381ab3b8e\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['487']
+ content-length: ['493']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.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":
- "\"fd00fac82d095a677190c55cd368677316f7896a\"", "list_id": "list.example.com",
- "member_id": 28, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/28", "user": "http://localhost:9001/3.0/users/22"}],
- "http_etag": "\"e1935903960fcb13233c195735faba5a091f9725\"", "start": 0, "total_size":
+ "\"7abec14420c49938a1225acf79eb6e09b6cfafd5\"", "list_id": "list.example.com",
+ "member_id": 5597, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5597", "user": "http://localhost:9001/3.0/users/3712"}],
+ "http_etag": "\"0b696ec6f30b7fb6c06695c6770892009025b09a\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['499']
+ content-length: ['505']
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/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -152,7 +152,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
@@ -165,7 +165,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
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/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -194,7 +194,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -205,26 +205,26 @@
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": "\"2b7d189e2d8f3403cf72781d5a1837d3f6722d31\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/21", "user_id": 21},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"6dc3faac46bcef307cb04b877c1cb62ddff20660\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/22",
- "user_id": 22}], "http_etag": "\"7b7429f12f7b3dbbef91f517c9fa3512c2ad6f45\"",
+ "http_etag": "\"bdbb344b7e228180c2413d736b61ece5f9c96c38\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3711", "user_id": 3711},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"65271bc815ab22ede7ab7b5296126aebedeaa6aa\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3712",
+ "user_id": 3712}], "http_etag": "\"dbaf4344100b6552fb1ce9851ecd83bbb5960001\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['487']
+ content-length: ['495']
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/21
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3711
response:
body: {string: !!python/unicode ''}
headers:
@@ -234,8 +234,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/22
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3712
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add_empty_pattern.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add_empty_pattern.yaml
index 2c9baee..485ea09 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add_empty_pattern.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add_empty_pattern.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=list%40example.com
+ body: !!python/unicode 'fqdn_listname=list%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -56,38 +56,38 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=list.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=list.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/29']
+ location: ['http://localhost:9001/3.0/members/5598']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=list.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=list.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/30']
+ location: ['http://localhost:9001/3.0/members/5599']
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/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -102,42 +102,42 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/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": "\"37856c0b26e0f48852e635f0375a00fa3d63a44d\"",
- "list_id": "list.example.com", "member_id": 29, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/29", "user":
- "http://localhost:9001/3.0/users/23"}], "http_etag": "\"a330ad070af0b8ca3bbe125e39fb6b42358fc729\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"2115d498082eccd9439312abff3ff40a38241adb\"",
+ "list_id": "list.example.com", "member_id": 5598, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5598", "user":
+ "http://localhost:9001/3.0/users/3713"}], "http_etag": "\"349edeb32fd09e7293a4495e55253c958249fab9\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['487']
+ content-length: ['493']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.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":
- "\"95d86817f0f2b557a247e5c2a59f9a46ca4d8c92\"", "list_id": "list.example.com",
- "member_id": 30, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/30", "user": "http://localhost:9001/3.0/users/24"}],
- "http_etag": "\"120b1d29c427dc55ce5d7757a40ab3c61dc46ed2\"", "start": 0, "total_size":
+ "\"e7ba2c7b0adb92b59bc39b664ddf863b85b3cba8\"", "list_id": "list.example.com",
+ "member_id": 5599, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5599", "user": "http://localhost:9001/3.0/users/3714"}],
+ "http_etag": "\"b56117d5e0bf0fd5acb8a6c56c238137831ab2bf\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['499']
+ content-length: ['505']
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/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -152,7 +152,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
@@ -165,7 +165,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
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/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -194,7 +194,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -205,26 +205,26 @@
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": "\"b3a1bcb260c4bd5e880e4324ec95d6287c26d550\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/23", "user_id": 23},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"1e86381735f77312260a704e0b6dc204d733f858\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/24",
- "user_id": 24}], "http_etag": "\"cb3a5932cd2b63b0422bf0e69c2da3a3deafff26\"",
+ "http_etag": "\"7f824525fbfa6e9562d2f68049634ec993ee959b\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3713", "user_id": 3713},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"9874314ece557b28ae75c66a2af60666a336028f\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3714",
+ "user_id": 3714}], "http_etag": "\"6430150aa4b59755b745963d2208a735174a8998\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['487']
+ content-length: ['495']
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/23
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3713
response:
body: {string: !!python/unicode ''}
headers:
@@ -234,8 +234,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/24
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3714
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add_existing.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add_existing.yaml
index 2e1cc0a..639be62 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add_existing.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add_existing.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=list%40example.com
+ body: !!python/unicode 'fqdn_listname=list%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -56,39 +56,39 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=list.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=list.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/31']
+ location: ['http://localhost:9001/3.0/members/5600']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=list.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=list.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/32']
+ location: ['http://localhost:9001/3.0/members/5601']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode action=discard&header=testheader&pattern=testpattern
+ body: !!python/unicode 'action=discard&header=testheader&pattern=testpattern'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!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/list.example.com/header-matches
response:
body: {string: !!python/unicode ''}
@@ -101,7 +101,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -116,42 +116,42 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/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": "\"3e443c76bf9d15ceba1a6601380207870761bdf3\"",
- "list_id": "list.example.com", "member_id": 31, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/31", "user":
- "http://localhost:9001/3.0/users/25"}], "http_etag": "\"3488e8b774e0ee00fb996dd3a0ab24247ee541ee\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"5ecff5266170806583c6cf3a4aff3b1bf7ab0107\"",
+ "list_id": "list.example.com", "member_id": 5600, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5600", "user":
+ "http://localhost:9001/3.0/users/3715"}], "http_etag": "\"c9af5a80a908ae68ab724d60ff6ea79d35d74126\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['487']
+ content-length: ['493']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.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":
- "\"c9c732c2b71228ffc6bdf301006f4aa9f4489f54\"", "list_id": "list.example.com",
- "member_id": 32, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/32", "user": "http://localhost:9001/3.0/users/26"}],
- "http_etag": "\"9c051b56a1eddd9d670907c8f6694122f7296683\"", "start": 0, "total_size":
+ "\"2d8ecdaeea3eddf970a8f00f4fd69d0b3a6739f6\"", "list_id": "list.example.com",
+ "member_id": 5601, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5601", "user": "http://localhost:9001/3.0/users/3716"}],
+ "http_etag": "\"4065abe957ac46f114027629d0d2c43e9aef27d7\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['499']
+ content-length: ['505']
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/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -166,7 +166,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode '{"entries": [{"action": "discard", "header":
@@ -182,7 +182,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode ''}
@@ -190,11 +190,11 @@
content-length: ['0']
status: {code: 204, message: No Content}
- request:
- body: !!python/unicode action=discard&header=testheader&pattern=testpattern
+ body: !!python/unicode 'action=discard&header=testheader&pattern=testpattern'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!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/list.example.com/header-matches
response:
body: {string: !!python/unicode ''}
@@ -204,14 +204,14 @@
location: ['http://localhost:9001/3.0/lists/list.example.com/header-matches/0']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode action=hold&header=testheader&pattern=testpattern
+ body: !!python/unicode 'action=hold&header=testheader&pattern=testpattern'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!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/list.example.com/header-matches
response:
- body: {string: !!python/unicode This header match already exists}
+ body: {string: !!python/unicode 'This header match already exists'}
headers:
content-length: ['32']
content-type: [application/json; charset=UTF-8]
@@ -220,7 +220,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -235,42 +235,42 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/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": "\"3e443c76bf9d15ceba1a6601380207870761bdf3\"",
- "list_id": "list.example.com", "member_id": 31, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/31", "user":
- "http://localhost:9001/3.0/users/25"}], "http_etag": "\"3488e8b774e0ee00fb996dd3a0ab24247ee541ee\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"5ecff5266170806583c6cf3a4aff3b1bf7ab0107\"",
+ "list_id": "list.example.com", "member_id": 5600, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5600", "user":
+ "http://localhost:9001/3.0/users/3715"}], "http_etag": "\"c9af5a80a908ae68ab724d60ff6ea79d35d74126\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['487']
+ content-length: ['493']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.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":
- "\"c9c732c2b71228ffc6bdf301006f4aa9f4489f54\"", "list_id": "list.example.com",
- "member_id": 32, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/32", "user": "http://localhost:9001/3.0/users/26"}],
- "http_etag": "\"9c051b56a1eddd9d670907c8f6694122f7296683\"", "start": 0, "total_size":
+ "\"2d8ecdaeea3eddf970a8f00f4fd69d0b3a6739f6\"", "list_id": "list.example.com",
+ "member_id": 5601, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5601", "user": "http://localhost:9001/3.0/users/3716"}],
+ "http_etag": "\"4065abe957ac46f114027629d0d2c43e9aef27d7\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['499']
+ content-length: ['505']
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/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -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/list.example.com/header-matches
response:
body: {string: !!python/unicode '{"entries": [{"action": "discard", "header":
@@ -301,7 +301,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode '{"entries": [{"action": "discard", "header":
@@ -317,7 +317,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode '{"entries": [{"action": "discard", "header":
@@ -333,7 +333,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -349,7 +349,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -360,26 +360,26 @@
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": "\"0c3f6e8712fd05b9da49c42bf9600a5414b7958f\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/25", "user_id": 25},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"c73be856843a113d5eb32f60ae4315192adb1045\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/26",
- "user_id": 26}], "http_etag": "\"a32b34e49e6b83b8330c6f8aa6cc861c364fabe0\"",
+ "http_etag": "\"4a8e4546c065953c0d97d5954b796fb58c02f245\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3715", "user_id": 3715},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"95b8d6fb67e794dd25358260c04f9943249a449f\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3716",
+ "user_id": 3716}], "http_etag": "\"9afc29efcca6c44386420d56b04f285844db35ff\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['487']
+ content-length: ['495']
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/25
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3715
response:
body: {string: !!python/unicode ''}
headers:
@@ -389,8 +389,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/26
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3716
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_delete.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_delete.yaml
index c0a1750..3eedb80 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_delete.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_delete.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=list%40example.com
+ body: !!python/unicode 'fqdn_listname=list%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -56,39 +56,39 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=list.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=list.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/33']
+ location: ['http://localhost:9001/3.0/members/5602']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=list.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=list.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/34']
+ location: ['http://localhost:9001/3.0/members/5603']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode action=discard&header=testheader-1&pattern=testpattern-1
+ body: !!python/unicode 'action=discard&header=testheader-1&pattern=testpattern-1'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!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/list.example.com/header-matches
response:
body: {string: !!python/unicode ''}
@@ -98,11 +98,11 @@
location: ['http://localhost:9001/3.0/lists/list.example.com/header-matches/0']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode action=discard&header=testheader-2&pattern=testpattern-2
+ body: !!python/unicode 'action=discard&header=testheader-2&pattern=testpattern-2'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!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/list.example.com/header-matches
response:
body: {string: !!python/unicode ''}
@@ -115,7 +115,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -130,42 +130,42 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/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": "\"177863c850924987742793f4330f4bff87c1d83c\"",
- "list_id": "list.example.com", "member_id": 33, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/33", "user":
- "http://localhost:9001/3.0/users/27"}], "http_etag": "\"70d97db0f030b0a106747048c4a465e38977c08a\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"2aed217ad5580c310938ba48ea5c50f4a62910c9\"",
+ "list_id": "list.example.com", "member_id": 5602, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5602", "user":
+ "http://localhost:9001/3.0/users/3717"}], "http_etag": "\"9a848e94cd72dfded91ab97811299def80201e53\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['487']
+ content-length: ['493']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.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":
- "\"ede55288aee8564a2d4e31679614e71d4300be63\"", "list_id": "list.example.com",
- "member_id": 34, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/34", "user": "http://localhost:9001/3.0/users/28"}],
- "http_etag": "\"8c4dce7fb4176c42676af9aa128d76492150dd21\"", "start": 0, "total_size":
+ "\"524fd958a2b2f234eaebe83146bc6747e48c8a54\"", "list_id": "list.example.com",
+ "member_id": 5603, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5603", "user": "http://localhost:9001/3.0/users/3718"}],
+ "http_etag": "\"e711d1238126239bbc1b696d9a924a4b87e56e1e\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['499']
+ content-length: ['505']
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/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -180,7 +180,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode '{"entries": [{"action": "discard", "header":
@@ -198,7 +198,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode ''}
@@ -206,11 +206,11 @@
content-length: ['0']
status: {code: 204, message: No Content}
- request:
- body: !!python/unicode action=discard&header=testheader-2&pattern=testpattern-2
+ body: !!python/unicode 'action=discard&header=testheader-2&pattern=testpattern-2'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!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/list.example.com/header-matches
response:
body: {string: !!python/unicode ''}
@@ -223,7 +223,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -238,42 +238,42 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/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": "\"177863c850924987742793f4330f4bff87c1d83c\"",
- "list_id": "list.example.com", "member_id": 33, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/33", "user":
- "http://localhost:9001/3.0/users/27"}], "http_etag": "\"70d97db0f030b0a106747048c4a465e38977c08a\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"2aed217ad5580c310938ba48ea5c50f4a62910c9\"",
+ "list_id": "list.example.com", "member_id": 5602, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5602", "user":
+ "http://localhost:9001/3.0/users/3717"}], "http_etag": "\"9a848e94cd72dfded91ab97811299def80201e53\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['487']
+ content-length: ['493']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.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":
- "\"ede55288aee8564a2d4e31679614e71d4300be63\"", "list_id": "list.example.com",
- "member_id": 34, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/34", "user": "http://localhost:9001/3.0/users/28"}],
- "http_etag": "\"8c4dce7fb4176c42676af9aa128d76492150dd21\"", "start": 0, "total_size":
+ "\"524fd958a2b2f234eaebe83146bc6747e48c8a54\"", "list_id": "list.example.com",
+ "member_id": 5603, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5603", "user": "http://localhost:9001/3.0/users/3718"}],
+ "http_etag": "\"e711d1238126239bbc1b696d9a924a4b87e56e1e\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['499']
+ content-length: ['505']
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/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -288,7 +288,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode '{"entries": [{"action": "discard", "header":
@@ -304,7 +304,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode '{"entries": [{"action": "discard", "header":
@@ -320,7 +320,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode '{"entries": [{"action": "discard", "header":
@@ -336,7 +336,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -352,7 +352,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -363,26 +363,26 @@
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": "\"1479b23f4b3c2af04f98946e313297006dd20754\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/27", "user_id": 27},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"641cbb9a7ea368f465861330cbda5a46dedc4d71\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/28",
- "user_id": 28}], "http_etag": "\"a0bf6250689992c92f4c76076a9debb2eb705124\"",
+ "http_etag": "\"b2c90f2d4d9d8d3365ba7b6445aef558937cb04f\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3717", "user_id": 3717},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"b8aa9b94a8fc0408d76f1933dc453c5146d09683\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3718",
+ "user_id": 3718}], "http_etag": "\"556979502f8b733b7cc70f0eb4527e72d62ccba1\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['487']
+ content-length: ['495']
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/27
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3717
response:
body: {string: !!python/unicode ''}
headers:
@@ -392,8 +392,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/28
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3718
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_edit.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_edit.yaml
index cdeecc3..4e03664 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_edit.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_edit.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=list%40example.com
+ body: !!python/unicode 'fqdn_listname=list%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -56,39 +56,39 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=list.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=list.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/35']
+ location: ['http://localhost:9001/3.0/members/5604']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=list.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=list.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/36']
+ location: ['http://localhost:9001/3.0/members/5605']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode action=discard&header=testheader&pattern=testpattern
+ body: !!python/unicode 'action=discard&header=testheader&pattern=testpattern'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!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/list.example.com/header-matches
response:
body: {string: !!python/unicode ''}
@@ -101,7 +101,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -116,42 +116,42 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/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": "\"e5a7b8dff9da3b89cf17104137a0fb2e63bb0130\"",
- "list_id": "list.example.com", "member_id": 35, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/35", "user":
- "http://localhost:9001/3.0/users/29"}], "http_etag": "\"f6656d00846c09e404aa5ac74f6b218ed9e74ca4\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"517e0c200689920787aa43bafb0dc8cd2fc75f0a\"",
+ "list_id": "list.example.com", "member_id": 5604, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5604", "user":
+ "http://localhost:9001/3.0/users/3719"}], "http_etag": "\"a99164d8385d5e05ee40b9550bcd7b6a0d20d299\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['487']
+ content-length: ['493']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.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":
- "\"f84df3bf409843cbf6e38f099f395aaa46a55ddf\"", "list_id": "list.example.com",
- "member_id": 36, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/36", "user": "http://localhost:9001/3.0/users/30"}],
- "http_etag": "\"a64e0fe18234a84fa68551cc1c55177abc64b834\"", "start": 0, "total_size":
+ "\"ab5763da0a87450ec858f0077fb68194bbde813c\"", "list_id": "list.example.com",
+ "member_id": 5605, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5605", "user": "http://localhost:9001/3.0/users/3720"}],
+ "http_etag": "\"b77b6b8f553277de49746f026f66aa8210d09d41\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['499']
+ content-length: ['505']
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/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -166,7 +166,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode '{"entries": [{"action": "discard", "header":
@@ -182,7 +182,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode ''}
@@ -190,11 +190,11 @@
content-length: ['0']
status: {code: 204, message: No Content}
- request:
- body: !!python/unicode action=hold&header=testheader-changed&pattern=testpattern-changed
+ body: !!python/unicode 'action=hold&header=testheader-changed&pattern=testpattern-changed'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!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/list.example.com/header-matches
response:
body: {string: !!python/unicode ''}
@@ -207,7 +207,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -222,42 +222,42 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/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": "\"e5a7b8dff9da3b89cf17104137a0fb2e63bb0130\"",
- "list_id": "list.example.com", "member_id": 35, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/35", "user":
- "http://localhost:9001/3.0/users/29"}], "http_etag": "\"f6656d00846c09e404aa5ac74f6b218ed9e74ca4\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"517e0c200689920787aa43bafb0dc8cd2fc75f0a\"",
+ "list_id": "list.example.com", "member_id": 5604, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5604", "user":
+ "http://localhost:9001/3.0/users/3719"}], "http_etag": "\"a99164d8385d5e05ee40b9550bcd7b6a0d20d299\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['487']
+ content-length: ['493']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.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":
- "\"f84df3bf409843cbf6e38f099f395aaa46a55ddf\"", "list_id": "list.example.com",
- "member_id": 36, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/36", "user": "http://localhost:9001/3.0/users/30"}],
- "http_etag": "\"a64e0fe18234a84fa68551cc1c55177abc64b834\"", "start": 0, "total_size":
+ "\"ab5763da0a87450ec858f0077fb68194bbde813c\"", "list_id": "list.example.com",
+ "member_id": 5605, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5605", "user": "http://localhost:9001/3.0/users/3720"}],
+ "http_etag": "\"b77b6b8f553277de49746f026f66aa8210d09d41\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['499']
+ content-length: ['505']
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/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -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/list.example.com/header-matches
response:
body: {string: !!python/unicode '{"entries": [{"action": "hold", "header": "testheader-changed",
@@ -288,7 +288,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode '{"entries": [{"action": "hold", "header": "testheader-changed",
@@ -304,7 +304,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode '{"entries": [{"action": "hold", "header": "testheader-changed",
@@ -320,7 +320,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -336,7 +336,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -347,26 +347,26 @@
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": "\"4e1a95736360f3a01f989768ff1a28a3f7b961e0\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/29", "user_id": 29},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"32459ccb62cf1e20b180199fc48b4cf2b67b404e\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/30",
- "user_id": 30}], "http_etag": "\"7d1751793e026a67f666d69ec9f09df78a76edbc\"",
+ "http_etag": "\"f1a5a754513096fc79298b5253353b6b857dc64f\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3719", "user_id": 3719},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"379818560a462706abf7def5b618aa7d1a327dc1\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3720",
+ "user_id": 3720}], "http_etag": "\"f63ed0fa8cd4574c4b5e1822642dee358b57b08f\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['487']
+ content-length: ['495']
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/29
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3719
response:
body: {string: !!python/unicode ''}
headers:
@@ -376,8 +376,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/30
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3720
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_edit_empty.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_edit_empty.yaml
index e028eb9..dbc8833 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_edit_empty.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_edit_empty.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=list%40example.com
+ body: !!python/unicode 'fqdn_listname=list%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -56,39 +56,39 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=list.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=list.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/37']
+ location: ['http://localhost:9001/3.0/members/5606']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=list.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=list.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/38']
+ location: ['http://localhost:9001/3.0/members/5607']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode action=discard&header=testheader&pattern=testpattern
+ body: !!python/unicode 'action=discard&header=testheader&pattern=testpattern'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!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/list.example.com/header-matches
response:
body: {string: !!python/unicode ''}
@@ -101,7 +101,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -116,42 +116,42 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/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": "\"ca10bebefd4bebeae60c1a68dc85e1e5ef0e44a3\"",
- "list_id": "list.example.com", "member_id": 37, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/37", "user":
- "http://localhost:9001/3.0/users/31"}], "http_etag": "\"12600d49bb6766e1adf171e68e16f591dae286e4\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"bf98cf74857b03a45efbf2823739382d9f8a8b3f\"",
+ "list_id": "list.example.com", "member_id": 5606, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5606", "user":
+ "http://localhost:9001/3.0/users/3721"}], "http_etag": "\"4cb4c4405697f893b72b939dbc779becc067b466\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['487']
+ content-length: ['493']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.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":
- "\"5195d05bbd7f651c0281b5698529de52b56d8378\"", "list_id": "list.example.com",
- "member_id": 38, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/38", "user": "http://localhost:9001/3.0/users/32"}],
- "http_etag": "\"8c0e08d16074d49ee525c150644b4b44d3d0595a\"", "start": 0, "total_size":
+ "\"c1739e2444548929e733724b8ba347b2ca704654\"", "list_id": "list.example.com",
+ "member_id": 5607, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5607", "user": "http://localhost:9001/3.0/users/3722"}],
+ "http_etag": "\"8ce24aee0036093d9da3f4917aa12494b5462e7a\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['499']
+ content-length: ['505']
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/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -166,7 +166,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode '{"entries": [{"action": "discard", "header":
@@ -182,7 +182,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode '{"entries": [{"action": "discard", "header":
@@ -198,7 +198,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode '{"entries": [{"action": "discard", "header":
@@ -214,7 +214,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -230,7 +230,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -241,26 +241,26 @@
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": "\"c744d1db066b1d55bf03caedfbd1c9b98a5874bc\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/31", "user_id": 31},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"bdba54b81678064437568ff4e8f9edad6efc2700\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/32",
- "user_id": 32}], "http_etag": "\"551d9627d757d8c42d2040cdd0949bea168a11b3\"",
+ "http_etag": "\"56fb94e849ef391c54d35c534d5f5a54a1a27c51\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3721", "user_id": 3721},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"4c2ad43862e2bc43df4f89b0dc7f509b05e53318\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3722",
+ "user_id": 3722}], "http_etag": "\"54a668a18fe574dab7556b7c73f78948960adf5e\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['487']
+ content-length: ['495']
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/31
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3721
response:
body: {string: !!python/unicode ''}
headers:
@@ -270,8 +270,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/32
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3722
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_move_down.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_move_down.yaml
index e3692f7..01c24c2 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_move_down.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_move_down.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=list%40example.com
+ body: !!python/unicode 'fqdn_listname=list%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -56,39 +56,39 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=list.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=list.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/39']
+ location: ['http://localhost:9001/3.0/members/5608']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=list.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=list.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/40']
+ location: ['http://localhost:9001/3.0/members/5609']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode action=discard&header=testheader-1&pattern=testpattern-1
+ body: !!python/unicode 'action=discard&header=testheader-1&pattern=testpattern-1'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!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/list.example.com/header-matches
response:
body: {string: !!python/unicode ''}
@@ -98,11 +98,11 @@
location: ['http://localhost:9001/3.0/lists/list.example.com/header-matches/0']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode action=discard&header=testheader-2&pattern=testpattern-2
+ body: !!python/unicode 'action=discard&header=testheader-2&pattern=testpattern-2'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!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/list.example.com/header-matches
response:
body: {string: !!python/unicode ''}
@@ -112,11 +112,11 @@
location: ['http://localhost:9001/3.0/lists/list.example.com/header-matches/1']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode action=discard&header=testheader-3&pattern=testpattern-3
+ body: !!python/unicode 'action=discard&header=testheader-3&pattern=testpattern-3'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!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/list.example.com/header-matches
response:
body: {string: !!python/unicode ''}
@@ -129,7 +129,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -144,42 +144,42 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/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": "\"ef8312eae1d33f2fd70bcf6771d8fc129c70bb0c\"",
- "list_id": "list.example.com", "member_id": 39, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/39", "user":
- "http://localhost:9001/3.0/users/33"}], "http_etag": "\"3186da6816ba86bcb591da910f1a2c9b84f1ae88\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"5eb39767509d588cd83f1cb1e765c3e200f0fe59\"",
+ "list_id": "list.example.com", "member_id": 5608, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5608", "user":
+ "http://localhost:9001/3.0/users/3723"}], "http_etag": "\"4f7835e52a60c32e5c4e53c1eee86ef75b3106cf\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['487']
+ content-length: ['493']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.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":
- "\"7efabd69ee74b3506f90aa38f86b674bf8b7c65a\"", "list_id": "list.example.com",
- "member_id": 40, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/40", "user": "http://localhost:9001/3.0/users/34"}],
- "http_etag": "\"4da8e2caff2f230f08c0bd42a6213b6c0203a81d\"", "start": 0, "total_size":
+ "\"976b67ba4fac6104dc3933194a8e00d484d04df4\"", "list_id": "list.example.com",
+ "member_id": 5609, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5609", "user": "http://localhost:9001/3.0/users/3724"}],
+ "http_etag": "\"94cb8f518ec4ef7402b665439c0fffa91e4d566d\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['499']
+ content-length: ['505']
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/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -194,7 +194,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode '{"entries": [{"action": "discard", "header":
@@ -214,7 +214,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode ''}
@@ -222,11 +222,11 @@
content-length: ['0']
status: {code: 204, message: No Content}
- request:
- body: !!python/unicode action=discard&header=testheader-2&pattern=testpattern-2
+ body: !!python/unicode 'action=discard&header=testheader-2&pattern=testpattern-2'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!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/list.example.com/header-matches
response:
body: {string: !!python/unicode ''}
@@ -236,11 +236,11 @@
location: ['http://localhost:9001/3.0/lists/list.example.com/header-matches/0']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode action=discard&header=testheader-1&pattern=testpattern-1
+ body: !!python/unicode 'action=discard&header=testheader-1&pattern=testpattern-1'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!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/list.example.com/header-matches
response:
body: {string: !!python/unicode ''}
@@ -250,11 +250,11 @@
location: ['http://localhost:9001/3.0/lists/list.example.com/header-matches/1']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode action=discard&header=testheader-3&pattern=testpattern-3
+ body: !!python/unicode 'action=discard&header=testheader-3&pattern=testpattern-3'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!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/list.example.com/header-matches
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/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -282,42 +282,42 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/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": "\"ef8312eae1d33f2fd70bcf6771d8fc129c70bb0c\"",
- "list_id": "list.example.com", "member_id": 39, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/39", "user":
- "http://localhost:9001/3.0/users/33"}], "http_etag": "\"3186da6816ba86bcb591da910f1a2c9b84f1ae88\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"5eb39767509d588cd83f1cb1e765c3e200f0fe59\"",
+ "list_id": "list.example.com", "member_id": 5608, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5608", "user":
+ "http://localhost:9001/3.0/users/3723"}], "http_etag": "\"4f7835e52a60c32e5c4e53c1eee86ef75b3106cf\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['487']
+ content-length: ['493']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.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":
- "\"7efabd69ee74b3506f90aa38f86b674bf8b7c65a\"", "list_id": "list.example.com",
- "member_id": 40, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/40", "user": "http://localhost:9001/3.0/users/34"}],
- "http_etag": "\"4da8e2caff2f230f08c0bd42a6213b6c0203a81d\"", "start": 0, "total_size":
+ "\"976b67ba4fac6104dc3933194a8e00d484d04df4\"", "list_id": "list.example.com",
+ "member_id": 5609, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5609", "user": "http://localhost:9001/3.0/users/3724"}],
+ "http_etag": "\"94cb8f518ec4ef7402b665439c0fffa91e4d566d\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['499']
+ content-length: ['505']
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/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -332,7 +332,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode '{"entries": [{"action": "discard", "header":
@@ -352,7 +352,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode '{"entries": [{"action": "discard", "header":
@@ -372,7 +372,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode '{"entries": [{"action": "discard", "header":
@@ -392,7 +392,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -408,7 +408,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -419,26 +419,26 @@
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": "\"193ede1fb8d445273173195352026184d3011303\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/33", "user_id": 33},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"fd4a8232471e43dfae3b0d05f64acab9601f0005\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/34",
- "user_id": 34}], "http_etag": "\"e2d790dc98717aebcd771bcc218543ae1810cec2\"",
+ "http_etag": "\"5c4a771372d16dd8f684c84f7c601e40e57e8da7\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3723", "user_id": 3723},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"54130673fd2b48dcf9cc00b95919757cb75cc6ed\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3724",
+ "user_id": 3724}], "http_etag": "\"c4332e2e0b4e2ad926a0b21645a4fdc6f7f441d4\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['487']
+ content-length: ['495']
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/33
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3723
response:
body: {string: !!python/unicode ''}
headers:
@@ -448,8 +448,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/34
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3724
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_move_up.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_move_up.yaml
index a1f5495..6354559 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_move_up.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_move_up.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=list%40example.com
+ body: !!python/unicode 'fqdn_listname=list%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -56,39 +56,39 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=list.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=list.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/41']
+ location: ['http://localhost:9001/3.0/members/5610']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=list.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=list.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/42']
+ location: ['http://localhost:9001/3.0/members/5611']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode action=discard&header=testheader-1&pattern=testpattern-1
+ body: !!python/unicode 'action=discard&header=testheader-1&pattern=testpattern-1'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!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/list.example.com/header-matches
response:
body: {string: !!python/unicode ''}
@@ -98,11 +98,11 @@
location: ['http://localhost:9001/3.0/lists/list.example.com/header-matches/0']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode action=discard&header=testheader-2&pattern=testpattern-2
+ body: !!python/unicode 'action=discard&header=testheader-2&pattern=testpattern-2'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!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/list.example.com/header-matches
response:
body: {string: !!python/unicode ''}
@@ -112,11 +112,11 @@
location: ['http://localhost:9001/3.0/lists/list.example.com/header-matches/1']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode action=discard&header=testheader-3&pattern=testpattern-3
+ body: !!python/unicode 'action=discard&header=testheader-3&pattern=testpattern-3'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!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/list.example.com/header-matches
response:
body: {string: !!python/unicode ''}
@@ -129,7 +129,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -144,42 +144,42 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/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": "\"cfe811bfc429a22e298409130c455e89bf24c317\"",
- "list_id": "list.example.com", "member_id": 41, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/41", "user":
- "http://localhost:9001/3.0/users/35"}], "http_etag": "\"cf067b3b3eb67073441b4caa3098a1f3ced6171a\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"f52407eb6788694cd93a4eac1aaae605c93bd1e0\"",
+ "list_id": "list.example.com", "member_id": 5610, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5610", "user":
+ "http://localhost:9001/3.0/users/3725"}], "http_etag": "\"4a920eba161073f7afe51edd89b108a5137da030\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['487']
+ content-length: ['493']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.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":
- "\"b956d7a5b38a19d6adf39f7b78f4b805c2666838\"", "list_id": "list.example.com",
- "member_id": 42, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/42", "user": "http://localhost:9001/3.0/users/36"}],
- "http_etag": "\"8b3d6588abf14ecbddbba20cf910a465eab601f9\"", "start": 0, "total_size":
+ "\"c7d5d9470df5c9a5989aa4386f3067bcd4406390\"", "list_id": "list.example.com",
+ "member_id": 5611, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5611", "user": "http://localhost:9001/3.0/users/3726"}],
+ "http_etag": "\"c542513705a60d9f94305aa54e2d3b943689aca3\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['499']
+ content-length: ['505']
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/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -194,7 +194,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode '{"entries": [{"action": "discard", "header":
@@ -214,7 +214,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode ''}
@@ -222,11 +222,11 @@
content-length: ['0']
status: {code: 204, message: No Content}
- request:
- body: !!python/unicode action=discard&header=testheader-1&pattern=testpattern-1
+ body: !!python/unicode 'action=discard&header=testheader-1&pattern=testpattern-1'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!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/list.example.com/header-matches
response:
body: {string: !!python/unicode ''}
@@ -236,11 +236,11 @@
location: ['http://localhost:9001/3.0/lists/list.example.com/header-matches/0']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode action=discard&header=testheader-3&pattern=testpattern-3
+ body: !!python/unicode 'action=discard&header=testheader-3&pattern=testpattern-3'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!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/list.example.com/header-matches
response:
body: {string: !!python/unicode ''}
@@ -250,11 +250,11 @@
location: ['http://localhost:9001/3.0/lists/list.example.com/header-matches/1']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode action=discard&header=testheader-2&pattern=testpattern-2
+ body: !!python/unicode 'action=discard&header=testheader-2&pattern=testpattern-2'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!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/list.example.com/header-matches
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/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -282,42 +282,42 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/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": "\"cfe811bfc429a22e298409130c455e89bf24c317\"",
- "list_id": "list.example.com", "member_id": 41, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/41", "user":
- "http://localhost:9001/3.0/users/35"}], "http_etag": "\"cf067b3b3eb67073441b4caa3098a1f3ced6171a\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"f52407eb6788694cd93a4eac1aaae605c93bd1e0\"",
+ "list_id": "list.example.com", "member_id": 5610, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5610", "user":
+ "http://localhost:9001/3.0/users/3725"}], "http_etag": "\"4a920eba161073f7afe51edd89b108a5137da030\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['487']
+ content-length: ['493']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.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":
- "\"b956d7a5b38a19d6adf39f7b78f4b805c2666838\"", "list_id": "list.example.com",
- "member_id": 42, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/42", "user": "http://localhost:9001/3.0/users/36"}],
- "http_etag": "\"8b3d6588abf14ecbddbba20cf910a465eab601f9\"", "start": 0, "total_size":
+ "\"c7d5d9470df5c9a5989aa4386f3067bcd4406390\"", "list_id": "list.example.com",
+ "member_id": 5611, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5611", "user": "http://localhost:9001/3.0/users/3726"}],
+ "http_etag": "\"c542513705a60d9f94305aa54e2d3b943689aca3\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['499']
+ content-length: ['505']
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/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -332,7 +332,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode '{"entries": [{"action": "discard", "header":
@@ -352,7 +352,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode '{"entries": [{"action": "discard", "header":
@@ -372,7 +372,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode '{"entries": [{"action": "discard", "header":
@@ -392,7 +392,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -408,7 +408,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -419,26 +419,26 @@
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": "\"d69542e8aff488054a713dbf6e0865e72dc820cd\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/35", "user_id": 35},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"ac340829f7769de8826d5096491b69aabe732430\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/36",
- "user_id": 36}], "http_etag": "\"5b2cbb1e0ff56baa9e78d9d5f331765f875e0c58\"",
+ "http_etag": "\"5667ca8d7d4b64540c083269b9568a66dd9935aa\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3725", "user_id": 3725},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"6f0789ddc2ab0c115a0c0a01cc87a434737edfc8\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3726",
+ "user_id": 3726}], "http_etag": "\"3dc7ac202a8ff5fe65b22488db9724f03be04c60\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['487']
+ content-length: ['495']
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/35
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3725
response:
body: {string: !!python/unicode ''}
headers:
@@ -448,8 +448,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/36
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3726
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_not_accessible_for_moderator.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_not_accessible_for_moderator.yaml
index 3256d32..0e57d8b 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_not_accessible_for_moderator.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_not_accessible_for_moderator.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=list%40example.com
+ body: !!python/unicode 'fqdn_listname=list%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -56,38 +56,38 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=list.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=list.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/43']
+ location: ['http://localhost:9001/3.0/members/5612']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=list.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=list.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/44']
+ location: ['http://localhost:9001/3.0/members/5613']
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/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -102,42 +102,42 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/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": "\"91c6f1a482e4d66dd0c7c3bb918a018238083b34\"",
- "list_id": "list.example.com", "member_id": 43, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/43", "user":
- "http://localhost:9001/3.0/users/37"}], "http_etag": "\"c15c0dd1c09ff8990d2416e09eeff6dd18ea1572\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"4803485a0996adcdadca62f1460a1d6964ba4d45\"",
+ "list_id": "list.example.com", "member_id": 5612, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5612", "user":
+ "http://localhost:9001/3.0/users/3727"}], "http_etag": "\"cb7ee4602fe94e8252a8b986365a22c1a05a01ad\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['487']
+ content-length: ['493']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.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":
- "\"2d29952ba707e171d2eb78c4ce8aae3f9fa78c3e\"", "list_id": "list.example.com",
- "member_id": 44, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/44", "user": "http://localhost:9001/3.0/users/38"}],
- "http_etag": "\"4b75f9020d03ca76c7fceb40efdff26f4d329965\"", "start": 0, "total_size":
+ "\"8c0212dd1926e7c905d54c53864267debed4595a\"", "list_id": "list.example.com",
+ "member_id": 5613, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5613", "user": "http://localhost:9001/3.0/users/3728"}],
+ "http_etag": "\"f835849b0f72ba37fb85de9007a88455adfb40de\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['499']
+ content-length: ['505']
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/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -153,7 +153,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -164,26 +164,26 @@
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": "\"746af64fb3c343d4cbe089a4b44d52e65fa99133\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/37", "user_id": 37},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"54d21bebe42e4c00bce51a7839dfb0bb7a74e22e\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/38",
- "user_id": 38}], "http_etag": "\"dbb3c07c159e15774d8b648fdd6c714d5bba9ec1\"",
+ "http_etag": "\"adebdc3805c2dc598deee709dacf011fd75adbbf\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3727", "user_id": 3727},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"20f4dc84dce05dec8fc3f92301a530c87cadc6b7\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3728",
+ "user_id": 3728}], "http_etag": "\"15aa2c91cf3896c40238a79b648751bfbb9b22cc\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['487']
+ content-length: ['495']
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/37
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3727
response:
body: {string: !!python/unicode ''}
headers:
@@ -193,8 +193,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/38
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3728
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_page_accessible_for_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_page_accessible_for_owner.yaml
index 7491fd9..4b97c75 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_page_accessible_for_owner.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_page_accessible_for_owner.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=list%40example.com
+ body: !!python/unicode 'fqdn_listname=list%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -56,38 +56,38 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=list.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=list.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/45']
+ location: ['http://localhost:9001/3.0/members/5614']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=list.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=list.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/46']
+ location: ['http://localhost:9001/3.0/members/5615']
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/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -102,42 +102,42 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/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": "\"67cdae5375b745a650f23bc30334694a0e6ad3fa\"",
- "list_id": "list.example.com", "member_id": 45, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/45", "user":
- "http://localhost:9001/3.0/users/39"}], "http_etag": "\"f6d00d52be8846fc0ba730e9fec00bb072fffcff\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"ba7e4bdfbd5e8921c2f9f9f43b9a4b91bef84afd\"",
+ "list_id": "list.example.com", "member_id": 5614, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5614", "user":
+ "http://localhost:9001/3.0/users/3729"}], "http_etag": "\"146ecf41e68393a798459abac6e0b89d17c0bf63\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['487']
+ content-length: ['493']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.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":
- "\"72d8896e8318bbf914e1c789563a2d2e1ff1270f\"", "list_id": "list.example.com",
- "member_id": 46, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/46", "user": "http://localhost:9001/3.0/users/40"}],
- "http_etag": "\"2fe1913ac03b82e2566a6a31e34d3547392d2117\"", "start": 0, "total_size":
+ "\"b209671ffa4033bfb19180e7a1d43d1b7c6654e7\"", "list_id": "list.example.com",
+ "member_id": 5615, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5615", "user": "http://localhost:9001/3.0/users/3730"}],
+ "http_etag": "\"8d09a2f6b1c4fad9cdd3a9628f2f686a073f01b8\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['499']
+ content-length: ['505']
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/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -152,7 +152,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
@@ -165,7 +165,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -181,7 +181,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -192,26 +192,26 @@
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": "\"cf8014263ef08f63a4cfea4d0d8b0170e725df07\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/39", "user_id": 39},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"2a531149c67abd4d7972f411361758c9f4235bb1\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/40",
- "user_id": 40}], "http_etag": "\"27e3c1a2d092ff6bb39bca76aa61f6d7a053274d\"",
+ "http_etag": "\"cc0cebf56add973a6f40963b80e310cd61eea3a5\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3729", "user_id": 3729},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"e3641c93d239fb506518ba198f8d589bfb6091ab\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3730",
+ "user_id": 3730}], "http_etag": "\"76dbbb9286209f76f07e5934a157d819338ee4aa\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['487']
+ content-length: ['495']
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/39
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3729
response:
body: {string: !!python/unicode ''}
headers:
@@ -221,8 +221,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/40
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3730
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_page_accessible_for_superuser.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_page_accessible_for_superuser.yaml
index c9ade54..db9ad5d 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_page_accessible_for_superuser.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_page_accessible_for_superuser.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=list%40example.com
+ body: !!python/unicode 'fqdn_listname=list%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -56,38 +56,38 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=list.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=list.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/47']
+ location: ['http://localhost:9001/3.0/members/5616']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=list.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=list.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/48']
+ location: ['http://localhost:9001/3.0/members/5617']
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/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -102,7 +102,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
@@ -115,7 +115,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -131,7 +131,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -142,26 +142,26 @@
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": "\"6071df37f4a4cb86be05c478f66ec256e9e02896\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/41", "user_id": 41},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"61ff2561963f4a48a5bbe30d2c4168b52c485752\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/42",
- "user_id": 42}], "http_etag": "\"7518f9dd0a97eb7e3beb7d7d44012cd5236461e2\"",
+ "http_etag": "\"a0f830567ffdea77e1f43c67d99543f0f4cfd7db\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3731", "user_id": 3731},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"968b549ab8e285dfa0c08fbf4d6d256fb980a985\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3732",
+ "user_id": 3732}], "http_etag": "\"8496390537770a0a0bb38eca89ab032fc0ef5886\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['487']
+ content-length: ['495']
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/41
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3731
response:
body: {string: !!python/unicode ''}
headers:
@@ -171,8 +171,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/42
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3732
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_page_not_accessible_for_unprivileged_users.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_page_not_accessible_for_unprivileged_users.yaml
index d14585a..a286420 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_page_not_accessible_for_unprivileged_users.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_page_not_accessible_for_unprivileged_users.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=list%40example.com
+ body: !!python/unicode 'fqdn_listname=list%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -56,38 +56,38 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=list.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=list.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/49']
+ location: ['http://localhost:9001/3.0/members/5618']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=list.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=list.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/50']
+ location: ['http://localhost:9001/3.0/members/5619']
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/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -102,42 +102,42 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/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": "\"ca2cbcb3cf7ec4d68b83c609459bae47aa900711\"",
- "list_id": "list.example.com", "member_id": 49, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/49", "user":
- "http://localhost:9001/3.0/users/43"}], "http_etag": "\"d82e40b96c1089c0b6d4df0ccb16681cba1bc4bc\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"63bffa52c711b8f0a39275165803dfe3270d3b61\"",
+ "list_id": "list.example.com", "member_id": 5618, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5618", "user":
+ "http://localhost:9001/3.0/users/3733"}], "http_etag": "\"6c206a42a7f69f43cce0655ff41a445ed8908e42\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['487']
+ content-length: ['493']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.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":
- "\"03f1f13b273331a3366d8b1e3bb4a0e9426e67c3\"", "list_id": "list.example.com",
- "member_id": 50, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/50", "user": "http://localhost:9001/3.0/users/44"}],
- "http_etag": "\"054e1c8005af725212e52a6b25a26e624e1ead99\"", "start": 0, "total_size":
+ "\"0543ca4397cc453884c4f13f8cac436f0812f40b\"", "list_id": "list.example.com",
+ "member_id": 5619, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5619", "user": "http://localhost:9001/3.0/users/3734"}],
+ "http_etag": "\"7d4a0cd3058d9d44de9195bf03e4c945c7af9459\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['499']
+ content-length: ['505']
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/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -153,7 +153,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -164,26 +164,26 @@
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": "\"8baa884afd4f798ea7a841b7db104287b4f1175a\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/43", "user_id": 43},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"6d612d2536821ffdb84398d1385fa03883c014cf\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/44",
- "user_id": 44}], "http_etag": "\"a814c9af37c3cf5a0676ccc6a8f43537cdb17da1\"",
+ "http_etag": "\"3440fa2b7dfc195146d6f2af970fe97434bf047c\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3733", "user_id": 3733},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"f8123001eaa7932368e604a57f1333302dddbd87\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3734",
+ "user_id": 3734}], "http_etag": "\"5bc96ab2d41f126956556532615989cc60b20cd1\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['487']
+ content-length: ['495']
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/43
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3733
response:
body: {string: !!python/unicode ''}
headers:
@@ -193,8 +193,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/44
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3734
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_page_not_accessible_if_not_logged_in.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_page_not_accessible_if_not_logged_in.yaml
index 7c040b6..51201c1 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_page_not_accessible_if_not_logged_in.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_page_not_accessible_if_not_logged_in.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=list%40example.com
+ body: !!python/unicode 'fqdn_listname=list%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -56,38 +56,38 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=list.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=list.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/51']
+ location: ['http://localhost:9001/3.0/members/5620']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=list.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=list.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/52']
+ location: ['http://localhost:9001/3.0/members/5621']
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/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -103,7 +103,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -114,26 +114,26 @@
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": "\"78e04703c01d88c72de40b7ec588160678a8be92\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/45", "user_id": 45},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"edcea41adfd3150fc44a03bedd6fd8873a9ef393\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/46",
- "user_id": 46}], "http_etag": "\"c6e3b337fdd6537bd06169d0b92620a2f01d6e3f\"",
+ "http_etag": "\"f5dde8795b99057ff4ddd21bfe831e2adf71b34d\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3735", "user_id": 3735},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"8b3770dd9671ab3e1e4d2bd7db3fb1cb92aad02e\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3736",
+ "user_id": 3736}], "http_etag": "\"8011f2002f158ff1099ca567844ce8de520ed82c\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['487']
+ content-length: ['495']
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/45
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3735
response:
body: {string: !!python/unicode ''}
headers:
@@ -143,8 +143,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/46
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3736
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_same_order.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_same_order.yaml
index 86ee7e2..318634c 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_same_order.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_same_order.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=list%40example.com
+ body: !!python/unicode 'fqdn_listname=list%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -56,39 +56,39 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=list.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=list.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/53']
+ location: ['http://localhost:9001/3.0/members/5622']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=list.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=list.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/54']
+ location: ['http://localhost:9001/3.0/members/5623']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode action=discard&header=testheader-1&pattern=testpattern-1
+ body: !!python/unicode 'action=discard&header=testheader-1&pattern=testpattern-1'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!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/list.example.com/header-matches
response:
body: {string: !!python/unicode ''}
@@ -98,11 +98,11 @@
location: ['http://localhost:9001/3.0/lists/list.example.com/header-matches/0']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode action=discard&header=testheader-2&pattern=testpattern-2
+ body: !!python/unicode 'action=discard&header=testheader-2&pattern=testpattern-2'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!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/list.example.com/header-matches
response:
body: {string: !!python/unicode ''}
@@ -115,7 +115,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -130,42 +130,42 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/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": "\"2ec1626c491e08a2308f84bde34e10fe4f0aa5e6\"",
- "list_id": "list.example.com", "member_id": 53, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/53", "user":
- "http://localhost:9001/3.0/users/47"}], "http_etag": "\"c221070db0ebbed6d754255a61c4d76b80bd6ed2\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"83462415486d01876133989b0a7e8271da5199e9\"",
+ "list_id": "list.example.com", "member_id": 5622, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5622", "user":
+ "http://localhost:9001/3.0/users/3737"}], "http_etag": "\"9115a107b99e004d6f1242d13cafbee5e6b58ae0\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['487']
+ content-length: ['493']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.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":
- "\"c05558f2a2827e792a9ddaa5ae89c9fb5c33bd0d\"", "list_id": "list.example.com",
- "member_id": 54, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/54", "user": "http://localhost:9001/3.0/users/48"}],
- "http_etag": "\"6b210a54dff3da838eef475223c61d7a633bdbff\"", "start": 0, "total_size":
+ "\"05ffccbe64c2243f843feed6f77e76a3c0214cbd\"", "list_id": "list.example.com",
+ "member_id": 5623, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5623", "user": "http://localhost:9001/3.0/users/3738"}],
+ "http_etag": "\"c5e3e7b44904899080a74cb4d78a6ffb63e10e6b\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['499']
+ content-length: ['505']
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/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -180,7 +180,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode '{"entries": [{"action": "discard", "header":
@@ -198,7 +198,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode '{"entries": [{"action": "discard", "header":
@@ -216,7 +216,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode '{"entries": [{"action": "discard", "header":
@@ -234,7 +234,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -250,7 +250,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -261,26 +261,26 @@
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": "\"b104730ccfabfd68697319f733687494ff23079c\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/47", "user_id": 47},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"c709c54bbc1563a8f27c82c362599fd351d2e019\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/48",
- "user_id": 48}], "http_etag": "\"669b6156ca8690626167f604ac8c6b064f327af2\"",
+ "http_etag": "\"50e6b749e92dcbfa92f60712bb544d0b9df5df1c\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3737", "user_id": 3737},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"7491a10cf709997fa8f6c71ed43dfb80e8bf6b81\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3738",
+ "user_id": 3738}], "http_etag": "\"987b6fe49ea8fdc524a9d12cffc60bd28db88823\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['487']
+ content-length: ['495']
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/47
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3737
response:
body: {string: !!python/unicode ''}
headers:
@@ -290,8 +290,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/48
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3738
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_show_existing.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_show_existing.yaml
index b41718d..6adbb2f 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_show_existing.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_show_existing.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=list%40example.com
+ body: !!python/unicode 'fqdn_listname=list%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -56,39 +56,39 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=list.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=list.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/55']
+ location: ['http://localhost:9001/3.0/members/5624']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=list.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=list.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/56']
+ location: ['http://localhost:9001/3.0/members/5625']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode action=discard&header=testheader&pattern=testpattern
+ body: !!python/unicode 'action=discard&header=testheader&pattern=testpattern'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!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/list.example.com/header-matches
response:
body: {string: !!python/unicode ''}
@@ -101,7 +101,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -116,42 +116,42 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/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": "\"54f38a8cd78cb045dded9859275883cdca96b866\"",
- "list_id": "list.example.com", "member_id": 55, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/55", "user":
- "http://localhost:9001/3.0/users/49"}], "http_etag": "\"5db5dc60f9a966e867dbcb5c25149d20cb750fcb\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"6ddc869a8171861565cb3759f2d07fa95894bab4\"",
+ "list_id": "list.example.com", "member_id": 5624, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5624", "user":
+ "http://localhost:9001/3.0/users/3739"}], "http_etag": "\"2f85d87b6f9b841b17d9a70daf74e37ac755ed45\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['487']
+ content-length: ['493']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.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":
- "\"eda86635613ab7bc741e405c5e55ba52ef23c37d\"", "list_id": "list.example.com",
- "member_id": 56, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/56", "user": "http://localhost:9001/3.0/users/50"}],
- "http_etag": "\"25f6e68fdd9b46edf45bdd9caeb885e1520910dd\"", "start": 0, "total_size":
+ "\"c1715d70702625cd190cbe276562f4553d37f758\"", "list_id": "list.example.com",
+ "member_id": 5625, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5625", "user": "http://localhost:9001/3.0/users/3740"}],
+ "http_etag": "\"908c6927fdddd2c5c4f3b6bc4e2b14696ce2520b\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['499']
+ content-length: ['505']
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/list.example.com
response:
body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com",
@@ -166,7 +166,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/list.example.com/header-matches
response:
body: {string: !!python/unicode '{"entries": [{"action": "discard", "header":
@@ -182,7 +182,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -198,7 +198,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -209,26 +209,26 @@
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": "\"60ed2ec4e71f0aea8fec40d17c53ac324288d285\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/49", "user_id": 49},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"1cacbb8ba8546f2629af4198fab5277b01fdea0a\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/50",
- "user_id": 50}], "http_etag": "\"b74554632366af35263a3000a8640cee684758d6\"",
+ "http_etag": "\"8548cd4dbcb9feb19bbbe29f3dbf4dc965fa2785\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3739", "user_id": 3739},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"307d75e45b255afb00d5d6788757f2aa10161e84\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3740",
+ "user_id": 3740}], "http_etag": "\"70b097afe3f024ec4c71b494c9ffbca4bf5ffad7\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['487']
+ content-length: ['495']
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/49
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3739
response:
body: {string: !!python/unicode ''}
headers:
@@ -238,8 +238,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/50
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3740
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListIndexPageTest.test_list_index_contains_the_lists.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListIndexPageTest.test_list_index_contains_the_lists.yaml
index 538217d..bd23bd7 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListIndexPageTest.test_list_index_contains_the_lists.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListIndexPageTest.test_list_index_contains_the_lists.yaml
@@ -135,20 +135,22 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Bar", "filter_content": false, "first_strip_reply_to":
- false, "footer_uri": "", "fqdn_listname": "bar@example.com", "goodbye_message_uri":
- "", "header_uri": "", "http_etag": "\"6a420444739ae906b975d89d07c185193d4afab6\"",
- "include_rfc2369_headers": true, "info": "", "join_address": "bar-join@example.com",
- "last_post_at": null, "leave_address": "bar-leave@example.com", "list_name":
- "bar", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
- 1, "no_reply_address": "noreply@example.com", "owner_address": "bar-owner@example.com",
- "post_id": 1, "posting_address": "bar@example.com", "posting_pipeline": "default-posting-pipeline",
+ "digests_enabled": true, "display_name": "Bar", "dmarc_mitigate_action": "no_mitigation",
+ "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
+ "", "filter_content": false, "first_strip_reply_to": false, "footer_uri":
+ "", "fqdn_listname": "bar@example.com", "goodbye_message_uri": "", "header_uri":
+ "", "http_etag": "\"fd08f04b4df17e18d850f90a2f0757ca51bfcc5c\"", "include_rfc2369_headers":
+ true, "info": "", "join_address": "bar-join@example.com", "last_post_at":
+ null, "leave_address": "bar-leave@example.com", "list_name": "bar", "mail_host":
+ "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
+ "noreply@example.com", "owner_address": "bar-owner@example.com", "post_id":
+ 1, "posting_address": "bar@example.com", "posting_pipeline": "default-posting-pipeline",
"reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address":
"bar-request@example.com", "send_welcome_message": true, "subject_prefix":
"[Bar] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1789']
+ content-length: ['1937']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -169,20 +171,22 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to":
- false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri":
- "", "header_uri": "", "http_etag": "\"e752899e2a568ccaad1d891e72c137a4cbc82d5d\"",
- "include_rfc2369_headers": true, "info": "", "join_address": "foo-join@example.com",
- "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name":
- "foo", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
- 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com",
- "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
+ "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation",
+ "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
+ "", "filter_content": false, "first_strip_reply_to": false, "footer_uri":
+ "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri":
+ "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "include_rfc2369_headers":
+ true, "info": "", "join_address": "foo-join@example.com", "last_post_at":
+ null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host":
+ "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
+ "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id":
+ 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
"reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address":
"foo-request@example.com", "send_welcome_message": true, "subject_prefix":
"[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1789']
+ content-length: ['1937']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListIndexPageTest.test_list_index_only_contains_advertised_lists.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListIndexPageTest.test_list_index_only_contains_advertised_lists.yaml
index 160531f..6771be2 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListIndexPageTest.test_list_index_only_contains_advertised_lists.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListIndexPageTest.test_list_index_only_contains_advertised_lists.yaml
@@ -101,20 +101,22 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Baz", "filter_content": false, "first_strip_reply_to":
- false, "footer_uri": "", "fqdn_listname": "baz@example.com", "goodbye_message_uri":
- "", "header_uri": "", "http_etag": "\"7331faacc9b01fc2247dac57065effc4a4deaf94\"",
- "include_rfc2369_headers": true, "info": "", "join_address": "baz-join@example.com",
- "last_post_at": null, "leave_address": "baz-leave@example.com", "list_name":
- "baz", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
- 1, "no_reply_address": "noreply@example.com", "owner_address": "baz-owner@example.com",
- "post_id": 1, "posting_address": "baz@example.com", "posting_pipeline": "default-posting-pipeline",
+ "digests_enabled": true, "display_name": "Baz", "dmarc_mitigate_action": "no_mitigation",
+ "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
+ "", "filter_content": false, "first_strip_reply_to": false, "footer_uri":
+ "", "fqdn_listname": "baz@example.com", "goodbye_message_uri": "", "header_uri":
+ "", "http_etag": "\"176782a827356a29333582e54ecf44c09f6f52d7\"", "include_rfc2369_headers":
+ true, "info": "", "join_address": "baz-join@example.com", "last_post_at":
+ null, "leave_address": "baz-leave@example.com", "list_name": "baz", "mail_host":
+ "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
+ "noreply@example.com", "owner_address": "baz-owner@example.com", "post_id":
+ 1, "posting_address": "baz@example.com", "posting_pipeline": "default-posting-pipeline",
"reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address":
"baz-request@example.com", "send_welcome_message": true, "subject_prefix":
"[Baz] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1789']
+ content-length: ['1937']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -210,20 +212,22 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Bar", "filter_content": false, "first_strip_reply_to":
- false, "footer_uri": "", "fqdn_listname": "bar@example.com", "goodbye_message_uri":
- "", "header_uri": "", "http_etag": "\"6a420444739ae906b975d89d07c185193d4afab6\"",
- "include_rfc2369_headers": true, "info": "", "join_address": "bar-join@example.com",
- "last_post_at": null, "leave_address": "bar-leave@example.com", "list_name":
- "bar", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
- 1, "no_reply_address": "noreply@example.com", "owner_address": "bar-owner@example.com",
- "post_id": 1, "posting_address": "bar@example.com", "posting_pipeline": "default-posting-pipeline",
+ "digests_enabled": true, "display_name": "Bar", "dmarc_mitigate_action": "no_mitigation",
+ "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
+ "", "filter_content": false, "first_strip_reply_to": false, "footer_uri":
+ "", "fqdn_listname": "bar@example.com", "goodbye_message_uri": "", "header_uri":
+ "", "http_etag": "\"fd08f04b4df17e18d850f90a2f0757ca51bfcc5c\"", "include_rfc2369_headers":
+ true, "info": "", "join_address": "bar-join@example.com", "last_post_at":
+ null, "leave_address": "bar-leave@example.com", "list_name": "bar", "mail_host":
+ "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
+ "noreply@example.com", "owner_address": "bar-owner@example.com", "post_id":
+ 1, "posting_address": "bar@example.com", "posting_pipeline": "default-posting-pipeline",
"reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address":
"bar-request@example.com", "send_welcome_message": true, "subject_prefix":
"[Bar] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1789']
+ content-length: ['1937']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -244,20 +248,22 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to":
- false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri":
- "", "header_uri": "", "http_etag": "\"e752899e2a568ccaad1d891e72c137a4cbc82d5d\"",
- "include_rfc2369_headers": true, "info": "", "join_address": "foo-join@example.com",
- "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name":
- "foo", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
- 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com",
- "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
+ "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation",
+ "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
+ "", "filter_content": false, "first_strip_reply_to": false, "footer_uri":
+ "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri":
+ "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "include_rfc2369_headers":
+ true, "info": "", "join_address": "foo-join@example.com", "last_post_at":
+ null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host":
+ "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
+ "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id":
+ 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
"reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address":
"foo-request@example.com", "send_welcome_message": true, "subject_prefix":
"[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1789']
+ content-length: ['1937']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_not_accessible_for_moderator.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_not_accessible_for_moderator.yaml
index 869a6bd..0a23247 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_not_accessible_for_moderator.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_not_accessible_for_moderator.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -56,38 +56,38 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/9']
+ location: ['http://localhost:9001/3.0/members/5526']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/10']
+ location: ['http://localhost:9001/3.0/members/5527']
status: {code: 201, message: Created}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo@example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -102,42 +102,42 @@
body: 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": "\"e954ac08bd224de03551765da8c594b25fa78a14\"",
- "list_id": "foo.example.com", "member_id": 9, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/9", "user":
- "http://localhost:9001/3.0/users/5"}], "http_etag": "\"421b1403f5702076a932c6e83cc5e6ee9dd3d2c1\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"e2627a59c5e40502308bd6ad2c8f990d03b0f630\"",
+ "list_id": "foo.example.com", "member_id": 5526, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5526", "user":
+ "http://localhost:9001/3.0/users/3636"}], "http_etag": "\"e9dee9ecbef5dc61be711d95997258cd98ad34f4\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['483']
+ content-length: ['492']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/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":
- "\"f24c248b914be898eca0cc45afd0e46da0e43538\"", "list_id": "foo.example.com",
- "member_id": 10, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/10", "user": "http://localhost:9001/3.0/users/6"}],
- "http_etag": "\"88546319f2cb2dcbb4e7532df77e7210870be9fb\"", "start": 0, "total_size":
+ "\"c972a3a8ee5f13182ac4ea0df68cd3d89c51ef5e\"", "list_id": "foo.example.com",
+ "member_id": 5527, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5527", "user": "http://localhost:9001/3.0/users/3637"}],
+ "http_etag": "\"3d462a4ef3a12afde13f0646b68a0bda8aa109e4\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['497']
+ content-length: ['504']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -153,7 +153,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -164,34 +164,26 @@
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", "http_etag": "\"637c12d15eb0203c9ffac9ea2d5ac8605d18e38d\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/5",
- "user_id": 5}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"b774d488fd2356b7bedf0e6fa4a26dc70dc2b02b\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/6",
- "user_id": 6}], "http_etag": "\"840fae39dc3e6da914d7035b65ef378f5d9cf97c\"",
- "start": 0, "total_size": 6}'}
+ "http_etag": "\"0b1534d278639f7fa77212a8e18904b7b34b0c59\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3636", "user_id": 3636},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"1dfa8634bcfb582495585f716c4945b3ad442d3b\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3637",
+ "user_id": 3637}], "http_etag": "\"55b91848a82e26a2cc894669147a516779fbbefd\"",
+ "start": 0, "total_size": 2}'}
headers:
- content-length: ['1243']
+ content-length: ['495']
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/3636
response:
body: {string: !!python/unicode ''}
headers:
@@ -201,52 +193,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/2
- response:
- body: {string: !!python/unicode ''}
- headers:
- content-length: ['0']
- status: {code: 204, message: No Content}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/3
- response:
- body: {string: !!python/unicode ''}
- headers:
- content-length: ['0']
- status: {code: 204, message: No Content}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/4
- response:
- body: {string: !!python/unicode ''}
- headers:
- content-length: ['0']
- status: {code: 204, message: No Content}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/5
- response:
- body: {string: !!python/unicode ''}
- headers:
- content-length: ['0']
- status: {code: 204, message: No Content}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/6
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3637
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_page_accessible_for_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_page_accessible_for_owner.yaml
index cd6bfb4..f8e9390 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_page_accessible_for_owner.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_page_accessible_for_owner.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -56,38 +56,38 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/5247']
+ location: ['http://localhost:9001/3.0/members/5528']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/5248']
+ location: ['http://localhost:9001/3.0/members/5529']
status: {code: 201, message: Created}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo@example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -102,14 +102,14 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com",
- "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"6b62cad4df41d75c652a343a6dd319eda41a1e60\"",
- "list_id": "foo.example.com", "member_id": 5247, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/5247", "user":
- "http://localhost:9001/3.0/users/3324"}], "http_etag": "\"0b0edc8effb07f8aaecf3b7d389cc2599252a4fa\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"21be708d359da06b3fa1d572fb1277ecf07dd227\"",
+ "list_id": "foo.example.com", "member_id": 5528, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5528", "user":
+ "http://localhost:9001/3.0/users/3638"}], "http_etag": "\"78e06ed0ccb1825a41f315a8115da80136653411\"",
"start": 0, "total_size": 1}'}
headers:
content-length: ['492']
@@ -119,15 +119,15 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com",
"delivery_mode": "regular", "email": "moderator@example.com", "http_etag":
- "\"2aafe79065b818fa91866260a0f4d8042276bfb2\"", "list_id": "foo.example.com",
- "member_id": 5248, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/5248", "user": "http://localhost:9001/3.0/users/3325"}],
- "http_etag": "\"a8f6b9feb975168c4e8edb44ec8f6567a5c27ee7\"", "start": 0, "total_size":
+ "\"c2c9e156d2358f21d5ddf97d248af7be515b3d32\"", "list_id": "foo.example.com",
+ "member_id": 5529, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5529", "user": "http://localhost:9001/3.0/users/3639"}],
+ "http_etag": "\"d4750aaf4a261362e0fb593725be2bffddadc862\"", "start": 0, "total_size":
1}'}
headers:
content-length: ['504']
@@ -137,7 +137,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo@example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -152,7 +152,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=0&page=1
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
@@ -165,7 +165,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\"",
@@ -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/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -194,7 +194,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -205,15 +205,15 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23",
- "http_etag": "\"0c63e5a308dcb2f4a43709f5017838e44dcec935\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/3324", "user_id": 3324},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"723f8681dc57aaaab3f93451ffd66916a77a03ef\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3325",
- "user_id": 3325}], "http_etag": "\"e80538a9190227d8fed7722d4cfe0454c810e0fe\"",
+ "http_etag": "\"8abbee185173b7842f3d91741cbf6016ce1503e5\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3638", "user_id": 3638},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"455d70a272a2275d3b44ff6af10d9e4e4896633f\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3639",
+ "user_id": 3639}], "http_etag": "\"af45e0f2e18e66f970392174965bd6f14c0f73c1\"",
"start": 0, "total_size": 2}'}
headers:
content-length: ['495']
@@ -223,8 +223,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/3324
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3638
response:
body: {string: !!python/unicode ''}
headers:
@@ -234,8 +234,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/3325
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3639
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_page_accessible_for_superuser.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_page_accessible_for_superuser.yaml
index f6ea17d..fca22cb 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_page_accessible_for_superuser.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_page_accessible_for_superuser.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -56,38 +56,38 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/5249']
+ location: ['http://localhost:9001/3.0/members/5530']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/5250']
+ location: ['http://localhost:9001/3.0/members/5531']
status: {code: 201, message: Created}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo@example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -102,7 +102,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=0&page=1
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
@@ -115,7 +115,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\"",
@@ -128,7 +128,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -144,7 +144,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -155,15 +155,15 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23",
- "http_etag": "\"111a2fa3214e445738cdc4b1acabdf1e0ae42fb8\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/3326", "user_id": 3326},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"33d9ad2ad32556cb21f8b7fd5fa51fb10f214496\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3327",
- "user_id": 3327}], "http_etag": "\"f2608d0c6c29e947f30fc2b124349697f5a36c7a\"",
+ "http_etag": "\"c2d4cc641f665e7c2b754aae092ae0811bb11360\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3640", "user_id": 3640},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"478fed9fa059fafae41393e974c57b3ca954f77d\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3641",
+ "user_id": 3641}], "http_etag": "\"dd959078f99715f9b4eed5ce6db63fef11476173\"",
"start": 0, "total_size": 2}'}
headers:
content-length: ['495']
@@ -173,8 +173,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/3326
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3640
response:
body: {string: !!python/unicode ''}
headers:
@@ -184,8 +184,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/3327
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3641
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_page_not_accessible_for_unprivileged_users.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_page_not_accessible_for_unprivileged_users.yaml
index 1d44b48..3c9164f 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_page_not_accessible_for_unprivileged_users.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_page_not_accessible_for_unprivileged_users.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -56,38 +56,38 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/15']
+ location: ['http://localhost:9001/3.0/members/5532']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/16']
+ location: ['http://localhost:9001/3.0/members/5533']
status: {code: 201, message: Created}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo@example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -102,42 +102,42 @@
body: 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": "\"0ac3e9bfbff1268da972693401cef9e207e5551e\"",
- "list_id": "foo.example.com", "member_id": 15, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/15", "user":
- "http://localhost:9001/3.0/users/11"}], "http_etag": "\"ee781643e3f9cd6a6b25929bca32d70301db5ab9\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"af524e51161fc555f6a79583f2d3cc7f18f8a262\"",
+ "list_id": "foo.example.com", "member_id": 5532, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5532", "user":
+ "http://localhost:9001/3.0/users/3642"}], "http_etag": "\"77ab9c2b78c0d077ce3d70c147b578ed1454402e\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['486']
+ content-length: ['492']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/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":
- "\"3f4b7816878ffaffdedda6207345458ab7004e16\"", "list_id": "foo.example.com",
- "member_id": 16, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/16", "user": "http://localhost:9001/3.0/users/12"}],
- "http_etag": "\"65e11e971b6459e7d3c548263445a06e6c56307f\"", "start": 0, "total_size":
+ "\"dbebf50256534e50ce9bff0476227364bcc7e40d\"", "list_id": "foo.example.com",
+ "member_id": 5533, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5533", "user": "http://localhost:9001/3.0/users/3643"}],
+ "http_etag": "\"5fc0306a330d9bbff13e09b3fa6432d3cd62627a\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['498']
+ content-length: ['504']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -153,7 +153,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -164,26 +164,26 @@
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": "\"4c816726023bb1daf76d48e82b250689df6a4694\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/11", "user_id": 11},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"87648caa0e3380982e197beebf79e468670de477\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/12",
- "user_id": 12}], "http_etag": "\"a6c9f698a5107d37e39c105071b77479e0bdc6c7\"",
+ "http_etag": "\"d68453a59c8d3e113781b7697bbdeb409543e857\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3642", "user_id": 3642},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"f798ca6cdfeb808bf92b08e6e4e82df7e9e9eb70\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3643",
+ "user_id": 3643}], "http_etag": "\"4b0b0141dec30701d8de8eb4c19311f4ebd65b78\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['487']
+ content-length: ['495']
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/3642
response:
body: {string: !!python/unicode ''}
headers:
@@ -193,8 +193,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/12
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3643
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_page_not_accessible_if_not_logged_in.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_page_not_accessible_if_not_logged_in.yaml
index abede2f..533d875 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_page_not_accessible_if_not_logged_in.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_page_not_accessible_if_not_logged_in.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -56,38 +56,38 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/17']
+ location: ['http://localhost:9001/3.0/members/5534']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/18']
+ location: ['http://localhost:9001/3.0/members/5535']
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/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -103,7 +103,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -114,26 +114,26 @@
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": "\"007cc78d77622058dc0f70458877d09487378a12\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/13", "user_id": 13},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"0151e0193b20e2c0ad85bb8486f2147bea762806\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/14",
- "user_id": 14}], "http_etag": "\"e2f61a2e57e01510a45f2c4dbec7d88ebc6353aa\"",
+ "http_etag": "\"841ea2938d7dc6ae2a9fa8d62e07ad3a10ebedc6\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3644", "user_id": 3644},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"7bb84c280587b4d00d69f682c0da63fa4b561c0c\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3645",
+ "user_id": 3645}], "http_etag": "\"8069ea1f4ae1f38b5ed89952e8f8b128439a261e\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['487']
+ content-length: ['495']
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/3644
response:
body: {string: !!python/unicode ''}
headers:
@@ -143,8 +143,8 @@
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/3645
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_moderation_action.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_moderation_action.yaml
index c1e38ba..6f0368a 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_moderation_action.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_moderation_action.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -56,83 +56,83 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/85']
+ location: ['http://localhost:9001/3.0/members/5630']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/86']
+ location: ['http://localhost:9001/3.0/members/5631']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode email=test%40example.com
+ body: !!python/unicode 'email=test%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/users/81']
+ location: ['http://localhost:9001/3.0/users/3754']
status: {code: 201, message: Created}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
- uri: http://localhost:9001/3.0/users/81
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/3754
response:
body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
- "\"1ff736046d43116d71a4a6ad7f5b9e43b884a402\"", "is_server_owner": false,
- "password": "$6$rounds=614131$Y.YeyBO.poxmJWFT$tKDi5fUDJsSBluqWoVj/dCJcRzP116QJHVQBlAxui23GQgfvXwrsys15uKxomc.22LVYKszElx7dxsg8cw1/S/",
- "self_link": "http://localhost:9001/3.0/users/81", "user_id": 81}'}
+ "\"f42a4c2a05cf485109e44c3dfe0ed64424448008\"", "is_server_owner": false,
+ "password": "$6$rounds=656000$DmQvUT1a2HBoG4rQ$txPAeFOkzMD.mj9u4KADH7CrvSHxcaOQjUYeJIjO/5Vx2AXJ495yZyJCbgBXLOMVOEbjy/kMkor9gZ0IwRc46/",
+ "self_link": "http://localhost:9001/3.0/users/3754", "user_id": 3754}'}
headers:
- content-length: ['326']
+ content-length: ['330']
content-type: [application/json; charset=UTF-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/81/addresses
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/3754/addresses
response:
body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag":
- "\"28a313e1aa232d96d2c954eb3b714e936137a39a\"", "original_email": "test@example.com",
+ "\"fcb9d780d78bd1acb6a7e25304907ffdb2ccb17d\"", "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/81"}], "http_etag": "\"eccd8cf04de2d5a09dfdf72f77aefbf7fd5268bb\"",
+ "user": "http://localhost:9001/3.0/users/3754"}], "http_etag": "\"6f3f02879dc53170e0a04681b3bbf64e835c2939\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['388']
+ content-length: ['390']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode POST
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/addresses/test@example.com/verify
response:
body: {string: !!python/unicode ''}
@@ -140,39 +140,39 @@
content-length: ['0']
status: {code: 204, message: No Content}
- request:
- body: !!python/unicode display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com
+ body: !!python/unicode 'display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/87']
+ location: ['http://localhost:9001/3.0/members/5632']
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/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": "\"5e2eb20fb7936c9a105cb5b9f018f2319e15a426\"",
- "list_id": "foo.example.com", "member_id": 87, "role": "member", "self_link":
- "http://localhost:9001/3.0/members/87", "user": "http://localhost:9001/3.0/users/81"}'}
+ "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"c535cebafecd244ddea5668f32df79671c7aad4c\"",
+ "list_id": "foo.example.com", "member_id": 5632, "role": "member", "self_link":
+ "http://localhost:9001/3.0/members/5632", "user": "http://localhost:9001/3.0/users/3754"}'}
headers:
- content-length: ['349']
+ content-length: ['355']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ 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",
@@ -187,7 +187,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -202,37 +202,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/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": "\"5e2eb20fb7936c9a105cb5b9f018f2319e15a426\"",
- "list_id": "foo.example.com", "member_id": 87, "role": "member", "self_link":
- "http://localhost:9001/3.0/members/87", "user": "http://localhost:9001/3.0/users/81"}'}
+ "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"c535cebafecd244ddea5668f32df79671c7aad4c\"",
+ "list_id": "foo.example.com", "member_id": 5632, "role": "member", "self_link":
+ "http://localhost:9001/3.0/members/5632", "user": "http://localhost:9001/3.0/users/3754"}'}
headers:
- content-length: ['349']
+ content-length: ['355']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
- uri: http://localhost:9001/3.0/members/87/preferences
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/members/5632/preferences
response:
- body: {string: !!python/unicode '{"http_etag": "\"9c7d16cbf64d3c88c0ec30a20f4dfc02c95fe05d\"",
- "self_link": "http://localhost:9001/3.0/members/87/preferences"}'}
+ body: {string: !!python/unicode '{"http_etag": "\"dd3a37d71533432041f198d2fd0e81e0cb68f5a9\"",
+ "self_link": "http://localhost:9001/3.0/members/5632/preferences"}'}
headers:
- content-length: ['126']
+ content-length: ['128']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode moderation_action=hold
+ body: !!python/unicode 'moderation_action=hold'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode PATCH
- uri: http://localhost:9001/3.0/members/87
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'PATCH'
+ uri: http://localhost:9001/3.0/members/5632
response:
body: {string: !!python/unicode ''}
headers:
@@ -242,7 +242,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",
@@ -257,7 +257,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",
@@ -272,52 +272,52 @@
body: 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": "\"1defd58e17e01d90f25737757d949c2d2cafc579\"",
- "list_id": "foo.example.com", "member_id": 87, "moderation_action": "hold",
- "role": "member", "self_link": "http://localhost:9001/3.0/members/87", "user":
- "http://localhost:9001/3.0/users/81"}'}
+ "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"be1ccbb75ffec78d1f81dc4768946566d82172d7\"",
+ "list_id": "foo.example.com", "member_id": 5632, "moderation_action": "hold",
+ "role": "member", "self_link": "http://localhost:9001/3.0/members/5632", "user":
+ "http://localhost:9001/3.0/users/3754"}'}
headers:
- content-length: ['378']
+ content-length: ['384']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
- uri: http://localhost:9001/3.0/members/87/preferences
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/members/5632/preferences
response:
- body: {string: !!python/unicode '{"http_etag": "\"9c7d16cbf64d3c88c0ec30a20f4dfc02c95fe05d\"",
- "self_link": "http://localhost:9001/3.0/members/87/preferences"}'}
+ body: {string: !!python/unicode '{"http_etag": "\"dd3a37d71533432041f198d2fd0e81e0cb68f5a9\"",
+ "self_link": "http://localhost:9001/3.0/members/5632/preferences"}'}
headers:
- content-length: ['126']
+ content-length: ['128']
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 '{"address": "http://localhost:9001/3.0/addresses/test@example.com",
- "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"1defd58e17e01d90f25737757d949c2d2cafc579\"",
- "list_id": "foo.example.com", "member_id": 87, "moderation_action": "hold",
- "role": "member", "self_link": "http://localhost:9001/3.0/members/87", "user":
- "http://localhost:9001/3.0/users/81"}'}
+ "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"be1ccbb75ffec78d1f81dc4768946566d82172d7\"",
+ "list_id": "foo.example.com", "member_id": 5632, "moderation_action": "hold",
+ "role": "member", "self_link": "http://localhost:9001/3.0/members/5632", "user":
+ "http://localhost:9001/3.0/users/3754"}'}
headers:
- content-length: ['378']
+ content-length: ['384']
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",
@@ -332,7 +332,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",
@@ -347,38 +347,38 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/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": "\"1defd58e17e01d90f25737757d949c2d2cafc579\"",
- "list_id": "foo.example.com", "member_id": 87, "moderation_action": "hold",
- "role": "member", "self_link": "http://localhost:9001/3.0/members/87", "user":
- "http://localhost:9001/3.0/users/81"}'}
+ "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"be1ccbb75ffec78d1f81dc4768946566d82172d7\"",
+ "list_id": "foo.example.com", "member_id": 5632, "moderation_action": "hold",
+ "role": "member", "self_link": "http://localhost:9001/3.0/members/5632", "user":
+ "http://localhost:9001/3.0/users/3754"}'}
headers:
- content-length: ['378']
+ content-length: ['384']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
- uri: http://localhost:9001/3.0/members/87/preferences
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/members/5632/preferences
response:
- body: {string: !!python/unicode '{"http_etag": "\"9c7d16cbf64d3c88c0ec30a20f4dfc02c95fe05d\"",
- "self_link": "http://localhost:9001/3.0/members/87/preferences"}'}
+ body: {string: !!python/unicode '{"http_etag": "\"dd3a37d71533432041f198d2fd0e81e0cb68f5a9\"",
+ "self_link": "http://localhost:9001/3.0/members/5632/preferences"}'}
headers:
- content-length: ['126']
+ content-length: ['128']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode moderation_action=
+ body: !!python/unicode 'moderation_action='
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode PATCH
- uri: http://localhost:9001/3.0/members/87
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'PATCH'
+ uri: http://localhost:9001/3.0/members/5632
response:
body: {string: !!python/unicode ''}
headers:
@@ -388,7 +388,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",
@@ -403,7 +403,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -418,50 +418,50 @@
body: 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": "\"5e2eb20fb7936c9a105cb5b9f018f2319e15a426\"",
- "list_id": "foo.example.com", "member_id": 87, "role": "member", "self_link":
- "http://localhost:9001/3.0/members/87", "user": "http://localhost:9001/3.0/users/81"}'}
+ "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"c535cebafecd244ddea5668f32df79671c7aad4c\"",
+ "list_id": "foo.example.com", "member_id": 5632, "role": "member", "self_link":
+ "http://localhost:9001/3.0/members/5632", "user": "http://localhost:9001/3.0/users/3754"}'}
headers:
- content-length: ['349']
+ content-length: ['355']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
- uri: http://localhost:9001/3.0/members/87/preferences
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/members/5632/preferences
response:
- body: {string: !!python/unicode '{"http_etag": "\"9c7d16cbf64d3c88c0ec30a20f4dfc02c95fe05d\"",
- "self_link": "http://localhost:9001/3.0/members/87/preferences"}'}
+ body: {string: !!python/unicode '{"http_etag": "\"dd3a37d71533432041f198d2fd0e81e0cb68f5a9\"",
+ "self_link": "http://localhost:9001/3.0/members/5632/preferences"}'}
headers:
- content-length: ['126']
+ content-length: ['128']
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 '{"address": "http://localhost:9001/3.0/addresses/test@example.com",
- "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"5e2eb20fb7936c9a105cb5b9f018f2319e15a426\"",
- "list_id": "foo.example.com", "member_id": 87, "role": "member", "self_link":
- "http://localhost:9001/3.0/members/87", "user": "http://localhost:9001/3.0/users/81"}'}
+ "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"c535cebafecd244ddea5668f32df79671c7aad4c\"",
+ "list_id": "foo.example.com", "member_id": 5632, "role": "member", "self_link":
+ "http://localhost:9001/3.0/members/5632", "user": "http://localhost:9001/3.0/users/3754"}'}
headers:
- content-length: ['349']
+ content-length: ['355']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -477,7 +477,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -488,29 +488,29 @@
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": "\"1893973f238810e437cd3233b04ee5c1ab23022c\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/79", "user_id": 79},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"3cfc8052df45dbd51a138a5b79c02833187f6536\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/80",
- "user_id": 80}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"1ff736046d43116d71a4a6ad7f5b9e43b884a402\"",
- "is_server_owner": false, "password": "$6$rounds=614131$Y.YeyBO.poxmJWFT$tKDi5fUDJsSBluqWoVj/dCJcRzP116QJHVQBlAxui23GQgfvXwrsys15uKxomc.22LVYKszElx7dxsg8cw1/S/",
- "self_link": "http://localhost:9001/3.0/users/81", "user_id": 81}], "http_etag":
- "\"48e38e3a76daeed6272593e20a3eda0543ef6681\"", "start": 0, "total_size":
+ "http_etag": "\"765c7644b83e843c3e19844e6cd70166d5b84d4f\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3752", "user_id": 3752},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"6b9a1116ee2055003f143f7de2b5ed6f7dda3cb8\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3753",
+ "user_id": 3753}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"f42a4c2a05cf485109e44c3dfe0ed64424448008\"",
+ "is_server_owner": false, "password": "$6$rounds=656000$DmQvUT1a2HBoG4rQ$txPAeFOkzMD.mj9u4KADH7CrvSHxcaOQjUYeJIjO/5Vx2AXJ495yZyJCbgBXLOMVOEbjy/kMkor9gZ0IwRc46/",
+ "self_link": "http://localhost:9001/3.0/users/3754", "user_id": 3754}], "http_etag":
+ "\"55dea9e396a47f3b417c83c71a5afb38a004ca97\"", "start": 0, "total_size":
3}'}
headers:
- content-length: ['815']
+ content-length: ['827']
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/79
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3752
response:
body: {string: !!python/unicode ''}
headers:
@@ -520,8 +520,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/80
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3753
response:
body: {string: !!python/unicode ''}
headers:
@@ -531,8 +531,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/81
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3754
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_nonexistent_member_returns_404.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_nonexistent_member_returns_404.yaml
index 8615ccd..5c53290 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_nonexistent_member_returns_404.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_nonexistent_member_returns_404.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -56,58 +56,58 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/5297']
+ location: ['http://localhost:9001/3.0/members/5633']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/5298']
+ location: ['http://localhost:9001/3.0/members/5634']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode email=test%40example.com
+ body: !!python/unicode 'email=test%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/users/3378']
+ location: ['http://localhost:9001/3.0/users/3757']
status: {code: 201, message: Created}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
- uri: http://localhost:9001/3.0/users/3378
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/3757
response:
body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
- "\"80a3fa6684c3a200c2eb564d533d0245cfd79433\"", "is_server_owner": false,
- "password": "$6$rounds=595162$OQPvrqO8zYHFrMid$ALz6dVgiaGtVw1pq.2tttseKje7Xlh3C0bz.DzsJWpsU7Sfjv/SoQB10SZ9km7V9mKQzpbByFxJ29VuDMJDJR/",
- "self_link": "http://localhost:9001/3.0/users/3378", "user_id": 3378}'}
+ "\"40d2f6baeb727965261239fecb2a94fdd3863333\"", "is_server_owner": false,
+ "password": "$6$rounds=656000$5Dyp9uxAeA0Hp0sK$x4IdUQR576Vq3vL0J59nXRZwPw4115SUkirfqijKN8LeXFUHJNs/8LnNeKFWwRwYIs0e.7hafZR6heWXP2zWe.",
+ "self_link": "http://localhost:9001/3.0/users/3757", "user_id": 3757}'}
headers:
content-length: ['330']
content-type: [application/json; charset=UTF-8]
@@ -116,13 +116,13 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
- uri: http://localhost:9001/3.0/users/3378/addresses
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/3757/addresses
response:
body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag":
- "\"7fc7f31d0d2208eb924b912bd7fddec5a34bb77f\"", "original_email": "test@example.com",
+ "\"6485f6eb4a265180a2b9d3e729792de14bc1c6ea\"", "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/3378"}], "http_etag": "\"ed96f967a3455978b62f5d0677825f274ebbdbff\"",
+ "user": "http://localhost:9001/3.0/users/3757"}], "http_etag": "\"b15f7526444dde09c6914402701d376d92c64994\"",
"start": 0, "total_size": 1}'}
headers:
content-length: ['390']
@@ -132,7 +132,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode POST
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/addresses/test@example.com/verify
response:
body: {string: !!python/unicode ''}
@@ -140,24 +140,24 @@
content-length: ['0']
status: {code: 204, message: No Content}
- request:
- body: !!python/unicode display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com
+ body: !!python/unicode 'display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/5299']
+ location: ['http://localhost:9001/3.0/members/5635']
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",
@@ -172,7 +172,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -187,12 +187,12 @@
body: 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/none@example.com
response:
- body: {string: !!python/unicode '{}'}
+ body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"}
headers:
- content-length: ['2']
+ content-length: ['32']
content-type: [application/json; charset=UTF-8]
vary: [Accept]
status: {code: 404, message: Not Found}
@@ -200,7 +200,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -216,7 +216,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -227,18 +227,18 @@
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": "\"7f7f58c6d00e58ff1ef3c0870649412a41e22392\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/3376", "user_id": 3376},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"0498836bc12cba6ceb3299d6b097a07b900bff70\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3377",
- "user_id": 3377}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"80a3fa6684c3a200c2eb564d533d0245cfd79433\"",
- "is_server_owner": false, "password": "$6$rounds=595162$OQPvrqO8zYHFrMid$ALz6dVgiaGtVw1pq.2tttseKje7Xlh3C0bz.DzsJWpsU7Sfjv/SoQB10SZ9km7V9mKQzpbByFxJ29VuDMJDJR/",
- "self_link": "http://localhost:9001/3.0/users/3378", "user_id": 3378}], "http_etag":
- "\"a68a3283df43ff0bd539578b6c933b29fd650e56\"", "start": 0, "total_size":
+ "http_etag": "\"e9b327eab5418f0c88f299a08871609ab9bd15c3\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3755", "user_id": 3755},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"63a6086f3a11d66cd93851a8dd3cca5face90652\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3756",
+ "user_id": 3756}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"40d2f6baeb727965261239fecb2a94fdd3863333\"",
+ "is_server_owner": false, "password": "$6$rounds=656000$5Dyp9uxAeA0Hp0sK$x4IdUQR576Vq3vL0J59nXRZwPw4115SUkirfqijKN8LeXFUHJNs/8LnNeKFWwRwYIs0e.7hafZR6heWXP2zWe.",
+ "self_link": "http://localhost:9001/3.0/users/3757", "user_id": 3757}], "http_etag":
+ "\"80b9651ebb98d596a75c1d5713f277494c7fb966\"", "start": 0, "total_size":
3}'}
headers:
content-length: ['827']
@@ -248,8 +248,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/3376
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3755
response:
body: {string: !!python/unicode ''}
headers:
@@ -259,8 +259,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/3377
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3756
response:
body: {string: !!python/unicode ''}
headers:
@@ -270,8 +270,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/3378
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3757
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_not_accessible_for_moderator.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_not_accessible_for_moderator.yaml
index 07d4238..93f5689 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_not_accessible_for_moderator.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_not_accessible_for_moderator.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -56,83 +56,83 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/88']
+ location: ['http://localhost:9001/3.0/members/5636']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/89']
+ location: ['http://localhost:9001/3.0/members/5637']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode email=test%40example.com
+ body: !!python/unicode 'email=test%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/users/84']
+ location: ['http://localhost:9001/3.0/users/3760']
status: {code: 201, message: Created}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
- uri: http://localhost:9001/3.0/users/84
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/3760
response:
body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
- "\"806465cebdfe0b401348f9141623640d7cf607be\"", "is_server_owner": false,
- "password": "$6$rounds=652305$DgG3P.AjNzZmubFS$v4Rd6Lth6tMqLqUBipJyAsSbDfwtNvEkWwTP5iWIuEXjD1R5.2Dftp2FqKPZZXz4RVjI80Uxt0NujDMWkb/sx1",
- "self_link": "http://localhost:9001/3.0/users/84", "user_id": 84}'}
+ "\"8cd26f5d7042421d64332b7bf5087d897e53d13b\"", "is_server_owner": false,
+ "password": "$6$rounds=656000$cLvtmrRUmTQFSQy9$jHXgtpKTQJ4Gj.4UYxO7YtKDURTCA6Ox2J14Lc2SPAobbzQgjscln9w7RS/MiRFVfcbO0zgd.Be15Fos5w.bo.",
+ "self_link": "http://localhost:9001/3.0/users/3760", "user_id": 3760}'}
headers:
- content-length: ['326']
+ content-length: ['330']
content-type: [application/json; charset=UTF-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/84/addresses
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/3760/addresses
response:
body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag":
- "\"c6990b2f7be6eaeb0388a90260c9972ea9640ad3\"", "original_email": "test@example.com",
+ "\"ae3273042894edab4ab2ebe444a2038bfd9bc66b\"", "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/84"}], "http_etag": "\"6252f0c990524812d5d3a7d27bc5226452ee2e89\"",
+ "user": "http://localhost:9001/3.0/users/3760"}], "http_etag": "\"df180fbbdf43688e480407d0c2bdcb3e518a9f4e\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['388']
+ content-length: ['390']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode POST
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/addresses/test@example.com/verify
response:
body: {string: !!python/unicode ''}
@@ -140,24 +140,24 @@
content-length: ['0']
status: {code: 204, message: No Content}
- request:
- body: !!python/unicode display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com
+ body: !!python/unicode 'display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/90']
+ location: ['http://localhost:9001/3.0/members/5638']
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",
@@ -172,42 +172,42 @@
body: 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": "\"8557c958a5e29fc22a52ba9b368e79108eba719c\"",
- "list_id": "foo.example.com", "member_id": 88, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/88", "user":
- "http://localhost:9001/3.0/users/82"}], "http_etag": "\"24f8945924befe57d8bd9839bd17ad6649bee3ec\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"994bec9b6f85754a3b8480e653895f86caf67521\"",
+ "list_id": "foo.example.com", "member_id": 5636, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5636", "user":
+ "http://localhost:9001/3.0/users/3758"}], "http_etag": "\"5cdabf50087fc4a7838b760c5babeba8517762b4\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['486']
+ content-length: ['492']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/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":
- "\"4f8cd50b02adf9b90d445ca6ddfb8af2a7c044e8\"", "list_id": "foo.example.com",
- "member_id": 89, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/89", "user": "http://localhost:9001/3.0/users/83"}],
- "http_etag": "\"c10b8a8628a700cf8fdb0d8903d4d734edf01e56\"", "start": 0, "total_size":
+ "\"30671b6b4acaa65e90280df7c4faf7941503b81b\"", "list_id": "foo.example.com",
+ "member_id": 5637, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5637", "user": "http://localhost:9001/3.0/users/3759"}],
+ "http_etag": "\"fa7080702ee674175c9729c042ecf975aab4990c\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['498']
+ content-length: ['504']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -223,7 +223,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -234,29 +234,29 @@
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": "\"6cc84efed3ba5c47e7cede0467e5cf7ed9f52e59\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/82", "user_id": 82},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"ae032e851b49829d0eebf657695e27bbfb44873e\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/83",
- "user_id": 83}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"806465cebdfe0b401348f9141623640d7cf607be\"",
- "is_server_owner": false, "password": "$6$rounds=652305$DgG3P.AjNzZmubFS$v4Rd6Lth6tMqLqUBipJyAsSbDfwtNvEkWwTP5iWIuEXjD1R5.2Dftp2FqKPZZXz4RVjI80Uxt0NujDMWkb/sx1",
- "self_link": "http://localhost:9001/3.0/users/84", "user_id": 84}], "http_etag":
- "\"5a2062596feb5e70b45072bad193345e802a6f4c\"", "start": 0, "total_size":
+ "http_etag": "\"52b465a2941a378880860d78661f4aa9a8be8bc4\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3758", "user_id": 3758},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"064271ad6009451e697a5be5d6f36cfe63c0e956\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3759",
+ "user_id": 3759}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"8cd26f5d7042421d64332b7bf5087d897e53d13b\"",
+ "is_server_owner": false, "password": "$6$rounds=656000$cLvtmrRUmTQFSQy9$jHXgtpKTQJ4Gj.4UYxO7YtKDURTCA6Ox2J14Lc2SPAobbzQgjscln9w7RS/MiRFVfcbO0zgd.Be15Fos5w.bo.",
+ "self_link": "http://localhost:9001/3.0/users/3760", "user_id": 3760}], "http_etag":
+ "\"b234fa519fb241714626635285b4569bca148e56\"", "start": 0, "total_size":
3}'}
headers:
- content-length: ['815']
+ content-length: ['827']
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/82
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3758
response:
body: {string: !!python/unicode ''}
headers:
@@ -266,8 +266,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/83
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3759
response:
body: {string: !!python/unicode ''}
headers:
@@ -277,8 +277,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/84
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3760
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_page_accessible_for_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_page_accessible_for_owner.yaml
index 71b5e78..c798d38 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_page_accessible_for_owner.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_page_accessible_for_owner.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -56,83 +56,83 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/91']
+ location: ['http://localhost:9001/3.0/members/5639']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/92']
+ location: ['http://localhost:9001/3.0/members/5640']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode email=test%40example.com
+ body: !!python/unicode 'email=test%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/users/87']
+ location: ['http://localhost:9001/3.0/users/3763']
status: {code: 201, message: Created}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
- uri: http://localhost:9001/3.0/users/87
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/3763
response:
body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
- "\"0695bc3c10a75a59df78e7a2666567e831fdfdd5\"", "is_server_owner": false,
- "password": "$6$rounds=629282$8FOZrYQjU6qhnNCN$lhTFFUk/n.9L6S7M/9i86xGOvy4iGnRi1qG7TNT790vMbB4aXcQt2jAQ/zwIWBcVGgojIcyr8BHGjk89rAQt40",
- "self_link": "http://localhost:9001/3.0/users/87", "user_id": 87}'}
+ "\"20263e9fc619f1a2dd64d564148510812bd838af\"", "is_server_owner": false,
+ "password": "$6$rounds=656000$4MNeZaAOvbDAO7tj$g5PHkY3fGBFufT0PVHQCIMV0yt90jvsbuMO3NCv4vbVHTGJoOKJjVOP0to28hwxylEFw.xSVrSHLlcx9wU.Em/",
+ "self_link": "http://localhost:9001/3.0/users/3763", "user_id": 3763}'}
headers:
- content-length: ['326']
+ content-length: ['330']
content-type: [application/json; charset=UTF-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/87/addresses
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/3763/addresses
response:
body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag":
- "\"20641d9c8c76f6db31a96a28ae6679f70d5f821f\"", "original_email": "test@example.com",
+ "\"bbdf3fe77ba10aef61f94dbc8e36ac73bef7b521\"", "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/87"}], "http_etag": "\"97177c80ab15809389b925f500624159b0d5cbde\"",
+ "user": "http://localhost:9001/3.0/users/3763"}], "http_etag": "\"8840a05a329cefbbbd63f1b044ebbb569d2eb333\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['388']
+ content-length: ['390']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode POST
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/addresses/test@example.com/verify
response:
body: {string: !!python/unicode ''}
@@ -140,24 +140,24 @@
content-length: ['0']
status: {code: 204, message: No Content}
- request:
- body: !!python/unicode display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com
+ body: !!python/unicode 'display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/93']
+ location: ['http://localhost:9001/3.0/members/5641']
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",
@@ -172,42 +172,42 @@
body: 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": "\"ea401ae1617fbaf22b0bffbcbb21c4da1b1c7211\"",
- "list_id": "foo.example.com", "member_id": 91, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/91", "user":
- "http://localhost:9001/3.0/users/85"}], "http_etag": "\"2e0308f08abd732906740bfab1a453bd2f1aef2a\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"60266cac35b004c748c3c51e4c32a4d0b799ede1\"",
+ "list_id": "foo.example.com", "member_id": 5639, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5639", "user":
+ "http://localhost:9001/3.0/users/3761"}], "http_etag": "\"6e5fad7b6664d5312ab832bb1658c78edba3eaa6\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['486']
+ content-length: ['492']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/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":
- "\"0511ebbaf41902d1c0a73fdabaf25cb95f3066b5\"", "list_id": "foo.example.com",
- "member_id": 92, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/92", "user": "http://localhost:9001/3.0/users/86"}],
- "http_etag": "\"04ec55411e8354fb4e3837cd222c6978aee1810b\"", "start": 0, "total_size":
+ "\"eabcf267b1a83199c1d63c46b20bcd369a1c9d81\"", "list_id": "foo.example.com",
+ "member_id": 5640, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5640", "user": "http://localhost:9001/3.0/users/3762"}],
+ "http_etag": "\"3c1a5d689128dc527e727d5ad11bba1a03b6ae48\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['498']
+ content-length: ['504']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -222,7 +222,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",
@@ -237,35 +237,35 @@
body: 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": "\"166050a7746668af162047a1490f75574b596b21\"",
- "list_id": "foo.example.com", "member_id": 93, "role": "member", "self_link":
- "http://localhost:9001/3.0/members/93", "user": "http://localhost:9001/3.0/users/87"}'}
+ "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"f4897ebef80645d9e3f76e02e127c4b4fba4e083\"",
+ "list_id": "foo.example.com", "member_id": 5641, "role": "member", "self_link":
+ "http://localhost:9001/3.0/members/5641", "user": "http://localhost:9001/3.0/users/3763"}'}
headers:
- content-length: ['349']
+ content-length: ['355']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
- uri: http://localhost:9001/3.0/members/93/preferences
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/members/5641/preferences
response:
- body: {string: !!python/unicode '{"http_etag": "\"890c343dada6f0a99796e0fdf449747878979423\"",
- "self_link": "http://localhost:9001/3.0/members/93/preferences"}'}
+ body: {string: !!python/unicode '{"http_etag": "\"d52f7f866c177a55a1a32542b0fbe61a9cb8cfb7\"",
+ "self_link": "http://localhost:9001/3.0/members/5641/preferences"}'}
headers:
- content-length: ['126']
+ content-length: ['128']
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/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -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/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -292,29 +292,29 @@
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": "\"906bc5518b2aad927af24ed4d25f3aa3748e94b5\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/85", "user_id": 85},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"4308c6b5ccd9980a5be4aec0170dc65e3f062278\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/86",
- "user_id": 86}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"0695bc3c10a75a59df78e7a2666567e831fdfdd5\"",
- "is_server_owner": false, "password": "$6$rounds=629282$8FOZrYQjU6qhnNCN$lhTFFUk/n.9L6S7M/9i86xGOvy4iGnRi1qG7TNT790vMbB4aXcQt2jAQ/zwIWBcVGgojIcyr8BHGjk89rAQt40",
- "self_link": "http://localhost:9001/3.0/users/87", "user_id": 87}], "http_etag":
- "\"d2ef80b1aeae85d8b32cbc011992eed930d67a13\"", "start": 0, "total_size":
+ "http_etag": "\"26ba9d28db9a1c48cb958a08731031c1460634f7\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3761", "user_id": 3761},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"92445dbba89f256e4b9f71a7edcc56a691e7b6f2\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3762",
+ "user_id": 3762}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"20263e9fc619f1a2dd64d564148510812bd838af\"",
+ "is_server_owner": false, "password": "$6$rounds=656000$4MNeZaAOvbDAO7tj$g5PHkY3fGBFufT0PVHQCIMV0yt90jvsbuMO3NCv4vbVHTGJoOKJjVOP0to28hwxylEFw.xSVrSHLlcx9wU.Em/",
+ "self_link": "http://localhost:9001/3.0/users/3763", "user_id": 3763}], "http_etag":
+ "\"6319d4172081537c3e516f1c9a90ff8efd3b7be1\"", "start": 0, "total_size":
3}'}
headers:
- content-length: ['815']
+ content-length: ['827']
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/85
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3761
response:
body: {string: !!python/unicode ''}
headers:
@@ -324,8 +324,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/86
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3762
response:
body: {string: !!python/unicode ''}
headers:
@@ -335,8 +335,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/87
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3763
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_page_accessible_for_superuser.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_page_accessible_for_superuser.yaml
index 07f1619..6ec0089 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_page_accessible_for_superuser.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_page_accessible_for_superuser.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -56,83 +56,83 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/94']
+ location: ['http://localhost:9001/3.0/members/5642']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/95']
+ location: ['http://localhost:9001/3.0/members/5643']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode email=test%40example.com
+ body: !!python/unicode 'email=test%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/users/90']
+ location: ['http://localhost:9001/3.0/users/3766']
status: {code: 201, message: Created}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
- uri: http://localhost:9001/3.0/users/90
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/3766
response:
body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
- "\"306622a1c800f37426963ae97e02fd0c761a6457\"", "is_server_owner": false,
- "password": "$6$rounds=647513$V3yttrKqzMEgqLNy$JazsLmjaTWEclvMkEcozqcpRxKi80BPnBAbx4mkbBYGs/13H7jKWOoQwEbmTnGzH.uhEJysC3uLgL2kl3rOzg/",
- "self_link": "http://localhost:9001/3.0/users/90", "user_id": 90}'}
+ "\"0ff6cdd670058fbe3cd9c3679fd259734c012224\"", "is_server_owner": false,
+ "password": "$6$rounds=656000$ECHs/YAYnK1jKjAs$NWCbxWOTLuc1E4HlCBXDY.z.0uvpVYOHe/zLI/pYhEo6tL2FSdZmkXPe8olEUA6mDErSXsRJ8.MxvFmqD2ptW1",
+ "self_link": "http://localhost:9001/3.0/users/3766", "user_id": 3766}'}
headers:
- content-length: ['326']
+ content-length: ['330']
content-type: [application/json; charset=UTF-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/90/addresses
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/3766/addresses
response:
body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag":
- "\"6dfac99c9d645aa968f16e0f939af17a87294175\"", "original_email": "test@example.com",
+ "\"73d9eaca0e18d30c31618d2c2f03cd05ad8f0b00\"", "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/90"}], "http_etag": "\"ddbbc355358c643cc536ed7be783d49c33a061c6\"",
+ "user": "http://localhost:9001/3.0/users/3766"}], "http_etag": "\"a30eb1727fa21e5e5e30520e785e2ac65a2d13c2\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['388']
+ content-length: ['390']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode POST
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/addresses/test@example.com/verify
response:
body: {string: !!python/unicode ''}
@@ -140,24 +140,24 @@
content-length: ['0']
status: {code: 204, message: No Content}
- request:
- body: !!python/unicode display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com
+ body: !!python/unicode 'display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/96']
+ location: ['http://localhost:9001/3.0/members/5644']
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",
@@ -172,7 +172,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -187,35 +187,35 @@
body: 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": "\"bb361961d176862e373d685319e4874f1c58efee\"",
- "list_id": "foo.example.com", "member_id": 96, "role": "member", "self_link":
- "http://localhost:9001/3.0/members/96", "user": "http://localhost:9001/3.0/users/90"}'}
+ "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"6f20bbd98ff3dd239aee3c0ffa56d861f32166a0\"",
+ "list_id": "foo.example.com", "member_id": 5644, "role": "member", "self_link":
+ "http://localhost:9001/3.0/members/5644", "user": "http://localhost:9001/3.0/users/3766"}'}
headers:
- content-length: ['349']
+ content-length: ['355']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
- uri: http://localhost:9001/3.0/members/96/preferences
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/members/5644/preferences
response:
- body: {string: !!python/unicode '{"http_etag": "\"2254c1d1876becb0cea8058b7acf523b8d60125e\"",
- "self_link": "http://localhost:9001/3.0/members/96/preferences"}'}
+ body: {string: !!python/unicode '{"http_etag": "\"2c843c08adaef900d435b8c233aed48958063a52\"",
+ "self_link": "http://localhost:9001/3.0/members/5644/preferences"}'}
headers:
- content-length: ['126']
+ content-length: ['128']
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/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -231,7 +231,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -242,29 +242,29 @@
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": "\"c51cd9a7c8d836e852c3c5a23790abc68066e71f\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/88", "user_id": 88},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"8286cc98937375102d07528f8b097f299b24d85e\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/89",
- "user_id": 89}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"306622a1c800f37426963ae97e02fd0c761a6457\"",
- "is_server_owner": false, "password": "$6$rounds=647513$V3yttrKqzMEgqLNy$JazsLmjaTWEclvMkEcozqcpRxKi80BPnBAbx4mkbBYGs/13H7jKWOoQwEbmTnGzH.uhEJysC3uLgL2kl3rOzg/",
- "self_link": "http://localhost:9001/3.0/users/90", "user_id": 90}], "http_etag":
- "\"d0ae7d4dcf001cf6b431efb5761658d5d0596a60\"", "start": 0, "total_size":
+ "http_etag": "\"31d78b3aab615d2d137cff68df7b1406e760055d\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3764", "user_id": 3764},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"04d29b8651aed8ae7c088b284735e9b9dc775dfc\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3765",
+ "user_id": 3765}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"0ff6cdd670058fbe3cd9c3679fd259734c012224\"",
+ "is_server_owner": false, "password": "$6$rounds=656000$ECHs/YAYnK1jKjAs$NWCbxWOTLuc1E4HlCBXDY.z.0uvpVYOHe/zLI/pYhEo6tL2FSdZmkXPe8olEUA6mDErSXsRJ8.MxvFmqD2ptW1",
+ "self_link": "http://localhost:9001/3.0/users/3766", "user_id": 3766}], "http_etag":
+ "\"30ff114d572ed28ce0da3a0f9e249067dcb60d25\"", "start": 0, "total_size":
3}'}
headers:
- content-length: ['815']
+ content-length: ['827']
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/88
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3764
response:
body: {string: !!python/unicode ''}
headers:
@@ -274,8 +274,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/89
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3765
response:
body: {string: !!python/unicode ''}
headers:
@@ -285,8 +285,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/90
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3766
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_page_not_accessible_for_unprivileged_users.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_page_not_accessible_for_unprivileged_users.yaml
index 0aad949..033f902 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_page_not_accessible_for_unprivileged_users.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_page_not_accessible_for_unprivileged_users.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -56,83 +56,83 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/97']
+ location: ['http://localhost:9001/3.0/members/5645']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/98']
+ location: ['http://localhost:9001/3.0/members/5646']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode email=test%40example.com
+ body: !!python/unicode 'email=test%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/users/93']
+ location: ['http://localhost:9001/3.0/users/3769']
status: {code: 201, message: Created}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
- uri: http://localhost:9001/3.0/users/93
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/3769
response:
body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
- "\"44288efba20df8ef09cd0542257c877082d55eb5\"", "is_server_owner": false,
- "password": "$6$rounds=689424$FxIi.7K15QA53Gz0$PmgThfnViY3nqzBWsz.wWxM93jgcOAaSTBpfWo8FjboljmRd9RCA/xunSNzsNuL7yn63vTlpiXMkVH09oRFv5/",
- "self_link": "http://localhost:9001/3.0/users/93", "user_id": 93}'}
+ "\"af16a0710080647111fa93dd4d8c39d171fca00e\"", "is_server_owner": false,
+ "password": "$6$rounds=656000$.so51ThEt7MUmZq5$rW86ZJCISKAh3khoa/KisG3VJ0xs0Faq5g5Nql0CYtqFPGtfrBjiGJWlzc7hcrlEBHN5dCEsvwYi4tNaVADc80",
+ "self_link": "http://localhost:9001/3.0/users/3769", "user_id": 3769}'}
headers:
- content-length: ['326']
+ content-length: ['330']
content-type: [application/json; charset=UTF-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/93/addresses
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/3769/addresses
response:
body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag":
- "\"31ee0018c62463aeb4e1f91309c2117c6c7baf4c\"", "original_email": "test@example.com",
+ "\"4db78e3f98fb631aea23b690ea7a1897471dc25f\"", "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/93"}], "http_etag": "\"d9584c5b72c15ffa822eb7bbd883029d6b6e1788\"",
+ "user": "http://localhost:9001/3.0/users/3769"}], "http_etag": "\"c7f607872e7941d961a33f6127a557d4a2a83f59\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['388']
+ content-length: ['390']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode POST
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/addresses/test@example.com/verify
response:
body: {string: !!python/unicode ''}
@@ -140,24 +140,24 @@
content-length: ['0']
status: {code: 204, message: No Content}
- request:
- body: !!python/unicode display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com
+ body: !!python/unicode 'display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/99']
+ location: ['http://localhost:9001/3.0/members/5647']
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",
@@ -172,42 +172,42 @@
body: 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": "\"a0874cc83f3613087d3ce2c13666742165f6d89c\"",
- "list_id": "foo.example.com", "member_id": 97, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/97", "user":
- "http://localhost:9001/3.0/users/91"}], "http_etag": "\"d78978fe2b1dd9203536b0d2bd21c8becb90b9e9\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"972955b66a7420000922535308c5acb09150224c\"",
+ "list_id": "foo.example.com", "member_id": 5645, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5645", "user":
+ "http://localhost:9001/3.0/users/3767"}], "http_etag": "\"87e2ce377842424f85e6fff4e0834d2d464bcd81\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['486']
+ content-length: ['492']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/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":
- "\"821e9ad6ab2ee5fa67f1383444b7900fff3df8a7\"", "list_id": "foo.example.com",
- "member_id": 98, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/98", "user": "http://localhost:9001/3.0/users/92"}],
- "http_etag": "\"f07f833aa11630a17995cff09a22b16d426065b7\"", "start": 0, "total_size":
+ "\"45d10a431b9d3758a355fcb07a10ab59cb9f7b79\"", "list_id": "foo.example.com",
+ "member_id": 5646, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5646", "user": "http://localhost:9001/3.0/users/3768"}],
+ "http_etag": "\"969c768aa6e165d30b86d6113e8b54dca113100c\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['498']
+ content-length: ['504']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -223,7 +223,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -234,29 +234,29 @@
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": "\"855423b674f80ed98278ad677e5e9d79c8dbd8d5\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/91", "user_id": 91},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"5af19f2376363dfa85e4b394f9218d765743db46\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/92",
- "user_id": 92}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"44288efba20df8ef09cd0542257c877082d55eb5\"",
- "is_server_owner": false, "password": "$6$rounds=689424$FxIi.7K15QA53Gz0$PmgThfnViY3nqzBWsz.wWxM93jgcOAaSTBpfWo8FjboljmRd9RCA/xunSNzsNuL7yn63vTlpiXMkVH09oRFv5/",
- "self_link": "http://localhost:9001/3.0/users/93", "user_id": 93}], "http_etag":
- "\"52c3ee09c5563b710870c5fa9b6b114425515ff8\"", "start": 0, "total_size":
+ "http_etag": "\"ca1f95e767a7423248d5511b2ed2edc28f537edd\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3767", "user_id": 3767},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"a9699ef19fd937193b02c3e855f802a269c3cc40\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3768",
+ "user_id": 3768}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"af16a0710080647111fa93dd4d8c39d171fca00e\"",
+ "is_server_owner": false, "password": "$6$rounds=656000$.so51ThEt7MUmZq5$rW86ZJCISKAh3khoa/KisG3VJ0xs0Faq5g5Nql0CYtqFPGtfrBjiGJWlzc7hcrlEBHN5dCEsvwYi4tNaVADc80",
+ "self_link": "http://localhost:9001/3.0/users/3769", "user_id": 3769}], "http_etag":
+ "\"3d4128649cc56134dca06b8f070729b89f66c387\"", "start": 0, "total_size":
3}'}
headers:
- content-length: ['815']
+ content-length: ['827']
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/91
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3767
response:
body: {string: !!python/unicode ''}
headers:
@@ -266,8 +266,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/92
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3768
response:
body: {string: !!python/unicode ''}
headers:
@@ -277,8 +277,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/93
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3769
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_page_not_accessible_if_not_logged_in.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_page_not_accessible_if_not_logged_in.yaml
index 68da3a6..d61949d 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_page_not_accessible_if_not_logged_in.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_page_not_accessible_if_not_logged_in.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -56,83 +56,83 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/100']
+ location: ['http://localhost:9001/3.0/members/5648']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/101']
+ location: ['http://localhost:9001/3.0/members/5649']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode email=test%40example.com
+ body: !!python/unicode 'email=test%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/users/96']
+ location: ['http://localhost:9001/3.0/users/3772']
status: {code: 201, message: Created}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
- uri: http://localhost:9001/3.0/users/96
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/3772
response:
body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
- "\"e325efcf8a9e5a2f31e0d19dfa1e6c322d204ccf\"", "is_server_owner": false,
- "password": "$6$rounds=601160$Cnjc/PkHccgR/a4I$sJqfgMWilfkETGpuVHBG7XQdUghKmQu996OvK4KelCIXp26v9tbgtU8d0lBBdAXgnf/XNu3dlP/FrfH7GlhXU1",
- "self_link": "http://localhost:9001/3.0/users/96", "user_id": 96}'}
+ "\"0996a4175e7e1ee9f51b93aee7ab526cfc1c2773\"", "is_server_owner": false,
+ "password": "$6$rounds=656000$bc7kxLQU2iGKuQyK$.0UFsypJCcIk0i1FTxRzlZYeRMLKYd.GLrID.PrCPVnHQ25r3Lr1zzvi3JkjtXSk0/3Yvav8tn0AX8cfKIxfK/",
+ "self_link": "http://localhost:9001/3.0/users/3772", "user_id": 3772}'}
headers:
- content-length: ['326']
+ content-length: ['330']
content-type: [application/json; charset=UTF-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/96/addresses
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/3772/addresses
response:
body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag":
- "\"66869c268a0b0c5f47979e217fe7f0766aab0045\"", "original_email": "test@example.com",
+ "\"95f056ac545ab30e9d69f17e9143447bf9c3fdf3\"", "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/96"}], "http_etag": "\"19d945bb0ef157dd60a92ed2841789a0102cde23\"",
+ "user": "http://localhost:9001/3.0/users/3772"}], "http_etag": "\"085c71e5f8751b513347780f2b31481b082506da\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['388']
+ content-length: ['390']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode POST
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/addresses/test@example.com/verify
response:
body: {string: !!python/unicode ''}
@@ -140,24 +140,24 @@
content-length: ['0']
status: {code: 204, message: No Content}
- request:
- body: !!python/unicode display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com
+ body: !!python/unicode 'display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/102']
+ location: ['http://localhost:9001/3.0/members/5650']
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/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -173,7 +173,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -184,29 +184,29 @@
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": "\"a53ee03519c95de79b49d2e20802288df909f78f\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/94", "user_id": 94},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"3ec9955c240fbecdc79198908a2f6a4097f94b9d\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/95",
- "user_id": 95}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"e325efcf8a9e5a2f31e0d19dfa1e6c322d204ccf\"",
- "is_server_owner": false, "password": "$6$rounds=601160$Cnjc/PkHccgR/a4I$sJqfgMWilfkETGpuVHBG7XQdUghKmQu996OvK4KelCIXp26v9tbgtU8d0lBBdAXgnf/XNu3dlP/FrfH7GlhXU1",
- "self_link": "http://localhost:9001/3.0/users/96", "user_id": 96}], "http_etag":
- "\"eb9d0e572de2ab338a25e0f25be9bda5ece45b65\"", "start": 0, "total_size":
+ "http_etag": "\"daea26c61536b7d7e1eaed193546e52226911c86\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3770", "user_id": 3770},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"8f408913c6663a1a31d020080796f6597ee2227c\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3771",
+ "user_id": 3771}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"0996a4175e7e1ee9f51b93aee7ab526cfc1c2773\"",
+ "is_server_owner": false, "password": "$6$rounds=656000$bc7kxLQU2iGKuQyK$.0UFsypJCcIk0i1FTxRzlZYeRMLKYd.GLrID.PrCPVnHQ25r3Lr1zzvi3JkjtXSk0/3Yvav8tn0AX8cfKIxfK/",
+ "self_link": "http://localhost:9001/3.0/users/3772", "user_id": 3772}], "http_etag":
+ "\"49a2269c09b31d370aaa19247c7673fa1e10a090\"", "start": 0, "total_size":
3}'}
headers:
- content-length: ['815']
+ content-length: ['827']
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/94
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3770
response:
body: {string: !!python/unicode ''}
headers:
@@ -216,8 +216,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/95
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3771
response:
body: {string: !!python/unicode ''}
headers:
@@ -227,8 +227,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/96
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3772
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersTest.test_search_members_1.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersTest.test_search_members_1.yaml
index 53c524a..c47b007 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersTest.test_search_members_1.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersTest.test_search_members_1.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -56,38 +56,38 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=member-1%40example.com
+ body: !!python/unicode 'display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=member-1%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/5255']
+ location: ['http://localhost:9001/3.0/members/5536']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=member-2%40example.com
+ body: !!python/unicode 'display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=member-2%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/5256']
+ location: ['http://localhost:9001/3.0/members/5537']
status: {code: 201, message: Created}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo@example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -102,7 +102,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/members/find?count=0&list_id=foo.example.com&page=1&role=member&subscriber=%2Aexample.com%2A
response:
body: {string: !!python/unicode '{"http_etag": "\"f14dfdb06627a6336a504885e036239a5b208434\"",
@@ -115,18 +115,18 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/members/find?count=25&list_id=foo.example.com&page=1&role=member&subscriber=%2Aexample.com%2A
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/member-1@example.com",
"delivery_mode": "regular", "email": "member-1@example.com", "http_etag":
- "\"a03b4e7b13007d4149ce193daf1f20a1f369ff3e\"", "list_id": "foo.example.com",
- "member_id": 5255, "role": "member", "self_link": "http://localhost:9001/3.0/members/5255",
- "user": "http://localhost:9001/3.0/users/3332"}, {"address": "http://localhost:9001/3.0/addresses/member-2@example.com",
+ "\"ed6f0662652ba27e9d269fe22fa4db8778515696\"", "list_id": "foo.example.com",
+ "member_id": 5536, "role": "member", "self_link": "http://localhost:9001/3.0/members/5536",
+ "user": "http://localhost:9001/3.0/users/3646"}, {"address": "http://localhost:9001/3.0/addresses/member-2@example.com",
"delivery_mode": "regular", "email": "member-2@example.com", "http_etag":
- "\"d2aa98220bcce771276847adf45b48f8956f2331\"", "list_id": "foo.example.com",
- "member_id": 5256, "role": "member", "self_link": "http://localhost:9001/3.0/members/5256",
- "user": "http://localhost:9001/3.0/users/3333"}], "http_etag": "\"11b34b6e4b0f3344ad73c51e9996d053e0e52db9\"",
+ "\"f99756976c1594357c13f60d40e7acfa0c8b26b3\"", "list_id": "foo.example.com",
+ "member_id": 5537, "role": "member", "self_link": "http://localhost:9001/3.0/members/5537",
+ "user": "http://localhost:9001/3.0/users/3647"}], "http_etag": "\"a9e6def7ea9d05533a1af048fa5541c3ffe4c05a\"",
"start": 0, "total_size": 2}'}
headers:
content-length: ['833']
@@ -136,14 +136,14 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
- uri: http://localhost:9001/3.0/members/5255
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/members/5536
response:
body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/member-1@example.com",
"delivery_mode": "regular", "email": "member-1@example.com", "http_etag":
- "\"a03b4e7b13007d4149ce193daf1f20a1f369ff3e\"", "list_id": "foo.example.com",
- "member_id": 5255, "role": "member", "self_link": "http://localhost:9001/3.0/members/5255",
- "user": "http://localhost:9001/3.0/users/3332"}'}
+ "\"ed6f0662652ba27e9d269fe22fa4db8778515696\"", "list_id": "foo.example.com",
+ "member_id": 5536, "role": "member", "self_link": "http://localhost:9001/3.0/members/5536",
+ "user": "http://localhost:9001/3.0/users/3646"}'}
headers:
content-length: ['363']
content-type: [application/json; charset=UTF-8]
@@ -152,14 +152,14 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
- uri: http://localhost:9001/3.0/members/5256
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/members/5537
response:
body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/member-2@example.com",
"delivery_mode": "regular", "email": "member-2@example.com", "http_etag":
- "\"d2aa98220bcce771276847adf45b48f8956f2331\"", "list_id": "foo.example.com",
- "member_id": 5256, "role": "member", "self_link": "http://localhost:9001/3.0/members/5256",
- "user": "http://localhost:9001/3.0/users/3333"}'}
+ "\"f99756976c1594357c13f60d40e7acfa0c8b26b3\"", "list_id": "foo.example.com",
+ "member_id": 5537, "role": "member", "self_link": "http://localhost:9001/3.0/members/5537",
+ "user": "http://localhost:9001/3.0/users/3647"}'}
headers:
content-length: ['363']
content-type: [application/json; charset=UTF-8]
@@ -168,7 +168,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",
@@ -183,7 +183,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/members/find?count=0&list_id=foo.example.com&page=1&role=member&subscriber=%2Amember-1%2A
response:
body: {string: !!python/unicode '{"http_etag": "\"b21094769c757b95dc05bd978b7e78fabe490b0c\"",
@@ -196,14 +196,14 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/members/find?count=25&list_id=foo.example.com&page=1&role=member&subscriber=%2Amember-1%2A
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/member-1@example.com",
"delivery_mode": "regular", "email": "member-1@example.com", "http_etag":
- "\"a03b4e7b13007d4149ce193daf1f20a1f369ff3e\"", "list_id": "foo.example.com",
- "member_id": 5255, "role": "member", "self_link": "http://localhost:9001/3.0/members/5255",
- "user": "http://localhost:9001/3.0/users/3332"}], "http_etag": "\"b56ddcf45c0294fc08fa6e3a5ffc70e307a65ea7\"",
+ "\"ed6f0662652ba27e9d269fe22fa4db8778515696\"", "list_id": "foo.example.com",
+ "member_id": 5536, "role": "member", "self_link": "http://localhost:9001/3.0/members/5536",
+ "user": "http://localhost:9001/3.0/users/3646"}], "http_etag": "\"8141692db9843c4459c7783da4f488ade09145c0\"",
"start": 0, "total_size": 1}'}
headers:
content-length: ['468']
@@ -213,7 +213,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",
@@ -228,7 +228,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/members/find?count=0&list_id=foo.example.com&page=1&role=member&subscriber=%2Anot_a_member%2A
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
@@ -241,7 +241,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/members/find?count=25&list_id=foo.example.com&page=1&role=member&subscriber=%2Anot_a_member%2A
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
@@ -254,7 +254,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/member/member-1@example.com
response:
body: {string: !!python/unicode ''}
@@ -265,7 +265,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/member/member-2@example.com
response:
body: {string: !!python/unicode ''}
@@ -276,7 +276,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo@example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -291,7 +291,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/members/find?count=0&list_id=foo.example.com&page=1&role=member&subscriber=%2Amember-1%2A
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
@@ -304,7 +304,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/members/find?count=25&list_id=foo.example.com&page=1&role=member&subscriber=%2Amember-1%2A
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
@@ -317,7 +317,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 ''}
@@ -328,7 +328,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersTest.test_show_members_page.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersTest.test_show_members_page.yaml
index 5c6d28b..b592d66 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersTest.test_show_members_page.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersTest.test_show_members_page.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -56,38 +56,38 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=member-1%40example.com
+ body: !!python/unicode 'display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=member-1%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/5257']
+ location: ['http://localhost:9001/3.0/members/5538']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=member-2%40example.com
+ body: !!python/unicode 'display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=member-2%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/5258']
+ location: ['http://localhost:9001/3.0/members/5539']
status: {code: 201, message: Created}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo@example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -102,7 +102,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=0&page=1
response:
body: {string: !!python/unicode '{"http_etag": "\"f14dfdb06627a6336a504885e036239a5b208434\"",
@@ -115,18 +115,18 @@
body: 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 '{"entries": [{"address": "http://localhost:9001/3.0/addresses/member-1@example.com",
"delivery_mode": "regular", "email": "member-1@example.com", "http_etag":
- "\"b16d3e2dcf3eb43156eda5d5a480881941226acb\"", "list_id": "foo.example.com",
- "member_id": 5257, "role": "member", "self_link": "http://localhost:9001/3.0/members/5257",
- "user": "http://localhost:9001/3.0/users/3332"}, {"address": "http://localhost:9001/3.0/addresses/member-2@example.com",
+ "\"b14963ec92021b5a625825168e0bf49568129e33\"", "list_id": "foo.example.com",
+ "member_id": 5538, "role": "member", "self_link": "http://localhost:9001/3.0/members/5538",
+ "user": "http://localhost:9001/3.0/users/3646"}, {"address": "http://localhost:9001/3.0/addresses/member-2@example.com",
"delivery_mode": "regular", "email": "member-2@example.com", "http_etag":
- "\"edeacebb4b500ecc23219f122031ed95d81fe030\"", "list_id": "foo.example.com",
- "member_id": 5258, "role": "member", "self_link": "http://localhost:9001/3.0/members/5258",
- "user": "http://localhost:9001/3.0/users/3333"}], "http_etag": "\"2652449e2cccadc2de8b4c90641bc07e5374db2b\"",
+ "\"80b4d0e39f2cf3ea3dd997b009cfa11100279e21\"", "list_id": "foo.example.com",
+ "member_id": 5539, "role": "member", "self_link": "http://localhost:9001/3.0/members/5539",
+ "user": "http://localhost:9001/3.0/users/3647"}], "http_etag": "\"6fe335188298f5110d01a94d4920996a27a29003\"",
"start": 0, "total_size": 2}'}
headers:
content-length: ['833']
@@ -136,14 +136,14 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
- uri: http://localhost:9001/3.0/members/5257
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/members/5538
response:
body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/member-1@example.com",
"delivery_mode": "regular", "email": "member-1@example.com", "http_etag":
- "\"b16d3e2dcf3eb43156eda5d5a480881941226acb\"", "list_id": "foo.example.com",
- "member_id": 5257, "role": "member", "self_link": "http://localhost:9001/3.0/members/5257",
- "user": "http://localhost:9001/3.0/users/3332"}'}
+ "\"b14963ec92021b5a625825168e0bf49568129e33\"", "list_id": "foo.example.com",
+ "member_id": 5538, "role": "member", "self_link": "http://localhost:9001/3.0/members/5538",
+ "user": "http://localhost:9001/3.0/users/3646"}'}
headers:
content-length: ['363']
content-type: [application/json; charset=UTF-8]
@@ -152,14 +152,14 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
- uri: http://localhost:9001/3.0/members/5258
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/members/5539
response:
body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/member-2@example.com",
"delivery_mode": "regular", "email": "member-2@example.com", "http_etag":
- "\"edeacebb4b500ecc23219f122031ed95d81fe030\"", "list_id": "foo.example.com",
- "member_id": 5258, "role": "member", "self_link": "http://localhost:9001/3.0/members/5258",
- "user": "http://localhost:9001/3.0/users/3333"}'}
+ "\"80b4d0e39f2cf3ea3dd997b009cfa11100279e21\"", "list_id": "foo.example.com",
+ "member_id": 5539, "role": "member", "self_link": "http://localhost:9001/3.0/members/5539",
+ "user": "http://localhost:9001/3.0/users/3647"}'}
headers:
content-length: ['363']
content-type: [application/json; charset=UTF-8]
@@ -168,7 +168,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 ''}
@@ -179,7 +179,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_archivers.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_archivers.yaml
index f547ec0..86275af 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_archivers.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_archivers.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -56,38 +56,38 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/69']
+ location: ['http://localhost:9001/3.0/members/5562']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/70']
+ location: ['http://localhost:9001/3.0/members/5563']
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/archivers
response:
body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"",
@@ -100,7 +100,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",
@@ -115,7 +115,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":
@@ -129,10 +129,12 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to":
- false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri":
- "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"",
- "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at":
+ "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation",
+ "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
+ "", "filter_content": false, "first_strip_reply_to": false, "footer_uri":
+ "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri":
+ "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "include_rfc2369_headers":
+ true, "info": "", "join_address": "foo-join@example.com", "last_post_at":
null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host":
"example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
"noreply@example.com", "owner_address": "foo-owner@example.com", "post_id":
@@ -142,14 +144,14 @@
"[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1777']
+ content-length: ['1937']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
response:
body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"",
@@ -162,7 +164,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
response:
body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"",
@@ -175,7 +177,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
response:
body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"",
@@ -188,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/archivers
response:
body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"",
@@ -201,7 +203,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
response:
body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"",
@@ -214,7 +216,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",
@@ -229,7 +231,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":
@@ -243,10 +245,12 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to":
- false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri":
- "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"",
- "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at":
+ "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation",
+ "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
+ "", "filter_content": false, "first_strip_reply_to": false, "footer_uri":
+ "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri":
+ "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "include_rfc2369_headers":
+ true, "info": "", "join_address": "foo-join@example.com", "last_post_at":
null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host":
"example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
"noreply@example.com", "owner_address": "foo-owner@example.com", "post_id":
@@ -256,14 +260,14 @@
"[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1777']
+ content-length: ['1937']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
response:
body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"",
@@ -276,7 +280,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
response:
body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"",
@@ -289,7 +293,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
response:
body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"",
@@ -302,7 +306,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
response:
body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"",
@@ -315,7 +319,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
response:
body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"",
@@ -328,7 +332,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
response:
body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"",
@@ -338,11 +342,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode mail-archive=False&mhonarc=False
+ body: !!python/unicode 'mail-archive=False&mhonarc=False'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode PATCH
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'PATCH'
uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
response:
body: {string: !!python/unicode ''}
@@ -350,11 +354,11 @@
content-length: ['0']
status: {code: 204, message: No Content}
- request:
- body: !!python/unicode
+ body: !!python/unicode ''
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode PATCH
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'PATCH'
uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
response:
body: {string: !!python/unicode ''}
@@ -362,11 +366,11 @@
content-length: ['0']
status: {code: 204, message: No Content}
- request:
- body: !!python/unicode
+ body: !!python/unicode ''
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode PATCH
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'PATCH'
uri: http://localhost:9001/3.0/lists/foo@example.com/config
response:
body: {string: !!python/unicode ''}
@@ -377,7 +381,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -392,7 +396,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":
@@ -406,10 +410,12 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to":
- false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri":
- "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"",
- "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at":
+ "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation",
+ "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
+ "", "filter_content": false, "first_strip_reply_to": false, "footer_uri":
+ "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri":
+ "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "include_rfc2369_headers":
+ true, "info": "", "join_address": "foo-join@example.com", "last_post_at":
null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host":
"example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
"noreply@example.com", "owner_address": "foo-owner@example.com", "post_id":
@@ -419,14 +425,14 @@
"[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1777']
+ content-length: ['1937']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
response:
body: {string: !!python/unicode '{"http_etag": "\"f8ecaeeadc4cf5d8900d7c7ed3990e675116ad31\"",
@@ -439,7 +445,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
response:
body: {string: !!python/unicode '{"http_etag": "\"f8ecaeeadc4cf5d8900d7c7ed3990e675116ad31\"",
@@ -452,7 +458,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
response:
body: {string: !!python/unicode '{"http_etag": "\"f8ecaeeadc4cf5d8900d7c7ed3990e675116ad31\"",
@@ -465,7 +471,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
response:
body: {string: !!python/unicode '{"http_etag": "\"f8ecaeeadc4cf5d8900d7c7ed3990e675116ad31\"",
@@ -478,7 +484,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
response:
body: {string: !!python/unicode '{"http_etag": "\"f8ecaeeadc4cf5d8900d7c7ed3990e675116ad31\"",
@@ -491,7 +497,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",
@@ -506,7 +512,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
response:
body: {string: !!python/unicode '{"http_etag": "\"f8ecaeeadc4cf5d8900d7c7ed3990e675116ad31\"",
@@ -519,7 +525,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -535,7 +541,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -546,26 +552,26 @@
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": "\"5412b1d994bc41ce564922865c91ec9909f8952f\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/63", "user_id": 63},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"4405ea4e8786e154d63546c973dcc73b51a2ad56\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/64",
- "user_id": 64}], "http_etag": "\"894f6ec76372a158fdb78d23b04726cef2672d7f\"",
+ "http_etag": "\"22b92f5e66a3165debc73e4408082495eeaae395\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3676", "user_id": 3676},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"448a9c5dcab22d2f1c64d14039d1a5f83a1b52cd\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3677",
+ "user_id": 3677}], "http_etag": "\"a13b703ec35cb8332bfff6f73163af26df28f4ff\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['487']
+ content-length: ['495']
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/63
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3676
response:
body: {string: !!python/unicode ''}
headers:
@@ -575,8 +581,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/64
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3677
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_archiving_policy.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_archiving_policy.yaml
index 4f2b79f..01f8af4 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_archiving_policy.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_archiving_policy.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -56,38 +56,38 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/71']
+ location: ['http://localhost:9001/3.0/members/5564']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/72']
+ location: ['http://localhost:9001/3.0/members/5565']
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/config
response:
body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify":
@@ -101,10 +101,12 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to":
- false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri":
- "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"",
- "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at":
+ "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation",
+ "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
+ "", "filter_content": false, "first_strip_reply_to": false, "footer_uri":
+ "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri":
+ "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "include_rfc2369_headers":
+ true, "info": "", "join_address": "foo-join@example.com", "last_post_at":
null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host":
"example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
"noreply@example.com", "owner_address": "foo-owner@example.com", "post_id":
@@ -114,14 +116,14 @@
"[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1777']
+ content-length: ['1937']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -136,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/config
response:
body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify":
@@ -150,10 +152,12 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to":
- false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri":
- "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"",
- "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at":
+ "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation",
+ "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
+ "", "filter_content": false, "first_strip_reply_to": false, "footer_uri":
+ "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri":
+ "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "include_rfc2369_headers":
+ true, "info": "", "join_address": "foo-join@example.com", "last_post_at":
null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host":
"example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
"noreply@example.com", "owner_address": "foo-owner@example.com", "post_id":
@@ -163,14 +167,14 @@
"[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1777']
+ content-length: ['1937']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
response:
body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"",
@@ -183,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/archivers
response:
body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"",
@@ -196,7 +200,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
response:
body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"",
@@ -209,7 +213,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
response:
body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"",
@@ -222,7 +226,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
response:
body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"",
@@ -235,7 +239,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",
@@ -250,7 +254,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":
@@ -264,10 +268,12 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to":
- false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri":
- "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"",
- "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at":
+ "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation",
+ "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
+ "", "filter_content": false, "first_strip_reply_to": false, "footer_uri":
+ "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri":
+ "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "include_rfc2369_headers":
+ true, "info": "", "join_address": "foo-join@example.com", "last_post_at":
null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host":
"example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
"noreply@example.com", "owner_address": "foo-owner@example.com", "post_id":
@@ -277,14 +283,14 @@
"[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1777']
+ content-length: ['1937']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
response:
body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"",
@@ -297,7 +303,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
response:
body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"",
@@ -310,7 +316,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
response:
body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"",
@@ -323,7 +329,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
response:
body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"",
@@ -336,7 +342,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
response:
body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"",
@@ -349,7 +355,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
response:
body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"",
@@ -359,11 +365,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode mail-archive=False&mhonarc=False&prototype=False
+ body: !!python/unicode 'mail-archive=False&mhonarc=False&prototype=False'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode PATCH
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'PATCH'
uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
response:
body: {string: !!python/unicode ''}
@@ -371,11 +377,11 @@
content-length: ['0']
status: {code: 204, message: No Content}
- request:
- body: !!python/unicode
+ body: !!python/unicode ''
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode PATCH
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'PATCH'
uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
response:
body: {string: !!python/unicode ''}
@@ -383,11 +389,11 @@
content-length: ['0']
status: {code: 204, message: No Content}
- request:
- body: !!python/unicode archive_policy=private
+ body: !!python/unicode 'archive_policy=private'
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/foo@example.com/config
response:
body: {string: !!python/unicode ''}
@@ -398,7 +404,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",
@@ -413,7 +419,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":
@@ -427,10 +433,12 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to":
- false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri":
- "", "header_uri": "", "http_etag": "\"8cca91ab15ea7d81db23298478bd41c132d71a4c\"",
- "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at":
+ "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation",
+ "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
+ "", "filter_content": false, "first_strip_reply_to": false, "footer_uri":
+ "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri":
+ "", "http_etag": "\"0aa22bb82d40e8a89f30de5f528513ed12751632\"", "include_rfc2369_headers":
+ true, "info": "", "join_address": "foo-join@example.com", "last_post_at":
null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host":
"example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
"noreply@example.com", "owner_address": "foo-owner@example.com", "post_id":
@@ -440,14 +448,14 @@
"[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1778']
+ content-length: ['1938']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
response:
body: {string: !!python/unicode '{"http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\"",
@@ -460,7 +468,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
response:
body: {string: !!python/unicode '{"http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\"",
@@ -473,7 +481,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
response:
body: {string: !!python/unicode '{"http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\"",
@@ -486,7 +494,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
response:
body: {string: !!python/unicode '{"http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\"",
@@ -499,7 +507,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
response:
body: {string: !!python/unicode '{"http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\"",
@@ -512,7 +520,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",
@@ -527,7 +535,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo@example.com/config
response:
body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify":
@@ -541,10 +549,12 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to":
- false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri":
- "", "header_uri": "", "http_etag": "\"8cca91ab15ea7d81db23298478bd41c132d71a4c\"",
- "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at":
+ "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation",
+ "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
+ "", "filter_content": false, "first_strip_reply_to": false, "footer_uri":
+ "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri":
+ "", "http_etag": "\"0aa22bb82d40e8a89f30de5f528513ed12751632\"", "include_rfc2369_headers":
+ true, "info": "", "join_address": "foo-join@example.com", "last_post_at":
null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host":
"example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
"noreply@example.com", "owner_address": "foo-owner@example.com", "post_id":
@@ -554,14 +564,14 @@
"[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1778']
+ content-length: ['1938']
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/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -577,7 +587,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -588,26 +598,26 @@
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": "\"eac05161a72ee0876a709658d291d4371574fe41\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/65", "user_id": 65},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"0a53b06deb9b78ed4cdfa9b249ec3f8a688ba2ab\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/66",
- "user_id": 66}], "http_etag": "\"0a6266a1acaaa829b7a9e895597b2e134c79abdd\"",
+ "http_etag": "\"81ab63d85f87cec62bada00d5ab13ad661fc3a89\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3678", "user_id": 3678},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"80d3c74ffd30675c61e387239bf854feeddd10bb\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3679",
+ "user_id": 3679}], "http_etag": "\"70d4904db9803494637d64ea3b939a04061e98bb\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['487']
+ content-length: ['495']
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/65
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3678
response:
body: {string: !!python/unicode ''}
headers:
@@ -617,8 +627,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/66
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3679
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_bug_117.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_bug_117.yaml
index 3428c44..89c9883 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_bug_117.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_bug_117.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -56,38 +56,38 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/73']
+ location: ['http://localhost:9001/3.0/members/5566']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/74']
+ location: ['http://localhost:9001/3.0/members/5567']
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/config
response:
body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify":
@@ -101,10 +101,12 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to":
- false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri":
- "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"",
- "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at":
+ "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation",
+ "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
+ "", "filter_content": false, "first_strip_reply_to": false, "footer_uri":
+ "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri":
+ "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "include_rfc2369_headers":
+ true, "info": "", "join_address": "foo-join@example.com", "last_post_at":
null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host":
"example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
"noreply@example.com", "owner_address": "foo-owner@example.com", "post_id":
@@ -114,14 +116,14 @@
"[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1777']
+ content-length: ['1937']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -136,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/config
response:
body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify":
@@ -150,10 +152,12 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to":
- false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri":
- "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"",
- "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at":
+ "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation",
+ "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
+ "", "filter_content": false, "first_strip_reply_to": false, "footer_uri":
+ "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri":
+ "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "include_rfc2369_headers":
+ true, "info": "", "join_address": "foo-join@example.com", "last_post_at":
null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host":
"example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
"noreply@example.com", "owner_address": "foo-owner@example.com", "post_id":
@@ -163,14 +167,27 @@
"[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1777']
+ content-length: ['1937']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/system/pipelines
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"ff8a7af97caf24e6ca24c5baed447ff532bd1b4f\"",
+ "pipelines": ["default-owner-pipeline", "default-posting-pipeline", "virgin"]}'}
+ headers:
+ content-length: ['140']
+ content-type: [application/json; charset=UTF-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",
@@ -185,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":
@@ -199,10 +216,12 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to":
- false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri":
- "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"",
- "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at":
+ "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation",
+ "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
+ "", "filter_content": false, "first_strip_reply_to": false, "footer_uri":
+ "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri":
+ "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "include_rfc2369_headers":
+ true, "info": "", "join_address": "foo-join@example.com", "last_post_at":
null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host":
"example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
"noreply@example.com", "owner_address": "foo-owner@example.com", "post_id":
@@ -212,15 +231,28 @@
"[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1777']
+ content-length: ['1937']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode first_strip_reply_to=True
+ body: null
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode PATCH
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/system/pipelines
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"ff8a7af97caf24e6ca24c5baed447ff532bd1b4f\"",
+ "pipelines": ["default-owner-pipeline", "default-posting-pipeline", "virgin"]}'}
+ headers:
+ content-length: ['140']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: !!python/unicode 'first_strip_reply_to=True'
+ headers:
+ accept-encoding: ['gzip, deflate']
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'PATCH'
uri: http://localhost:9001/3.0/lists/foo@example.com/config
response:
body: {string: !!python/unicode ''}
@@ -231,7 +263,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",
@@ -246,7 +278,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":
@@ -260,10 +292,12 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to":
- true, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri":
- "", "header_uri": "", "http_etag": "\"4b61b7f4b3415feea7cf1d80f10149e39dc547dd\"",
- "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at":
+ "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation",
+ "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
+ "", "filter_content": false, "first_strip_reply_to": true, "footer_uri": "",
+ "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri":
+ "", "http_etag": "\"3a427f1fad967c2859ac7619bd6a23ee6283801f\"", "include_rfc2369_headers":
+ true, "info": "", "join_address": "foo-join@example.com", "last_post_at":
null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host":
"example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
"noreply@example.com", "owner_address": "foo-owner@example.com", "post_id":
@@ -273,14 +307,27 @@
"[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1776']
+ content-length: ['1936']
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/system/pipelines
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"ff8a7af97caf24e6ca24c5baed447ff532bd1b4f\"",
+ "pipelines": ["default-owner-pipeline", "default-posting-pipeline", "virgin"]}'}
+ headers:
+ content-length: ['140']
+ content-type: [application/json; charset=UTF-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",
@@ -295,7 +342,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":
@@ -309,10 +356,12 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to":
- true, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri":
- "", "header_uri": "", "http_etag": "\"4b61b7f4b3415feea7cf1d80f10149e39dc547dd\"",
- "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at":
+ "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation",
+ "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
+ "", "filter_content": false, "first_strip_reply_to": true, "footer_uri": "",
+ "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri":
+ "", "http_etag": "\"3a427f1fad967c2859ac7619bd6a23ee6283801f\"", "include_rfc2369_headers":
+ true, "info": "", "join_address": "foo-join@example.com", "last_post_at":
null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host":
"example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
"noreply@example.com", "owner_address": "foo-owner@example.com", "post_id":
@@ -322,14 +371,14 @@
"[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1776']
+ content-length: ['1936']
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/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -345,7 +394,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -356,26 +405,26 @@
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": "\"8f98b174e9b917748477c21a7ffd7b01a635caa8\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/67", "user_id": 67},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"6876e6a47eb6204326d7501101c555715f56ecb2\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/68",
- "user_id": 68}], "http_etag": "\"5421a56ef50178a772be63f2053c096481d8f520\"",
+ "http_etag": "\"8e7132bf6fb536a2745eb479b3dfcf6a4eedbfbe\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3680", "user_id": 3680},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"c3125cd6244064c9b71b9035349a9493f3ccb4bd\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3681",
+ "user_id": 3681}], "http_etag": "\"c20070e60eaa404ff9f9a1061b2c79f92c57ba3d\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['487']
+ content-length: ['495']
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/67
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3680
response:
body: {string: !!python/unicode ''}
headers:
@@ -385,8 +434,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/68
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3681
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_list_identity_allow_empty_prefix_and_desc.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_list_identity_allow_empty_prefix_and_desc.yaml
index d4de9aa..a7a8808 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_list_identity_allow_empty_prefix_and_desc.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_list_identity_allow_empty_prefix_and_desc.yaml
@@ -67,7 +67,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/4']
+ location: ['http://localhost:9001/3.0/members/5568']
status: {code: 201, message: Created}
- request:
body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com'
@@ -81,7 +81,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/5']
+ location: ['http://localhost:9001/3.0/members/5569']
status: {code: 201, message: Created}
- request:
body: null
@@ -101,20 +101,22 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to":
- false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri":
- "", "header_uri": "", "http_etag": "\"e752899e2a568ccaad1d891e72c137a4cbc82d5d\"",
- "include_rfc2369_headers": true, "info": "", "join_address": "foo-join@example.com",
- "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name":
- "foo", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
- 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com",
- "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
+ "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation",
+ "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
+ "", "filter_content": false, "first_strip_reply_to": false, "footer_uri":
+ "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri":
+ "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "include_rfc2369_headers":
+ true, "info": "", "join_address": "foo-join@example.com", "last_post_at":
+ null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host":
+ "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
+ "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id":
+ 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
"reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address":
"foo-request@example.com", "send_welcome_message": true, "subject_prefix":
"[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1789']
+ content-length: ['1937']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -150,24 +152,26 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to":
- false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri":
- "", "header_uri": "", "http_etag": "\"e752899e2a568ccaad1d891e72c137a4cbc82d5d\"",
- "include_rfc2369_headers": true, "info": "", "join_address": "foo-join@example.com",
- "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name":
- "foo", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
- 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com",
- "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
+ "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation",
+ "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
+ "", "filter_content": false, "first_strip_reply_to": false, "footer_uri":
+ "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri":
+ "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "include_rfc2369_headers":
+ true, "info": "", "join_address": "foo-join@example.com", "last_post_at":
+ null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host":
+ "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
+ "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id":
+ 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
"reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address":
"foo-request@example.com", "send_welcome_message": true, "subject_prefix":
"[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1789']
+ content-length: ['1937']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode 'display_name=&subject_prefix='
+ body: !!python/unicode 'subject_prefix=&display_name='
headers:
accept-encoding: ['gzip, deflate']
!!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
@@ -211,20 +215,22 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "", "filter_content": false, "first_strip_reply_to":
- false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri":
- "", "header_uri": "", "http_etag": "\"a72e55f425f88527d245e4536c1dae1a072a3171\"",
- "include_rfc2369_headers": true, "info": "", "join_address": "foo-join@example.com",
- "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name":
- "foo", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
- 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com",
- "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
+ "digests_enabled": true, "display_name": "", "dmarc_mitigate_action": "no_mitigation",
+ "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
+ "", "filter_content": false, "first_strip_reply_to": false, "footer_uri":
+ "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri":
+ "", "http_etag": "\"10263f1848a75236ab6a2b11a83f3a77e92f29e6\"", "include_rfc2369_headers":
+ true, "info": "", "join_address": "foo-join@example.com", "last_post_at":
+ null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host":
+ "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
+ "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id":
+ 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
"reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address":
"foo-request@example.com", "send_welcome_message": true, "subject_prefix":
"", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1780']
+ content-length: ['1928']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -260,20 +266,22 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "", "filter_content": false, "first_strip_reply_to":
- false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri":
- "", "header_uri": "", "http_etag": "\"a72e55f425f88527d245e4536c1dae1a072a3171\"",
- "include_rfc2369_headers": true, "info": "", "join_address": "foo-join@example.com",
- "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name":
- "foo", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
- 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com",
- "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
+ "digests_enabled": true, "display_name": "", "dmarc_mitigate_action": "no_mitigation",
+ "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
+ "", "filter_content": false, "first_strip_reply_to": false, "footer_uri":
+ "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri":
+ "", "http_etag": "\"10263f1848a75236ab6a2b11a83f3a77e92f29e6\"", "include_rfc2369_headers":
+ true, "info": "", "join_address": "foo-join@example.com", "last_post_at":
+ null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host":
+ "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
+ "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id":
+ 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
"reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address":
"foo-request@example.com", "send_welcome_message": true, "subject_prefix":
"", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1780']
+ content-length: ['1928']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -311,16 +319,14 @@
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23",
- "http_etag": "\"bb1c2e6094a96b17e2d5dbf487291f7667f69f75\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/3", "user_id": 3}, {"created_on":
- "2005-08-01T07:49:23", "http_etag": "\"c1dcbf16536eb2e2151441f4bce2989ab1dab30b\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/4",
- "user_id": 4}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"637c12d15eb0203c9ffac9ea2d5ac8605d18e38d\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/5",
- "user_id": 5}], "http_etag": "\"a05cdb95d5f49c1a8d1c561c6836ef388371f682\"",
- "start": 0, "total_size": 3}'}
+ "http_etag": "\"32533ee15b8eae37bb5875efef3798fcc8e394f4\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3682", "user_id": 3682},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"594db5d911f3d69063e7902fbd5192a94f0eb08d\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3683",
+ "user_id": 3683}], "http_etag": "\"9803613f727f9d57f8900e2bfd2931e19cdbf5d4\"",
+ "start": 0, "total_size": 2}'}
headers:
- content-length: ['673']
+ content-length: ['495']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -328,7 +334,7 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'DELETE'
- uri: http://localhost:9001/3.0/users/3
+ uri: http://localhost:9001/3.0/users/3682
response:
body: {string: !!python/unicode ''}
headers:
@@ -339,18 +345,7 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'DELETE'
- uri: http://localhost:9001/3.0/users/4
- response:
- body: {string: !!python/unicode ''}
- headers:
- content-length: ['0']
- status: {code: 204, message: No Content}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode 'DELETE'
- uri: http://localhost:9001/3.0/users/5
+ uri: http://localhost:9001/3.0/users/3683
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_not_accessible_for_moderator.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_not_accessible_for_moderator.yaml
index 21dccaf..a497f46 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_not_accessible_for_moderator.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_not_accessible_for_moderator.yaml
@@ -67,7 +67,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/44']
+ location: ['http://localhost:9001/3.0/members/5570']
status: {code: 201, message: Created}
- request:
body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com'
@@ -81,7 +81,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/45']
+ location: ['http://localhost:9001/3.0/members/5571']
status: {code: 201, message: Created}
- request:
body: null
@@ -106,13 +106,13 @@
uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com",
- "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"aba218d3500566bef71cab05f5ac7f38884f52ed\"",
- "list_id": "foo.example.com", "member_id": 44, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/44", "user":
- "http://localhost:9001/3.0/users/43"}], "http_etag": "\"d83a6aa6ecf6c80e4a03834af53bc15a8c49ae73\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"5b25d4e3816d61d213e6c95c91e603c1784d3b42\"",
+ "list_id": "foo.example.com", "member_id": 5570, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5570", "user":
+ "http://localhost:9001/3.0/users/3684"}], "http_etag": "\"82b30d6ed520d43dde43cedc872a9d32b3fd366e\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['486']
+ content-length: ['492']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -124,13 +124,13 @@
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com",
"delivery_mode": "regular", "email": "moderator@example.com", "http_etag":
- "\"96f15c078b1e53c898a7507a02195fa517a8cbd8\"", "list_id": "foo.example.com",
- "member_id": 45, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/45", "user": "http://localhost:9001/3.0/users/44"}],
- "http_etag": "\"49fb53c56ccd1a63736bc6c634123a2689a734d0\"", "start": 0, "total_size":
+ "\"8fc216b704f9af898c6cb29c99949aa574b17207\"", "list_id": "foo.example.com",
+ "member_id": 5571, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5571", "user": "http://localhost:9001/3.0/users/3685"}],
+ "http_etag": "\"70bc0193ea3ba07a4ea0fb9c4cb383808118016d\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['498']
+ content-length: ['504']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -156,13 +156,13 @@
uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com",
- "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"aba218d3500566bef71cab05f5ac7f38884f52ed\"",
- "list_id": "foo.example.com", "member_id": 44, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/44", "user":
- "http://localhost:9001/3.0/users/43"}], "http_etag": "\"d83a6aa6ecf6c80e4a03834af53bc15a8c49ae73\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"5b25d4e3816d61d213e6c95c91e603c1784d3b42\"",
+ "list_id": "foo.example.com", "member_id": 5570, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5570", "user":
+ "http://localhost:9001/3.0/users/3684"}], "http_etag": "\"82b30d6ed520d43dde43cedc872a9d32b3fd366e\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['486']
+ content-length: ['492']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -174,13 +174,13 @@
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com",
"delivery_mode": "regular", "email": "moderator@example.com", "http_etag":
- "\"96f15c078b1e53c898a7507a02195fa517a8cbd8\"", "list_id": "foo.example.com",
- "member_id": 45, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/45", "user": "http://localhost:9001/3.0/users/44"}],
- "http_etag": "\"49fb53c56ccd1a63736bc6c634123a2689a734d0\"", "start": 0, "total_size":
+ "\"8fc216b704f9af898c6cb29c99949aa574b17207\"", "list_id": "foo.example.com",
+ "member_id": 5571, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5571", "user": "http://localhost:9001/3.0/users/3685"}],
+ "http_etag": "\"70bc0193ea3ba07a4ea0fb9c4cb383808118016d\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['498']
+ content-length: ['504']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -206,13 +206,13 @@
uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com",
- "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"aba218d3500566bef71cab05f5ac7f38884f52ed\"",
- "list_id": "foo.example.com", "member_id": 44, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/44", "user":
- "http://localhost:9001/3.0/users/43"}], "http_etag": "\"d83a6aa6ecf6c80e4a03834af53bc15a8c49ae73\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"5b25d4e3816d61d213e6c95c91e603c1784d3b42\"",
+ "list_id": "foo.example.com", "member_id": 5570, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5570", "user":
+ "http://localhost:9001/3.0/users/3684"}], "http_etag": "\"82b30d6ed520d43dde43cedc872a9d32b3fd366e\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['486']
+ content-length: ['492']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -224,13 +224,13 @@
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com",
"delivery_mode": "regular", "email": "moderator@example.com", "http_etag":
- "\"96f15c078b1e53c898a7507a02195fa517a8cbd8\"", "list_id": "foo.example.com",
- "member_id": 45, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/45", "user": "http://localhost:9001/3.0/users/44"}],
- "http_etag": "\"49fb53c56ccd1a63736bc6c634123a2689a734d0\"", "start": 0, "total_size":
+ "\"8fc216b704f9af898c6cb29c99949aa574b17207\"", "list_id": "foo.example.com",
+ "member_id": 5571, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5571", "user": "http://localhost:9001/3.0/users/3685"}],
+ "http_etag": "\"70bc0193ea3ba07a4ea0fb9c4cb383808118016d\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['498']
+ content-length: ['504']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -256,13 +256,13 @@
uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com",
- "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"aba218d3500566bef71cab05f5ac7f38884f52ed\"",
- "list_id": "foo.example.com", "member_id": 44, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/44", "user":
- "http://localhost:9001/3.0/users/43"}], "http_etag": "\"d83a6aa6ecf6c80e4a03834af53bc15a8c49ae73\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"5b25d4e3816d61d213e6c95c91e603c1784d3b42\"",
+ "list_id": "foo.example.com", "member_id": 5570, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5570", "user":
+ "http://localhost:9001/3.0/users/3684"}], "http_etag": "\"82b30d6ed520d43dde43cedc872a9d32b3fd366e\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['486']
+ content-length: ['492']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -274,13 +274,13 @@
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com",
"delivery_mode": "regular", "email": "moderator@example.com", "http_etag":
- "\"96f15c078b1e53c898a7507a02195fa517a8cbd8\"", "list_id": "foo.example.com",
- "member_id": 45, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/45", "user": "http://localhost:9001/3.0/users/44"}],
- "http_etag": "\"49fb53c56ccd1a63736bc6c634123a2689a734d0\"", "start": 0, "total_size":
+ "\"8fc216b704f9af898c6cb29c99949aa574b17207\"", "list_id": "foo.example.com",
+ "member_id": 5571, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5571", "user": "http://localhost:9001/3.0/users/3685"}],
+ "http_etag": "\"70bc0193ea3ba07a4ea0fb9c4cb383808118016d\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['498']
+ content-length: ['504']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -306,13 +306,13 @@
uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com",
- "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"aba218d3500566bef71cab05f5ac7f38884f52ed\"",
- "list_id": "foo.example.com", "member_id": 44, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/44", "user":
- "http://localhost:9001/3.0/users/43"}], "http_etag": "\"d83a6aa6ecf6c80e4a03834af53bc15a8c49ae73\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"5b25d4e3816d61d213e6c95c91e603c1784d3b42\"",
+ "list_id": "foo.example.com", "member_id": 5570, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5570", "user":
+ "http://localhost:9001/3.0/users/3684"}], "http_etag": "\"82b30d6ed520d43dde43cedc872a9d32b3fd366e\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['486']
+ content-length: ['492']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -324,13 +324,13 @@
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com",
"delivery_mode": "regular", "email": "moderator@example.com", "http_etag":
- "\"96f15c078b1e53c898a7507a02195fa517a8cbd8\"", "list_id": "foo.example.com",
- "member_id": 45, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/45", "user": "http://localhost:9001/3.0/users/44"}],
- "http_etag": "\"49fb53c56ccd1a63736bc6c634123a2689a734d0\"", "start": 0, "total_size":
+ "\"8fc216b704f9af898c6cb29c99949aa574b17207\"", "list_id": "foo.example.com",
+ "member_id": 5571, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5571", "user": "http://localhost:9001/3.0/users/3685"}],
+ "http_etag": "\"70bc0193ea3ba07a4ea0fb9c4cb383808118016d\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['498']
+ content-length: ['504']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -356,13 +356,13 @@
uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com",
- "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"aba218d3500566bef71cab05f5ac7f38884f52ed\"",
- "list_id": "foo.example.com", "member_id": 44, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/44", "user":
- "http://localhost:9001/3.0/users/43"}], "http_etag": "\"d83a6aa6ecf6c80e4a03834af53bc15a8c49ae73\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"5b25d4e3816d61d213e6c95c91e603c1784d3b42\"",
+ "list_id": "foo.example.com", "member_id": 5570, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5570", "user":
+ "http://localhost:9001/3.0/users/3684"}], "http_etag": "\"82b30d6ed520d43dde43cedc872a9d32b3fd366e\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['486']
+ content-length: ['492']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -374,13 +374,13 @@
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com",
"delivery_mode": "regular", "email": "moderator@example.com", "http_etag":
- "\"96f15c078b1e53c898a7507a02195fa517a8cbd8\"", "list_id": "foo.example.com",
- "member_id": 45, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/45", "user": "http://localhost:9001/3.0/users/44"}],
- "http_etag": "\"49fb53c56ccd1a63736bc6c634123a2689a734d0\"", "start": 0, "total_size":
+ "\"8fc216b704f9af898c6cb29c99949aa574b17207\"", "list_id": "foo.example.com",
+ "member_id": 5571, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5571", "user": "http://localhost:9001/3.0/users/3685"}],
+ "http_etag": "\"70bc0193ea3ba07a4ea0fb9c4cb383808118016d\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['498']
+ content-length: ['504']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -406,13 +406,13 @@
uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com",
- "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"aba218d3500566bef71cab05f5ac7f38884f52ed\"",
- "list_id": "foo.example.com", "member_id": 44, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/44", "user":
- "http://localhost:9001/3.0/users/43"}], "http_etag": "\"d83a6aa6ecf6c80e4a03834af53bc15a8c49ae73\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"5b25d4e3816d61d213e6c95c91e603c1784d3b42\"",
+ "list_id": "foo.example.com", "member_id": 5570, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5570", "user":
+ "http://localhost:9001/3.0/users/3684"}], "http_etag": "\"82b30d6ed520d43dde43cedc872a9d32b3fd366e\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['486']
+ content-length: ['492']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -424,13 +424,13 @@
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com",
"delivery_mode": "regular", "email": "moderator@example.com", "http_etag":
- "\"96f15c078b1e53c898a7507a02195fa517a8cbd8\"", "list_id": "foo.example.com",
- "member_id": 45, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/45", "user": "http://localhost:9001/3.0/users/44"}],
- "http_etag": "\"49fb53c56ccd1a63736bc6c634123a2689a734d0\"", "start": 0, "total_size":
+ "\"8fc216b704f9af898c6cb29c99949aa574b17207\"", "list_id": "foo.example.com",
+ "member_id": 5571, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5571", "user": "http://localhost:9001/3.0/users/3685"}],
+ "http_etag": "\"70bc0193ea3ba07a4ea0fb9c4cb383808118016d\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['498']
+ content-length: ['504']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -456,13 +456,13 @@
uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com",
- "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"aba218d3500566bef71cab05f5ac7f38884f52ed\"",
- "list_id": "foo.example.com", "member_id": 44, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/44", "user":
- "http://localhost:9001/3.0/users/43"}], "http_etag": "\"d83a6aa6ecf6c80e4a03834af53bc15a8c49ae73\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"5b25d4e3816d61d213e6c95c91e603c1784d3b42\"",
+ "list_id": "foo.example.com", "member_id": 5570, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5570", "user":
+ "http://localhost:9001/3.0/users/3684"}], "http_etag": "\"82b30d6ed520d43dde43cedc872a9d32b3fd366e\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['486']
+ content-length: ['492']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -474,13 +474,13 @@
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com",
"delivery_mode": "regular", "email": "moderator@example.com", "http_etag":
- "\"96f15c078b1e53c898a7507a02195fa517a8cbd8\"", "list_id": "foo.example.com",
- "member_id": 45, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/45", "user": "http://localhost:9001/3.0/users/44"}],
- "http_etag": "\"49fb53c56ccd1a63736bc6c634123a2689a734d0\"", "start": 0, "total_size":
+ "\"8fc216b704f9af898c6cb29c99949aa574b17207\"", "list_id": "foo.example.com",
+ "member_id": 5571, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5571", "user": "http://localhost:9001/3.0/users/3685"}],
+ "http_etag": "\"70bc0193ea3ba07a4ea0fb9c4cb383808118016d\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['498']
+ content-length: ['504']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -518,14 +518,14 @@
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23",
- "http_etag": "\"8baa884afd4f798ea7a841b7db104287b4f1175a\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/43", "user_id": 43},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"6d612d2536821ffdb84398d1385fa03883c014cf\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/44",
- "user_id": 44}], "http_etag": "\"a814c9af37c3cf5a0676ccc6a8f43537cdb17da1\"",
+ "http_etag": "\"077bd423dfa793eb267f48349f4cf3e3de7212b6\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3684", "user_id": 3684},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"073957448cd40d35b478fc3e62c4a637e31a37a5\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3685",
+ "user_id": 3685}], "http_etag": "\"93d2d81b0a515e35a7af307e71b2b301fe928ed5\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['487']
+ content-length: ['495']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -533,7 +533,7 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'DELETE'
- uri: http://localhost:9001/3.0/users/43
+ uri: http://localhost:9001/3.0/users/3684
response:
body: {string: !!python/unicode ''}
headers:
@@ -544,7 +544,7 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'DELETE'
- uri: http://localhost:9001/3.0/users/44
+ uri: http://localhost:9001/3.0/users/3685
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_accessible_for_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_accessible_for_owner.yaml
index eda469a..b8ff344 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_accessible_for_owner.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_accessible_for_owner.yaml
@@ -67,7 +67,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/42']
+ location: ['http://localhost:9001/3.0/members/5572']
status: {code: 201, message: Created}
- request:
body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com'
@@ -81,7 +81,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/43']
+ location: ['http://localhost:9001/3.0/members/5573']
status: {code: 201, message: Created}
- request:
body: null
@@ -106,13 +106,13 @@
uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com",
- "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"310b150e602b357e829fbe91272883e246675ed5\"",
- "list_id": "foo.example.com", "member_id": 42, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/42", "user":
- "http://localhost:9001/3.0/users/41"}], "http_etag": "\"2f706d8efa6a49a4186c9773a8c1440cbb05e516\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"add2fa2cac49907ba2ad840b737827e8937f2db4\"",
+ "list_id": "foo.example.com", "member_id": 5572, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5572", "user":
+ "http://localhost:9001/3.0/users/3686"}], "http_etag": "\"326a8fe9573b4338b939fd2e3eb8a829821a02e3\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['486']
+ content-length: ['492']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -124,13 +124,127 @@
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com",
"delivery_mode": "regular", "email": "moderator@example.com", "http_etag":
- "\"516055c376593828d3349d50df130052c8094352\"", "list_id": "foo.example.com",
- "member_id": 43, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/43", "user": "http://localhost:9001/3.0/users/42"}],
- "http_etag": "\"37f1f4348093cc2966f95df0d8d5838eee29f794\"", "start": 0, "total_size":
+ "\"001e1e23a5fa023843318717cbf9162583678c8f\"", "list_id": "foo.example.com",
+ "member_id": 5573, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5573", "user": "http://localhost:9001/3.0/users/3687"}],
+ "http_etag": "\"555c315968eee0403d87a89a3ed3fba2060aafc3\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['498']
+ content-length: ['504']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/foo.example.com
+ response:
+ body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
+ "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com",
+ "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link":
+ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'}
+ headers:
+ content-length: ['294']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/foo@example.com/config
+ response:
+ body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify":
+ true, "admin_notify_mchanges": false, "administrivia": true, "advertised":
+ true, "allow_list_posts": true, "anonymous_list": false, "archive_policy":
+ "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests":
+ "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "",
+ "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address":
+ "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext":
+ false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer",
+ "default_nonmember_action": "hold", "description": "", "digest_footer_uri":
+ "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
+ true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
+ "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation",
+ "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
+ "", "filter_content": false, "first_strip_reply_to": false, "footer_uri":
+ "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri":
+ "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "include_rfc2369_headers":
+ true, "info": "", "join_address": "foo-join@example.com", "last_post_at":
+ null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host":
+ "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
+ "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id":
+ 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
+ "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address":
+ "foo-request@example.com", "send_welcome_message": true, "subject_prefix":
+ "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
+ ""}'}
+ headers:
+ content-length: ['1937']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/system/pipelines
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"ff8a7af97caf24e6ca24c5baed447ff532bd1b4f\"",
+ "pipelines": ["default-owner-pipeline", "default-posting-pipeline", "virgin"]}'}
+ headers:
+ content-length: ['140']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/foo.example.com
+ response:
+ body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
+ "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com",
+ "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link":
+ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'}
+ headers:
+ content-length: ['294']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
+ response:
+ body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"add2fa2cac49907ba2ad840b737827e8937f2db4\"",
+ "list_id": "foo.example.com", "member_id": 5572, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5572", "user":
+ "http://localhost:9001/3.0/users/3686"}], "http_etag": "\"326a8fe9573b4338b939fd2e3eb8a829821a02e3\"",
+ "start": 0, "total_size": 1}'}
+ headers:
+ content-length: ['492']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
+ 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":
+ "\"001e1e23a5fa023843318717cbf9162583678c8f\"", "list_id": "foo.example.com",
+ "member_id": 5573, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5573", "user": "http://localhost:9001/3.0/users/3687"}],
+ "http_etag": "\"555c315968eee0403d87a89a3ed3fba2060aafc3\"", "start": 0, "total_size":
+ 1}'}
+ headers:
+ content-length: ['504']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -207,13 +321,13 @@
uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com",
- "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"310b150e602b357e829fbe91272883e246675ed5\"",
- "list_id": "foo.example.com", "member_id": 42, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/42", "user":
- "http://localhost:9001/3.0/users/41"}], "http_etag": "\"2f706d8efa6a49a4186c9773a8c1440cbb05e516\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"add2fa2cac49907ba2ad840b737827e8937f2db4\"",
+ "list_id": "foo.example.com", "member_id": 5572, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5572", "user":
+ "http://localhost:9001/3.0/users/3686"}], "http_etag": "\"326a8fe9573b4338b939fd2e3eb8a829821a02e3\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['486']
+ content-length: ['492']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -225,13 +339,13 @@
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com",
"delivery_mode": "regular", "email": "moderator@example.com", "http_etag":
- "\"516055c376593828d3349d50df130052c8094352\"", "list_id": "foo.example.com",
- "member_id": 43, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/43", "user": "http://localhost:9001/3.0/users/42"}],
- "http_etag": "\"37f1f4348093cc2966f95df0d8d5838eee29f794\"", "start": 0, "total_size":
+ "\"001e1e23a5fa023843318717cbf9162583678c8f\"", "list_id": "foo.example.com",
+ "member_id": 5573, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5573", "user": "http://localhost:9001/3.0/users/3687"}],
+ "http_etag": "\"555c315968eee0403d87a89a3ed3fba2060aafc3\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['498']
+ content-length: ['504']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -373,13 +487,13 @@
uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com",
- "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"310b150e602b357e829fbe91272883e246675ed5\"",
- "list_id": "foo.example.com", "member_id": 42, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/42", "user":
- "http://localhost:9001/3.0/users/41"}], "http_etag": "\"2f706d8efa6a49a4186c9773a8c1440cbb05e516\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"add2fa2cac49907ba2ad840b737827e8937f2db4\"",
+ "list_id": "foo.example.com", "member_id": 5572, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5572", "user":
+ "http://localhost:9001/3.0/users/3686"}], "http_etag": "\"326a8fe9573b4338b939fd2e3eb8a829821a02e3\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['486']
+ content-length: ['492']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -391,13 +505,13 @@
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com",
"delivery_mode": "regular", "email": "moderator@example.com", "http_etag":
- "\"516055c376593828d3349d50df130052c8094352\"", "list_id": "foo.example.com",
- "member_id": 43, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/43", "user": "http://localhost:9001/3.0/users/42"}],
- "http_etag": "\"37f1f4348093cc2966f95df0d8d5838eee29f794\"", "start": 0, "total_size":
+ "\"001e1e23a5fa023843318717cbf9162583678c8f\"", "list_id": "foo.example.com",
+ "member_id": 5573, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5573", "user": "http://localhost:9001/3.0/users/3687"}],
+ "http_etag": "\"555c315968eee0403d87a89a3ed3fba2060aafc3\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['498']
+ content-length: ['504']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -474,13 +588,13 @@
uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com",
- "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"310b150e602b357e829fbe91272883e246675ed5\"",
- "list_id": "foo.example.com", "member_id": 42, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/42", "user":
- "http://localhost:9001/3.0/users/41"}], "http_etag": "\"2f706d8efa6a49a4186c9773a8c1440cbb05e516\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"add2fa2cac49907ba2ad840b737827e8937f2db4\"",
+ "list_id": "foo.example.com", "member_id": 5572, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5572", "user":
+ "http://localhost:9001/3.0/users/3686"}], "http_etag": "\"326a8fe9573b4338b939fd2e3eb8a829821a02e3\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['486']
+ content-length: ['492']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -492,13 +606,13 @@
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com",
"delivery_mode": "regular", "email": "moderator@example.com", "http_etag":
- "\"516055c376593828d3349d50df130052c8094352\"", "list_id": "foo.example.com",
- "member_id": 43, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/43", "user": "http://localhost:9001/3.0/users/42"}],
- "http_etag": "\"37f1f4348093cc2966f95df0d8d5838eee29f794\"", "start": 0, "total_size":
+ "\"001e1e23a5fa023843318717cbf9162583678c8f\"", "list_id": "foo.example.com",
+ "member_id": 5573, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5573", "user": "http://localhost:9001/3.0/users/3687"}],
+ "http_etag": "\"555c315968eee0403d87a89a3ed3fba2060aafc3\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['498']
+ content-length: ['504']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -575,13 +689,13 @@
uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com",
- "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"310b150e602b357e829fbe91272883e246675ed5\"",
- "list_id": "foo.example.com", "member_id": 42, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/42", "user":
- "http://localhost:9001/3.0/users/41"}], "http_etag": "\"2f706d8efa6a49a4186c9773a8c1440cbb05e516\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"add2fa2cac49907ba2ad840b737827e8937f2db4\"",
+ "list_id": "foo.example.com", "member_id": 5572, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5572", "user":
+ "http://localhost:9001/3.0/users/3686"}], "http_etag": "\"326a8fe9573b4338b939fd2e3eb8a829821a02e3\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['486']
+ content-length: ['492']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -593,13 +707,13 @@
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com",
"delivery_mode": "regular", "email": "moderator@example.com", "http_etag":
- "\"516055c376593828d3349d50df130052c8094352\"", "list_id": "foo.example.com",
- "member_id": 43, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/43", "user": "http://localhost:9001/3.0/users/42"}],
- "http_etag": "\"37f1f4348093cc2966f95df0d8d5838eee29f794\"", "start": 0, "total_size":
+ "\"001e1e23a5fa023843318717cbf9162583678c8f\"", "list_id": "foo.example.com",
+ "member_id": 5573, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5573", "user": "http://localhost:9001/3.0/users/3687"}],
+ "http_etag": "\"555c315968eee0403d87a89a3ed3fba2060aafc3\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['498']
+ content-length: ['504']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -676,13 +790,13 @@
uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com",
- "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"310b150e602b357e829fbe91272883e246675ed5\"",
- "list_id": "foo.example.com", "member_id": 42, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/42", "user":
- "http://localhost:9001/3.0/users/41"}], "http_etag": "\"2f706d8efa6a49a4186c9773a8c1440cbb05e516\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"add2fa2cac49907ba2ad840b737827e8937f2db4\"",
+ "list_id": "foo.example.com", "member_id": 5572, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5572", "user":
+ "http://localhost:9001/3.0/users/3686"}], "http_etag": "\"326a8fe9573b4338b939fd2e3eb8a829821a02e3\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['486']
+ content-length: ['492']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -694,13 +808,13 @@
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com",
"delivery_mode": "regular", "email": "moderator@example.com", "http_etag":
- "\"516055c376593828d3349d50df130052c8094352\"", "list_id": "foo.example.com",
- "member_id": 43, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/43", "user": "http://localhost:9001/3.0/users/42"}],
- "http_etag": "\"37f1f4348093cc2966f95df0d8d5838eee29f794\"", "start": 0, "total_size":
+ "\"001e1e23a5fa023843318717cbf9162583678c8f\"", "list_id": "foo.example.com",
+ "member_id": 5573, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5573", "user": "http://localhost:9001/3.0/users/3687"}],
+ "http_etag": "\"555c315968eee0403d87a89a3ed3fba2060aafc3\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['498']
+ content-length: ['504']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -777,13 +891,13 @@
uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com",
- "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"310b150e602b357e829fbe91272883e246675ed5\"",
- "list_id": "foo.example.com", "member_id": 42, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/42", "user":
- "http://localhost:9001/3.0/users/41"}], "http_etag": "\"2f706d8efa6a49a4186c9773a8c1440cbb05e516\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"add2fa2cac49907ba2ad840b737827e8937f2db4\"",
+ "list_id": "foo.example.com", "member_id": 5572, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5572", "user":
+ "http://localhost:9001/3.0/users/3686"}], "http_etag": "\"326a8fe9573b4338b939fd2e3eb8a829821a02e3\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['486']
+ content-length: ['492']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -795,114 +909,13 @@
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com",
"delivery_mode": "regular", "email": "moderator@example.com", "http_etag":
- "\"516055c376593828d3349d50df130052c8094352\"", "list_id": "foo.example.com",
- "member_id": 43, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/43", "user": "http://localhost:9001/3.0/users/42"}],
- "http_etag": "\"37f1f4348093cc2966f95df0d8d5838eee29f794\"", "start": 0, "total_size":
+ "\"001e1e23a5fa023843318717cbf9162583678c8f\"", "list_id": "foo.example.com",
+ "member_id": 5573, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5573", "user": "http://localhost:9001/3.0/users/3687"}],
+ "http_etag": "\"555c315968eee0403d87a89a3ed3fba2060aafc3\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['498']
- content-type: [application/json; charset=UTF-8]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/foo.example.com
- response:
- body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
- "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com",
- "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link":
- "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'}
- headers:
- content-length: ['294']
- content-type: [application/json; charset=UTF-8]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/foo@example.com/config
- response:
- body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify":
- true, "admin_notify_mchanges": false, "administrivia": true, "advertised":
- true, "allow_list_posts": true, "anonymous_list": false, "archive_policy":
- "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests":
- "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "",
- "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address":
- "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext":
- false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer",
- "default_nonmember_action": "hold", "description": "", "digest_footer_uri":
- "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
- true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation",
- "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
- "", "filter_content": false, "first_strip_reply_to": false, "footer_uri":
- "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri":
- "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "include_rfc2369_headers":
- true, "info": "", "join_address": "foo-join@example.com", "last_post_at":
- null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host":
- "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
- "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id":
- 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
- "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address":
- "foo-request@example.com", "send_welcome_message": true, "subject_prefix":
- "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
- ""}'}
- headers:
- content-length: ['1937']
- content-type: [application/json; charset=UTF-8]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/foo.example.com
- response:
- body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
- "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com",
- "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link":
- "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'}
- headers:
- content-length: ['294']
- content-type: [application/json; charset=UTF-8]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
- response:
- body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com",
- "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"310b150e602b357e829fbe91272883e246675ed5\"",
- "list_id": "foo.example.com", "member_id": 42, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/42", "user":
- "http://localhost:9001/3.0/users/41"}], "http_etag": "\"2f706d8efa6a49a4186c9773a8c1440cbb05e516\"",
- "start": 0, "total_size": 1}'}
- headers:
- content-length: ['486']
- content-type: [application/json; charset=UTF-8]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator
- response:
- body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com",
- "delivery_mode": "regular", "email": "moderator@example.com", "http_etag":
- "\"516055c376593828d3349d50df130052c8094352\"", "list_id": "foo.example.com",
- "member_id": 43, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/43", "user": "http://localhost:9001/3.0/users/42"}],
- "http_etag": "\"37f1f4348093cc2966f95df0d8d5838eee29f794\"", "start": 0, "total_size":
- 1}'}
- headers:
- content-length: ['498']
+ content-length: ['504']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -991,14 +1004,14 @@
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23",
- "http_etag": "\"6071df37f4a4cb86be05c478f66ec256e9e02896\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/41", "user_id": 41},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"61ff2561963f4a48a5bbe30d2c4168b52c485752\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/42",
- "user_id": 42}], "http_etag": "\"7518f9dd0a97eb7e3beb7d7d44012cd5236461e2\"",
+ "http_etag": "\"74f6c8c020370c905f3aec2afbc3ec5fe03c0a2c\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3686", "user_id": 3686},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"89be69ac7d2e4c337855a1b849483f215fa3d1d0\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3687",
+ "user_id": 3687}], "http_etag": "\"bb17cbba1457a82a9bf3895ec7088e95bf79286f\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['487']
+ content-length: ['495']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -1006,7 +1019,7 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'DELETE'
- uri: http://localhost:9001/3.0/users/41
+ uri: http://localhost:9001/3.0/users/3686
response:
body: {string: !!python/unicode ''}
headers:
@@ -1017,7 +1030,7 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'DELETE'
- uri: http://localhost:9001/3.0/users/42
+ uri: http://localhost:9001/3.0/users/3687
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_accessible_for_superuser.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_accessible_for_superuser.yaml
index 0a131eb..ae3d1b9 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_accessible_for_superuser.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_accessible_for_superuser.yaml
@@ -67,7 +67,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/40']
+ location: ['http://localhost:9001/3.0/members/5574']
status: {code: 201, message: Created}
- request:
body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com'
@@ -81,7 +81,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/41']
+ location: ['http://localhost:9001/3.0/members/5575']
status: {code: 201, message: Created}
- request:
body: null
@@ -139,50 +139,12 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/foo@example.com
+ uri: http://localhost:9001/3.0/system/pipelines
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}'}
+ body: {string: !!python/unicode '{"http_etag": "\"ff8a7af97caf24e6ca24c5baed447ff532bd1b4f\"",
+ "pipelines": ["default-owner-pipeline", "default-posting-pipeline", "virgin"]}'}
headers:
- content-length: ['294']
- content-type: [application/json; charset=UTF-8]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/foo@example.com/config
- response:
- body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify":
- true, "admin_notify_mchanges": false, "administrivia": true, "advertised":
- true, "allow_list_posts": true, "anonymous_list": false, "archive_policy":
- "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests":
- "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "",
- "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address":
- "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext":
- false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer",
- "default_nonmember_action": "hold", "description": "", "digest_footer_uri":
- "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
- true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation",
- "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
- "", "filter_content": false, "first_strip_reply_to": false, "footer_uri":
- "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri":
- "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "include_rfc2369_headers":
- true, "info": "", "join_address": "foo-join@example.com", "last_post_at":
- null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host":
- "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
- "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id":
- 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
- "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address":
- "foo-request@example.com", "send_welcome_message": true, "subject_prefix":
- "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
- ""}'}
- headers:
- content-length: ['1937']
+ content-length: ['140']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -292,6 +254,71 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"",
+ "mail-archive": true, "mhonarc": true, "prototype": true}'}
+ headers:
+ content-length: ['119']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"",
+ "mail-archive": true, "mhonarc": true, "prototype": true}'}
+ headers:
+ content-length: ['119']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"",
+ "mail-archive": true, "mhonarc": true, "prototype": true}'}
+ headers:
+ content-length: ['119']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"",
+ "mail-archive": true, "mhonarc": true, "prototype": true}'}
+ headers:
+ content-length: ['119']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"",
+ "mail-archive": true, "mhonarc": true, "prototype": true}'}
+ headers:
+ content-length: ['119']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo@example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -343,12 +370,14 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
+ uri: http://localhost:9001/3.0/lists/foo@example.com
response:
- body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"",
- "mail-archive": true, "mhonarc": true, "prototype": true}'}
+ 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: ['119']
+ content-length: ['294']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -356,51 +385,35 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
+ uri: http://localhost:9001/3.0/lists/foo@example.com/config
response:
- body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"",
- "mail-archive": true, "mhonarc": true, "prototype": true}'}
+ body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify":
+ true, "admin_notify_mchanges": false, "administrivia": true, "advertised":
+ true, "allow_list_posts": true, "anonymous_list": false, "archive_policy":
+ "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests":
+ "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "",
+ "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address":
+ "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext":
+ false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer",
+ "default_nonmember_action": "hold", "description": "", "digest_footer_uri":
+ "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
+ true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
+ "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation",
+ "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
+ "", "filter_content": false, "first_strip_reply_to": false, "footer_uri":
+ "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri":
+ "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "include_rfc2369_headers":
+ true, "info": "", "join_address": "foo-join@example.com", "last_post_at":
+ null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host":
+ "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
+ "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id":
+ 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
+ "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address":
+ "foo-request@example.com", "send_welcome_message": true, "subject_prefix":
+ "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
+ ""}'}
headers:
- content-length: ['119']
- content-type: [application/json; charset=UTF-8]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
- response:
- body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"",
- "mail-archive": true, "mhonarc": true, "prototype": true}'}
- headers:
- content-length: ['119']
- content-type: [application/json; charset=UTF-8]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
- response:
- body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"",
- "mail-archive": true, "mhonarc": true, "prototype": true}'}
- headers:
- content-length: ['119']
- content-type: [application/json; charset=UTF-8]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
- response:
- body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"",
- "mail-archive": true, "mhonarc": true, "prototype": true}'}
- headers:
- content-length: ['119']
+ content-length: ['1937']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -591,14 +604,14 @@
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23",
- "http_etag": "\"cf8014263ef08f63a4cfea4d0d8b0170e725df07\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/39", "user_id": 39},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"2a531149c67abd4d7972f411361758c9f4235bb1\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/40",
- "user_id": 40}], "http_etag": "\"27e3c1a2d092ff6bb39bca76aa61f6d7a053274d\"",
+ "http_etag": "\"229438aec685f65b2cc7dfede1518fa48d85e37e\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3688", "user_id": 3688},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"b3a5aeb7060920bccd8e4d673aae96d09735ca6d\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3689",
+ "user_id": 3689}], "http_etag": "\"d4090eb297e5f7ef8a726301aabc823572eefcd1\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['487']
+ content-length: ['495']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -606,7 +619,7 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'DELETE'
- uri: http://localhost:9001/3.0/users/39
+ uri: http://localhost:9001/3.0/users/3688
response:
body: {string: !!python/unicode ''}
headers:
@@ -617,7 +630,7 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'DELETE'
- uri: http://localhost:9001/3.0/users/40
+ uri: http://localhost:9001/3.0/users/3689
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_not_accessible_for_unprivileged_users.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_not_accessible_for_unprivileged_users.yaml
index 94c84cc..12b5454 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_not_accessible_for_unprivileged_users.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_not_accessible_for_unprivileged_users.yaml
@@ -67,7 +67,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/38']
+ location: ['http://localhost:9001/3.0/members/5576']
status: {code: 201, message: Created}
- request:
body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com'
@@ -81,7 +81,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/39']
+ location: ['http://localhost:9001/3.0/members/5577']
status: {code: 201, message: Created}
- request:
body: null
@@ -106,13 +106,13 @@
uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com",
- "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"5f3abddc18b5d77b60bd55b31f7b84d5399becf7\"",
- "list_id": "foo.example.com", "member_id": 38, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/38", "user":
- "http://localhost:9001/3.0/users/37"}], "http_etag": "\"3b74d3e147c9a68b2078e2f0dd7ae447dccdebd5\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"dfafa52d0ff59347835574995ea22467ab8ccfa2\"",
+ "list_id": "foo.example.com", "member_id": 5576, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5576", "user":
+ "http://localhost:9001/3.0/users/3690"}], "http_etag": "\"c7a39ceab21fa485c94a305fdb6ae92bd6e956ea\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['486']
+ content-length: ['492']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -124,13 +124,13 @@
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com",
"delivery_mode": "regular", "email": "moderator@example.com", "http_etag":
- "\"7745226a1570da68fbd0886194fbc3a2ebe1f664\"", "list_id": "foo.example.com",
- "member_id": 39, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/39", "user": "http://localhost:9001/3.0/users/38"}],
- "http_etag": "\"d0c7f4988bbd537beb5593585270899adaa1a7e7\"", "start": 0, "total_size":
+ "\"5abc72192dabe58398fd5e80ee0c921e906ccfac\"", "list_id": "foo.example.com",
+ "member_id": 5577, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5577", "user": "http://localhost:9001/3.0/users/3691"}],
+ "http_etag": "\"1ddf08387406a45c4db57d384a56b640a2a740d2\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['498']
+ content-length: ['504']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -156,13 +156,13 @@
uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com",
- "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"5f3abddc18b5d77b60bd55b31f7b84d5399becf7\"",
- "list_id": "foo.example.com", "member_id": 38, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/38", "user":
- "http://localhost:9001/3.0/users/37"}], "http_etag": "\"3b74d3e147c9a68b2078e2f0dd7ae447dccdebd5\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"dfafa52d0ff59347835574995ea22467ab8ccfa2\"",
+ "list_id": "foo.example.com", "member_id": 5576, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5576", "user":
+ "http://localhost:9001/3.0/users/3690"}], "http_etag": "\"c7a39ceab21fa485c94a305fdb6ae92bd6e956ea\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['486']
+ content-length: ['492']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -174,13 +174,13 @@
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com",
"delivery_mode": "regular", "email": "moderator@example.com", "http_etag":
- "\"7745226a1570da68fbd0886194fbc3a2ebe1f664\"", "list_id": "foo.example.com",
- "member_id": 39, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/39", "user": "http://localhost:9001/3.0/users/38"}],
- "http_etag": "\"d0c7f4988bbd537beb5593585270899adaa1a7e7\"", "start": 0, "total_size":
+ "\"5abc72192dabe58398fd5e80ee0c921e906ccfac\"", "list_id": "foo.example.com",
+ "member_id": 5577, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5577", "user": "http://localhost:9001/3.0/users/3691"}],
+ "http_etag": "\"1ddf08387406a45c4db57d384a56b640a2a740d2\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['498']
+ content-length: ['504']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -206,13 +206,13 @@
uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com",
- "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"5f3abddc18b5d77b60bd55b31f7b84d5399becf7\"",
- "list_id": "foo.example.com", "member_id": 38, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/38", "user":
- "http://localhost:9001/3.0/users/37"}], "http_etag": "\"3b74d3e147c9a68b2078e2f0dd7ae447dccdebd5\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"dfafa52d0ff59347835574995ea22467ab8ccfa2\"",
+ "list_id": "foo.example.com", "member_id": 5576, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5576", "user":
+ "http://localhost:9001/3.0/users/3690"}], "http_etag": "\"c7a39ceab21fa485c94a305fdb6ae92bd6e956ea\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['486']
+ content-length: ['492']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -224,13 +224,13 @@
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com",
"delivery_mode": "regular", "email": "moderator@example.com", "http_etag":
- "\"7745226a1570da68fbd0886194fbc3a2ebe1f664\"", "list_id": "foo.example.com",
- "member_id": 39, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/39", "user": "http://localhost:9001/3.0/users/38"}],
- "http_etag": "\"d0c7f4988bbd537beb5593585270899adaa1a7e7\"", "start": 0, "total_size":
+ "\"5abc72192dabe58398fd5e80ee0c921e906ccfac\"", "list_id": "foo.example.com",
+ "member_id": 5577, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5577", "user": "http://localhost:9001/3.0/users/3691"}],
+ "http_etag": "\"1ddf08387406a45c4db57d384a56b640a2a740d2\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['498']
+ content-length: ['504']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -256,13 +256,13 @@
uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com",
- "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"5f3abddc18b5d77b60bd55b31f7b84d5399becf7\"",
- "list_id": "foo.example.com", "member_id": 38, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/38", "user":
- "http://localhost:9001/3.0/users/37"}], "http_etag": "\"3b74d3e147c9a68b2078e2f0dd7ae447dccdebd5\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"dfafa52d0ff59347835574995ea22467ab8ccfa2\"",
+ "list_id": "foo.example.com", "member_id": 5576, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5576", "user":
+ "http://localhost:9001/3.0/users/3690"}], "http_etag": "\"c7a39ceab21fa485c94a305fdb6ae92bd6e956ea\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['486']
+ content-length: ['492']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -274,13 +274,13 @@
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com",
"delivery_mode": "regular", "email": "moderator@example.com", "http_etag":
- "\"7745226a1570da68fbd0886194fbc3a2ebe1f664\"", "list_id": "foo.example.com",
- "member_id": 39, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/39", "user": "http://localhost:9001/3.0/users/38"}],
- "http_etag": "\"d0c7f4988bbd537beb5593585270899adaa1a7e7\"", "start": 0, "total_size":
+ "\"5abc72192dabe58398fd5e80ee0c921e906ccfac\"", "list_id": "foo.example.com",
+ "member_id": 5577, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5577", "user": "http://localhost:9001/3.0/users/3691"}],
+ "http_etag": "\"1ddf08387406a45c4db57d384a56b640a2a740d2\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['498']
+ content-length: ['504']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -306,13 +306,13 @@
uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com",
- "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"5f3abddc18b5d77b60bd55b31f7b84d5399becf7\"",
- "list_id": "foo.example.com", "member_id": 38, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/38", "user":
- "http://localhost:9001/3.0/users/37"}], "http_etag": "\"3b74d3e147c9a68b2078e2f0dd7ae447dccdebd5\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"dfafa52d0ff59347835574995ea22467ab8ccfa2\"",
+ "list_id": "foo.example.com", "member_id": 5576, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5576", "user":
+ "http://localhost:9001/3.0/users/3690"}], "http_etag": "\"c7a39ceab21fa485c94a305fdb6ae92bd6e956ea\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['486']
+ content-length: ['492']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -324,13 +324,13 @@
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com",
"delivery_mode": "regular", "email": "moderator@example.com", "http_etag":
- "\"7745226a1570da68fbd0886194fbc3a2ebe1f664\"", "list_id": "foo.example.com",
- "member_id": 39, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/39", "user": "http://localhost:9001/3.0/users/38"}],
- "http_etag": "\"d0c7f4988bbd537beb5593585270899adaa1a7e7\"", "start": 0, "total_size":
+ "\"5abc72192dabe58398fd5e80ee0c921e906ccfac\"", "list_id": "foo.example.com",
+ "member_id": 5577, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5577", "user": "http://localhost:9001/3.0/users/3691"}],
+ "http_etag": "\"1ddf08387406a45c4db57d384a56b640a2a740d2\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['498']
+ content-length: ['504']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -356,13 +356,13 @@
uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com",
- "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"5f3abddc18b5d77b60bd55b31f7b84d5399becf7\"",
- "list_id": "foo.example.com", "member_id": 38, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/38", "user":
- "http://localhost:9001/3.0/users/37"}], "http_etag": "\"3b74d3e147c9a68b2078e2f0dd7ae447dccdebd5\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"dfafa52d0ff59347835574995ea22467ab8ccfa2\"",
+ "list_id": "foo.example.com", "member_id": 5576, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5576", "user":
+ "http://localhost:9001/3.0/users/3690"}], "http_etag": "\"c7a39ceab21fa485c94a305fdb6ae92bd6e956ea\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['486']
+ content-length: ['492']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -374,13 +374,13 @@
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com",
"delivery_mode": "regular", "email": "moderator@example.com", "http_etag":
- "\"7745226a1570da68fbd0886194fbc3a2ebe1f664\"", "list_id": "foo.example.com",
- "member_id": 39, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/39", "user": "http://localhost:9001/3.0/users/38"}],
- "http_etag": "\"d0c7f4988bbd537beb5593585270899adaa1a7e7\"", "start": 0, "total_size":
+ "\"5abc72192dabe58398fd5e80ee0c921e906ccfac\"", "list_id": "foo.example.com",
+ "member_id": 5577, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5577", "user": "http://localhost:9001/3.0/users/3691"}],
+ "http_etag": "\"1ddf08387406a45c4db57d384a56b640a2a740d2\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['498']
+ content-length: ['504']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -406,13 +406,13 @@
uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com",
- "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"5f3abddc18b5d77b60bd55b31f7b84d5399becf7\"",
- "list_id": "foo.example.com", "member_id": 38, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/38", "user":
- "http://localhost:9001/3.0/users/37"}], "http_etag": "\"3b74d3e147c9a68b2078e2f0dd7ae447dccdebd5\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"dfafa52d0ff59347835574995ea22467ab8ccfa2\"",
+ "list_id": "foo.example.com", "member_id": 5576, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5576", "user":
+ "http://localhost:9001/3.0/users/3690"}], "http_etag": "\"c7a39ceab21fa485c94a305fdb6ae92bd6e956ea\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['486']
+ content-length: ['492']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -424,13 +424,13 @@
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com",
"delivery_mode": "regular", "email": "moderator@example.com", "http_etag":
- "\"7745226a1570da68fbd0886194fbc3a2ebe1f664\"", "list_id": "foo.example.com",
- "member_id": 39, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/39", "user": "http://localhost:9001/3.0/users/38"}],
- "http_etag": "\"d0c7f4988bbd537beb5593585270899adaa1a7e7\"", "start": 0, "total_size":
+ "\"5abc72192dabe58398fd5e80ee0c921e906ccfac\"", "list_id": "foo.example.com",
+ "member_id": 5577, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5577", "user": "http://localhost:9001/3.0/users/3691"}],
+ "http_etag": "\"1ddf08387406a45c4db57d384a56b640a2a740d2\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['498']
+ content-length: ['504']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -456,13 +456,13 @@
uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com",
- "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"5f3abddc18b5d77b60bd55b31f7b84d5399becf7\"",
- "list_id": "foo.example.com", "member_id": 38, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/38", "user":
- "http://localhost:9001/3.0/users/37"}], "http_etag": "\"3b74d3e147c9a68b2078e2f0dd7ae447dccdebd5\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"dfafa52d0ff59347835574995ea22467ab8ccfa2\"",
+ "list_id": "foo.example.com", "member_id": 5576, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5576", "user":
+ "http://localhost:9001/3.0/users/3690"}], "http_etag": "\"c7a39ceab21fa485c94a305fdb6ae92bd6e956ea\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['486']
+ content-length: ['492']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -474,13 +474,13 @@
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com",
"delivery_mode": "regular", "email": "moderator@example.com", "http_etag":
- "\"7745226a1570da68fbd0886194fbc3a2ebe1f664\"", "list_id": "foo.example.com",
- "member_id": 39, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/39", "user": "http://localhost:9001/3.0/users/38"}],
- "http_etag": "\"d0c7f4988bbd537beb5593585270899adaa1a7e7\"", "start": 0, "total_size":
+ "\"5abc72192dabe58398fd5e80ee0c921e906ccfac\"", "list_id": "foo.example.com",
+ "member_id": 5577, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5577", "user": "http://localhost:9001/3.0/users/3691"}],
+ "http_etag": "\"1ddf08387406a45c4db57d384a56b640a2a740d2\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['498']
+ content-length: ['504']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -492,13 +492,11 @@
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
"\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com",
- "self_link": "http://localhost:9001/3.0/domains/example.com"}, {"description":
- "A domain", "http_etag": "\"358c8287c146ffc78ff716e20c820c34a9d727e9\"", "mail_host":
- "msapiro.net", "self_link": "http://localhost:9001/3.0/domains/msapiro.net"}],
- "http_etag": "\"1917136cfdad0622195e100efdda8f6426f16b47\"", "start": 0, "total_size":
- 2}'}
+ "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag":
+ "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size":
+ 1}'}
headers:
- content-length: ['457']
+ content-length: ['277']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -516,31 +514,18 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode 'DELETE'
- uri: http://localhost:9001/3.0/domains/msapiro.net
- 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": "\"ac340829f7769de8826d5096491b69aabe732430\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/36", "user_id": 36},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"746af64fb3c343d4cbe089a4b44d52e65fa99133\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/37",
- "user_id": 37}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"54d21bebe42e4c00bce51a7839dfb0bb7a74e22e\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/38",
- "user_id": 38}], "http_etag": "\"edc5927bb16c58fbe21c62ded9ce68971a25fb0a\"",
- "start": 0, "total_size": 3}'}
+ "http_etag": "\"3996e6f4b52faead0288b9ecd0a556268c087f78\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3690", "user_id": 3690},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"ec69b9f8ecf30f675748f84106575526a1032f15\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3691",
+ "user_id": 3691}], "http_etag": "\"fcbe60cb3ba1cbe8ad29c2a824f8e99e040b61eb\"",
+ "start": 0, "total_size": 2}'}
headers:
- content-length: ['679']
+ content-length: ['495']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -548,7 +533,7 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'DELETE'
- uri: http://localhost:9001/3.0/users/36
+ uri: http://localhost:9001/3.0/users/3690
response:
body: {string: !!python/unicode ''}
headers:
@@ -559,18 +544,7 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'DELETE'
- uri: http://localhost:9001/3.0/users/37
- response:
- body: {string: !!python/unicode ''}
- headers:
- content-length: ['0']
- status: {code: 204, message: No Content}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode 'DELETE'
- uri: http://localhost:9001/3.0/users/38
+ uri: http://localhost:9001/3.0/users/3691
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_not_accessible_if_not_logged_in.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_not_accessible_if_not_logged_in.yaml
index 71a6a00..eca1b83 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_not_accessible_if_not_logged_in.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_not_accessible_if_not_logged_in.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,7 +44,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -56,38 +56,38 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=owner%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/83']
+ location: ['http://localhost:9001/3.0/members/5578']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com
+ body: !!python/unicode 'list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/84']
+ location: ['http://localhost:9001/3.0/members/5579']
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/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -103,7 +103,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -114,26 +114,26 @@
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": "\"f4726ea3c1b9f16f9d77ed155a404620fca4fb69\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/77", "user_id": 77},
- {"created_on": "2005-08-01T07:49:23", "http_etag": "\"48e69a69c5400d681e4c434b7c52d712eb2d1e67\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/78",
- "user_id": 78}], "http_etag": "\"d8bcd99f998fb72e49b09f5a04dd61cf5b59ab78\"",
+ "http_etag": "\"d4b57e68fce734e94acfdb9901696080f8c4a757\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3692", "user_id": 3692},
+ {"created_on": "2005-08-01T07:49:23", "http_etag": "\"62905a1f318fa49c889b1c3c691db73004d2523e\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3693",
+ "user_id": 3693}], "http_etag": "\"784c924142700055b75476636a7de1cd0702ec68\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['487']
+ content-length: ['495']
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/77
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3692
response:
body: {string: !!python/unicode ''}
headers:
@@ -143,8 +143,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/78
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3693
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_displayed_to_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_displayed_to_owner.yaml
index 49be38b..9de0277 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_displayed_to_owner.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_displayed_to_owner.yaml
@@ -67,7 +67,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/1']
+ location: ['http://localhost:9001/3.0/members/5510']
status: {code: 201, message: Created}
- request:
body: null
@@ -92,13 +92,13 @@
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": "\"280631e7c916d2dddaadf4477f35e055c3462a7b\"",
- "list_id": "foo.example.com", "member_id": 1, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/1", "user":
- "http://localhost:9001/3.0/users/1"}], "http_etag": "\"de19d701a9a5dd37e79c4f14566d2f264485b6d4\"",
+ "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"6b314cf331cd7f3222013f961b1967ea6b806af5\"",
+ "list_id": "foo.example.com", "member_id": 5510, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5510", "user":
+ "http://localhost:9001/3.0/users/3620"}], "http_etag": "\"1438f91f30575a70f4a2f7d9c66bd282d9b4412c\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['481']
+ content-length: ['490']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -132,20 +132,22 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to":
- false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri":
- "", "header_uri": "", "http_etag": "\"e752899e2a568ccaad1d891e72c137a4cbc82d5d\"",
- "include_rfc2369_headers": true, "info": "", "join_address": "foo-join@example.com",
- "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name":
- "foo", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
- 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com",
- "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
+ "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation",
+ "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
+ "", "filter_content": false, "first_strip_reply_to": false, "footer_uri":
+ "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri":
+ "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "include_rfc2369_headers":
+ true, "info": "", "join_address": "foo-join@example.com", "last_post_at":
+ null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host":
+ "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
+ "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id":
+ 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
"reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address":
"foo-request@example.com", "send_welcome_message": true, "subject_prefix":
"[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1789']
+ content-length: ['1937']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -166,6 +168,19 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/foo@example.com/requests
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
+ "start": 0, "total_size": 0}'}
+ headers:
+ content-length: ['90']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com
response:
body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"}
@@ -209,12 +224,12 @@
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}], "http_etag":
- "\"cf73b75814e4f44e603170b39d65b5120218e52e\"", "start": 0, "total_size":
+ "http_etag": "\"1c2a3cf39034139281de0fbb140ac55e9a0d3d2c\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3620", "user_id": 3620}],
+ "http_etag": "\"d53806f8771115ab42f64d37dd9fb0a22d5df5f5\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['293']
+ content-length: ['299']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -222,7 +237,7 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'DELETE'
- uri: http://localhost:9001/3.0/users/1
+ uri: http://localhost:9001/3.0/users/3620
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_displayed_to_superuser.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_displayed_to_superuser.yaml
index f90c708..0470e41 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_displayed_to_superuser.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_displayed_to_superuser.yaml
@@ -99,20 +99,22 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to":
- false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri":
- "", "header_uri": "", "http_etag": "\"e752899e2a568ccaad1d891e72c137a4cbc82d5d\"",
- "include_rfc2369_headers": true, "info": "", "join_address": "foo-join@example.com",
- "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name":
- "foo", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
- 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com",
- "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
+ "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation",
+ "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
+ "", "filter_content": false, "first_strip_reply_to": false, "footer_uri":
+ "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri":
+ "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "include_rfc2369_headers":
+ true, "info": "", "join_address": "foo-join@example.com", "last_post_at":
+ null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host":
+ "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
+ "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id":
+ 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
"reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address":
"foo-request@example.com", "send_welcome_message": true, "subject_prefix":
"[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1789']
+ content-length: ['1937']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -133,6 +135,19 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/foo@example.com/requests
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
+ "start": 0, "total_size": 0}'}
+ headers:
+ content-length: ['90']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/member/testadmin@example.com
response:
body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"}
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_not_displayed_to_moderator.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_not_displayed_to_moderator.yaml
index 5c40184..f751286 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_not_displayed_to_moderator.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_not_displayed_to_moderator.yaml
@@ -67,7 +67,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/2']
+ location: ['http://localhost:9001/3.0/members/5511']
status: {code: 201, message: Created}
- request:
body: null
@@ -105,13 +105,13 @@
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": "\"e38b2990914a17222fcd08883dd3fe3c4eb4a4be\"",
- "list_id": "foo.example.com", "member_id": 2, "moderation_action": "accept",
- "role": "moderator", "self_link": "http://localhost:9001/3.0/members/2", "user":
- "http://localhost:9001/3.0/users/2"}], "http_etag": "\"6d75f67da091c7d8bbefeab8fc373d19c9288d26\"",
+ "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"6449bdb052e66959981debfb5719e97b1ab55890\"",
+ "list_id": "foo.example.com", "member_id": 5511, "moderation_action": "accept",
+ "role": "moderator", "self_link": "http://localhost:9001/3.0/members/5511",
+ "user": "http://localhost:9001/3.0/users/3621"}], "http_etag": "\"0d1d1c89ce08b9f42c84f4a861ffeecd108295de\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['485']
+ content-length: ['494']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -132,20 +132,22 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to":
- false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri":
- "", "header_uri": "", "http_etag": "\"e752899e2a568ccaad1d891e72c137a4cbc82d5d\"",
- "include_rfc2369_headers": true, "info": "", "join_address": "foo-join@example.com",
- "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name":
- "foo", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
- 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com",
- "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
+ "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation",
+ "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
+ "", "filter_content": false, "first_strip_reply_to": false, "footer_uri":
+ "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri":
+ "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "include_rfc2369_headers":
+ true, "info": "", "join_address": "foo-join@example.com", "last_post_at":
+ null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host":
+ "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
+ "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id":
+ 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
"reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address":
"foo-request@example.com", "send_welcome_message": true, "subject_prefix":
"[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1789']
+ content-length: ['1937']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -166,6 +168,19 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/foo@example.com/requests
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
+ "start": 0, "total_size": 0}'}
+ headers:
+ content-length: ['90']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com
response:
body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"}
@@ -209,12 +224,12 @@
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode '{"entries": [{"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}], "http_etag":
- "\"4e038f62e673165d1652e4c4f862b2dd3bac9726\"", "start": 0, "total_size":
+ "http_etag": "\"184f6b7d2fb3c96cc911e2cf36df92eae384b55d\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3621", "user_id": 3621}],
+ "http_etag": "\"30202e8979515ce453cb9d432b37bde3c8ccb7e2\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['293']
+ content-length: ['299']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -222,7 +237,7 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'DELETE'
- uri: http://localhost:9001/3.0/users/2
+ uri: http://localhost:9001/3.0/users/3621
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_is_admin_secondary_moderator.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_is_admin_secondary_moderator.yaml
index 9407ef9..525564c 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_is_admin_secondary_moderator.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_is_admin_secondary_moderator.yaml
@@ -52,7 +52,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/users/3']
+ location: ['http://localhost:9001/3.0/users/3622']
status: {code: 201, message: Created}
- request:
body: !!python/unicode 'email=anotheremail%40example.com'
@@ -60,7 +60,7 @@
accept-encoding: ['gzip, deflate']
!!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
method: !!python/unicode 'POST'
- uri: http://localhost:9001/3.0/users/3/addresses
+ uri: http://localhost:9001/3.0/users/3622/addresses
response:
body: {string: !!python/unicode ''}
headers:
@@ -106,7 +106,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/3']
+ location: ['http://localhost:9001/3.0/members/5512']
status: {code: 201, message: Created}
- request:
body: null
@@ -145,13 +145,13 @@
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":
- "\"036384e094982f39fa239f363e48fff69282d226\"", "list_id": "foo.example.com",
- "member_id": 3, "moderation_action": "accept", "role": "moderator", "self_link":
- "http://localhost:9001/3.0/members/3", "user": "http://localhost:9001/3.0/users/3"}],
- "http_etag": "\"1d2bbe460ec1758a83d457fd3fbefdab1dab6158\"", "start": 0, "total_size":
+ "\"7c62692545326ad147e4c4a422abecc776d61ec0\"", "list_id": "foo.example.com",
+ "member_id": 5512, "moderation_action": "accept", "role": "moderator", "self_link":
+ "http://localhost:9001/3.0/members/5512", "user": "http://localhost:9001/3.0/users/3622"}],
+ "http_etag": "\"8b1b9b5d476159999dde98d7cc21e8f8cc490e17\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['501']
+ content-length: ['510']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -172,20 +172,22 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to":
- false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri":
- "", "header_uri": "", "http_etag": "\"e752899e2a568ccaad1d891e72c137a4cbc82d5d\"",
- "include_rfc2369_headers": true, "info": "", "join_address": "foo-join@example.com",
- "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name":
- "foo", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
- 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com",
- "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
+ "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation",
+ "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
+ "", "filter_content": false, "first_strip_reply_to": false, "footer_uri":
+ "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri":
+ "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "include_rfc2369_headers":
+ true, "info": "", "join_address": "foo-join@example.com", "last_post_at":
+ null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host":
+ "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
+ "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id":
+ 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
"reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address":
"foo-request@example.com", "send_welcome_message": true, "subject_prefix":
"[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1789']
+ content-length: ['1937']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -206,6 +208,19 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/foo@example.com/requests
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
+ "start": 0, "total_size": 0}'}
+ headers:
+ content-length: ['90']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/member/anotheremail@example.com
response:
body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"}
@@ -262,13 +277,13 @@
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23",
- "http_etag": "\"17064c3e85552d653b0badc705fda43f8d58fe87\"", "is_server_owner":
- false, "password": "$6$rounds=656000$mOuOpoKcb693TTSp$2P94mF8LVRoGCeqXV2eExGFoA.0TWHLEZO.5LvTOOOZvJLGptfWdv1aGXENDMZ9JFwvo6qO7/vBTu87s3.tm7.",
- "self_link": "http://localhost:9001/3.0/users/3", "user_id": 3}], "http_etag":
- "\"00158f79151cf776a11b4ca05a9ee37449c3f6e2\"", "start": 0, "total_size":
+ "http_etag": "\"34a4a95e5dea0845767d1b9251d0802fbe9cd22a\"", "is_server_owner":
+ false, "password": "$6$rounds=656000$6YE8GeoOExZ8MS58$XhPwQYoTs6YkIQ/UJuc/5a4Mrxsu3nsMPigvQs9TVH/CWzlSLgtpentEcR7AwPpf9CPdPvZZpIqw8JWqooX6t.",
+ "self_link": "http://localhost:9001/3.0/users/3622", "user_id": 3622}], "http_etag":
+ "\"e13405bd3a3a4682f114dd79b7a13e2286cfc57f\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['429']
+ content-length: ['435']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -276,7 +291,7 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'DELETE'
- uri: http://localhost:9001/3.0/users/3
+ uri: http://localhost:9001/3.0/users/3622
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_is_admin_secondary_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_is_admin_secondary_owner.yaml
index 13baf64..415eebb 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_is_admin_secondary_owner.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_is_admin_secondary_owner.yaml
@@ -52,7 +52,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/users/4']
+ location: ['http://localhost:9001/3.0/users/3623']
status: {code: 201, message: Created}
- request:
body: !!python/unicode 'email=anotheremail%40example.com'
@@ -60,7 +60,7 @@
accept-encoding: ['gzip, deflate']
!!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
method: !!python/unicode 'POST'
- uri: http://localhost:9001/3.0/users/4/addresses
+ uri: http://localhost:9001/3.0/users/3623/addresses
response:
body: {string: !!python/unicode ''}
headers:
@@ -106,7 +106,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/4']
+ location: ['http://localhost:9001/3.0/members/5513']
status: {code: 201, message: Created}
- request:
body: null
@@ -132,13 +132,13 @@
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":
- "\"8568ebf6802e57f605f589b2f6d58af2b6f70479\"", "list_id": "foo.example.com",
- "member_id": 4, "moderation_action": "accept", "role": "owner", "self_link":
- "http://localhost:9001/3.0/members/4", "user": "http://localhost:9001/3.0/users/4"}],
- "http_etag": "\"95cb9121e6fe35df5c23bb4f8f234d8641287fb1\"", "start": 0, "total_size":
+ "\"63fa3c7a6997e9734d8af53538b8cdf52f516bf8\"", "list_id": "foo.example.com",
+ "member_id": 5513, "moderation_action": "accept", "role": "owner", "self_link":
+ "http://localhost:9001/3.0/members/5513", "user": "http://localhost:9001/3.0/users/3623"}],
+ "http_etag": "\"308cfc0d7bb9224098b5261bc83b6fb5660b1ae6\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['497']
+ content-length: ['506']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -172,20 +172,22 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to":
- false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri":
- "", "header_uri": "", "http_etag": "\"e752899e2a568ccaad1d891e72c137a4cbc82d5d\"",
- "include_rfc2369_headers": true, "info": "", "join_address": "foo-join@example.com",
- "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name":
- "foo", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
- 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com",
- "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
+ "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation",
+ "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
+ "", "filter_content": false, "first_strip_reply_to": false, "footer_uri":
+ "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri":
+ "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "include_rfc2369_headers":
+ true, "info": "", "join_address": "foo-join@example.com", "last_post_at":
+ null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host":
+ "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
+ "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id":
+ 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
"reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address":
"foo-request@example.com", "send_welcome_message": true, "subject_prefix":
"[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1789']
+ content-length: ['1937']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -206,6 +208,19 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/foo@example.com/requests
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
+ "start": 0, "total_size": 0}'}
+ headers:
+ content-length: ['90']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/member/anotheremail@example.com
response:
body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"}
@@ -262,13 +277,13 @@
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23",
- "http_etag": "\"55cfc1384364501d08c7ba6dd4bb0b19e142a818\"", "is_server_owner":
- false, "password": "$6$rounds=656000$NwJSfk1FmiPXcGXh$lsAwEiHNI6jurhgOSKDCwZ/mTAD4bANaYvH.NAUOic4HwoelCm1VWND.1jLN0eEHhznlTj9n90gdMv1Ycu5Sp1",
- "self_link": "http://localhost:9001/3.0/users/4", "user_id": 4}], "http_etag":
- "\"8a3fed80008ddb3bf616d0a924b77cd8901f1511\"", "start": 0, "total_size":
+ "http_etag": "\"943940186e2d8fb97be8ddf429fa1ed0738d5eca\"", "is_server_owner":
+ false, "password": "$6$rounds=656000$y74cWdZCANUk6DM4$OssjcaaG3HTBLINEDS/OAQyqcu6KY8/xq4CArWXiFqvtTM5XnJ2jIPn.Q1vVDBGA1n4MJVau2JpNEJkTBAeUk1",
+ "self_link": "http://localhost:9001/3.0/users/3623", "user_id": 3623}], "http_etag":
+ "\"1ee1c8ea64b061659317f94b79103d34ff1c6427\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['429']
+ content-length: ['435']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -276,7 +291,7 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'DELETE'
- uri: http://localhost:9001/3.0/users/4
+ uri: http://localhost:9001/3.0/users/3623
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_logged_in.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_logged_in.yaml
index 768b65c..e119746 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_logged_in.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_logged_in.yaml
@@ -99,20 +99,22 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to":
- false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri":
- "", "header_uri": "", "http_etag": "\"e752899e2a568ccaad1d891e72c137a4cbc82d5d\"",
- "include_rfc2369_headers": true, "info": "", "join_address": "foo-join@example.com",
- "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name":
- "foo", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
- 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com",
- "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
+ "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation",
+ "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
+ "", "filter_content": false, "first_strip_reply_to": false, "footer_uri":
+ "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri":
+ "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "include_rfc2369_headers":
+ true, "info": "", "join_address": "foo-join@example.com", "last_post_at":
+ null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host":
+ "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
+ "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id":
+ 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
"reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address":
"foo-request@example.com", "send_welcome_message": true, "subject_prefix":
"[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1789']
+ content-length: ['1937']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -133,6 +135,19 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/foo@example.com/requests
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
+ "start": 0, "total_size": 0}'}
+ headers:
+ content-length: ['90']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com
response:
body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"}
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_logged_out.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_logged_out.yaml
index ad509ff..6a725ab 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_logged_out.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_logged_out.yaml
@@ -73,20 +73,22 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to":
- false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri":
- "", "header_uri": "", "http_etag": "\"e752899e2a568ccaad1d891e72c137a4cbc82d5d\"",
- "include_rfc2369_headers": true, "info": "", "join_address": "foo-join@example.com",
- "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name":
- "foo", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
- 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com",
- "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
+ "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation",
+ "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
+ "", "filter_content": false, "first_strip_reply_to": false, "footer_uri":
+ "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri":
+ "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "include_rfc2369_headers":
+ true, "info": "", "join_address": "foo-join@example.com", "last_post_at":
+ null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host":
+ "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
+ "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id":
+ 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
"reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address":
"foo-request@example.com", "send_welcome_message": true, "subject_prefix":
"[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1789']
+ content-length: ['1937']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_moderator.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_moderator.yaml
index d0deb01..6408ac9 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_moderator.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_moderator.yaml
@@ -52,7 +52,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/users/5']
+ location: ['http://localhost:9001/3.0/users/3624']
status: {code: 201, message: Created}
- request:
body: null
@@ -81,7 +81,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/5']
+ location: ['http://localhost:9001/3.0/members/5514']
status: {code: 201, message: Created}
- request:
body: null
@@ -119,13 +119,13 @@
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": "\"058cc24f7fa0e36fde54b6aaa83c07b97ad5303a\"",
- "list_id": "foo.example.com", "member_id": 5, "moderation_action": "accept",
- "role": "moderator", "self_link": "http://localhost:9001/3.0/members/5", "user":
- "http://localhost:9001/3.0/users/5"}], "http_etag": "\"da161615a583cca81b40066fd27b162dd577cf33\"",
+ "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"ddc5aaf570df976bb0b99752c211f71daaf0aa54\"",
+ "list_id": "foo.example.com", "member_id": 5514, "moderation_action": "accept",
+ "role": "moderator", "self_link": "http://localhost:9001/3.0/members/5514",
+ "user": "http://localhost:9001/3.0/users/3624"}], "http_etag": "\"f4a98eabeab6c47d0e4e8d86f5841656f0c70694\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['485']
+ content-length: ['494']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -146,20 +146,22 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to":
- false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri":
- "", "header_uri": "", "http_etag": "\"e752899e2a568ccaad1d891e72c137a4cbc82d5d\"",
- "include_rfc2369_headers": true, "info": "", "join_address": "foo-join@example.com",
- "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name":
- "foo", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
- 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com",
- "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
+ "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation",
+ "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
+ "", "filter_content": false, "first_strip_reply_to": false, "footer_uri":
+ "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri":
+ "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "include_rfc2369_headers":
+ true, "info": "", "join_address": "foo-join@example.com", "last_post_at":
+ null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host":
+ "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
+ "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id":
+ 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
"reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address":
"foo-request@example.com", "send_welcome_message": true, "subject_prefix":
"[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1789']
+ content-length: ['1937']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -180,6 +182,19 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/foo@example.com/requests
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
+ "start": 0, "total_size": 0}'}
+ headers:
+ content-length: ['90']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com
response:
body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"}
@@ -223,13 +238,13 @@
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23",
- "http_etag": "\"c64d737f91474c36a6988cc521179e6b27a922d9\"", "is_server_owner":
- false, "password": "$6$rounds=656000$SVd3oNxuW5f10cfC$DU95TPJNw/Sen3vQPhdVbeAlaU4s.DLSwxAIKgGoXYeRPtswQNu1lvHDpD4C6gfZ3WBF7qsAGMBRyd4WjSrOY/",
- "self_link": "http://localhost:9001/3.0/users/5", "user_id": 5}], "http_etag":
- "\"ee3b298fe13c8d7a968a82ae432df90ff0bea99e\"", "start": 0, "total_size":
+ "http_etag": "\"309d4cde2d01a7807007010d171f6eee400e1b54\"", "is_server_owner":
+ false, "password": "$6$rounds=656000$lUO9OJ5/xh.CgqjU$auk.7SevccGbyCnkBHCxutec3Z.ZlckzaS0P2KjhPu9DjKfhnixqSvzULm4fsJLG6dxcXuxDaMTwa.uPmkhOB.",
+ "self_link": "http://localhost:9001/3.0/users/3624", "user_id": 3624}], "http_etag":
+ "\"0c6c5399c4982eda94ccbf6e6203050c8226aff9\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['429']
+ content-length: ['435']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -237,7 +252,7 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'DELETE'
- uri: http://localhost:9001/3.0/users/5
+ uri: http://localhost:9001/3.0/users/3624
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_owner.yaml
index 114261b..9ab39ff 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_owner.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_owner.yaml
@@ -52,7 +52,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/users/6']
+ location: ['http://localhost:9001/3.0/users/3625']
status: {code: 201, message: Created}
- request:
body: null
@@ -81,7 +81,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/6']
+ location: ['http://localhost:9001/3.0/members/5515']
status: {code: 201, message: Created}
- request:
body: null
@@ -106,13 +106,13 @@
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": "\"e8c1f3ff7cfbb7a7063f4557e9b2fd4c0e036a03\"",
- "list_id": "foo.example.com", "member_id": 6, "moderation_action": "accept",
- "role": "owner", "self_link": "http://localhost:9001/3.0/members/6", "user":
- "http://localhost:9001/3.0/users/6"}], "http_etag": "\"49f1ca2cbe3113fd672239e68ca929f9c30aa604\"",
+ "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"ba34e2f7b4eab5cc2f1d39db41a0a13c6804d06f\"",
+ "list_id": "foo.example.com", "member_id": 5515, "moderation_action": "accept",
+ "role": "owner", "self_link": "http://localhost:9001/3.0/members/5515", "user":
+ "http://localhost:9001/3.0/users/3625"}], "http_etag": "\"6ded63a75f0dd7ec1267e949a776a0a035e85bfc\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['481']
+ content-length: ['490']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -146,20 +146,22 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to":
- false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri":
- "", "header_uri": "", "http_etag": "\"e752899e2a568ccaad1d891e72c137a4cbc82d5d\"",
- "include_rfc2369_headers": true, "info": "", "join_address": "foo-join@example.com",
- "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name":
- "foo", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
- 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com",
- "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
+ "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation",
+ "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
+ "", "filter_content": false, "first_strip_reply_to": false, "footer_uri":
+ "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri":
+ "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "include_rfc2369_headers":
+ true, "info": "", "join_address": "foo-join@example.com", "last_post_at":
+ null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host":
+ "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
+ "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id":
+ 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
"reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address":
"foo-request@example.com", "send_welcome_message": true, "subject_prefix":
"[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1789']
+ content-length: ['1937']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -180,6 +182,19 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/foo@example.com/requests
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
+ "start": 0, "total_size": 0}'}
+ headers:
+ content-length: ['90']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com
response:
body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"}
@@ -223,13 +238,13 @@
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23",
- "http_etag": "\"ab553f5f6456e07f7c6ed9459121c551ed2a3f8c\"", "is_server_owner":
- false, "password": "$6$rounds=656000$vTB41cpblpURRDyZ$9PQv2cA3GXS9QmZQ5Z6UWW/.2ApCIEG2q6FAoOsck2ryKXgL16dPg.0IL7uKMv8w.qWcwwHGeM.exOhUksFwH/",
- "self_link": "http://localhost:9001/3.0/users/6", "user_id": 6}], "http_etag":
- "\"21eb7128106e4efa34185af04a24c0ba37d0bea8\"", "start": 0, "total_size":
+ "http_etag": "\"7a54b409c132b4e5b0451c4e97cf287ba0b03a4f\"", "is_server_owner":
+ false, "password": "$6$rounds=656000$i/AeO6xAVzIww4B4$c/0atkhp.KyB6BpndrpkUwUAbV8fUwDfbAd9oezuX.kUKtDk5LsXrzQPOnx.HvnSiwxhzmcRiUUaQxpPitBy70",
+ "self_link": "http://localhost:9001/3.0/users/3625", "user_id": 3625}], "http_etag":
+ "\"a955894a2ff42510b404d46aeae948c18611557e\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['429']
+ content-length: ['435']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -237,7 +252,7 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'DELETE'
- uri: http://localhost:9001/3.0/users/6
+ uri: http://localhost:9001/3.0/users/3625
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_metrics_not_displayed_to_anonymous.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_metrics_not_displayed_to_anonymous.yaml
index ad509ff..6a725ab 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_metrics_not_displayed_to_anonymous.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_metrics_not_displayed_to_anonymous.yaml
@@ -73,20 +73,22 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to":
- false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri":
- "", "header_uri": "", "http_etag": "\"e752899e2a568ccaad1d891e72c137a4cbc82d5d\"",
- "include_rfc2369_headers": true, "info": "", "join_address": "foo-join@example.com",
- "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name":
- "foo", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
- 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com",
- "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
+ "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation",
+ "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
+ "", "filter_content": false, "first_strip_reply_to": false, "footer_uri":
+ "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri":
+ "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "include_rfc2369_headers":
+ true, "info": "", "join_address": "foo-join@example.com", "last_post_at":
+ null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host":
+ "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
+ "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id":
+ 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
"reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address":
"foo-request@example.com", "send_welcome_message": true, "subject_prefix":
"[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1789']
+ content-length: ['1937']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_pending_subscription_request.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_pending_subscription_request.yaml
new file mode 100644
index 0000000..9a04c43
--- /dev/null
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_pending_subscription_request.yaml
@@ -0,0 +1,281 @@
+interactions:
+- request:
+ body: !!python/unicode 'mail_host=example.com'
+ headers:
+ accept-encoding: ['gzip, deflate']
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/domains
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ content-type: [application/json; charset=UTF-8]
+ 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 '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
+ "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'}
+ headers:
+ content-length: ['172']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
+ headers:
+ accept-encoding: ['gzip, deflate']
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/lists
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ content-type: [application/json; charset=UTF-8]
+ 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: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/foo@example.com/config
+ response:
+ body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify":
+ true, "admin_notify_mchanges": false, "administrivia": true, "advertised":
+ true, "allow_list_posts": true, "anonymous_list": false, "archive_policy":
+ "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests":
+ "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "",
+ "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address":
+ "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext":
+ false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer",
+ "default_nonmember_action": "hold", "description": "", "digest_footer_uri":
+ "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
+ true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
+ "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation",
+ "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
+ "", "filter_content": false, "first_strip_reply_to": false, "footer_uri":
+ "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri":
+ "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "include_rfc2369_headers":
+ true, "info": "", "join_address": "foo-join@example.com", "last_post_at":
+ null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host":
+ "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
+ "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id":
+ 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
+ "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address":
+ "foo-request@example.com", "send_welcome_message": true, "subject_prefix":
+ "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
+ ""}'}
+ headers:
+ content-length: ['1937']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: !!python/unicode 'subscription_policy=moderate'
+ headers:
+ accept-encoding: ['gzip, deflate']
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'PATCH'
+ uri: http://localhost:9001/3.0/lists/foo@example.com/config
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ status: {code: 204, message: No Content}
+- request:
+ body: !!python/unicode 'display_name=None&list_id=foo.example.com&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com'
+ headers:
+ accept-encoding: ['gzip, deflate']
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/members
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"ce02746b8e877c2c27d3ea5dccd507ee66860cd8\"",
+ "token": "0000000000000000000000000000000000000226", "token_owner": "moderator"}'}
+ headers:
+ content-length: ['142']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 202, message: Accepted}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/foo@example.com
+ response:
+ body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
+ "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com",
+ "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link":
+ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'}
+ headers:
+ content-length: ['294']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
+ response:
+ body: {string: !!python/unicode '{"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/config
+ response:
+ body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify":
+ true, "admin_notify_mchanges": false, "administrivia": true, "advertised":
+ true, "allow_list_posts": true, "anonymous_list": false, "archive_policy":
+ "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests":
+ "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "",
+ "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address":
+ "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext":
+ false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer",
+ "default_nonmember_action": "hold", "description": "", "digest_footer_uri":
+ "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
+ true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
+ "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation",
+ "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
+ "", "filter_content": false, "first_strip_reply_to": false, "footer_uri":
+ "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri":
+ "", "http_etag": "\"a1eb792d1c0fdca9738bcfbfda7fe496ce6c9a2b\"", "include_rfc2369_headers":
+ true, "info": "", "join_address": "foo-join@example.com", "last_post_at":
+ null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host":
+ "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
+ "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id":
+ 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
+ "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address":
+ "foo-request@example.com", "send_welcome_message": true, "subject_prefix":
+ "[Foo] ", "subscription_policy": "moderate", "volume": 1, "welcome_message_uri":
+ ""}'}
+ headers:
+ content-length: ['1938']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/foo.example.com/archivers
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"",
+ "mail-archive": true, "mhonarc": true, "prototype": true}'}
+ headers:
+ content-length: ['119']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/foo@example.com/requests
+ response:
+ body: {string: !!python/unicode '{"entries": [{"display_name": "None", "email":
+ "test@example.com", "http_etag": "\"c9209b4df062f9e6a8e65016fe542c0dcd6a1ef5\"",
+ "list_id": "foo.example.com", "token": "0000000000000000000000000000000000000226",
+ "token_owner": "moderator", "type": "subscription", "when": "2005-08-01T07:49:23"}],
+ "http_etag": "\"0ab23bb9f5df567fb7f1bfcdb497e8c99f300215\"", "start": 0, "total_size":
+ 1}'}
+ headers:
+ content-length: ['385']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/domains
+ response:
+ body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
+ "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com",
+ "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag":
+ "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size":
+ 1}'}
+ headers:
+ content-length: ['277']
+ 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/domains/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",
+ "display_name": "None", "http_etag": "\"b856309f543ab9a9d4439fb43f190300d332c7a3\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3626",
+ "user_id": 3626}], "http_etag": "\"3444f7a687a141131a7c643b2de9e97a80767492\"",
+ "start": 0, "total_size": 1}'}
+ headers:
+ content-length: ['323']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3626
+ 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/ListSummaryPageTest.test_unsubscribe_button_is_available.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_unsubscribe_button_is_available.yaml
index b4a5277..2e69024 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_unsubscribe_button_is_available.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_unsubscribe_button_is_available.yaml
@@ -67,7 +67,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/7']
+ location: ['http://localhost:9001/3.0/members/5516']
status: {code: 201, message: Created}
- request:
body: null
@@ -128,20 +128,22 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to":
- false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri":
- "", "header_uri": "", "http_etag": "\"e752899e2a568ccaad1d891e72c137a4cbc82d5d\"",
- "include_rfc2369_headers": true, "info": "", "join_address": "foo-join@example.com",
- "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name":
- "foo", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
- 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com",
- "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
+ "digests_enabled": true, "display_name": "Foo", "dmarc_mitigate_action": "no_mitigation",
+ "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice": "", "dmarc_wrapped_message_text":
+ "", "filter_content": false, "first_strip_reply_to": false, "footer_uri":
+ "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": "", "header_uri":
+ "", "http_etag": "\"1a931726ccc4d9b68005a70db10bf9693957dd2c\"", "include_rfc2369_headers":
+ true, "info": "", "join_address": "foo-join@example.com", "last_post_at":
+ null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host":
+ "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address":
+ "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id":
+ 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline",
"reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address":
"foo-request@example.com", "send_welcome_message": true, "subject_prefix":
"[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1789']
+ content-length: ['1937']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -162,14 +164,27 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/foo@example.com/requests
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
+ "start": 0, "total_size": 0}'}
+ headers:
+ content-length: ['90']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com
response:
body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/test@example.com",
- "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"ff33fb6ab7d24db3afbd477f5584be709a2d247d\"",
- "list_id": "foo.example.com", "member_id": 7, "role": "member", "self_link":
- "http://localhost:9001/3.0/members/7", "user": "http://localhost:9001/3.0/users/7"}'}
+ "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"9ac75558db17a6ba3238bcc92eca915f2e7c172c\"",
+ "list_id": "foo.example.com", "member_id": 5516, "role": "member", "self_link":
+ "http://localhost:9001/3.0/members/5516", "user": "http://localhost:9001/3.0/users/3627"}'}
headers:
- content-length: ['346']
+ content-length: ['355']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -207,12 +222,12 @@
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": "\"b00eaeb04cfe981da2ee012d8482e830be41ed85\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/7",
- "user_id": 7}], "http_etag": "\"e7e7677b581a6a895abf97a006b768a485f61c1a\"",
+ "display_name": "None", "http_etag": "\"2807529ed82c28e94f01164895311b1be6e67322\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3627",
+ "user_id": 3627}], "http_etag": "\"0583b18ec6d45a1ce324ea8a20df045b57f30595\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['317']
+ content-length: ['323']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -220,7 +235,7 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'DELETE'
- uri: http://localhost:9001/3.0/users/7
+ uri: http://localhost:9001/3.0/users/3627
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_address_based_preferences.yaml b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_address_based_preferences.yaml
index e0850f8..dd44004 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_address_based_preferences.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_address_based_preferences.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -41,26 +41,26 @@
location: ['http://localhost:9001/3.0/lists/foo.example.com']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode email=user%40example.com
+ body: !!python/unicode 'email=user%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/users/97']
+ location: ['http://localhost:9001/3.0/users/3741']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode email=user2%40example.com
+ body: !!python/unicode 'email=user2%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/97/addresses
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/users/3741/addresses
response:
body: {string: !!python/unicode ''}
headers:
@@ -69,12 +69,12 @@
location: ['http://localhost:9001/3.0/addresses/user2@example.com']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode email=user3%40example.com
+ body: !!python/unicode 'email=user3%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/97/addresses
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/users/3741/addresses
response:
body: {string: !!python/unicode ''}
headers:
@@ -86,83 +86,45 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/users/user@example.com
response:
body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
- "\"4427ecc2f6d6c28650bd2be9e90d96cdacbe478c\"", "is_server_owner": false,
- "password": "$6$rounds=664171$84cuCldx/iLQRuD9$OCacUJ1HUIQ2UqFRH/oCBGZQ35VJm0VrjSJ9IAauHSh4U5oOWNHSqnaio5dOVqVyghe38uvACMksaC.4V.tYH/",
- "self_link": "http://localhost:9001/3.0/users/97", "user_id": 97}'}
+ "\"087295ab607781a72d9dea1d5f17623551094fa1\"", "is_server_owner": false,
+ "password": "$6$rounds=656000$zZHK3sB2Q4MCM.97$h8od9SclEVUmwOY6WZe42vhQi91keS.KRzmsAk20vwb54LbDNWBzFyMETIpUn2O6CH1LTKUXoNz8zWKK9NBHA1",
+ "self_link": "http://localhost:9001/3.0/users/3741", "user_id": 3741}'}
headers:
- content-length: ['326']
+ content-length: ['330']
content-type: [application/json; charset=UTF-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/97/addresses
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/3741/addresses
response:
body: {string: !!python/unicode '{"entries": [{"email": "user2@example.com", "http_etag":
- "\"7a29504c1b8267310be35eae90bee20866a14ecb\"", "original_email": "user2@example.com",
+ "\"4cb1ff038aa1304e8f851cc995b40e0e0d389aeb\"", "original_email": "user2@example.com",
"registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user2@example.com",
- "user": "http://localhost:9001/3.0/users/97"}, {"email": "user3@example.com",
- "http_etag": "\"7cc3d1ece8fa4cab6a35e21b24c2f888b71a5d61\"", "original_email":
+ "user": "http://localhost:9001/3.0/users/3741"}, {"email": "user3@example.com",
+ "http_etag": "\"dcd0eaa1b68af0e6494ec59c14e5f2386af21b9f\"", "original_email":
"user3@example.com", "registered_on": "2005-08-01T07:49:23", "self_link":
- "http://localhost:9001/3.0/addresses/user3@example.com", "user": "http://localhost:9001/3.0/users/97"},
- {"email": "user@example.com", "http_etag": "\"a2a666363c664044b0119a2db0b3148515af15d0\"",
+ "http://localhost:9001/3.0/addresses/user3@example.com", "user": "http://localhost:9001/3.0/users/3741"},
+ {"email": "user@example.com", "http_etag": "\"d7473edddcf48a99d270881505ead35f444bd6d0\"",
"original_email": "user@example.com", "registered_on": "2005-08-01T07:49:23",
"self_link": "http://localhost:9001/3.0/addresses/user@example.com", "user":
- "http://localhost:9001/3.0/users/97"}], "http_etag": "\"4682278e6e1d930d5a4b4fd6a35916f57086b7c4\"",
+ "http://localhost:9001/3.0/users/3741"}], "http_etag": "\"f3e1ff3d307db0b214133dc83b8677e558138da2\"",
"start": 0, "total_size": 3}'}
headers:
- content-length: ['964']
+ content-length: ['970']
content-type: [application/json; charset=UTF-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/user@example.com
- response:
- body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
- "\"4427ecc2f6d6c28650bd2be9e90d96cdacbe478c\"", "is_server_owner": false,
- "password": "$6$rounds=664171$84cuCldx/iLQRuD9$OCacUJ1HUIQ2UqFRH/oCBGZQ35VJm0VrjSJ9IAauHSh4U5oOWNHSqnaio5dOVqVyghe38uvACMksaC.4V.tYH/",
- "self_link": "http://localhost:9001/3.0/users/97", "user_id": 97}'}
- headers:
- content-length: ['326']
- content-type: [application/json; charset=UTF-8]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
- uri: http://localhost:9001/3.0/users/97/addresses
- response:
- body: {string: !!python/unicode '{"entries": [{"email": "user2@example.com", "http_etag":
- "\"7a29504c1b8267310be35eae90bee20866a14ecb\"", "original_email": "user2@example.com",
- "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user2@example.com",
- "user": "http://localhost:9001/3.0/users/97"}, {"email": "user3@example.com",
- "http_etag": "\"7cc3d1ece8fa4cab6a35e21b24c2f888b71a5d61\"", "original_email":
- "user3@example.com", "registered_on": "2005-08-01T07:49:23", "self_link":
- "http://localhost:9001/3.0/addresses/user3@example.com", "user": "http://localhost:9001/3.0/users/97"},
- {"email": "user@example.com", "http_etag": "\"a2a666363c664044b0119a2db0b3148515af15d0\"",
- "original_email": "user@example.com", "registered_on": "2005-08-01T07:49:23",
- "self_link": "http://localhost:9001/3.0/addresses/user@example.com", "user":
- "http://localhost:9001/3.0/users/97"}], "http_etag": "\"4682278e6e1d930d5a4b4fd6a35916f57086b7c4\"",
- "start": 0, "total_size": 3}'}
- headers:
- content-length: ['964']
- 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/user2@example.com/preferences
response:
body: {string: !!python/unicode '{"http_etag": "\"a7666bafbd297a58aa20fc67fed94dc5f29e696c\"",
@@ -175,7 +137,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/addresses/user3@example.com/preferences
response:
body: {string: !!python/unicode '{"http_etag": "\"a99bfb2af4f58fb94d3308d147de24937297fb32\"",
@@ -188,7 +150,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/addresses/user@example.com/preferences
response:
body: {string: !!python/unicode '{"http_etag": "\"c557a0cd7d400f67152a6f6e5e2c14858e632323\"",
@@ -201,7 +163,30 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/3741/addresses
+ response:
+ body: {string: !!python/unicode '{"entries": [{"email": "user2@example.com", "http_etag":
+ "\"4cb1ff038aa1304e8f851cc995b40e0e0d389aeb\"", "original_email": "user2@example.com",
+ "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user2@example.com",
+ "user": "http://localhost:9001/3.0/users/3741"}, {"email": "user3@example.com",
+ "http_etag": "\"dcd0eaa1b68af0e6494ec59c14e5f2386af21b9f\"", "original_email":
+ "user3@example.com", "registered_on": "2005-08-01T07:49:23", "self_link":
+ "http://localhost:9001/3.0/addresses/user3@example.com", "user": "http://localhost:9001/3.0/users/3741"},
+ {"email": "user@example.com", "http_etag": "\"d7473edddcf48a99d270881505ead35f444bd6d0\"",
+ "original_email": "user@example.com", "registered_on": "2005-08-01T07:49:23",
+ "self_link": "http://localhost:9001/3.0/addresses/user@example.com", "user":
+ "http://localhost:9001/3.0/users/3741"}], "http_etag": "\"f3e1ff3d307db0b214133dc83b8677e558138da2\"",
+ "start": 0, "total_size": 3}'}
+ headers:
+ content-length: ['970']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -217,7 +202,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -228,25 +213,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": "\"4427ecc2f6d6c28650bd2be9e90d96cdacbe478c\"", "is_server_owner":
- false, "password": "$6$rounds=664171$84cuCldx/iLQRuD9$OCacUJ1HUIQ2UqFRH/oCBGZQ35VJm0VrjSJ9IAauHSh4U5oOWNHSqnaio5dOVqVyghe38uvACMksaC.4V.tYH/",
- "self_link": "http://localhost:9001/3.0/users/97", "user_id": 97}], "http_etag":
- "\"f4499d0805fd4b68130a14ca9261a083cee33540\"", "start": 0, "total_size":
+ "http_etag": "\"087295ab607781a72d9dea1d5f17623551094fa1\"", "is_server_owner":
+ false, "password": "$6$rounds=656000$zZHK3sB2Q4MCM.97$h8od9SclEVUmwOY6WZe42vhQi91keS.KRzmsAk20vwb54LbDNWBzFyMETIpUn2O6CH1LTKUXoNz8zWKK9NBHA1",
+ "self_link": "http://localhost:9001/3.0/users/3741", "user_id": 3741}], "http_etag":
+ "\"9363bca4a36a4ceb676d275aec163735e5debbd9\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['431']
+ content-length: ['435']
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/97
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3741
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_address_preferences_not_logged_in.yaml b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_address_preferences_not_logged_in.yaml
index 5c9da51..128aeb4 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_address_preferences_not_logged_in.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_address_preferences_not_logged_in.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -41,24 +41,24 @@
location: ['http://localhost:9001/3.0/lists/foo.example.com']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode email=user%40example.com
+ body: !!python/unicode 'email=user%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/users/98']
+ location: ['http://localhost:9001/3.0/users/3742']
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/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -74,7 +74,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -85,25 +85,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": "\"8f52b466ef5e4ead85043d0d397d21fcba39adfe\"", "is_server_owner":
- false, "password": "$6$rounds=652167$99tso8t9x1YxCbPp$xxjX8f.mGbn3FUQdaOIC8HD5kfn20lFNF/HGqp/WmJrUQ/dmDVLh9Rts6H5n7lpsZ8zK49Zf.hLfLJFib2RHt1",
- "self_link": "http://localhost:9001/3.0/users/98", "user_id": 98}], "http_etag":
- "\"0258181840f508b9440745724dd05b57978a3654\"", "start": 0, "total_size":
+ "http_etag": "\"8b7cedaa1c6ae3f579b3f50a43f7765496e56a64\"", "is_server_owner":
+ false, "password": "$6$rounds=656000$IXVzpv4iqc2ZZFSL$rhcOZfi.GaXIzjI.44cEaye82O2xuCeV9XxGbckrX211nNhHEEwOffpDy6A7RCpEFy2L5LHdq7CBXEENzflfV0",
+ "self_link": "http://localhost:9001/3.0/users/3742", "user_id": 3742}], "http_etag":
+ "\"d92096449458ef3e23b1d130ff20dd639abadeaf\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['431']
+ content-length: ['435']
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/98
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3742
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_list_options_shows_all_addresses.yaml b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_list_options_shows_all_addresses.yaml
index 2e42326..7a9e954 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_list_options_shows_all_addresses.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_list_options_shows_all_addresses.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -41,24 +41,24 @@
location: ['http://localhost:9001/3.0/lists/foo.example.com']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode email=user%40example.com
+ body: !!python/unicode 'email=user%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/users/2']
+ location: ['http://localhost:9001/3.0/users/3743']
status: {code: 201, message: Created}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -70,41 +70,41 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=user%40example.com
+ body: !!python/unicode 'display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=user%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/2']
+ location: ['http://localhost:9001/3.0/members/5626']
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/user@example.com
response:
body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
- "\"8833513b5e27144d0d4d6a6144a63f5bc5cb361b\"", "is_server_owner": false,
- "password": "$6$rounds=627685$pJC7w5AH.LcWLQrI$mUzhXiAXuZGaXfkOEoUucwvarwMKriUhyMBN2VBsVCpBfRC/pcLsQ8I8f.e52bKaV6YBgDN/XrslRi1rhahRY.",
- "self_link": "http://localhost:9001/3.0/users/2", "user_id": 2}'}
+ "\"9f458197c647f70d3493930b7875f1fb505a9304\"", "is_server_owner": false,
+ "password": "$6$rounds=656000$rp4yV.3VAexh.1Sp$QCTJCyVhhhKQ10qzDzkYJ72c6stVlBbtH7jt9HJRzb0ft83RUTni7XSfdKfpi.PtkHT5fhXxMUnDFggy2LvXJ.",
+ "self_link": "http://localhost:9001/3.0/users/3743", "user_id": 3743}'}
headers:
- content-length: ['324']
+ content-length: ['330']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode email=anotheremail%40example.com
+ body: !!python/unicode 'email=anotheremail%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
- uri: http://localhost:9001/3.0/users/2/addresses
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/users/3743/addresses
response:
body: {string: !!python/unicode ''}
headers:
@@ -116,7 +116,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 ''}
@@ -127,7 +127,22 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/user@example.com
+ response:
+ body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
+ "\"9f458197c647f70d3493930b7875f1fb505a9304\"", "is_server_owner": false,
+ "password": "$6$rounds=656000$rp4yV.3VAexh.1Sp$QCTJCyVhhhKQ10qzDzkYJ72c6stVlBbtH7jt9HJRzb0ft83RUTni7XSfdKfpi.PtkHT5fhXxMUnDFggy2LvXJ.",
+ "self_link": "http://localhost:9001/3.0/users/3743", "user_id": 3743}'}
+ headers:
+ content-length: ['330']
+ content-type: [application/json; charset=UTF-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",
@@ -142,44 +157,29 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
- uri: http://localhost:9001/3.0/users/user@example.com
- response:
- body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
- "\"8833513b5e27144d0d4d6a6144a63f5bc5cb361b\"", "is_server_owner": false,
- "password": "$6$rounds=627685$pJC7w5AH.LcWLQrI$mUzhXiAXuZGaXfkOEoUucwvarwMKriUhyMBN2VBsVCpBfRC/pcLsQ8I8f.e52bKaV6YBgDN/XrslRi1rhahRY.",
- "self_link": "http://localhost:9001/3.0/users/2", "user_id": 2}'}
- 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/users/2/addresses
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/3743/addresses
response:
body: {string: !!python/unicode '{"entries": [{"email": "anotheremail@example.com",
- "http_etag": "\"e4db5c40d3f770c3b97fe29d5663728af4854ce5\"", "original_email":
+ "http_etag": "\"d020590ec1d0dfdfc839e3171dae12d89234248e\"", "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/2",
+ "http://localhost:9001/3.0/addresses/anotheremail@example.com", "user": "http://localhost:9001/3.0/users/3743",
"verified_on": "2005-08-01T07:49:23"}, {"email": "user@example.com", "http_etag":
- "\"e2ed0a0e92fde50a51fece5dcc127e1be7d8a67d\"", "original_email": "user@example.com",
+ "\"a373ded0ea834c0f844a12dafc67bb3cdaf804e5\"", "original_email": "user@example.com",
"registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user@example.com",
- "user": "http://localhost:9001/3.0/users/2", "verified_on": "2005-08-01T07:49:23"}],
- "http_etag": "\"1efba2362acf0ba084c8142fcb21aaf70ca3524b\"", "start": 0, "total_size":
+ "user": "http://localhost:9001/3.0/users/3743", "verified_on": "2005-08-01T07:49:23"}],
+ "http_etag": "\"983f17437c7a441cffb5d524da7026fb140b42c2\"", "start": 0, "total_size":
2}'}
headers:
- content-length: ['771']
+ content-length: ['777']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode subscriber=anotheremail%40example.com
+ body: !!python/unicode 'subscriber=anotheremail%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members/find
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
@@ -189,41 +189,41 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode subscriber=user%40example.com
+ body: !!python/unicode 'subscriber=user%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members/find
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/user@example.com",
- "delivery_mode": "regular", "email": "user@example.com", "http_etag": "\"0d6b5d198b00c63386ec1690c1fe80bfbbe01006\"",
- "list_id": "foo.example.com", "member_id": 2, "role": "member", "self_link":
- "http://localhost:9001/3.0/members/2", "user": "http://localhost:9001/3.0/users/2"}],
- "http_etag": "\"0a8425bed08f5b42383ebb0f7dc1cb781024a5cd\"", "start": 0, "total_size":
+ "delivery_mode": "regular", "email": "user@example.com", "http_etag": "\"05f41f37b03b3b69f4ae43a69f8dcaf3b1da92ee\"",
+ "list_id": "foo.example.com", "member_id": 5626, "role": "member", "self_link":
+ "http://localhost:9001/3.0/members/5626", "user": "http://localhost:9001/3.0/users/3743"}],
+ "http_etag": "\"55dca5a8ecaa714efa7f1820fb25f75a2f6a5f34\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['451']
+ 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/members/2/preferences
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/members/5626/preferences
response:
- body: {string: !!python/unicode '{"http_etag": "\"35c3a459eb9ce551e79eef1f9932eb915a59322f\"",
- "self_link": "http://localhost:9001/3.0/members/2/preferences"}'}
+ body: {string: !!python/unicode '{"http_etag": "\"f401e7c04e21870b51c3c370af1817164cad42b6\"",
+ "self_link": "http://localhost:9001/3.0/members/5626/preferences"}'}
headers:
- content-length: ['125']
+ content-length: ['128']
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/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -239,7 +239,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -250,25 +250,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": "\"8833513b5e27144d0d4d6a6144a63f5bc5cb361b\"", "is_server_owner":
- false, "password": "$6$rounds=627685$pJC7w5AH.LcWLQrI$mUzhXiAXuZGaXfkOEoUucwvarwMKriUhyMBN2VBsVCpBfRC/pcLsQ8I8f.e52bKaV6YBgDN/XrslRi1rhahRY.",
- "self_link": "http://localhost:9001/3.0/users/2", "user_id": 2}], "http_etag":
- "\"c50c75b36740137b7f13885ea650b5a0bd513e22\"", "start": 0, "total_size":
+ "http_etag": "\"9f458197c647f70d3493930b7875f1fb505a9304\"", "is_server_owner":
+ false, "password": "$6$rounds=656000$rp4yV.3VAexh.1Sp$QCTJCyVhhhKQ10qzDzkYJ72c6stVlBbtH7jt9HJRzb0ft83RUTni7XSfdKfpi.PtkHT5fhXxMUnDFggy2LvXJ.",
+ "self_link": "http://localhost:9001/3.0/users/3743", "user_id": 3743}], "http_etag":
+ "\"517bd267ab4f38d3a9355555750fdfef3b90af1e\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['429']
+ content-length: ['435']
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/2
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3743
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_preferences_none.yaml b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_preferences_none.yaml
index b507bae..e9788b9 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_preferences_none.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_preferences_none.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -41,24 +41,24 @@
location: ['http://localhost:9001/3.0/lists/foo.example.com']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode email=user%40example.com
+ body: !!python/unicode 'email=user%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/users/99']
+ location: ['http://localhost:9001/3.0/users/3744']
status: {code: 201, message: Created}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -70,84 +70,67 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=user%40example.com
+ body: !!python/unicode 'display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=user%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/103']
+ location: ['http://localhost:9001/3.0/members/5627']
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/user@example.com
response:
body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
- "\"b6003f4ee23478173a1b7cbbef5c32491fe3f4fa\"", "is_server_owner": false,
- "password": "$6$rounds=633642$Yy9p1g1SRhQo382X$g696SDmWTwWUeYC8zMFp1kXxmxdI9WnsSxDGmYYkww/ldG1R16.nybAQ6AbwRWIaPvbW7Ww1RlxZmt8eUec2W/",
- "self_link": "http://localhost:9001/3.0/users/99", "user_id": 99}'}
+ "\"6b3c295355c64a4175f26894c9937f4d89cdc4db\"", "is_server_owner": false,
+ "password": "$6$rounds=656000$X6WeV3UycFG9lfrl$JGsotfWpfuPAuNG6csxqbTlRptCkqRwm3v6d9GFRZ7d1PGgG18dPzoBTTQnCIyxuEaGDXxF9RXeRNu5JdGGMq.",
+ "self_link": "http://localhost:9001/3.0/users/3744", "user_id": 3744}'}
headers:
- content-length: ['326']
+ content-length: ['330']
content-type: [application/json; charset=UTF-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/99/addresses
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/3744/preferences
response:
- body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag":
- "\"46ec17aed3b05ba990665417ba816024dc69b8ff\"", "original_email": "user@example.com",
- "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user@example.com",
- "user": "http://localhost:9001/3.0/users/99", "verified_on": "2005-08-01T07:49:23"}],
- "http_etag": "\"08fa71d143e37789397e3cd03ede1318b82fc717\"", "start": 0, "total_size":
- 1}'}
+ body: {string: !!python/unicode '{"http_etag": "\"bc0df1457b730fe52859bb6fb1f8308518244cf9\"",
+ "self_link": "http://localhost:9001/3.0/users/3744/preferences"}'}
headers:
- content-length: ['426']
+ content-length: ['126']
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/user@example.com
response:
body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
- "\"b6003f4ee23478173a1b7cbbef5c32491fe3f4fa\"", "is_server_owner": false,
- "password": "$6$rounds=633642$Yy9p1g1SRhQo382X$g696SDmWTwWUeYC8zMFp1kXxmxdI9WnsSxDGmYYkww/ldG1R16.nybAQ6AbwRWIaPvbW7Ww1RlxZmt8eUec2W/",
- "self_link": "http://localhost:9001/3.0/users/99", "user_id": 99}'}
+ "\"6b3c295355c64a4175f26894c9937f4d89cdc4db\"", "is_server_owner": false,
+ "password": "$6$rounds=656000$X6WeV3UycFG9lfrl$JGsotfWpfuPAuNG6csxqbTlRptCkqRwm3v6d9GFRZ7d1PGgG18dPzoBTTQnCIyxuEaGDXxF9RXeRNu5JdGGMq.",
+ "self_link": "http://localhost:9001/3.0/users/3744", "user_id": 3744}'}
headers:
- content-length: ['326']
+ content-length: ['330']
content-type: [application/json; charset=UTF-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/99/preferences
- response:
- body: {string: !!python/unicode '{"http_etag": "\"b550eb516902a3ccfd04f3141e6ed1a26d19f3f0\"",
- "self_link": "http://localhost:9001/3.0/users/99/preferences"}'}
- headers:
- content-length: ['124']
- 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",
@@ -162,134 +145,87 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
- uri: http://localhost:9001/3.0/users/user@example.com
- response:
- body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
- "\"b6003f4ee23478173a1b7cbbef5c32491fe3f4fa\"", "is_server_owner": false,
- "password": "$6$rounds=633642$Yy9p1g1SRhQo382X$g696SDmWTwWUeYC8zMFp1kXxmxdI9WnsSxDGmYYkww/ldG1R16.nybAQ6AbwRWIaPvbW7Ww1RlxZmt8eUec2W/",
- "self_link": "http://localhost:9001/3.0/users/99", "user_id": 99}'}
- headers:
- content-length: ['326']
- content-type: [application/json; charset=UTF-8]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
- uri: http://localhost:9001/3.0/users/99/addresses
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/3744/addresses
response:
body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag":
- "\"46ec17aed3b05ba990665417ba816024dc69b8ff\"", "original_email": "user@example.com",
+ "\"ce7fff3d906b63bf3683eb5644c2ed90ddadff87\"", "original_email": "user@example.com",
"registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user@example.com",
- "user": "http://localhost:9001/3.0/users/99", "verified_on": "2005-08-01T07:49:23"}],
- "http_etag": "\"08fa71d143e37789397e3cd03ede1318b82fc717\"", "start": 0, "total_size":
+ "user": "http://localhost:9001/3.0/users/3744", "verified_on": "2005-08-01T07:49:23"}],
+ "http_etag": "\"f0a5226c12f4ce22fe7412bcb564b73bbfe5598d\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['426']
+ content-length: ['428']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode subscriber=user%40example.com
+ body: !!python/unicode 'subscriber=user%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members/find
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/user@example.com",
- "delivery_mode": "regular", "email": "user@example.com", "http_etag": "\"3a7bef9da0b3d5034868ecb5134417fc6a3d9621\"",
- "list_id": "foo.example.com", "member_id": 103, "role": "member", "self_link":
- "http://localhost:9001/3.0/members/103", "user": "http://localhost:9001/3.0/users/99"}],
- "http_etag": "\"4153897415f9f2907ca9558bab57666c1ade364c\"", "start": 0, "total_size":
+ "delivery_mode": "regular", "email": "user@example.com", "http_etag": "\"f0ea06717f818a018767e7aceb8d99fddcd9c5ee\"",
+ "list_id": "foo.example.com", "member_id": 5627, "role": "member", "self_link":
+ "http://localhost:9001/3.0/members/5627", "user": "http://localhost:9001/3.0/users/3744"}],
+ "http_etag": "\"d451d388b6e10f7a6684b669e108134be197b7aa\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['456']
+ 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/members/103/preferences
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/members/5627/preferences
response:
- body: {string: !!python/unicode '{"http_etag": "\"e71b5b97ebc9fd9191e6ac6c437685b512624da3\"",
- "self_link": "http://localhost:9001/3.0/members/103/preferences"}'}
+ body: {string: !!python/unicode '{"http_etag": "\"a7db77bbf6daa7c04cd696cadbe24eadedd4883c\"",
+ "self_link": "http://localhost:9001/3.0/members/5627/preferences"}'}
headers:
- content-length: ['127']
+ content-length: ['128']
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/user@example.com
response:
body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
- "\"b6003f4ee23478173a1b7cbbef5c32491fe3f4fa\"", "is_server_owner": false,
- "password": "$6$rounds=633642$Yy9p1g1SRhQo382X$g696SDmWTwWUeYC8zMFp1kXxmxdI9WnsSxDGmYYkww/ldG1R16.nybAQ6AbwRWIaPvbW7Ww1RlxZmt8eUec2W/",
- "self_link": "http://localhost:9001/3.0/users/99", "user_id": 99}'}
+ "\"6b3c295355c64a4175f26894c9937f4d89cdc4db\"", "is_server_owner": false,
+ "password": "$6$rounds=656000$X6WeV3UycFG9lfrl$JGsotfWpfuPAuNG6csxqbTlRptCkqRwm3v6d9GFRZ7d1PGgG18dPzoBTTQnCIyxuEaGDXxF9RXeRNu5JdGGMq.",
+ "self_link": "http://localhost:9001/3.0/users/3744", "user_id": 3744}'}
headers:
- content-length: ['326']
+ content-length: ['330']
content-type: [application/json; charset=UTF-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/99/addresses
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/3744/addresses
response:
body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag":
- "\"46ec17aed3b05ba990665417ba816024dc69b8ff\"", "original_email": "user@example.com",
+ "\"ce7fff3d906b63bf3683eb5644c2ed90ddadff87\"", "original_email": "user@example.com",
"registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user@example.com",
- "user": "http://localhost:9001/3.0/users/99", "verified_on": "2005-08-01T07:49:23"}],
- "http_etag": "\"08fa71d143e37789397e3cd03ede1318b82fc717\"", "start": 0, "total_size":
+ "user": "http://localhost:9001/3.0/users/3744", "verified_on": "2005-08-01T07:49:23"}],
+ "http_etag": "\"f0a5226c12f4ce22fe7412bcb564b73bbfe5598d\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['426']
+ content-length: ['428']
content-type: [application/json; charset=UTF-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/user@example.com
- response:
- body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
- "\"b6003f4ee23478173a1b7cbbef5c32491fe3f4fa\"", "is_server_owner": false,
- "password": "$6$rounds=633642$Yy9p1g1SRhQo382X$g696SDmWTwWUeYC8zMFp1kXxmxdI9WnsSxDGmYYkww/ldG1R16.nybAQ6AbwRWIaPvbW7Ww1RlxZmt8eUec2W/",
- "self_link": "http://localhost:9001/3.0/users/99", "user_id": 99}'}
- headers:
- content-length: ['326']
- content-type: [application/json; charset=UTF-8]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
- uri: http://localhost:9001/3.0/users/99/addresses
- response:
- body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag":
- "\"46ec17aed3b05ba990665417ba816024dc69b8ff\"", "original_email": "user@example.com",
- "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user@example.com",
- "user": "http://localhost:9001/3.0/users/99", "verified_on": "2005-08-01T07:49:23"}],
- "http_etag": "\"08fa71d143e37789397e3cd03ede1318b82fc717\"", "start": 0, "total_size":
- 1}'}
- headers:
- content-length: ['426']
- 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/user@example.com/preferences
response:
body: {string: !!python/unicode '{"http_etag": "\"c557a0cd7d400f67152a6f6e5e2c14858e632323\"",
@@ -302,87 +238,70 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/users/user@example.com
response:
body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
- "\"b6003f4ee23478173a1b7cbbef5c32491fe3f4fa\"", "is_server_owner": false,
- "password": "$6$rounds=633642$Yy9p1g1SRhQo382X$g696SDmWTwWUeYC8zMFp1kXxmxdI9WnsSxDGmYYkww/ldG1R16.nybAQ6AbwRWIaPvbW7Ww1RlxZmt8eUec2W/",
- "self_link": "http://localhost:9001/3.0/users/99", "user_id": 99}'}
+ "\"6b3c295355c64a4175f26894c9937f4d89cdc4db\"", "is_server_owner": false,
+ "password": "$6$rounds=656000$X6WeV3UycFG9lfrl$JGsotfWpfuPAuNG6csxqbTlRptCkqRwm3v6d9GFRZ7d1PGgG18dPzoBTTQnCIyxuEaGDXxF9RXeRNu5JdGGMq.",
+ "self_link": "http://localhost:9001/3.0/users/3744", "user_id": 3744}'}
headers:
- content-length: ['326']
+ content-length: ['330']
content-type: [application/json; charset=UTF-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/99/addresses
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/3744/addresses
response:
body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag":
- "\"46ec17aed3b05ba990665417ba816024dc69b8ff\"", "original_email": "user@example.com",
+ "\"ce7fff3d906b63bf3683eb5644c2ed90ddadff87\"", "original_email": "user@example.com",
"registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user@example.com",
- "user": "http://localhost:9001/3.0/users/99", "verified_on": "2005-08-01T07:49:23"}],
- "http_etag": "\"08fa71d143e37789397e3cd03ede1318b82fc717\"", "start": 0, "total_size":
+ "user": "http://localhost:9001/3.0/users/3744", "verified_on": "2005-08-01T07:49:23"}],
+ "http_etag": "\"f0a5226c12f4ce22fe7412bcb564b73bbfe5598d\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['426']
+ content-length: ['428']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: null
+ body: !!python/unicode 'subscriber=user%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
- uri: http://localhost:9001/3.0/users/99/addresses
- response:
- body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag":
- "\"46ec17aed3b05ba990665417ba816024dc69b8ff\"", "original_email": "user@example.com",
- "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user@example.com",
- "user": "http://localhost:9001/3.0/users/99", "verified_on": "2005-08-01T07:49:23"}],
- "http_etag": "\"08fa71d143e37789397e3cd03ede1318b82fc717\"", "start": 0, "total_size":
- 1}'}
- headers:
- content-length: ['426']
- content-type: [application/json; charset=UTF-8]
- status: {code: 200, message: OK}
-- request:
- body: !!python/unicode subscriber=user%40example.com
- headers:
- accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members/find
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/user@example.com",
- "delivery_mode": "regular", "email": "user@example.com", "http_etag": "\"3a7bef9da0b3d5034868ecb5134417fc6a3d9621\"",
- "list_id": "foo.example.com", "member_id": 103, "role": "member", "self_link":
- "http://localhost:9001/3.0/members/103", "user": "http://localhost:9001/3.0/users/99"}],
- "http_etag": "\"4153897415f9f2907ca9558bab57666c1ade364c\"", "start": 0, "total_size":
+ "delivery_mode": "regular", "email": "user@example.com", "http_etag": "\"f0ea06717f818a018767e7aceb8d99fddcd9c5ee\"",
+ "list_id": "foo.example.com", "member_id": 5627, "role": "member", "self_link":
+ "http://localhost:9001/3.0/members/5627", "user": "http://localhost:9001/3.0/users/3744"}],
+ "http_etag": "\"d451d388b6e10f7a6684b669e108134be197b7aa\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['456']
+ 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/members/103/preferences
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/members/5627/preferences
response:
- body: {string: !!python/unicode '{"http_etag": "\"e71b5b97ebc9fd9191e6ac6c437685b512624da3\"",
- "self_link": "http://localhost:9001/3.0/members/103/preferences"}'}
+ body: {string: !!python/unicode '{"http_etag": "\"a7db77bbf6daa7c04cd696cadbe24eadedd4883c\"",
+ "self_link": "http://localhost:9001/3.0/members/5627/preferences"}'}
headers:
- content-length: ['127']
+ content-length: ['128']
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/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -398,7 +317,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -409,25 +328,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": "\"b6003f4ee23478173a1b7cbbef5c32491fe3f4fa\"", "is_server_owner":
- false, "password": "$6$rounds=633642$Yy9p1g1SRhQo382X$g696SDmWTwWUeYC8zMFp1kXxmxdI9WnsSxDGmYYkww/ldG1R16.nybAQ6AbwRWIaPvbW7Ww1RlxZmt8eUec2W/",
- "self_link": "http://localhost:9001/3.0/users/99", "user_id": 99}], "http_etag":
- "\"ea79905ff69e944c84b4595689bf173dca483a5a\"", "start": 0, "total_size":
+ "http_etag": "\"6b3c295355c64a4175f26894c9937f4d89cdc4db\"", "is_server_owner":
+ false, "password": "$6$rounds=656000$X6WeV3UycFG9lfrl$JGsotfWpfuPAuNG6csxqbTlRptCkqRwm3v6d9GFRZ7d1PGgG18dPzoBTTQnCIyxuEaGDXxF9RXeRNu5JdGGMq.",
+ "self_link": "http://localhost:9001/3.0/users/3744", "user_id": 3744}], "http_etag":
+ "\"3fea3db028a0cd112dfef86108ef0016dd6d3c5f\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['431']
+ content-length: ['435']
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/99
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3744
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_presence_of_form_in_user_global_settings.yaml b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_presence_of_form_in_user_global_settings.yaml
index a7a374b..676a191 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_presence_of_form_in_user_global_settings.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_presence_of_form_in_user_global_settings.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -41,83 +41,52 @@
location: ['http://localhost:9001/3.0/lists/foo.example.com']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode email=user%40example.com
+ body: !!python/unicode 'email=user%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/users/100']
+ location: ['http://localhost:9001/3.0/users/3745']
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/user@example.com
response:
body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
- "\"9f78940a1dea2e291a285ae50049f814cf40ed9f\"", "is_server_owner": false,
- "password": "$6$rounds=612378$2bZSiSXMOJx1ctiH$2okQaQ4xnyD7NSn4afKhGqM5ufZhoogPnFLRQsSxxeHJniEGgGm9bymPp3CFHqy1QNJPo62pgc3YHuNkUB5w21",
- "self_link": "http://localhost:9001/3.0/users/100", "user_id": 100}'}
+ "\"24d495f6fa01ddd1a29ca53922c89c94515570f1\"", "is_server_owner": false,
+ "password": "$6$rounds=656000$i5Xr/aRbjTif0Qc9$k2SQubamZZr07Es5rZ6yBBj3wmKcrCzEt2PSIQZR0wuPGZA8B2wBbmCIJk6MpRYSzhMDfj4XhKWtRKJrObugx.",
+ "self_link": "http://localhost:9001/3.0/users/3745", "user_id": 3745}'}
headers:
- content-length: ['328']
+ content-length: ['330']
content-type: [application/json; charset=UTF-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/100/addresses
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/3745/preferences
response:
- body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag":
- "\"f13ceac639ac96d0e9f54501e07eb93ab2f48181\"", "original_email": "user@example.com",
- "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user@example.com",
- "user": "http://localhost:9001/3.0/users/100"}], "http_etag": "\"c028a6fe3b7c96610d38a3578a399ba2929e3625\"",
- "start": 0, "total_size": 1}'}
+ body: {string: !!python/unicode '{"http_etag": "\"2fab7821cbdcbdadb7db2845b42641fde685721b\"",
+ "self_link": "http://localhost:9001/3.0/users/3745/preferences"}'}
headers:
- content-length: ['389']
+ content-length: ['126']
content-type: [application/json; charset=UTF-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/user@example.com
- response:
- body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
- "\"9f78940a1dea2e291a285ae50049f814cf40ed9f\"", "is_server_owner": false,
- "password": "$6$rounds=612378$2bZSiSXMOJx1ctiH$2okQaQ4xnyD7NSn4afKhGqM5ufZhoogPnFLRQsSxxeHJniEGgGm9bymPp3CFHqy1QNJPo62pgc3YHuNkUB5w21",
- "self_link": "http://localhost:9001/3.0/users/100", "user_id": 100}'}
- headers:
- 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/100/preferences
- response:
- body: {string: !!python/unicode '{"http_etag": "\"ecbc0ceb3e77f161c66493500183068369630cd3\"",
- "self_link": "http://localhost:9001/3.0/users/100/preferences"}'}
- headers:
- content-length: ['125']
- 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/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -133,7 +102,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -144,25 +113,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": "\"9f78940a1dea2e291a285ae50049f814cf40ed9f\"", "is_server_owner":
- false, "password": "$6$rounds=612378$2bZSiSXMOJx1ctiH$2okQaQ4xnyD7NSn4afKhGqM5ufZhoogPnFLRQsSxxeHJniEGgGm9bymPp3CFHqy1QNJPo62pgc3YHuNkUB5w21",
- "self_link": "http://localhost:9001/3.0/users/100", "user_id": 100}], "http_etag":
- "\"54b5f0bf9e8cbf1caa56e2d3d8d0c638f3364e73\"", "start": 0, "total_size":
+ "http_etag": "\"24d495f6fa01ddd1a29ca53922c89c94515570f1\"", "is_server_owner":
+ false, "password": "$6$rounds=656000$i5Xr/aRbjTif0Qc9$k2SQubamZZr07Es5rZ6yBBj3wmKcrCzEt2PSIQZR0wuPGZA8B2wBbmCIJk6MpRYSzhMDfj4XhKWtRKJrObugx.",
+ "self_link": "http://localhost:9001/3.0/users/3745", "user_id": 3745}], "http_etag":
+ "\"953f6aacb0859dfa5ee2603723e847f388a4df7b\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['433']
+ content-length: ['435']
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/100
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3745
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_presence_of_form_in_user_list_options.yaml b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_presence_of_form_in_user_list_options.yaml
index 6d2a15c..d69fdd7 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_presence_of_form_in_user_list_options.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_presence_of_form_in_user_list_options.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -41,24 +41,24 @@
location: ['http://localhost:9001/3.0/lists/foo.example.com']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode email=user%40example.com
+ body: !!python/unicode 'email=user%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/users/101']
+ location: ['http://localhost:9001/3.0/users/3746']
status: {code: 201, message: Created}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -70,24 +70,39 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=user%40example.com
+ body: !!python/unicode 'display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=user%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/104']
+ location: ['http://localhost:9001/3.0/members/5628']
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/user@example.com
+ response:
+ body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
+ "\"f4b5ace411a6ecc158bd7c6e6c953a22478c3a2c\"", "is_server_owner": false,
+ "password": "$6$rounds=656000$OF/Nk1hBqbfthBs9$CMz0o8T2KA16k.BznXG5EnVD8vYGrus/nYpUdutehA7UuppLrTxgr/vwPM9L3QCNi7rrpUo8TqgNQSu9cgxTY0",
+ "self_link": "http://localhost:9001/3.0/users/3746", "user_id": 3746}'}
+ headers:
+ content-length: ['330']
+ content-type: [application/json; charset=UTF-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",
@@ -102,70 +117,55 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
- uri: http://localhost:9001/3.0/users/user@example.com
- response:
- body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
- "\"17a8782a3371f5ca8d05535a0805b1f5a703c4b4\"", "is_server_owner": false,
- "password": "$6$rounds=631490$qW0YaTebsoVWlG17$VteE/7C0xOsumyDdcfKouUWXpHSPl5umnoX5E8Ymh.ZvGAAzphCmMinokARwVQZdmLvnEk2sAvJfBt7cNNw2V/",
- "self_link": "http://localhost:9001/3.0/users/101", "user_id": 101}'}
- headers:
- 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/101/addresses
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/3746/addresses
response:
body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag":
- "\"80744bb322341d024e3f90ed6683f4d67bc0b2c8\"", "original_email": "user@example.com",
+ "\"f0adf481e9492ce17270930cac8fd404b9325acd\"", "original_email": "user@example.com",
"registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user@example.com",
- "user": "http://localhost:9001/3.0/users/101", "verified_on": "2005-08-01T07:49:23"}],
- "http_etag": "\"eda06689e990b251ca616dc67570bda6d81795d0\"", "start": 0, "total_size":
+ "user": "http://localhost:9001/3.0/users/3746", "verified_on": "2005-08-01T07:49:23"}],
+ "http_etag": "\"ea3ab0460c849f71d3a1e8305cb8f6ba2eb1ccf7\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['427']
+ content-length: ['428']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode subscriber=user%40example.com
+ body: !!python/unicode 'subscriber=user%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members/find
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/user@example.com",
- "delivery_mode": "regular", "email": "user@example.com", "http_etag": "\"0c3f849fb7ab3bd1e4d60e3684c2313ed04efdb3\"",
- "list_id": "foo.example.com", "member_id": 104, "role": "member", "self_link":
- "http://localhost:9001/3.0/members/104", "user": "http://localhost:9001/3.0/users/101"}],
- "http_etag": "\"9fbe568567e2bbfb446941379ff3bb5688dbe7a8\"", "start": 0, "total_size":
+ "delivery_mode": "regular", "email": "user@example.com", "http_etag": "\"a82118234c4af044b0fe2b83d177dad5fd371908\"",
+ "list_id": "foo.example.com", "member_id": 5628, "role": "member", "self_link":
+ "http://localhost:9001/3.0/members/5628", "user": "http://localhost:9001/3.0/users/3746"}],
+ "http_etag": "\"7282bb571758f94a5a4e83b2a397ef55ee3488a8\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['457']
+ 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/members/104/preferences
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/members/5628/preferences
response:
- body: {string: !!python/unicode '{"http_etag": "\"158065bcee112f4e3b301ee917aeefdd4e53bafe\"",
- "self_link": "http://localhost:9001/3.0/members/104/preferences"}'}
+ body: {string: !!python/unicode '{"http_etag": "\"08d215767bd4cd760d2438d18cf75608cf5ee306\"",
+ "self_link": "http://localhost:9001/3.0/members/5628/preferences"}'}
headers:
- content-length: ['127']
+ content-length: ['128']
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/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -181,7 +181,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -192,25 +192,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": "\"17a8782a3371f5ca8d05535a0805b1f5a703c4b4\"", "is_server_owner":
- false, "password": "$6$rounds=631490$qW0YaTebsoVWlG17$VteE/7C0xOsumyDdcfKouUWXpHSPl5umnoX5E8Ymh.ZvGAAzphCmMinokARwVQZdmLvnEk2sAvJfBt7cNNw2V/",
- "self_link": "http://localhost:9001/3.0/users/101", "user_id": 101}], "http_etag":
- "\"802591088f81215eb00b1e7b4f5e41b0bff53e4b\"", "start": 0, "total_size":
+ "http_etag": "\"f4b5ace411a6ecc158bd7c6e6c953a22478c3a2c\"", "is_server_owner":
+ false, "password": "$6$rounds=656000$OF/Nk1hBqbfthBs9$CMz0o8T2KA16k.BznXG5EnVD8vYGrus/nYpUdutehA7UuppLrTxgr/vwPM9L3QCNi7rrpUo8TqgNQSu9cgxTY0",
+ "self_link": "http://localhost:9001/3.0/users/3746", "user_id": 3746}], "http_etag":
+ "\"3b024e7a3b8ea2d032b871745e935855cda88705\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['433']
+ content-length: ['435']
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/101
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3746
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_presence_of_form_in_user_subscription_preferences.yaml b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_presence_of_form_in_user_subscription_preferences.yaml
index c60f7e7..70c6a33 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_presence_of_form_in_user_subscription_preferences.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_presence_of_form_in_user_subscription_preferences.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -41,24 +41,24 @@
location: ['http://localhost:9001/3.0/lists/foo.example.com']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode email=user%40example.com
+ body: !!python/unicode 'email=user%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/users/102']
+ location: ['http://localhost:9001/3.0/users/3747']
status: {code: 201, message: Created}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
@@ -70,104 +70,87 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=user%40example.com
+ body: !!python/unicode 'display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=user%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/105']
+ location: ['http://localhost:9001/3.0/members/5629']
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/user@example.com
response:
body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
- "\"eac9ad84ec398aed5a938c74217f76329fe5d207\"", "is_server_owner": false,
- "password": "$6$rounds=651974$LeZofjcuGWZxG7Ek$wnOaq2ALp44fKBn3uesD5PmN8sCMJMliT7k.OUastciklY2MVg720f83o6P9q5TCsD4ETC08q7ZL3QnvIG5Ds1",
- "self_link": "http://localhost:9001/3.0/users/102", "user_id": 102}'}
+ "\"2f6afaefdded8540308287e76d58f37df7e50758\"", "is_server_owner": false,
+ "password": "$6$rounds=656000$R4x1VxlTK8j/J0K0$414POdF8dz1g6MUFBSfAQaFCnjyWP.HvxoIx6kGnKEDpKRKnTx4l5aCEpVBINDKU/RYw//v5CDbL57hTJsfnv/",
+ "self_link": "http://localhost:9001/3.0/users/3747", "user_id": 3747}'}
headers:
- content-length: ['328']
+ content-length: ['330']
content-type: [application/json; charset=UTF-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/102/addresses
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/3747/addresses
response:
body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag":
- "\"41e8d26028197c410227304098ddc86d60bfd7ff\"", "original_email": "user@example.com",
+ "\"e3f35f4d2e31f901b2acdd8f305cbbd38dafeef3\"", "original_email": "user@example.com",
"registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user@example.com",
- "user": "http://localhost:9001/3.0/users/102", "verified_on": "2005-08-01T07:49:23"}],
- "http_etag": "\"728030aeafc5603ed9a17f33d7d9e9b03d7718a6\"", "start": 0, "total_size":
+ "user": "http://localhost:9001/3.0/users/3747", "verified_on": "2005-08-01T07:49:23"}],
+ "http_etag": "\"50f3eb33b7c9d1b6ca153e31bfbc06d2b1f71c67\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['427']
+ content-length: ['428']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: null
+ body: !!python/unicode 'subscriber=user%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
- uri: http://localhost:9001/3.0/users/102/addresses
- response:
- body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag":
- "\"41e8d26028197c410227304098ddc86d60bfd7ff\"", "original_email": "user@example.com",
- "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user@example.com",
- "user": "http://localhost:9001/3.0/users/102", "verified_on": "2005-08-01T07:49:23"}],
- "http_etag": "\"728030aeafc5603ed9a17f33d7d9e9b03d7718a6\"", "start": 0, "total_size":
- 1}'}
- headers:
- content-length: ['427']
- content-type: [application/json; charset=UTF-8]
- status: {code: 200, message: OK}
-- request:
- body: !!python/unicode subscriber=user%40example.com
- headers:
- accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members/find
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/user@example.com",
- "delivery_mode": "regular", "email": "user@example.com", "http_etag": "\"168dc3350583ef3fa9f872a8455a959c8f665c06\"",
- "list_id": "foo.example.com", "member_id": 105, "role": "member", "self_link":
- "http://localhost:9001/3.0/members/105", "user": "http://localhost:9001/3.0/users/102"}],
- "http_etag": "\"ca04144c59b86b772861b1a0f9f6500607b395a0\"", "start": 0, "total_size":
+ "delivery_mode": "regular", "email": "user@example.com", "http_etag": "\"a184e03920199109ca19a3866d9ed2d507a757e4\"",
+ "list_id": "foo.example.com", "member_id": 5629, "role": "member", "self_link":
+ "http://localhost:9001/3.0/members/5629", "user": "http://localhost:9001/3.0/users/3747"}],
+ "http_etag": "\"b8575ee81e680a662cf6ed1bdda4d90b96303b18\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['457']
+ 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/members/105/preferences
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/members/5629/preferences
response:
- body: {string: !!python/unicode '{"http_etag": "\"a2e46575442f05223ba44a9a24ac4982e4587123\"",
- "self_link": "http://localhost:9001/3.0/members/105/preferences"}'}
+ body: {string: !!python/unicode '{"http_etag": "\"36a971b1b1af9b1ef35a03fb56f38ea7bbc67f58\"",
+ "self_link": "http://localhost:9001/3.0/members/5629/preferences"}'}
headers:
- content-length: ['127']
+ content-length: ['128']
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/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -183,7 +166,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -194,25 +177,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": "\"eac9ad84ec398aed5a938c74217f76329fe5d207\"", "is_server_owner":
- false, "password": "$6$rounds=651974$LeZofjcuGWZxG7Ek$wnOaq2ALp44fKBn3uesD5PmN8sCMJMliT7k.OUastciklY2MVg720f83o6P9q5TCsD4ETC08q7ZL3QnvIG5Ds1",
- "self_link": "http://localhost:9001/3.0/users/102", "user_id": 102}], "http_etag":
- "\"23604176c64defcc105d01716ee0ebbd6aa715de\"", "start": 0, "total_size":
+ "http_etag": "\"2f6afaefdded8540308287e76d58f37df7e50758\"", "is_server_owner":
+ false, "password": "$6$rounds=656000$R4x1VxlTK8j/J0K0$414POdF8dz1g6MUFBSfAQaFCnjyWP.HvxoIx6kGnKEDpKRKnTx4l5aCEpVBINDKU/RYw//v5CDbL57hTJsfnv/",
+ "self_link": "http://localhost:9001/3.0/users/3747", "user_id": 3747}], "http_etag":
+ "\"a125f69d84ccdb62e36c0c62efbc14f33d3d652d\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['433']
+ content-length: ['435']
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/102
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3747
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_subscriptions_logged_in.yaml b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_subscriptions_logged_in.yaml
index 466c4ab..3933959 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_subscriptions_logged_in.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_subscriptions_logged_in.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -41,56 +41,56 @@
location: ['http://localhost:9001/3.0/lists/foo.example.com']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode email=user%40example.com
+ body: !!python/unicode 'email=user%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/users/103']
+ location: ['http://localhost:9001/3.0/users/3748']
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/user@example.com
response:
body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
- "\"e64ca97befec07fe2b856e19547f76ade39cd262\"", "is_server_owner": false,
- "password": "$6$rounds=661463$82OZ14ws4CZ4CzJg$nrLUQIg4qeEQhroyrSQMmC6vlhKFtw0A8I4lMgNkQKbwduLng.bj24BPH.eSZJcfvXe2gVdLrksd2yQY1Pbwj1",
- "self_link": "http://localhost:9001/3.0/users/103", "user_id": 103}'}
+ "\"02353d31729c315c138ec4f5f8c99415559bd1ed\"", "is_server_owner": false,
+ "password": "$6$rounds=656000$SwL0a.vKtWK9d4bN$e0FqVEMoA7V9ug2v4jFHIeOx.QOjscpSQ3U1XOhNnehfSV6rj0wpJNTVrsMcysM1sjQZJhEjoWTCsklw/PJSN/",
+ "self_link": "http://localhost:9001/3.0/users/3748", "user_id": 3748}'}
headers:
- content-length: ['328']
+ content-length: ['330']
content-type: [application/json; charset=UTF-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/103/addresses
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/3748/addresses
response:
body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag":
- "\"19f2a14d6ee1bab52d3c19a5f4f7b6e684f0a361\"", "original_email": "user@example.com",
+ "\"6c4512e696cbd953c452182b28b961e99c511538\"", "original_email": "user@example.com",
"registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user@example.com",
- "user": "http://localhost:9001/3.0/users/103"}], "http_etag": "\"1b46e2fd8a2a90374c55f02b7e3546c2460bc864\"",
+ "user": "http://localhost:9001/3.0/users/3748"}], "http_etag": "\"f1f71bf806afc705bacacdebd9a1c5aac87f3cd3\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['389']
+ content-length: ['390']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode subscriber=user%40example.com
+ body: !!python/unicode 'subscriber=user%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members/find
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
@@ -103,7 +103,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -119,7 +119,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -130,25 +130,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": "\"e64ca97befec07fe2b856e19547f76ade39cd262\"", "is_server_owner":
- false, "password": "$6$rounds=661463$82OZ14ws4CZ4CzJg$nrLUQIg4qeEQhroyrSQMmC6vlhKFtw0A8I4lMgNkQKbwduLng.bj24BPH.eSZJcfvXe2gVdLrksd2yQY1Pbwj1",
- "self_link": "http://localhost:9001/3.0/users/103", "user_id": 103}], "http_etag":
- "\"73cd46e487558c07672bdf7585e8b51f4674122d\"", "start": 0, "total_size":
+ "http_etag": "\"02353d31729c315c138ec4f5f8c99415559bd1ed\"", "is_server_owner":
+ false, "password": "$6$rounds=656000$SwL0a.vKtWK9d4bN$e0FqVEMoA7V9ug2v4jFHIeOx.QOjscpSQ3U1XOhNnehfSV6rj0wpJNTVrsMcysM1sjQZJhEjoWTCsklw/PJSN/",
+ "self_link": "http://localhost:9001/3.0/users/3748", "user_id": 3748}], "http_etag":
+ "\"8ef81f7f23c10da9f0174b71115502cc239457ba\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['433']
+ content-length: ['435']
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/103
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3748
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_subscriptions_no_mailman_user.yaml b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_subscriptions_no_mailman_user.yaml
index 76e319a..96bd4ab 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_subscriptions_no_mailman_user.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_subscriptions_no_mailman_user.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -41,27 +41,27 @@
location: ['http://localhost:9001/3.0/lists/foo.example.com']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode email=user%40example.com
+ body: !!python/unicode 'email=user%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/users/104']
+ location: ['http://localhost:9001/3.0/users/3749']
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/old-user@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]
@@ -70,66 +70,66 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/users/old-user@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]
status: {code: 404, message: Not Found}
- request:
- body: !!python/unicode email=old-user%40example.com
+ body: !!python/unicode 'email=old-user%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/users/105']
+ location: ['http://localhost:9001/3.0/users/3750']
status: {code: 201, message: Created}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
- uri: http://localhost:9001/3.0/users/105
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/3750
response:
body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
- "\"ba9015e39fb40ba7c6caeca2f6d76de0816249ba\"", "is_server_owner": false,
- "password": "$6$rounds=592929$ifOfeowdHJs9/q6I$BA9KsEMZ9Dbeg0OxG9l5A4tqQa5us8soMtIiHhqLaRkM4KkNE4kztaArknPgj1YlRDVbzhYRrKaQDGN62FESq/",
- "self_link": "http://localhost:9001/3.0/users/105", "user_id": 105}'}
+ "\"80823d606bd78207b2d46cf5b9a144462ca0ad7b\"", "is_server_owner": false,
+ "password": "$6$rounds=656000$6S/hB1tf35QzIz6z$Fbg95IAD8Owaz3EM1DumujXrrjLuI/CsaETRNUN6Kac/qD3DPyTz9WSUliINCraP8/SIA1ZVp/ctoGfFnlIQ1.",
+ "self_link": "http://localhost:9001/3.0/users/3750", "user_id": 3750}'}
headers:
- content-length: ['328']
+ content-length: ['330']
content-type: [application/json; charset=UTF-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/105/addresses
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/3750/addresses
response:
body: {string: !!python/unicode '{"entries": [{"email": "old-user@example.com",
- "http_etag": "\"7563dbce29899762c1d3b1946bfcd5881d968b9f\"", "original_email":
+ "http_etag": "\"88c2b1b61463766240822dc0eead0fad61852e2f\"", "original_email":
"old-user@example.com", "registered_on": "2005-08-01T07:49:23", "self_link":
- "http://localhost:9001/3.0/addresses/old-user@example.com", "user": "http://localhost:9001/3.0/users/105"}],
- "http_etag": "\"4b1c3318a13ff5a859902c1c6a8c5f474ed6c00e\"", "start": 0, "total_size":
+ "http://localhost:9001/3.0/addresses/old-user@example.com", "user": "http://localhost:9001/3.0/users/3750"}],
+ "http_etag": "\"32c17218c4a5d8bd45df3f9de2ffa6eb0866899f\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['401']
+ content-length: ['402']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode subscriber=old-user%40example.com
+ body: !!python/unicode 'subscriber=old-user%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members/find
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
@@ -142,22 +142,22 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/users/old-user@example.com
response:
body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
- "\"ba9015e39fb40ba7c6caeca2f6d76de0816249ba\"", "is_server_owner": false,
- "password": "$6$rounds=592929$ifOfeowdHJs9/q6I$BA9KsEMZ9Dbeg0OxG9l5A4tqQa5us8soMtIiHhqLaRkM4KkNE4kztaArknPgj1YlRDVbzhYRrKaQDGN62FESq/",
- "self_link": "http://localhost:9001/3.0/users/105", "user_id": 105}'}
+ "\"80823d606bd78207b2d46cf5b9a144462ca0ad7b\"", "is_server_owner": false,
+ "password": "$6$rounds=656000$6S/hB1tf35QzIz6z$Fbg95IAD8Owaz3EM1DumujXrrjLuI/CsaETRNUN6Kac/qD3DPyTz9WSUliINCraP8/SIA1ZVp/ctoGfFnlIQ1.",
+ "self_link": "http://localhost:9001/3.0/users/3750", "user_id": 3750}'}
headers:
- content-length: ['328']
+ content-length: ['330']
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/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -173,7 +173,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -184,28 +184,28 @@
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": "\"af585fe4f39f61813a348fb26ae2c5a7d6e49733\"", "is_server_owner":
- false, "password": "$6$rounds=601361$L9uKAuK27BArmQ9D$YXv.wx0ktDf.ieEB.3xmizezFjMDCcyIygyOt/hi3K8tJy6AtvpYJPMHM9XPGgU8hnAGqaxJ072rcsx4mITiR0",
- "self_link": "http://localhost:9001/3.0/users/104", "user_id": 104}, {"created_on":
- "2005-08-01T07:49:23", "http_etag": "\"ba9015e39fb40ba7c6caeca2f6d76de0816249ba\"",
- "is_server_owner": false, "password": "$6$rounds=592929$ifOfeowdHJs9/q6I$BA9KsEMZ9Dbeg0OxG9l5A4tqQa5us8soMtIiHhqLaRkM4KkNE4kztaArknPgj1YlRDVbzhYRrKaQDGN62FESq/",
- "self_link": "http://localhost:9001/3.0/users/105", "user_id": 105}], "http_etag":
- "\"ebfb159e7146dad89059e68f383a7e49a68c72bd\"", "start": 0, "total_size":
+ "http_etag": "\"f18e88e7ab0cd769cff0004bc133000347f7b20e\"", "is_server_owner":
+ false, "password": "$6$rounds=656000$rClaXn/uoHXEDbZ0$VtEgizflBvVm8orCHlo3nP5VRjLXMEktjjVzvIwOrmfUmMaiRLQd8sWtd5s5mUIYHETllnzxOfUM0zRGxvi9X/",
+ "self_link": "http://localhost:9001/3.0/users/3749", "user_id": 3749}, {"created_on":
+ "2005-08-01T07:49:23", "http_etag": "\"80823d606bd78207b2d46cf5b9a144462ca0ad7b\"",
+ "is_server_owner": false, "password": "$6$rounds=656000$6S/hB1tf35QzIz6z$Fbg95IAD8Owaz3EM1DumujXrrjLuI/CsaETRNUN6Kac/qD3DPyTz9WSUliINCraP8/SIA1ZVp/ctoGfFnlIQ1.",
+ "self_link": "http://localhost:9001/3.0/users/3750", "user_id": 3750}], "http_etag":
+ "\"5891ceebe8fe2094727685988dfeb6b89b856ecc\"", "start": 0, "total_size":
2}'}
headers:
- content-length: ['763']
+ content-length: ['767']
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/104
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3749
response:
body: {string: !!python/unicode ''}
headers:
@@ -215,8 +215,8 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
- uri: http://localhost:9001/3.0/users/105
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3750
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_subscriptions_not_logged_in.yaml b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_subscriptions_not_logged_in.yaml
index d9b238b..de23fb1 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_subscriptions_not_logged_in.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_subscriptions_not_logged_in.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -41,24 +41,24 @@
location: ['http://localhost:9001/3.0/lists/foo.example.com']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode email=user%40example.com
+ body: !!python/unicode 'email=user%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/users/106']
+ location: ['http://localhost:9001/3.0/users/3751']
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/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -74,7 +74,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -85,25 +85,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": "\"479db84d16e0d3c86f3557a1c89f7419d26a402d\"", "is_server_owner":
- false, "password": "$6$rounds=612581$QJtl/.Ef0grULayx$EQETFQt5ArqiX0HSTEfqP8tCrLA/NqxVEv6k9qujz.9GSmS4g1Xe5iTr/HOe9J2qma9cq1u49/X82aTp2ThDA.",
- "self_link": "http://localhost:9001/3.0/users/106", "user_id": 106}], "http_etag":
- "\"0d1442c2ddfc38cd3f2e44458be236220d96950a\"", "start": 0, "total_size":
+ "http_etag": "\"44adf3f9ef9b5a4da3c9f2fe71c7ee19d5cee787\"", "is_server_owner":
+ false, "password": "$6$rounds=656000$SRBK90NoGDLfTzLV$2r7pqKQTX0BBvUJbE8bAmqSNNi8GPcmWLJAsRIOaDbla6cv03jZ7Cdw9McBMuFWNR/LB/CvJafGE6VGbt24290",
+ "self_link": "http://localhost:9001/3.0/users/3751", "user_id": 3751}], "http_etag":
+ "\"b6e615a2fe42e25adee4fecd2eda68dd546d2df3\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['433']
+ content-length: ['435']
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/106
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3751
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ModelTest.test_mailman_user_created_when_flag_is_on.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ModelTest.test_mailman_user_created_when_flag_is_on.yaml
index fee5203..50ba8f1 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ModelTest.test_mailman_user_created_when_flag_is_on.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ModelTest.test_mailman_user_created_when_flag_is_on.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -41,55 +41,55 @@
location: ['http://localhost:9001/3.0/lists/foo.example.com']
status: {code: 201, message: Created}
- request:
- body: !!python/unicode email=test%40example.com
+ body: !!python/unicode 'email=test%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/users/126']
+ location: ['http://localhost:9001/3.0/users/3658']
status: {code: 201, message: Created}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/users/test@example.com
response:
body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
- "\"e04e30982f9a24e8efd57474388cc8b4bb59a7a8\"", "is_server_owner": false,
- "password": "$6$rounds=685185$ZwADOOYYQZ1upzqh$p6HlJoU17gg148TtbN0bK/fbJoF23icjZo4yss.DiXMLKcKEduOcm0qmEgczwo6DuqDzUzNI8dqxmrXqm9MKI.",
- "self_link": "http://localhost:9001/3.0/users/126", "user_id": 126}'}
+ "\"b48939eac336fa69cc95e99b54472ef2bcac73f8\"", "is_server_owner": false,
+ "password": "$6$rounds=656000$YKc67pwPrL15sa2a$C8LU/p9loDBNFxBZQlcSMPV0VEbXR.4Cv.SqHsTOX4BVEYG6d/vTxGZ10enBTbnz1/qnxJu4KA/na0/b0y3HQ1",
+ "self_link": "http://localhost:9001/3.0/users/3658", "user_id": 3658}'}
headers:
- content-length: ['328']
+ content-length: ['330']
content-type: [application/json; charset=UTF-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/126/addresses
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/3658/addresses
response:
body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag":
- "\"3cece11446d4f4c665933c78a37a1571f853eeb3\"", "original_email": "test@example.com",
+ "\"a98d4c551d34e3de275904be195fe857cc89c5ac\"", "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/126"}], "http_etag": "\"b0b62fa89eafdb421bfa21fb220bfe5016abde5b\"",
+ "user": "http://localhost:9001/3.0/users/3658"}], "http_etag": "\"af60b86bd2e95c5e47a52d49cfe72f2de3be2de9\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['389']
+ content-length: ['390']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -105,7 +105,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -116,25 +116,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": "\"e04e30982f9a24e8efd57474388cc8b4bb59a7a8\"", "is_server_owner":
- false, "password": "$6$rounds=685185$ZwADOOYYQZ1upzqh$p6HlJoU17gg148TtbN0bK/fbJoF23icjZo4yss.DiXMLKcKEduOcm0qmEgczwo6DuqDzUzNI8dqxmrXqm9MKI.",
- "self_link": "http://localhost:9001/3.0/users/126", "user_id": 126}], "http_etag":
- "\"d62ff0a4c4a99146c206893845a15a6c4541dc77\"", "start": 0, "total_size":
+ "http_etag": "\"b48939eac336fa69cc95e99b54472ef2bcac73f8\"", "is_server_owner":
+ false, "password": "$6$rounds=656000$YKc67pwPrL15sa2a$C8LU/p9loDBNFxBZQlcSMPV0VEbXR.4Cv.SqHsTOX4BVEYG6d/vTxGZ10enBTbnz1/qnxJu4KA/na0/b0y3HQ1",
+ "self_link": "http://localhost:9001/3.0/users/3658", "user_id": 3658}], "http_etag":
+ "\"af27c4b7a9cdd64a0335dce06838822ea3e36282\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['433']
+ content-length: ['435']
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/126
+ method: !!python/unicode 'DELETE'
+ uri: http://localhost:9001/3.0/users/3658
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ModelTest.test_mailman_user_not_created_when_flag_is_off.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ModelTest.test_mailman_user_not_created_when_flag_is_off.yaml
index e1e8e50..89b4864 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/ModelTest.test_mailman_user_not_created_when_flag_is_off.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/ModelTest.test_mailman_user_not_created_when_flag_is_off.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
- body: !!python/unicode mail_host=example.com
+ body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
@@ -17,7 +17,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
@@ -27,11 +27,11 @@
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode fqdn_listname=foo%40example.com
+ body: !!python/unicode 'fqdn_listname=foo%40example.com'
headers:
accept-encoding: ['gzip, deflate']
- !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
- method: !!python/unicode POST
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
@@ -44,10 +44,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]
@@ -56,7 +56,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -72,7 +72,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode DELETE
+ method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
@@ -83,7 +83,7 @@
body: null
headers:
accept-encoding: ['gzip, deflate']
- method: !!python/unicode GET
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_anonymous_subscribe.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_anonymous_subscribe.yaml
new file mode 100644
index 0000000..54a9e93
--- /dev/null
+++ b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_anonymous_subscribe.yaml
@@ -0,0 +1,406 @@
+interactions:
+- request:
+ body: !!python/unicode 'mail_host=example.com'
+ headers:
+ accept-encoding: ['gzip, deflate']
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/domains
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ content-type: [application/json; charset=UTF-8]
+ 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 '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
+ "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'}
+ headers:
+ content-length: ['172']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: !!python/unicode 'fqdn_listname=open_list%40example.com'
+ headers:
+ accept-encoding: ['gzip, deflate']
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/lists
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ content-type: [application/json; charset=UTF-8]
+ location: ['http://localhost:9001/3.0/lists/open_list.example.com']
+ status: {code: 201, message: Created}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/open_list.example.com
+ response:
+ body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname":
+ "open_list@example.com", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"",
+ "list_id": "open_list.example.com", "list_name": "open_list", "mail_host":
+ "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com",
+ "volume": 1}'}
+ headers:
+ content-length: ['324']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/open_list@example.com/config
+ response:
+ body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify":
+ true, "admin_notify_mchanges": false, "administrivia": true, "advertised":
+ true, "allow_list_posts": true, "anonymous_list": false, "archive_policy":
+ "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests":
+ "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "",
+ "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address":
+ "open_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext":
+ false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer",
+ "default_nonmember_action": "hold", "description": "", "digest_footer_uri":
+ "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
+ true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
+ "digests_enabled": true, "display_name": "Open_list", "dmarc_mitigate_action":
+ "no_mitigation", "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice":
+ "", "dmarc_wrapped_message_text": "", "filter_content": false, "first_strip_reply_to":
+ false, "footer_uri": "", "fqdn_listname": "open_list@example.com", "goodbye_message_uri":
+ "", "header_uri": "", "http_etag": "\"530adf8ac47d1bb5980f1c9c8fd18b8c7879a4c4\"",
+ "include_rfc2369_headers": true, "info": "", "join_address": "open_list-join@example.com",
+ "last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name":
+ "open_list", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
+ 1, "no_reply_address": "noreply@example.com", "owner_address": "open_list-owner@example.com",
+ "post_id": 1, "posting_address": "open_list@example.com", "posting_pipeline":
+ "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address":
+ "", "request_address": "open_list-request@example.com", "send_welcome_message":
+ true, "subject_prefix": "[Open_list] ", "subscription_policy": "confirm",
+ "volume": 1, "welcome_message_uri": ""}'}
+ headers:
+ content-length: ['1997']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: !!python/unicode 'subscription_policy=open'
+ headers:
+ accept-encoding: ['gzip, deflate']
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'PATCH'
+ uri: http://localhost:9001/3.0/lists/open_list@example.com/config
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ status: {code: 204, message: No Content}
+- request:
+ body: !!python/unicode 'fqdn_listname=moderate_subs%40example.com'
+ headers:
+ accept-encoding: ['gzip, deflate']
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/lists
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ content-type: [application/json; charset=UTF-8]
+ location: ['http://localhost:9001/3.0/lists/moderate_subs.example.com']
+ status: {code: 201, message: Created}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs.example.com
+ response:
+ body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname":
+ "moderate_subs@example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"",
+ "list_id": "moderate_subs.example.com", "list_name": "moderate_subs", "mail_host":
+ "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com",
+ "volume": 1}'}
+ headers:
+ content-length: ['344']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config
+ response:
+ body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify":
+ true, "admin_notify_mchanges": false, "administrivia": true, "advertised":
+ true, "allow_list_posts": true, "anonymous_list": false, "archive_policy":
+ "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests":
+ "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "",
+ "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address":
+ "moderate_subs-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext":
+ false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer",
+ "default_nonmember_action": "hold", "description": "", "digest_footer_uri":
+ "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
+ true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
+ "digests_enabled": true, "display_name": "Moderate_subs", "dmarc_mitigate_action":
+ "no_mitigation", "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice":
+ "", "dmarc_wrapped_message_text": "", "filter_content": false, "first_strip_reply_to":
+ false, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com", "goodbye_message_uri":
+ "", "header_uri": "", "http_etag": "\"052e09045929377c9a6d9766784eb938b0f6bae4\"",
+ "include_rfc2369_headers": true, "info": "", "join_address": "moderate_subs-join@example.com",
+ "last_post_at": null, "leave_address": "moderate_subs-leave@example.com",
+ "list_name": "moderate_subs", "mail_host": "example.com", "moderator_password":
+ null, "next_digest_number": 1, "no_reply_address": "noreply@example.com",
+ "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address":
+ "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline",
+ "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address":
+ "moderate_subs-request@example.com", "send_welcome_message": true, "subject_prefix":
+ "[Moderate_subs] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
+ ""}'}
+ headers:
+ content-length: ['2037']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: !!python/unicode 'subscription_policy=moderate'
+ headers:
+ accept-encoding: ['gzip, deflate']
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'PATCH'
+ uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ status: {code: 204, message: No Content}
+- request:
+ body: !!python/unicode 'email=test%40example.com'
+ headers:
+ accept-encoding: ['gzip, deflate']
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/users
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ content-type: [application/json; charset=UTF-8]
+ location: ['http://localhost:9001/3.0/users/3659']
+ status: {code: 201, message: Created}
+- request:
+ body: !!python/unicode 'email=fritz%40example.org'
+ headers:
+ accept-encoding: ['gzip, deflate']
+ !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/users/3659/addresses
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ content-type: [application/json; charset=UTF-8]
+ location: ['http://localhost:9001/3.0/addresses/fritz@example.org']
+ status: {code: 201, message: Created}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/users/3659
+ response:
+ body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
+ "\"8443044e4d6ec48edd19061ae7f61de2b08b8d75\"", "is_server_owner": false,
+ "password": "$6$rounds=656000$rnOa8NXUi0YE7vzs$SPKi2H70I6WhyZ07ZMWAiveiLxfhxBHZEIrQpfoDG/zs.vgBbV6hL2wZDeSufccGEzcWqcLv9U3a8u9p8YChP/",
+ "self_link": "http://localhost:9001/3.0/users/3659", "user_id": 3659}'}
+ headers:
+ content-length: ['330']
+ content-type: [application/json; charset=UTF-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/3659/addresses
+ response:
+ body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag":
+ "\"594377fa73b45629d112da768aa0c8e18f11cfe4\"", "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/3659"}, {"email": "test@example.com",
+ "http_etag": "\"bd78d8a4ccc5139d6c6fb68c47d6b32c34661256\"", "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/3659"}], "http_etag": "\"2a97cce91a3274e453e0591c103b93765749c0b6\"",
+ "start": 0, "total_size": 2}'}
+ headers:
+ content-length: ['680']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/addresses/fritz@example.org/verify
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ status: {code: 204, message: No Content}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'POST'
+ uri: http://localhost:9001/3.0/addresses/test@example.com/verify
+ response:
+ body: {string: !!python/unicode ''}
+ headers:
+ content-length: ['0']
+ status: {code: 204, message: No Content}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/open_list.example.com
+ response:
+ body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname":
+ "open_list@example.com", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"",
+ "list_id": "open_list.example.com", "list_name": "open_list", "mail_host":
+ "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com",
+ "volume": 1}'}
+ headers:
+ content-length: ['324']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/open_list.example.com
+ response:
+ body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname":
+ "open_list@example.com", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"",
+ "list_id": "open_list.example.com", "list_name": "open_list", "mail_host":
+ "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com",
+ "volume": 1}'}
+ headers:
+ content-length: ['324']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/open_list@example.com/config
+ response:
+ body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify":
+ true, "admin_notify_mchanges": false, "administrivia": true, "advertised":
+ true, "allow_list_posts": true, "anonymous_list": false, "archive_policy":
+ "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests":
+ "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "",
+ "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address":
+ "open_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext":
+ false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer",
+ "default_nonmember_action": "hold", "description": "", "digest_footer_uri":
+ "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
+ true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
+ "digests_enabled": true, "display_name": "Open_list", "dmarc_mitigate_action":
+ "no_mitigation", "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice":
+ "", "dmarc_wrapped_message_text": "", "filter_content": false, "first_strip_reply_to":
+ false, "footer_uri": "", "fqdn_listname": "open_list@example.com", "goodbye_message_uri":
+ "", "header_uri": "", "http_etag": "\"dfe94eee17035f150f2f9bd8d73782347811ff11\"",
+ "include_rfc2369_headers": true, "info": "", "join_address": "open_list-join@example.com",
+ "last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name":
+ "open_list", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
+ 1, "no_reply_address": "noreply@example.com", "owner_address": "open_list-owner@example.com",
+ "post_id": 1, "posting_address": "open_list@example.com", "posting_pipeline":
+ "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address":
+ "", "request_address": "open_list-request@example.com", "send_welcome_message":
+ true, "subject_prefix": "[Open_list] ", "subscription_policy": "open", "volume":
+ 1, "welcome_message_uri": ""}'}
+ headers:
+ content-length: ['1994']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/open_list.example.com/archivers
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"",
+ "mail-archive": true, "mhonarc": true, "prototype": true}'}
+ headers:
+ content-length: ['119']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/domains
+ response:
+ body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
+ "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com",
+ "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag":
+ "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size":
+ 1}'}
+ headers:
+ content-length: ['277']
+ 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/domains/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": "\"8443044e4d6ec48edd19061ae7f61de2b08b8d75\"", "is_server_owner":
+ false, "password": "$6$rounds=656000$rnOa8NXUi0YE7vzs$SPKi2H70I6WhyZ07ZMWAiveiLxfhxBHZEIrQpfoDG/zs.vgBbV6hL2wZDeSufccGEzcWqcLv9U3a8u9p8YChP/",
+ "self_link": "http://localhost:9001/3.0/users/3659", "user_id": 3659}], "http_etag":
+ "\"8a38789cbec44dee66a6d3f269a74775b44ca06c\"", "start": 0, "total_size":
+ 1}'}
+ headers:
+ content-length: ['435']
+ 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/3659
+ 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/TestSubscription.test_banned_address.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_banned_address.yaml
index 4128f79..6941ba2 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_banned_address.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_banned_address.yaml
@@ -74,9 +74,11 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Open_list", "filter_content": false,
- "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "open_list@example.com",
- "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"2aed2f0ce4a7f2c86eae4124728f0153fda52dc6\"",
+ "digests_enabled": true, "display_name": "Open_list", "dmarc_mitigate_action":
+ "no_mitigation", "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice":
+ "", "dmarc_wrapped_message_text": "", "filter_content": false, "first_strip_reply_to":
+ false, "footer_uri": "", "fqdn_listname": "open_list@example.com", "goodbye_message_uri":
+ "", "header_uri": "", "http_etag": "\"530adf8ac47d1bb5980f1c9c8fd18b8c7879a4c4\"",
"include_rfc2369_headers": true, "info": "", "join_address": "open_list-join@example.com",
"last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name":
"open_list", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
@@ -87,7 +89,7 @@
true, "subject_prefix": "[Open_list] ", "subscription_policy": "confirm",
"volume": 1, "welcome_message_uri": ""}'}
headers:
- content-length: ['1849']
+ content-length: ['1997']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -150,9 +152,11 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Moderate_subs", "filter_content":
- false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com",
- "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"60d87955c09ee35a06c8740e9a4474843e083e3a\"",
+ "digests_enabled": true, "display_name": "Moderate_subs", "dmarc_mitigate_action":
+ "no_mitigation", "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice":
+ "", "dmarc_wrapped_message_text": "", "filter_content": false, "first_strip_reply_to":
+ false, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com", "goodbye_message_uri":
+ "", "header_uri": "", "http_etag": "\"052e09045929377c9a6d9766784eb938b0f6bae4\"",
"include_rfc2369_headers": true, "info": "", "join_address": "moderate_subs-join@example.com",
"last_post_at": null, "leave_address": "moderate_subs-leave@example.com",
"list_name": "moderate_subs", "mail_host": "example.com", "moderator_password":
@@ -164,7 +168,7 @@
"[Moderate_subs] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1889']
+ content-length: ['2037']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -191,7 +195,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/users/8']
+ location: ['http://localhost:9001/3.0/users/3660']
status: {code: 201, message: Created}
- request:
body: !!python/unicode 'email=fritz%40example.org'
@@ -199,7 +203,7 @@
accept-encoding: ['gzip, deflate']
!!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
method: !!python/unicode 'POST'
- uri: http://localhost:9001/3.0/users/8/addresses
+ uri: http://localhost:9001/3.0/users/3660/addresses
response:
body: {string: !!python/unicode ''}
headers:
@@ -212,14 +216,14 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/users/8
+ uri: http://localhost:9001/3.0/users/3660
response:
body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
- "\"0c2468c8ce47eced76815fbe915ff5f37f27103d\"", "is_server_owner": false,
- "password": "$6$rounds=656000$4A1xUgoTyitzT1uy$jS5SAizo.ZCHk3ssqh4aKnaWt07Wi3RGHonG74/306XOTxH3IZSiHcQWO4T/iThDLlJXLHcmeW2Ak.3mnn2zm/",
- "self_link": "http://localhost:9001/3.0/users/8", "user_id": 8}'}
+ "\"991881ca671148452560b4b01abc68611a6cc37e\"", "is_server_owner": false,
+ "password": "$6$rounds=656000$UtwqtfLSUNnonP5g$cMQPufIWY0YHh3dvjoR.XdQyRXv8LhbjET7u3FtqodW5fSXAAjkK5jbLB4OTuIiLBsMIzAw830T6RjQgwVl170",
+ "self_link": "http://localhost:9001/3.0/users/3660", "user_id": 3660}'}
headers:
- content-length: ['324']
+ content-length: ['330']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -227,18 +231,18 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/users/8/addresses
+ uri: http://localhost:9001/3.0/users/3660/addresses
response:
body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag":
- "\"3118a56631f161e15b05f860e8ef37464c89d18e\"", "original_email": "fritz@example.org",
+ "\"999b751cbdc9ee870e2d0bad23edd960fe0b10d7\"", "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"}, {"email": "test@example.com",
- "http_etag": "\"ddda9833ea38cea61dbf611f3cf46fd118cba777\"", "original_email":
+ "user": "http://localhost:9001/3.0/users/3660"}, {"email": "test@example.com",
+ "http_etag": "\"be821377375e87c1752f1f4f747238cb23ea717a\"", "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": "\"074af7e8657324171ae04b869b162467811b317b\"",
+ "user": "http://localhost:9001/3.0/users/3660"}], "http_etag": "\"37f30b930379e42bed444b8f230cbcbae1b65b80\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['674']
+ content-length: ['680']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -418,9 +422,11 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Open_list", "filter_content": false,
- "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "open_list@example.com",
- "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"086805127cff33814207a09645d1d14a418fad63\"",
+ "digests_enabled": true, "display_name": "Open_list", "dmarc_mitigate_action":
+ "no_mitigation", "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice":
+ "", "dmarc_wrapped_message_text": "", "filter_content": false, "first_strip_reply_to":
+ false, "footer_uri": "", "fqdn_listname": "open_list@example.com", "goodbye_message_uri":
+ "", "header_uri": "", "http_etag": "\"dfe94eee17035f150f2f9bd8d73782347811ff11\"",
"include_rfc2369_headers": true, "info": "", "join_address": "open_list-join@example.com",
"last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name":
"open_list", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
@@ -431,7 +437,7 @@
true, "subject_prefix": "[Open_list] ", "subscription_policy": "open", "volume":
1, "welcome_message_uri": ""}'}
headers:
- content-length: ['1846']
+ content-length: ['1994']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -452,6 +458,19 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/open_list@example.com/requests
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
+ "start": 0, "total_size": 0}'}
+ headers:
+ content-length: ['90']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/open_list.example.com/member/fritz@example.org
response:
body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"}
@@ -478,32 +497,6 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/open_list@example.com/requests
- response:
- body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
- "start": 0, "total_size": 0}'}
- headers:
- content-length: ['90']
- content-type: [application/json; charset=UTF-8]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests
- response:
- body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
- "start": 0, "total_size": 0}'}
- headers:
- content-length: ['90']
- content-type: [application/json; charset=UTF-8]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -534,13 +527,13 @@
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23",
- "http_etag": "\"0c2468c8ce47eced76815fbe915ff5f37f27103d\"", "is_server_owner":
- false, "password": "$6$rounds=656000$4A1xUgoTyitzT1uy$jS5SAizo.ZCHk3ssqh4aKnaWt07Wi3RGHonG74/306XOTxH3IZSiHcQWO4T/iThDLlJXLHcmeW2Ak.3mnn2zm/",
- "self_link": "http://localhost:9001/3.0/users/8", "user_id": 8}], "http_etag":
- "\"1fbd3744b474b52342261d274c06e8c93f6a6bcf\"", "start": 0, "total_size":
+ "http_etag": "\"991881ca671148452560b4b01abc68611a6cc37e\"", "is_server_owner":
+ false, "password": "$6$rounds=656000$UtwqtfLSUNnonP5g$cMQPufIWY0YHh3dvjoR.XdQyRXv8LhbjET7u3FtqodW5fSXAAjkK5jbLB4OTuIiLBsMIzAw830T6RjQgwVl170",
+ "self_link": "http://localhost:9001/3.0/users/3660", "user_id": 3660}], "http_etag":
+ "\"9fc8a637ca5878117f213bffe2cbc25f1f867495\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['429']
+ content-length: ['435']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -548,7 +541,7 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'DELETE'
- uri: http://localhost:9001/3.0/users/8
+ uri: http://localhost:9001/3.0/users/3660
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_change_subscription_confirm.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_change_subscription_confirm.yaml
index 838df22..5b0c5db 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_change_subscription_confirm.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_change_subscription_confirm.yaml
@@ -74,9 +74,11 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Open_list", "filter_content": false,
- "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "open_list@example.com",
- "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"2aed2f0ce4a7f2c86eae4124728f0153fda52dc6\"",
+ "digests_enabled": true, "display_name": "Open_list", "dmarc_mitigate_action":
+ "no_mitigation", "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice":
+ "", "dmarc_wrapped_message_text": "", "filter_content": false, "first_strip_reply_to":
+ false, "footer_uri": "", "fqdn_listname": "open_list@example.com", "goodbye_message_uri":
+ "", "header_uri": "", "http_etag": "\"530adf8ac47d1bb5980f1c9c8fd18b8c7879a4c4\"",
"include_rfc2369_headers": true, "info": "", "join_address": "open_list-join@example.com",
"last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name":
"open_list", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
@@ -87,7 +89,7 @@
true, "subject_prefix": "[Open_list] ", "subscription_policy": "confirm",
"volume": 1, "welcome_message_uri": ""}'}
headers:
- content-length: ['1849']
+ content-length: ['1997']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -150,9 +152,11 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Moderate_subs", "filter_content":
- false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com",
- "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"60d87955c09ee35a06c8740e9a4474843e083e3a\"",
+ "digests_enabled": true, "display_name": "Moderate_subs", "dmarc_mitigate_action":
+ "no_mitigation", "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice":
+ "", "dmarc_wrapped_message_text": "", "filter_content": false, "first_strip_reply_to":
+ false, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com", "goodbye_message_uri":
+ "", "header_uri": "", "http_etag": "\"052e09045929377c9a6d9766784eb938b0f6bae4\"",
"include_rfc2369_headers": true, "info": "", "join_address": "moderate_subs-join@example.com",
"last_post_at": null, "leave_address": "moderate_subs-leave@example.com",
"list_name": "moderate_subs", "mail_host": "example.com", "moderator_password":
@@ -164,7 +168,7 @@
"[Moderate_subs] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1889']
+ content-length: ['2037']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -191,7 +195,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/users/9']
+ location: ['http://localhost:9001/3.0/users/3661']
status: {code: 201, message: Created}
- request:
body: !!python/unicode 'email=fritz%40example.org'
@@ -199,7 +203,7 @@
accept-encoding: ['gzip, deflate']
!!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
method: !!python/unicode 'POST'
- uri: http://localhost:9001/3.0/users/9/addresses
+ uri: http://localhost:9001/3.0/users/3661/addresses
response:
body: {string: !!python/unicode ''}
headers:
@@ -212,14 +216,14 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/users/9
+ uri: http://localhost:9001/3.0/users/3661
response:
body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
- "\"ca7237e0d822703967897a50a380ae328b389d25\"", "is_server_owner": false,
- "password": "$6$rounds=656000$70ZJPxLTchSMTmXZ$bIvRbHnH1OzqVwCykf5reeh9Qo9PNZicKOcHbqb/KPu/JPVnEw8AJwwvdYvdyoQaDlj1eC0J4u629.0HJcjV3/",
- "self_link": "http://localhost:9001/3.0/users/9", "user_id": 9}'}
+ "\"2c1c9a520b83b8255da4a889b761521c37f7b6ec\"", "is_server_owner": false,
+ "password": "$6$rounds=656000$Pga8ZEBpRB2VyKjt$ZPzGEAht0pfXxcrDUuKTji699TyhHmKDIyjjrW0.5WOCUa/cCt1kvSg.qUDeDhP7bMVFM0PE6gY68cPBf3ooS/",
+ "self_link": "http://localhost:9001/3.0/users/3661", "user_id": 3661}'}
headers:
- content-length: ['324']
+ content-length: ['330']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -227,18 +231,18 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/users/9/addresses
+ uri: http://localhost:9001/3.0/users/3661/addresses
response:
body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag":
- "\"1d655761300c9a203a280f3a2be9e133eb802280\"", "original_email": "fritz@example.org",
+ "\"7c678fa6c118ac59ad6e2a56707279b253504143\"", "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"}, {"email": "test@example.com",
- "http_etag": "\"83c6dfb813c2b4484f0c15eb434e104521bb2409\"", "original_email":
+ "user": "http://localhost:9001/3.0/users/3661"}, {"email": "test@example.com",
+ "http_etag": "\"c02355d8b2e7dad0d89e191bcb44234fb3ed3236\"", "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": "\"f14c73914079e826a370b6b434148753e7c21e65\"",
+ "user": "http://localhost:9001/3.0/users/3661"}], "http_etag": "\"4a5a8b73779b692b1ca381f4afb882752450c5cc\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['674']
+ content-length: ['680']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -311,9 +315,11 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Confirm_list", "filter_content":
- false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "confirm_list@example.com",
- "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"b69a1079ed0aa1ba3722e4dd48e25c70fd646836\"",
+ "digests_enabled": true, "display_name": "Confirm_list", "dmarc_mitigate_action":
+ "no_mitigation", "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice":
+ "", "dmarc_wrapped_message_text": "", "filter_content": false, "first_strip_reply_to":
+ false, "footer_uri": "", "fqdn_listname": "confirm_list@example.com", "goodbye_message_uri":
+ "", "header_uri": "", "http_etag": "\"7332933baf9a4dc7f7aced669285d40234eb426b\"",
"include_rfc2369_headers": true, "info": "", "join_address": "confirm_list-join@example.com",
"last_post_at": null, "leave_address": "confirm_list-leave@example.com", "list_name":
"confirm_list", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
@@ -324,7 +330,7 @@
true, "subject_prefix": "[Confirm_list] ", "subscription_policy": "confirm",
"volume": 1, "welcome_message_uri": ""}'}
headers:
- content-length: ['1879']
+ content-length: ['2027']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -351,7 +357,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/8']
+ location: ['http://localhost:9001/3.0/members/5550']
status: {code: 201, message: Created}
- request:
body: null
@@ -361,13 +367,13 @@
uri: http://localhost:9001/3.0/lists/confirm_list@example.com/roster/member
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/test@example.com",
- "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"214ce3dafe089fc9df61fa39028479ddb5eaa504\"",
- "list_id": "confirm_list.example.com", "member_id": 8, "role": "member", "self_link":
- "http://localhost:9001/3.0/members/8", "user": "http://localhost:9001/3.0/users/9"}],
- "http_etag": "\"4dbf6f9d1505077e5df67e3731b53ec736c0f9f1\"", "start": 0, "total_size":
+ "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"defffdffe9b852082e2b7cd603e7f09937c8c104\"",
+ "list_id": "confirm_list.example.com", "member_id": 5550, "role": "member",
+ "self_link": "http://localhost:9001/3.0/members/5550", "user": "http://localhost:9001/3.0/users/3661"}],
+ "http_etag": "\"753da2637bcb3184561f814ba8b135e5cbe3c536\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['460']
+ content-length: ['469']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -446,11 +452,11 @@
uri: http://localhost:9001/3.0/lists/confirm_list.example.com/member/test@example.com
response:
body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/test@example.com",
- "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"214ce3dafe089fc9df61fa39028479ddb5eaa504\"",
- "list_id": "confirm_list.example.com", "member_id": 8, "role": "member", "self_link":
- "http://localhost:9001/3.0/members/8", "user": "http://localhost:9001/3.0/users/9"}'}
+ "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"defffdffe9b852082e2b7cd603e7f09937c8c104\"",
+ "list_id": "confirm_list.example.com", "member_id": 5550, "role": "member",
+ "self_link": "http://localhost:9001/3.0/members/5550", "user": "http://localhost:9001/3.0/users/3661"}'}
headers:
- content-length: ['355']
+ content-length: ['364']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -476,7 +482,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/9']
+ location: ['http://localhost:9001/3.0/members/5551']
status: {code: 201, message: Created}
- request:
body: null
@@ -486,13 +492,13 @@
uri: http://localhost:9001/3.0/lists/confirm_list@example.com/roster/member
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/fritz@example.org",
- "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"0b476e50281f3c5f6b2f996b2fdecf3bcb29b69f\"",
- "list_id": "confirm_list.example.com", "member_id": 9, "role": "member", "self_link":
- "http://localhost:9001/3.0/members/9", "user": "http://localhost:9001/3.0/users/9"}],
- "http_etag": "\"6aa5796a4f9e27037a3d0e0b9a7e90a3cfdff8d6\"", "start": 0, "total_size":
+ "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"1050bd17f818c71acfdd7b21282b1b6b40ee2ff8\"",
+ "list_id": "confirm_list.example.com", "member_id": 5551, "role": "member",
+ "self_link": "http://localhost:9001/3.0/members/5551", "user": "http://localhost:9001/3.0/users/3661"}],
+ "http_etag": "\"7b98d3b96172f0004d4718c75d829b4b53e959c9\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['462']
+ content-length: ['471']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -516,11 +522,11 @@
uri: http://localhost:9001/3.0/lists/confirm_list.example.com/member/fritz@example.org
response:
body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/fritz@example.org",
- "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"0b476e50281f3c5f6b2f996b2fdecf3bcb29b69f\"",
- "list_id": "confirm_list.example.com", "member_id": 9, "role": "member", "self_link":
- "http://localhost:9001/3.0/members/9", "user": "http://localhost:9001/3.0/users/9"}'}
+ "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"1050bd17f818c71acfdd7b21282b1b6b40ee2ff8\"",
+ "list_id": "confirm_list.example.com", "member_id": 5551, "role": "member",
+ "self_link": "http://localhost:9001/3.0/members/5551", "user": "http://localhost:9001/3.0/users/3661"}'}
headers:
- content-length: ['357']
+ content-length: ['366']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -583,9 +589,11 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Confirm_list", "filter_content":
- false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "confirm_list@example.com",
- "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"b69a1079ed0aa1ba3722e4dd48e25c70fd646836\"",
+ "digests_enabled": true, "display_name": "Confirm_list", "dmarc_mitigate_action":
+ "no_mitigation", "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice":
+ "", "dmarc_wrapped_message_text": "", "filter_content": false, "first_strip_reply_to":
+ false, "footer_uri": "", "fqdn_listname": "confirm_list@example.com", "goodbye_message_uri":
+ "", "header_uri": "", "http_etag": "\"7332933baf9a4dc7f7aced669285d40234eb426b\"",
"include_rfc2369_headers": true, "info": "", "join_address": "confirm_list-join@example.com",
"last_post_at": null, "leave_address": "confirm_list-leave@example.com", "list_name":
"confirm_list", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
@@ -596,7 +604,7 @@
true, "subject_prefix": "[Confirm_list] ", "subscription_policy": "confirm",
"volume": 1, "welcome_message_uri": ""}'}
headers:
- content-length: ['1879']
+ content-length: ['2027']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -617,40 +625,27 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/confirm_list@example.com/requests
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
+ "start": 0, "total_size": 0}'}
+ headers:
+ content-length: ['90']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/confirm_list.example.com/member/fritz@example.org
response:
body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/fritz@example.org",
- "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"0b476e50281f3c5f6b2f996b2fdecf3bcb29b69f\"",
- "list_id": "confirm_list.example.com", "member_id": 9, "role": "member", "self_link":
- "http://localhost:9001/3.0/members/9", "user": "http://localhost:9001/3.0/users/9"}'}
+ "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"1050bd17f818c71acfdd7b21282b1b6b40ee2ff8\"",
+ "list_id": "confirm_list.example.com", "member_id": 5551, "role": "member",
+ "self_link": "http://localhost:9001/3.0/members/5551", "user": "http://localhost:9001/3.0/users/3661"}'}
headers:
- content-length: ['357']
- content-type: [application/json; charset=UTF-8]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/open_list@example.com/requests
- response:
- body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
- "start": 0, "total_size": 0}'}
- headers:
- content-length: ['90']
- content-type: [application/json; charset=UTF-8]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests
- response:
- body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
- "start": 0, "total_size": 0}'}
- headers:
- content-length: ['90']
+ content-length: ['366']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -688,13 +683,13 @@
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23",
- "http_etag": "\"ca7237e0d822703967897a50a380ae328b389d25\"", "is_server_owner":
- false, "password": "$6$rounds=656000$70ZJPxLTchSMTmXZ$bIvRbHnH1OzqVwCykf5reeh9Qo9PNZicKOcHbqb/KPu/JPVnEw8AJwwvdYvdyoQaDlj1eC0J4u629.0HJcjV3/",
- "self_link": "http://localhost:9001/3.0/users/9", "user_id": 9}], "http_etag":
- "\"065008a2a67e2bf0508cdf3e307da95767658e3c\"", "start": 0, "total_size":
+ "http_etag": "\"2c1c9a520b83b8255da4a889b761521c37f7b6ec\"", "is_server_owner":
+ false, "password": "$6$rounds=656000$Pga8ZEBpRB2VyKjt$ZPzGEAht0pfXxcrDUuKTji699TyhHmKDIyjjrW0.5WOCUa/cCt1kvSg.qUDeDhP7bMVFM0PE6gY68cPBf3ooS/",
+ "self_link": "http://localhost:9001/3.0/users/3661", "user_id": 3661}], "http_etag":
+ "\"ec94cbaf1e5bf30df0e617f10a176b1332950a1b\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['429']
+ content-length: ['435']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -702,7 +697,7 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'DELETE'
- uri: http://localhost:9001/3.0/users/9
+ uri: http://localhost:9001/3.0/users/3661
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_change_subscription_open.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_change_subscription_open.yaml
index 9171288..ee1a827 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_change_subscription_open.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_change_subscription_open.yaml
@@ -74,9 +74,11 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Open_list", "filter_content": false,
- "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "open_list@example.com",
- "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"2aed2f0ce4a7f2c86eae4124728f0153fda52dc6\"",
+ "digests_enabled": true, "display_name": "Open_list", "dmarc_mitigate_action":
+ "no_mitigation", "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice":
+ "", "dmarc_wrapped_message_text": "", "filter_content": false, "first_strip_reply_to":
+ false, "footer_uri": "", "fqdn_listname": "open_list@example.com", "goodbye_message_uri":
+ "", "header_uri": "", "http_etag": "\"530adf8ac47d1bb5980f1c9c8fd18b8c7879a4c4\"",
"include_rfc2369_headers": true, "info": "", "join_address": "open_list-join@example.com",
"last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name":
"open_list", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
@@ -87,7 +89,7 @@
true, "subject_prefix": "[Open_list] ", "subscription_policy": "confirm",
"volume": 1, "welcome_message_uri": ""}'}
headers:
- content-length: ['1849']
+ content-length: ['1997']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -150,9 +152,11 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Moderate_subs", "filter_content":
- false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com",
- "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"60d87955c09ee35a06c8740e9a4474843e083e3a\"",
+ "digests_enabled": true, "display_name": "Moderate_subs", "dmarc_mitigate_action":
+ "no_mitigation", "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice":
+ "", "dmarc_wrapped_message_text": "", "filter_content": false, "first_strip_reply_to":
+ false, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com", "goodbye_message_uri":
+ "", "header_uri": "", "http_etag": "\"052e09045929377c9a6d9766784eb938b0f6bae4\"",
"include_rfc2369_headers": true, "info": "", "join_address": "moderate_subs-join@example.com",
"last_post_at": null, "leave_address": "moderate_subs-leave@example.com",
"list_name": "moderate_subs", "mail_host": "example.com", "moderator_password":
@@ -164,7 +168,7 @@
"[Moderate_subs] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1889']
+ content-length: ['2037']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -191,7 +195,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/users/10']
+ location: ['http://localhost:9001/3.0/users/3662']
status: {code: 201, message: Created}
- request:
body: !!python/unicode 'email=fritz%40example.org'
@@ -199,7 +203,7 @@
accept-encoding: ['gzip, deflate']
!!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
method: !!python/unicode 'POST'
- uri: http://localhost:9001/3.0/users/10/addresses
+ uri: http://localhost:9001/3.0/users/3662/addresses
response:
body: {string: !!python/unicode ''}
headers:
@@ -212,14 +216,14 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/users/10
+ uri: http://localhost:9001/3.0/users/3662
response:
body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
- "\"06f37d42a630458ca7256bcca210aa181c732bd6\"", "is_server_owner": false,
- "password": "$6$rounds=656000$34c1RwlQzq7Zmy79$C0q7D3whDIHoylMhgp6k31DJ2D7UPFD5b4W99tQiY7RqUjG3bvQA53I4r2VhNsVOQmCTDDaNuMwBNwZikgSjz1",
- "self_link": "http://localhost:9001/3.0/users/10", "user_id": 10}'}
+ "\"481ab0672ed942ac9a4153b0285f3dcf2b12a8a3\"", "is_server_owner": false,
+ "password": "$6$rounds=656000$oj/jCJ9RF8v2aheB$JuRh/QrIHokRvqeGkGBdfOdFO9upJ5w4I843dYi3IzDGC2BxBUpB8D1EDBQu3gXOgxvKJc00hdc2QroOSbHgJ1",
+ "self_link": "http://localhost:9001/3.0/users/3662", "user_id": 3662}'}
headers:
- content-length: ['326']
+ content-length: ['330']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -227,18 +231,18 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/users/10/addresses
+ uri: http://localhost:9001/3.0/users/3662/addresses
response:
body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag":
- "\"accae9afdb6505b1034b56e58a195d60488ace0e\"", "original_email": "fritz@example.org",
+ "\"361c19b9b9cd9a2f60a85706ee7a91eefae45c4e\"", "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/10"}, {"email": "test@example.com",
- "http_etag": "\"653c988d25ef432406061ef93716f4d0679d110c\"", "original_email":
+ "user": "http://localhost:9001/3.0/users/3662"}, {"email": "test@example.com",
+ "http_etag": "\"0b3cb7d96915a75588efcb9736599f1fba7174c6\"", "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"}], "http_etag": "\"ae98e42a83a42897babea6e73012645d29278827\"",
+ "user": "http://localhost:9001/3.0/users/3662"}], "http_etag": "\"344f049b1dd7f918fc258109352c9008bb2d3009\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['676']
+ content-length: ['680']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -275,7 +279,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/10']
+ location: ['http://localhost:9001/3.0/members/5552']
status: {code: 201, message: Created}
- request:
body: null
@@ -285,13 +289,13 @@
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": "\"4932412e4590b8a81facd1b6d91fb56cd20915b8\"",
- "list_id": "open_list.example.com", "member_id": 10, "role": "member", "self_link":
- "http://localhost:9001/3.0/members/10", "user": "http://localhost:9001/3.0/users/10"}],
- "http_etag": "\"b606d9eca504e7bfacfdcf3a5c86950d563d2b47\"", "start": 0, "total_size":
+ "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"40513327c0c63e9e9ed400c648e0cad21ca5b5a0\"",
+ "list_id": "open_list.example.com", "member_id": 5552, "role": "member", "self_link":
+ "http://localhost:9001/3.0/members/5552", "user": "http://localhost:9001/3.0/users/3662"}],
+ "http_etag": "\"2a6ae789728993d4ff7897f8bf7f783a353448b3\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['460']
+ content-length: ['466']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -370,11 +374,11 @@
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": "\"4932412e4590b8a81facd1b6d91fb56cd20915b8\"",
- "list_id": "open_list.example.com", "member_id": 10, "role": "member", "self_link":
- "http://localhost:9001/3.0/members/10", "user": "http://localhost:9001/3.0/users/10"}'}
+ "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"40513327c0c63e9e9ed400c648e0cad21ca5b5a0\"",
+ "list_id": "open_list.example.com", "member_id": 5552, "role": "member", "self_link":
+ "http://localhost:9001/3.0/members/5552", "user": "http://localhost:9001/3.0/users/3662"}'}
headers:
- content-length: ['355']
+ content-length: ['361']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -400,7 +404,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/11']
+ location: ['http://localhost:9001/3.0/members/5553']
status: {code: 201, message: Created}
- request:
body: null
@@ -410,13 +414,13 @@
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": "\"2d8769e91a5aef1009c41c20715d9703c6937e13\"",
- "list_id": "open_list.example.com", "member_id": 11, "role": "member", "self_link":
- "http://localhost:9001/3.0/members/11", "user": "http://localhost:9001/3.0/users/10"}],
- "http_etag": "\"26961a98d91f15cbf626e87bbf3987efbbb1f62a\"", "start": 0, "total_size":
+ "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"966762729ebd883f9f4cdc022f302af23fac5ebb\"",
+ "list_id": "open_list.example.com", "member_id": 5553, "role": "member", "self_link":
+ "http://localhost:9001/3.0/members/5553", "user": "http://localhost:9001/3.0/users/3662"}],
+ "http_etag": "\"f1cc58ea60c1b6ef2dae363e823d7c4a2b995a7e\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['462']
+ content-length: ['468']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -440,11 +444,11 @@
uri: http://localhost:9001/3.0/lists/open_list.example.com/member/fritz@example.org
response:
body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/fritz@example.org",
- "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"2d8769e91a5aef1009c41c20715d9703c6937e13\"",
- "list_id": "open_list.example.com", "member_id": 11, "role": "member", "self_link":
- "http://localhost:9001/3.0/members/11", "user": "http://localhost:9001/3.0/users/10"}'}
+ "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"966762729ebd883f9f4cdc022f302af23fac5ebb\"",
+ "list_id": "open_list.example.com", "member_id": 5553, "role": "member", "self_link":
+ "http://localhost:9001/3.0/members/5553", "user": "http://localhost:9001/3.0/users/3662"}'}
headers:
- content-length: ['357']
+ content-length: ['363']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -507,9 +511,11 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Open_list", "filter_content": false,
- "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "open_list@example.com",
- "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"086805127cff33814207a09645d1d14a418fad63\"",
+ "digests_enabled": true, "display_name": "Open_list", "dmarc_mitigate_action":
+ "no_mitigation", "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice":
+ "", "dmarc_wrapped_message_text": "", "filter_content": false, "first_strip_reply_to":
+ false, "footer_uri": "", "fqdn_listname": "open_list@example.com", "goodbye_message_uri":
+ "", "header_uri": "", "http_etag": "\"dfe94eee17035f150f2f9bd8d73782347811ff11\"",
"include_rfc2369_headers": true, "info": "", "join_address": "open_list-join@example.com",
"last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name":
"open_list", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
@@ -520,7 +526,7 @@
true, "subject_prefix": "[Open_list] ", "subscription_policy": "open", "volume":
1, "welcome_message_uri": ""}'}
headers:
- content-length: ['1846']
+ content-length: ['1994']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -541,21 +547,6 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/open_list.example.com/member/fritz@example.org
- response:
- body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/fritz@example.org",
- "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"2d8769e91a5aef1009c41c20715d9703c6937e13\"",
- "list_id": "open_list.example.com", "member_id": 11, "role": "member", "self_link":
- "http://localhost:9001/3.0/members/11", "user": "http://localhost:9001/3.0/users/10"}'}
- headers:
- content-length: ['357']
- content-type: [application/json; charset=UTF-8]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/open_list@example.com/requests
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
@@ -569,12 +560,14 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests
+ uri: http://localhost:9001/3.0/lists/open_list.example.com/member/fritz@example.org
response:
- body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
- "start": 0, "total_size": 0}'}
+ body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/fritz@example.org",
+ "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"966762729ebd883f9f4cdc022f302af23fac5ebb\"",
+ "list_id": "open_list.example.com", "member_id": 5553, "role": "member", "self_link":
+ "http://localhost:9001/3.0/members/5553", "user": "http://localhost:9001/3.0/users/3662"}'}
headers:
- content-length: ['90']
+ content-length: ['363']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -612,13 +605,13 @@
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23",
- "http_etag": "\"06f37d42a630458ca7256bcca210aa181c732bd6\"", "is_server_owner":
- false, "password": "$6$rounds=656000$34c1RwlQzq7Zmy79$C0q7D3whDIHoylMhgp6k31DJ2D7UPFD5b4W99tQiY7RqUjG3bvQA53I4r2VhNsVOQmCTDDaNuMwBNwZikgSjz1",
- "self_link": "http://localhost:9001/3.0/users/10", "user_id": 10}], "http_etag":
- "\"fd2d6f5355d8c109e50ee92e7c76a9a4caa8a88b\"", "start": 0, "total_size":
+ "http_etag": "\"481ab0672ed942ac9a4153b0285f3dcf2b12a8a3\"", "is_server_owner":
+ false, "password": "$6$rounds=656000$oj/jCJ9RF8v2aheB$JuRh/QrIHokRvqeGkGBdfOdFO9upJ5w4I843dYi3IzDGC2BxBUpB8D1EDBQu3gXOgxvKJc00hdc2QroOSbHgJ1",
+ "self_link": "http://localhost:9001/3.0/users/3662", "user_id": 3662}], "http_etag":
+ "\"a9d3d96619e393a7cfbe2d494938dae1a65e02f2\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['431']
+ content-length: ['435']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -626,7 +619,7 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'DELETE'
- uri: http://localhost:9001/3.0/users/10
+ uri: http://localhost:9001/3.0/users/3662
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_secondary_mod.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_secondary_mod.yaml
index 2c72465..6daf437 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_secondary_mod.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_secondary_mod.yaml
@@ -74,9 +74,11 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Open_list", "filter_content": false,
- "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "open_list@example.com",
- "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"2aed2f0ce4a7f2c86eae4124728f0153fda52dc6\"",
+ "digests_enabled": true, "display_name": "Open_list", "dmarc_mitigate_action":
+ "no_mitigation", "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice":
+ "", "dmarc_wrapped_message_text": "", "filter_content": false, "first_strip_reply_to":
+ false, "footer_uri": "", "fqdn_listname": "open_list@example.com", "goodbye_message_uri":
+ "", "header_uri": "", "http_etag": "\"530adf8ac47d1bb5980f1c9c8fd18b8c7879a4c4\"",
"include_rfc2369_headers": true, "info": "", "join_address": "open_list-join@example.com",
"last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name":
"open_list", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
@@ -87,7 +89,7 @@
true, "subject_prefix": "[Open_list] ", "subscription_policy": "confirm",
"volume": 1, "welcome_message_uri": ""}'}
headers:
- content-length: ['1849']
+ content-length: ['1997']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -150,9 +152,11 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Moderate_subs", "filter_content":
- false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com",
- "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"60d87955c09ee35a06c8740e9a4474843e083e3a\"",
+ "digests_enabled": true, "display_name": "Moderate_subs", "dmarc_mitigate_action":
+ "no_mitigation", "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice":
+ "", "dmarc_wrapped_message_text": "", "filter_content": false, "first_strip_reply_to":
+ false, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com", "goodbye_message_uri":
+ "", "header_uri": "", "http_etag": "\"052e09045929377c9a6d9766784eb938b0f6bae4\"",
"include_rfc2369_headers": true, "info": "", "join_address": "moderate_subs-join@example.com",
"last_post_at": null, "leave_address": "moderate_subs-leave@example.com",
"list_name": "moderate_subs", "mail_host": "example.com", "moderator_password":
@@ -164,7 +168,7 @@
"[Moderate_subs] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1889']
+ content-length: ['2037']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -191,7 +195,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/users/11']
+ location: ['http://localhost:9001/3.0/users/3663']
status: {code: 201, message: Created}
- request:
body: !!python/unicode 'email=fritz%40example.org'
@@ -199,7 +203,7 @@
accept-encoding: ['gzip, deflate']
!!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
method: !!python/unicode 'POST'
- uri: http://localhost:9001/3.0/users/11/addresses
+ uri: http://localhost:9001/3.0/users/3663/addresses
response:
body: {string: !!python/unicode ''}
headers:
@@ -212,14 +216,14 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/users/11
+ uri: http://localhost:9001/3.0/users/3663
response:
body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
- "\"96a5f6268c5f33060643bd7fbf8e6c6cf106e3d2\"", "is_server_owner": false,
- "password": "$6$rounds=656000$aFn34vHfojijS2H/$8AIfdFpoZGPFT4r3IGVdzLjODgfwSNSzUpkkSUkL5NjmCZaybDnm4v83VoIc2n8a256ErHnRZM3pNXlrVSQxP0",
- "self_link": "http://localhost:9001/3.0/users/11", "user_id": 11}'}
+ "\"8e1c9cca217d4114577dcbafead40e01d90699c6\"", "is_server_owner": false,
+ "password": "$6$rounds=656000$uZYccHSRyTazZ59R$Nzuw6oZq4FHnedneaQf2z9sGVnjDM8egtDPP2nj4w9V6o.jG7YZQmvoSTSlv2Rj.TddynSQHKcAin8vIg1MfC1",
+ "self_link": "http://localhost:9001/3.0/users/3663", "user_id": 3663}'}
headers:
- content-length: ['326']
+ content-length: ['330']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -227,18 +231,18 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/users/11/addresses
+ uri: http://localhost:9001/3.0/users/3663/addresses
response:
body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag":
- "\"1c33f5a2fab5ca57e42cc20acef75bdcd84e8c4d\"", "original_email": "fritz@example.org",
+ "\"ff2d1e5e0fcff62144213da48f7ccccab068c84a\"", "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/11"}, {"email": "test@example.com",
- "http_etag": "\"c0069cae5d04efb49c7546aef78ce21c4d054047\"", "original_email":
+ "user": "http://localhost:9001/3.0/users/3663"}, {"email": "test@example.com",
+ "http_etag": "\"a09e2762cfa09ffad19f8b3c2248a86addfda301\"", "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": "\"fdd92802d8043d81ae303cf87bf83c48085c2c5b\"",
+ "user": "http://localhost:9001/3.0/users/3663"}], "http_etag": "\"9571432a282d31f8ffcebe8fccd8221425d9e72e\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['676']
+ content-length: ['680']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -313,8 +317,8 @@
method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
- body: {string: !!python/unicode '{"http_etag": "\"8171955e8578477ccef9f84470dd4b8e2ebb3615\"",
- "token": "0000000000000000000000000000000000000001", "token_owner": "moderator"}'}
+ body: {string: !!python/unicode '{"http_etag": "\"2d92ea843df20401040839138c4458a9542cd177\"",
+ "token": "0000000000000000000000000000000000000227", "token_owner": "moderator"}'}
headers:
content-length: ['142']
content-type: [application/json; charset=UTF-8]
@@ -340,9 +344,9 @@
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": "\"0a5237c00a56ab2533d399fa5a37c3884abc218d\"", "list_id": "moderate_subs.example.com",
- "token": "0000000000000000000000000000000000000001", "token_owner": "moderator",
- "type": "subscription", "when": "2005-08-01T07:49:23"}], "http_etag": "\"30a9bf89320eecadf5775a0d1f41fdb9c92adc40\"",
+ "http_etag": "\"dde833ebbad5a33ff441eeb6ba083d10a9a2b381\"", "list_id": "moderate_subs.example.com",
+ "token": "0000000000000000000000000000000000000227", "token_owner": "moderator",
+ "type": "subscription", "when": "2005-08-01T07:49:23"}], "http_etag": "\"15ee9da00dd989470dcd7474796187a281021417\"",
"start": 0, "total_size": 1}'}
headers:
content-length: ['392']
@@ -408,9 +412,11 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Moderate_subs", "filter_content":
- false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com",
- "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"1d28c896e12bf6e14713f346c758daecbf86c534\"",
+ "digests_enabled": true, "display_name": "Moderate_subs", "dmarc_mitigate_action":
+ "no_mitigation", "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice":
+ "", "dmarc_wrapped_message_text": "", "filter_content": false, "first_strip_reply_to":
+ false, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com", "goodbye_message_uri":
+ "", "header_uri": "", "http_etag": "\"b095dd9a55e4ce9aa67e6558bba07fadbcf363c6\"",
"include_rfc2369_headers": true, "info": "", "join_address": "moderate_subs-join@example.com",
"last_post_at": null, "leave_address": "moderate_subs-leave@example.com",
"list_name": "moderate_subs", "mail_host": "example.com", "moderator_password":
@@ -422,7 +428,7 @@
"[Moderate_subs] ", "subscription_policy": "moderate", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1890']
+ content-length: ['2038']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -443,69 +449,18 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/member/fritz@example.org
- response:
- body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"}
- headers:
- content-length: ['32']
- content-type: [application/json; charset=UTF-8]
- vary: [Accept]
- status: {code: 404, message: Not Found}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/member/test@example.com
- response:
- body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"}
- headers:
- content-length: ['32']
- content-type: [application/json; charset=UTF-8]
- vary: [Accept]
- status: {code: 404, message: Not Found}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/open_list@example.com/requests
- response:
- body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
- "start": 0, "total_size": 0}'}
- headers:
- content-length: ['90']
- content-type: [application/json; charset=UTF-8]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests
response:
body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "fritz@example.org",
- "http_etag": "\"0a5237c00a56ab2533d399fa5a37c3884abc218d\"", "list_id": "moderate_subs.example.com",
- "token": "0000000000000000000000000000000000000001", "token_owner": "moderator",
- "type": "subscription", "when": "2005-08-01T07:49:23"}], "http_etag": "\"30a9bf89320eecadf5775a0d1f41fdb9c92adc40\"",
+ "http_etag": "\"dde833ebbad5a33ff441eeb6ba083d10a9a2b381\"", "list_id": "moderate_subs.example.com",
+ "token": "0000000000000000000000000000000000000227", "token_owner": "moderator",
+ "type": "subscription", "when": "2005-08-01T07:49:23"}], "http_etag": "\"15ee9da00dd989470dcd7474796187a281021417\"",
"start": 0, "total_size": 1}'}
headers:
content-length: ['392']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
- body: !!python/unicode 'action=discard'
- headers:
- accept-encoding: ['gzip, deflate']
- !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
- method: !!python/unicode 'POST'
- uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/requests/0000000000000000000000000000000000000001
- response:
- body: {string: !!python/unicode ''}
- headers:
- content-length: ['0']
- status: {code: 204, message: No Content}
-- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
@@ -540,13 +495,13 @@
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23",
- "http_etag": "\"96a5f6268c5f33060643bd7fbf8e6c6cf106e3d2\"", "is_server_owner":
- false, "password": "$6$rounds=656000$aFn34vHfojijS2H/$8AIfdFpoZGPFT4r3IGVdzLjODgfwSNSzUpkkSUkL5NjmCZaybDnm4v83VoIc2n8a256ErHnRZM3pNXlrVSQxP0",
- "self_link": "http://localhost:9001/3.0/users/11", "user_id": 11}], "http_etag":
- "\"b84ee8c8fbe17156cb2945e3c74f1296493370d3\"", "start": 0, "total_size":
+ "http_etag": "\"8e1c9cca217d4114577dcbafead40e01d90699c6\"", "is_server_owner":
+ false, "password": "$6$rounds=656000$uZYccHSRyTazZ59R$Nzuw6oZq4FHnedneaQf2z9sGVnjDM8egtDPP2nj4w9V6o.jG7YZQmvoSTSlv2Rj.TddynSQHKcAin8vIg1MfC1",
+ "self_link": "http://localhost:9001/3.0/users/3663", "user_id": 3663}], "http_etag":
+ "\"4db71cf57075e6202e05127d8fc408346cefc661\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['431']
+ content-length: ['435']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -554,7 +509,7 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'DELETE'
- uri: http://localhost:9001/3.0/users/11
+ uri: http://localhost:9001/3.0/users/3663
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_secondary_open.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_secondary_open.yaml
index 54747ab..3022083 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_secondary_open.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_secondary_open.yaml
@@ -74,9 +74,11 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Open_list", "filter_content": false,
- "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "open_list@example.com",
- "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"2aed2f0ce4a7f2c86eae4124728f0153fda52dc6\"",
+ "digests_enabled": true, "display_name": "Open_list", "dmarc_mitigate_action":
+ "no_mitigation", "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice":
+ "", "dmarc_wrapped_message_text": "", "filter_content": false, "first_strip_reply_to":
+ false, "footer_uri": "", "fqdn_listname": "open_list@example.com", "goodbye_message_uri":
+ "", "header_uri": "", "http_etag": "\"530adf8ac47d1bb5980f1c9c8fd18b8c7879a4c4\"",
"include_rfc2369_headers": true, "info": "", "join_address": "open_list-join@example.com",
"last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name":
"open_list", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
@@ -87,7 +89,7 @@
true, "subject_prefix": "[Open_list] ", "subscription_policy": "confirm",
"volume": 1, "welcome_message_uri": ""}'}
headers:
- content-length: ['1849']
+ content-length: ['1997']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -150,9 +152,11 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Moderate_subs", "filter_content":
- false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com",
- "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"60d87955c09ee35a06c8740e9a4474843e083e3a\"",
+ "digests_enabled": true, "display_name": "Moderate_subs", "dmarc_mitigate_action":
+ "no_mitigation", "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice":
+ "", "dmarc_wrapped_message_text": "", "filter_content": false, "first_strip_reply_to":
+ false, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com", "goodbye_message_uri":
+ "", "header_uri": "", "http_etag": "\"052e09045929377c9a6d9766784eb938b0f6bae4\"",
"include_rfc2369_headers": true, "info": "", "join_address": "moderate_subs-join@example.com",
"last_post_at": null, "leave_address": "moderate_subs-leave@example.com",
"list_name": "moderate_subs", "mail_host": "example.com", "moderator_password":
@@ -164,7 +168,7 @@
"[Moderate_subs] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1889']
+ content-length: ['2037']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -191,7 +195,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/users/12']
+ location: ['http://localhost:9001/3.0/users/3664']
status: {code: 201, message: Created}
- request:
body: !!python/unicode 'email=fritz%40example.org'
@@ -199,7 +203,7 @@
accept-encoding: ['gzip, deflate']
!!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
method: !!python/unicode 'POST'
- uri: http://localhost:9001/3.0/users/12/addresses
+ uri: http://localhost:9001/3.0/users/3664/addresses
response:
body: {string: !!python/unicode ''}
headers:
@@ -212,14 +216,14 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/users/12
+ uri: http://localhost:9001/3.0/users/3664
response:
body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
- "\"d5e26d47ccecb1c3b926fa46f5fbd2a5c9d0bfef\"", "is_server_owner": false,
- "password": "$6$rounds=656000$sjmLUeeqUyCU2U85$4TCgmm9D7YZyAoV1LEdja80GMFQ7MfHWTUXgeibSiOFjFslnPyO2usbdSwoXEI/83T6eEYa1lW71qF3fSKR6m1",
- "self_link": "http://localhost:9001/3.0/users/12", "user_id": 12}'}
+ "\"c4d29025d9d170130a55e0a9166baa97d434c4dc\"", "is_server_owner": false,
+ "password": "$6$rounds=656000$4cr0h1a1FBZBjco.$/uVDFivPRHdGG4/2S3tt9YmRaN6vtn5cUwx2gIlSHRwMf3/irZ3HDTXR9bvHUfwpA/sm0DR9MAnqeCWKVgfk/.",
+ "self_link": "http://localhost:9001/3.0/users/3664", "user_id": 3664}'}
headers:
- content-length: ['326']
+ content-length: ['330']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -227,18 +231,18 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/users/12/addresses
+ uri: http://localhost:9001/3.0/users/3664/addresses
response:
body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag":
- "\"de45f651ca0c2b01f31bd759ce7b963dae2b0c09\"", "original_email": "fritz@example.org",
+ "\"c66120a7f71a776218289b13f995f5f76722b9b4\"", "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/12"}, {"email": "test@example.com",
- "http_etag": "\"7153fc9edd12dfb866876de2d6ff5b66fbd13574\"", "original_email":
+ "user": "http://localhost:9001/3.0/users/3664"}, {"email": "test@example.com",
+ "http_etag": "\"6620de5ad8f8b073aabeca92faafbb805b08d396\"", "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": "\"9622288daa6ceeeeb77d9a30775f90ee6fa47a4b\"",
+ "user": "http://localhost:9001/3.0/users/3664"}], "http_etag": "\"5689cb935d2b402350c9c92ab845f973d35e590f\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['676']
+ content-length: ['680']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -317,7 +321,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/12']
+ location: ['http://localhost:9001/3.0/members/5554']
status: {code: 201, message: Created}
- request:
body: null
@@ -327,13 +331,13 @@
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": "\"d5a89397121d98dca94571a608efb00fe9e4256b\"",
- "list_id": "open_list.example.com", "member_id": 12, "role": "member", "self_link":
- "http://localhost:9001/3.0/members/12", "user": "http://localhost:9001/3.0/users/12"}],
- "http_etag": "\"e6cf43d609728310c41e1f8bffb5a037c2fefd56\"", "start": 0, "total_size":
+ "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"892b038445b643d96e7f79c20581aa21fd625c7c\"",
+ "list_id": "open_list.example.com", "member_id": 5554, "role": "member", "self_link":
+ "http://localhost:9001/3.0/members/5554", "user": "http://localhost:9001/3.0/users/3664"}],
+ "http_etag": "\"79f00775c4ea174b911b7076734ecf2651978f68\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['462']
+ content-length: ['468']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -409,9 +413,11 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Open_list", "filter_content": false,
- "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "open_list@example.com",
- "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"086805127cff33814207a09645d1d14a418fad63\"",
+ "digests_enabled": true, "display_name": "Open_list", "dmarc_mitigate_action":
+ "no_mitigation", "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice":
+ "", "dmarc_wrapped_message_text": "", "filter_content": false, "first_strip_reply_to":
+ false, "footer_uri": "", "fqdn_listname": "open_list@example.com", "goodbye_message_uri":
+ "", "header_uri": "", "http_etag": "\"dfe94eee17035f150f2f9bd8d73782347811ff11\"",
"include_rfc2369_headers": true, "info": "", "join_address": "open_list-join@example.com",
"last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name":
"open_list", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
@@ -422,7 +428,7 @@
true, "subject_prefix": "[Open_list] ", "subscription_policy": "open", "volume":
1, "welcome_message_uri": ""}'}
headers:
- content-length: ['1846']
+ content-length: ['1994']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -443,21 +449,6 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/open_list.example.com/member/fritz@example.org
- response:
- body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/fritz@example.org",
- "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"d5a89397121d98dca94571a608efb00fe9e4256b\"",
- "list_id": "open_list.example.com", "member_id": 12, "role": "member", "self_link":
- "http://localhost:9001/3.0/members/12", "user": "http://localhost:9001/3.0/users/12"}'}
- headers:
- content-length: ['357']
- content-type: [application/json; charset=UTF-8]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/open_list@example.com/requests
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
@@ -471,12 +462,14 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests
+ uri: http://localhost:9001/3.0/lists/open_list.example.com/member/fritz@example.org
response:
- body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
- "start": 0, "total_size": 0}'}
+ body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/fritz@example.org",
+ "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"892b038445b643d96e7f79c20581aa21fd625c7c\"",
+ "list_id": "open_list.example.com", "member_id": 5554, "role": "member", "self_link":
+ "http://localhost:9001/3.0/members/5554", "user": "http://localhost:9001/3.0/users/3664"}'}
headers:
- content-length: ['90']
+ content-length: ['363']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -514,13 +507,13 @@
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23",
- "http_etag": "\"d5e26d47ccecb1c3b926fa46f5fbd2a5c9d0bfef\"", "is_server_owner":
- false, "password": "$6$rounds=656000$sjmLUeeqUyCU2U85$4TCgmm9D7YZyAoV1LEdja80GMFQ7MfHWTUXgeibSiOFjFslnPyO2usbdSwoXEI/83T6eEYa1lW71qF3fSKR6m1",
- "self_link": "http://localhost:9001/3.0/users/12", "user_id": 12}], "http_etag":
- "\"71e2267d6c89636d511a88b79588f6acdbb50164\"", "start": 0, "total_size":
+ "http_etag": "\"c4d29025d9d170130a55e0a9166baa97d434c4dc\"", "is_server_owner":
+ false, "password": "$6$rounds=656000$4cr0h1a1FBZBjco.$/uVDFivPRHdGG4/2S3tt9YmRaN6vtn5cUwx2gIlSHRwMf3/irZ3HDTXR9bvHUfwpA/sm0DR9MAnqeCWKVgfk/.",
+ "self_link": "http://localhost:9001/3.0/users/3664", "user_id": 3664}], "http_etag":
+ "\"6ddd87968ec1411d2612ad4cdca4b3b7cf8b8fa5\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['431']
+ content-length: ['435']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -528,7 +521,7 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'DELETE'
- uri: http://localhost:9001/3.0/users/12
+ uri: http://localhost:9001/3.0/users/3664
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_already_pending.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_already_pending.yaml
index 8f8aa6f..3dc093d 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_already_pending.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_already_pending.yaml
@@ -74,9 +74,11 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Open_list", "filter_content": false,
- "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "open_list@example.com",
- "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"2aed2f0ce4a7f2c86eae4124728f0153fda52dc6\"",
+ "digests_enabled": true, "display_name": "Open_list", "dmarc_mitigate_action":
+ "no_mitigation", "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice":
+ "", "dmarc_wrapped_message_text": "", "filter_content": false, "first_strip_reply_to":
+ false, "footer_uri": "", "fqdn_listname": "open_list@example.com", "goodbye_message_uri":
+ "", "header_uri": "", "http_etag": "\"530adf8ac47d1bb5980f1c9c8fd18b8c7879a4c4\"",
"include_rfc2369_headers": true, "info": "", "join_address": "open_list-join@example.com",
"last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name":
"open_list", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
@@ -87,7 +89,7 @@
true, "subject_prefix": "[Open_list] ", "subscription_policy": "confirm",
"volume": 1, "welcome_message_uri": ""}'}
headers:
- content-length: ['1849']
+ content-length: ['1997']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -150,9 +152,11 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Moderate_subs", "filter_content":
- false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com",
- "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"60d87955c09ee35a06c8740e9a4474843e083e3a\"",
+ "digests_enabled": true, "display_name": "Moderate_subs", "dmarc_mitigate_action":
+ "no_mitigation", "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice":
+ "", "dmarc_wrapped_message_text": "", "filter_content": false, "first_strip_reply_to":
+ false, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com", "goodbye_message_uri":
+ "", "header_uri": "", "http_etag": "\"052e09045929377c9a6d9766784eb938b0f6bae4\"",
"include_rfc2369_headers": true, "info": "", "join_address": "moderate_subs-join@example.com",
"last_post_at": null, "leave_address": "moderate_subs-leave@example.com",
"list_name": "moderate_subs", "mail_host": "example.com", "moderator_password":
@@ -164,7 +168,7 @@
"[Moderate_subs] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1889']
+ content-length: ['2037']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -191,7 +195,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/users/13']
+ location: ['http://localhost:9001/3.0/users/3665']
status: {code: 201, message: Created}
- request:
body: !!python/unicode 'email=fritz%40example.org'
@@ -199,7 +203,7 @@
accept-encoding: ['gzip, deflate']
!!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
method: !!python/unicode 'POST'
- uri: http://localhost:9001/3.0/users/13/addresses
+ uri: http://localhost:9001/3.0/users/3665/addresses
response:
body: {string: !!python/unicode ''}
headers:
@@ -212,14 +216,14 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/users/13
+ uri: http://localhost:9001/3.0/users/3665
response:
body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
- "\"4fbef5d6939db4aec83ef8ea708125a97d26824b\"", "is_server_owner": false,
- "password": "$6$rounds=656000$ijrIEtNiDNhjnDZS$TX4jKRe6b8EJoc3ORDzJ53drnSyaY.cO7SrpMNFB2K/86dbY/B/TjbDL/VUfOCT1gpKxG.rCLncxfHxwmzPMF0",
- "self_link": "http://localhost:9001/3.0/users/13", "user_id": 13}'}
+ "\"736279a8ca17f0208382b65769b9040e5aad0453\"", "is_server_owner": false,
+ "password": "$6$rounds=656000$.bea0VgkDTOybEdM$6CmUvzzBRZfygjA8rrC60xck9zbQrG69Ykc36ZljTJ7S5P5GAPWTDEW2WTItbHA8USk8DFgUCGlNpo/WAdtOr/",
+ "self_link": "http://localhost:9001/3.0/users/3665", "user_id": 3665}'}
headers:
- content-length: ['326']
+ content-length: ['330']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -227,18 +231,18 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/users/13/addresses
+ uri: http://localhost:9001/3.0/users/3665/addresses
response:
body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag":
- "\"10e6832981d616ede4ff738c3dc7e69ae060b0c6\"", "original_email": "fritz@example.org",
+ "\"238f0154788164a2361e72a2d475c40e10521b3a\"", "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/13"}, {"email": "test@example.com",
- "http_etag": "\"183bd2070dec2c1087e072dede15f46d64ad4c23\"", "original_email":
+ "user": "http://localhost:9001/3.0/users/3665"}, {"email": "test@example.com",
+ "http_etag": "\"db9eb876af555482d1f61a08b89a03b6605ad52b\"", "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": "\"c815381d58c4e1fb008e9a6b167a5ca14d6e57f4\"",
+ "user": "http://localhost:9001/3.0/users/3665"}], "http_etag": "\"68f33ca39589d01d80f57f3f5220191562d8a434\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['676']
+ content-length: ['680']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -313,8 +317,8 @@
method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
- body: {string: !!python/unicode '{"http_etag": "\"fbcd5c8df6304a514d4bfa0b753b54857674d8dc\"",
- "token": "0000000000000000000000000000000000000002", "token_owner": "moderator"}'}
+ body: {string: !!python/unicode '{"http_etag": "\"7c1ce0af42cb47eeb82518868a9c590fd115eeaa\"",
+ "token": "0000000000000000000000000000000000000228", "token_owner": "moderator"}'}
headers:
content-length: ['142']
content-type: [application/json; charset=UTF-8]
@@ -340,9 +344,9 @@
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": "\"ba9a1757c3532eef717cff3eb409185e5d041a85\"", "list_id": "moderate_subs.example.com",
- "token": "0000000000000000000000000000000000000002", "token_owner": "moderator",
- "type": "subscription", "when": "2005-08-01T07:49:23"}], "http_etag": "\"807af820973da5fcdb2f941b4ecc5ea7b035f533\"",
+ "http_etag": "\"44ca594ad4da16312f7d13ddc3049d7c27440923\"", "list_id": "moderate_subs.example.com",
+ "token": "0000000000000000000000000000000000000228", "token_owner": "moderator",
+ "type": "subscription", "when": "2005-08-01T07:49:23"}], "http_etag": "\"8f4aa9458685ec0de2086d7c543869c7db6ddf4d\"",
"start": 0, "total_size": 1}'}
headers:
content-length: ['391']
@@ -424,9 +428,9 @@
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": "\"ba9a1757c3532eef717cff3eb409185e5d041a85\"", "list_id": "moderate_subs.example.com",
- "token": "0000000000000000000000000000000000000002", "token_owner": "moderator",
- "type": "subscription", "when": "2005-08-01T07:49:23"}], "http_etag": "\"807af820973da5fcdb2f941b4ecc5ea7b035f533\"",
+ "http_etag": "\"44ca594ad4da16312f7d13ddc3049d7c27440923\"", "list_id": "moderate_subs.example.com",
+ "token": "0000000000000000000000000000000000000228", "token_owner": "moderator",
+ "type": "subscription", "when": "2005-08-01T07:49:23"}], "http_etag": "\"8f4aa9458685ec0de2086d7c543869c7db6ddf4d\"",
"start": 0, "total_size": 1}'}
headers:
content-length: ['391']
@@ -437,47 +441,6 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/open_list@example.com/requests
- response:
- body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
- "start": 0, "total_size": 0}'}
- headers:
- content-length: ['90']
- content-type: [application/json; charset=UTF-8]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests
- response:
- body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "test@example.com",
- "http_etag": "\"ba9a1757c3532eef717cff3eb409185e5d041a85\"", "list_id": "moderate_subs.example.com",
- "token": "0000000000000000000000000000000000000002", "token_owner": "moderator",
- "type": "subscription", "when": "2005-08-01T07:49:23"}], "http_etag": "\"807af820973da5fcdb2f941b4ecc5ea7b035f533\"",
- "start": 0, "total_size": 1}'}
- headers:
- content-length: ['391']
- content-type: [application/json; charset=UTF-8]
- status: {code: 200, message: OK}
-- request:
- body: !!python/unicode 'action=discard'
- headers:
- accept-encoding: ['gzip, deflate']
- !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
- method: !!python/unicode 'POST'
- uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/requests/0000000000000000000000000000000000000002
- 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/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -508,13 +471,13 @@
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23",
- "http_etag": "\"4fbef5d6939db4aec83ef8ea708125a97d26824b\"", "is_server_owner":
- false, "password": "$6$rounds=656000$ijrIEtNiDNhjnDZS$TX4jKRe6b8EJoc3ORDzJ53drnSyaY.cO7SrpMNFB2K/86dbY/B/TjbDL/VUfOCT1gpKxG.rCLncxfHxwmzPMF0",
- "self_link": "http://localhost:9001/3.0/users/13", "user_id": 13}], "http_etag":
- "\"bc6560b708dd633501c140c25fb6fcdb9885cff0\"", "start": 0, "total_size":
+ "http_etag": "\"736279a8ca17f0208382b65769b9040e5aad0453\"", "is_server_owner":
+ false, "password": "$6$rounds=656000$.bea0VgkDTOybEdM$6CmUvzzBRZfygjA8rrC60xck9zbQrG69Ykc36ZljTJ7S5P5GAPWTDEW2WTItbHA8USk8DFgUCGlNpo/WAdtOr/",
+ "self_link": "http://localhost:9001/3.0/users/3665", "user_id": 3665}], "http_etag":
+ "\"eceaa6fdb0cabdeb58e9bd28cee53f4f8dfa76de\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['431']
+ content-length: ['435']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -522,7 +485,7 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'DELETE'
- uri: http://localhost:9001/3.0/users/13
+ uri: http://localhost:9001/3.0/users/3665
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_mod.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_mod.yaml
index 1e04b2c..d82d0ba 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_mod.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_mod.yaml
@@ -74,9 +74,11 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Open_list", "filter_content": false,
- "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "open_list@example.com",
- "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"2aed2f0ce4a7f2c86eae4124728f0153fda52dc6\"",
+ "digests_enabled": true, "display_name": "Open_list", "dmarc_mitigate_action":
+ "no_mitigation", "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice":
+ "", "dmarc_wrapped_message_text": "", "filter_content": false, "first_strip_reply_to":
+ false, "footer_uri": "", "fqdn_listname": "open_list@example.com", "goodbye_message_uri":
+ "", "header_uri": "", "http_etag": "\"530adf8ac47d1bb5980f1c9c8fd18b8c7879a4c4\"",
"include_rfc2369_headers": true, "info": "", "join_address": "open_list-join@example.com",
"last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name":
"open_list", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
@@ -87,7 +89,7 @@
true, "subject_prefix": "[Open_list] ", "subscription_policy": "confirm",
"volume": 1, "welcome_message_uri": ""}'}
headers:
- content-length: ['1849']
+ content-length: ['1997']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -150,9 +152,11 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Moderate_subs", "filter_content":
- false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com",
- "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"60d87955c09ee35a06c8740e9a4474843e083e3a\"",
+ "digests_enabled": true, "display_name": "Moderate_subs", "dmarc_mitigate_action":
+ "no_mitigation", "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice":
+ "", "dmarc_wrapped_message_text": "", "filter_content": false, "first_strip_reply_to":
+ false, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com", "goodbye_message_uri":
+ "", "header_uri": "", "http_etag": "\"052e09045929377c9a6d9766784eb938b0f6bae4\"",
"include_rfc2369_headers": true, "info": "", "join_address": "moderate_subs-join@example.com",
"last_post_at": null, "leave_address": "moderate_subs-leave@example.com",
"list_name": "moderate_subs", "mail_host": "example.com", "moderator_password":
@@ -164,7 +168,7 @@
"[Moderate_subs] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1889']
+ content-length: ['2037']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -191,7 +195,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/users/14']
+ location: ['http://localhost:9001/3.0/users/3666']
status: {code: 201, message: Created}
- request:
body: !!python/unicode 'email=fritz%40example.org'
@@ -199,7 +203,7 @@
accept-encoding: ['gzip, deflate']
!!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
method: !!python/unicode 'POST'
- uri: http://localhost:9001/3.0/users/14/addresses
+ uri: http://localhost:9001/3.0/users/3666/addresses
response:
body: {string: !!python/unicode ''}
headers:
@@ -212,14 +216,14 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/users/14
+ uri: http://localhost:9001/3.0/users/3666
response:
body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
- "\"28f2aefb990d8eb9869940dd998e448c7c75ee1e\"", "is_server_owner": false,
- "password": "$6$rounds=656000$5yQDj/4fUtPnnt/i$nGxHJfEbwxJwwHzpE8hSwvn4tAQ7k4Lxa4MX6p57Sj6/sq2QDEbklW662OOdKJLH7DAbxS6WCHj6fad/8qj3j1",
- "self_link": "http://localhost:9001/3.0/users/14", "user_id": 14}'}
+ "\"e4bd035f5efd88bdbc44a929d12d15bdd6c7a2e0\"", "is_server_owner": false,
+ "password": "$6$rounds=656000$FjzRHBxaWFncYOpZ$u9sFjKHQlnM3byDCSbA///e5yf3UVQHju7n24insYqUDeJVG6nUBDuJlla4W4m7Yandmf8Gogpl54g.aVWdtO/",
+ "self_link": "http://localhost:9001/3.0/users/3666", "user_id": 3666}'}
headers:
- content-length: ['326']
+ content-length: ['330']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -227,18 +231,18 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/users/14/addresses
+ uri: http://localhost:9001/3.0/users/3666/addresses
response:
body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag":
- "\"3d5e331750cd36f5fdc1b83641d1aabc7bb58b84\"", "original_email": "fritz@example.org",
+ "\"7bbcef1088505cdb76f66bf85c3aff70085af951\"", "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/14"}, {"email": "test@example.com",
- "http_etag": "\"6c39fd341eea07279f00e7cd3cd0ecd501bc0cec\"", "original_email":
+ "user": "http://localhost:9001/3.0/users/3666"}, {"email": "test@example.com",
+ "http_etag": "\"669678b6531f04514bed1af927a397ccfc9ae400\"", "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": "\"ae4b3ed8795c8e2bf2f74444119e0166dd393ebb\"",
+ "user": "http://localhost:9001/3.0/users/3666"}], "http_etag": "\"20fb0fd98c63a78433f0962c4b6d04870cf22d25\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['676']
+ content-length: ['680']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -313,8 +317,8 @@
method: !!python/unicode 'POST'
uri: http://localhost:9001/3.0/members
response:
- body: {string: !!python/unicode '{"http_etag": "\"c63c029e701c8257e2a249d1c41d50660434b11f\"",
- "token": "0000000000000000000000000000000000000003", "token_owner": "moderator"}'}
+ body: {string: !!python/unicode '{"http_etag": "\"f92041b45c62e73a0fe701c5c1754b7b4146702b\"",
+ "token": "0000000000000000000000000000000000000229", "token_owner": "moderator"}'}
headers:
content-length: ['142']
content-type: [application/json; charset=UTF-8]
@@ -340,9 +344,9 @@
uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests
response:
body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "test@example.com",
- "http_etag": "\"05789eac34b1a55d8e9c373407d5bb9de8f07d7c\"", "list_id": "moderate_subs.example.com",
- "token": "0000000000000000000000000000000000000003", "token_owner": "moderator",
- "type": "subscription", "when": "2005-08-01T07:49:23"}], "http_etag": "\"97ec7ec659a863253fb5b45bbb3e7a2ec9549f96\"",
+ "http_etag": "\"fb2bef218d51c109882fe8d1593eb1b9e97effa6\"", "list_id": "moderate_subs.example.com",
+ "token": "0000000000000000000000000000000000000229", "token_owner": "moderator",
+ "type": "subscription", "when": "2005-08-01T07:49:23"}], "http_etag": "\"c510529893b9d6732bd967750f46a113975ecd59\"",
"start": 0, "total_size": 1}'}
headers:
content-length: ['391']
@@ -408,9 +412,11 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Moderate_subs", "filter_content":
- false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com",
- "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"1d28c896e12bf6e14713f346c758daecbf86c534\"",
+ "digests_enabled": true, "display_name": "Moderate_subs", "dmarc_mitigate_action":
+ "no_mitigation", "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice":
+ "", "dmarc_wrapped_message_text": "", "filter_content": false, "first_strip_reply_to":
+ false, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com", "goodbye_message_uri":
+ "", "header_uri": "", "http_etag": "\"b095dd9a55e4ce9aa67e6558bba07fadbcf363c6\"",
"include_rfc2369_headers": true, "info": "", "join_address": "moderate_subs-join@example.com",
"last_post_at": null, "leave_address": "moderate_subs-leave@example.com",
"list_name": "moderate_subs", "mail_host": "example.com", "moderator_password":
@@ -422,7 +428,7 @@
"[Moderate_subs] ", "subscription_policy": "moderate", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1890']
+ content-length: ['2038']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -443,6 +449,22 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests
+ response:
+ body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "test@example.com",
+ "http_etag": "\"fb2bef218d51c109882fe8d1593eb1b9e97effa6\"", "list_id": "moderate_subs.example.com",
+ "token": "0000000000000000000000000000000000000229", "token_owner": "moderator",
+ "type": "subscription", "when": "2005-08-01T07:49:23"}], "http_etag": "\"c510529893b9d6732bd967750f46a113975ecd59\"",
+ "start": 0, "total_size": 1}'}
+ headers:
+ content-length: ['391']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/member/fritz@example.org
response:
body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"}
@@ -456,60 +478,6 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/member/test@example.com
- response:
- body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"}
- headers:
- content-length: ['32']
- content-type: [application/json; charset=UTF-8]
- vary: [Accept]
- status: {code: 404, message: Not Found}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/open_list@example.com/requests
- response:
- body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
- "start": 0, "total_size": 0}'}
- headers:
- content-length: ['90']
- content-type: [application/json; charset=UTF-8]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests
- response:
- body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "test@example.com",
- "http_etag": "\"05789eac34b1a55d8e9c373407d5bb9de8f07d7c\"", "list_id": "moderate_subs.example.com",
- "token": "0000000000000000000000000000000000000003", "token_owner": "moderator",
- "type": "subscription", "when": "2005-08-01T07:49:23"}], "http_etag": "\"97ec7ec659a863253fb5b45bbb3e7a2ec9549f96\"",
- "start": 0, "total_size": 1}'}
- headers:
- content-length: ['391']
- content-type: [application/json; charset=UTF-8]
- status: {code: 200, message: OK}
-- request:
- body: !!python/unicode 'action=discard'
- headers:
- accept-encoding: ['gzip, deflate']
- !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
- method: !!python/unicode 'POST'
- uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/requests/0000000000000000000000000000000000000003
- response:
- body: {string: !!python/unicode ''}
- headers:
- content-length: ['0']
- status: {code: 204, message: No Content}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -540,13 +508,13 @@
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23",
- "http_etag": "\"28f2aefb990d8eb9869940dd998e448c7c75ee1e\"", "is_server_owner":
- false, "password": "$6$rounds=656000$5yQDj/4fUtPnnt/i$nGxHJfEbwxJwwHzpE8hSwvn4tAQ7k4Lxa4MX6p57Sj6/sq2QDEbklW662OOdKJLH7DAbxS6WCHj6fad/8qj3j1",
- "self_link": "http://localhost:9001/3.0/users/14", "user_id": 14}], "http_etag":
- "\"2f8dd45a3b24dbc2bf9f053de67ab0421adec81f\"", "start": 0, "total_size":
+ "http_etag": "\"e4bd035f5efd88bdbc44a929d12d15bdd6c7a2e0\"", "is_server_owner":
+ false, "password": "$6$rounds=656000$FjzRHBxaWFncYOpZ$u9sFjKHQlnM3byDCSbA///e5yf3UVQHju7n24insYqUDeJVG6nUBDuJlla4W4m7Yandmf8Gogpl54g.aVWdtO/",
+ "self_link": "http://localhost:9001/3.0/users/3666", "user_id": 3666}], "http_etag":
+ "\"6ac5e9acbb2ad8c1f4de2d29f6d634a5171ad74b\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['431']
+ content-length: ['435']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -554,7 +522,7 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'DELETE'
- uri: http://localhost:9001/3.0/users/14
+ uri: http://localhost:9001/3.0/users/3666
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_open.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_open.yaml
index 618374c..55dd060 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_open.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_open.yaml
@@ -74,9 +74,11 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Open_list", "filter_content": false,
- "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "open_list@example.com",
- "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"2aed2f0ce4a7f2c86eae4124728f0153fda52dc6\"",
+ "digests_enabled": true, "display_name": "Open_list", "dmarc_mitigate_action":
+ "no_mitigation", "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice":
+ "", "dmarc_wrapped_message_text": "", "filter_content": false, "first_strip_reply_to":
+ false, "footer_uri": "", "fqdn_listname": "open_list@example.com", "goodbye_message_uri":
+ "", "header_uri": "", "http_etag": "\"530adf8ac47d1bb5980f1c9c8fd18b8c7879a4c4\"",
"include_rfc2369_headers": true, "info": "", "join_address": "open_list-join@example.com",
"last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name":
"open_list", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
@@ -87,7 +89,7 @@
true, "subject_prefix": "[Open_list] ", "subscription_policy": "confirm",
"volume": 1, "welcome_message_uri": ""}'}
headers:
- content-length: ['1849']
+ content-length: ['1997']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -150,9 +152,11 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Moderate_subs", "filter_content":
- false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com",
- "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"60d87955c09ee35a06c8740e9a4474843e083e3a\"",
+ "digests_enabled": true, "display_name": "Moderate_subs", "dmarc_mitigate_action":
+ "no_mitigation", "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice":
+ "", "dmarc_wrapped_message_text": "", "filter_content": false, "first_strip_reply_to":
+ false, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com", "goodbye_message_uri":
+ "", "header_uri": "", "http_etag": "\"052e09045929377c9a6d9766784eb938b0f6bae4\"",
"include_rfc2369_headers": true, "info": "", "join_address": "moderate_subs-join@example.com",
"last_post_at": null, "leave_address": "moderate_subs-leave@example.com",
"list_name": "moderate_subs", "mail_host": "example.com", "moderator_password":
@@ -164,7 +168,7 @@
"[Moderate_subs] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1889']
+ content-length: ['2037']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -191,7 +195,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/users/15']
+ location: ['http://localhost:9001/3.0/users/3667']
status: {code: 201, message: Created}
- request:
body: !!python/unicode 'email=fritz%40example.org'
@@ -199,7 +203,7 @@
accept-encoding: ['gzip, deflate']
!!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
method: !!python/unicode 'POST'
- uri: http://localhost:9001/3.0/users/15/addresses
+ uri: http://localhost:9001/3.0/users/3667/addresses
response:
body: {string: !!python/unicode ''}
headers:
@@ -212,14 +216,14 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/users/15
+ uri: http://localhost:9001/3.0/users/3667
response:
body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
- "\"2f84b084fc3c4325814efcfed45decefa9ea0a6d\"", "is_server_owner": false,
- "password": "$6$rounds=656000$5xho2PHLTYB..rdZ$oG5.apwidsYDhvTy5QVBakCfsEtB9jyPh7dOO6gS.NcI2SfOZ2UZM4EBkhFrTCY7tjXukAIZUhk9F/m6vPhKZ/",
- "self_link": "http://localhost:9001/3.0/users/15", "user_id": 15}'}
+ "\"3594894ccecc35107f40ba225ee75509a947ae7e\"", "is_server_owner": false,
+ "password": "$6$rounds=656000$MV2dWAau8.A.nDob$IAfSD8n/bAENwJ7bzkwC7ABgyA0Vf0GMac6XQP3Jut0fs1Z7FZ1IlLvloVyRhTcw1U5GP3Y4HBGMxP44rMHL51",
+ "self_link": "http://localhost:9001/3.0/users/3667", "user_id": 3667}'}
headers:
- content-length: ['326']
+ content-length: ['330']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -227,18 +231,18 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/users/15/addresses
+ uri: http://localhost:9001/3.0/users/3667/addresses
response:
body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag":
- "\"f5e7dce17a939b6cd74400155bc8208939e35913\"", "original_email": "fritz@example.org",
+ "\"47007635bae4a9106966c2348e86b02d3f5bfe09\"", "original_email": "fritz@example.org",
"registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org",
- "user": "http://localhost:9001/3.0/users/15"}, {"email": "test@example.com",
- "http_etag": "\"7e89118330bb8d4cfca6242e4023e3685cfe802f\"", "original_email":
+ "user": "http://localhost:9001/3.0/users/3667"}, {"email": "test@example.com",
+ "http_etag": "\"0ea3b51ede6b6d263ea8d0385b457c06ec407caf\"", "original_email":
"test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com",
- "user": "http://localhost:9001/3.0/users/15"}], "http_etag": "\"022eb06e8ccdd9d0317e80895bcf7fe7341666d6\"",
+ "user": "http://localhost:9001/3.0/users/3667"}], "http_etag": "\"1be083c7f716928da8eff4c4ff4f259da2daa8d0\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['676']
+ content-length: ['680']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -317,7 +321,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/13']
+ location: ['http://localhost:9001/3.0/members/5555']
status: {code: 201, message: Created}
- request:
body: null
@@ -327,13 +331,13 @@
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": "\"79cf48313d7f7d8368360b6809a5fff2d828fdb2\"",
- "list_id": "open_list.example.com", "member_id": 13, "role": "member", "self_link":
- "http://localhost:9001/3.0/members/13", "user": "http://localhost:9001/3.0/users/15"}],
- "http_etag": "\"82b9e225f83d1bab689ed3d998623ada1221e87e\"", "start": 0, "total_size":
+ "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"b838a1c1467eb5e959448f8b8815218aeac85a82\"",
+ "list_id": "open_list.example.com", "member_id": 5555, "role": "member", "self_link":
+ "http://localhost:9001/3.0/members/5555", "user": "http://localhost:9001/3.0/users/3667"}],
+ "http_etag": "\"46c26e76483f710082efbcd6e52175b6a382dc9c\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['460']
+ content-length: ['466']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -409,9 +413,11 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Open_list", "filter_content": false,
- "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "open_list@example.com",
- "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"086805127cff33814207a09645d1d14a418fad63\"",
+ "digests_enabled": true, "display_name": "Open_list", "dmarc_mitigate_action":
+ "no_mitigation", "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice":
+ "", "dmarc_wrapped_message_text": "", "filter_content": false, "first_strip_reply_to":
+ false, "footer_uri": "", "fqdn_listname": "open_list@example.com", "goodbye_message_uri":
+ "", "header_uri": "", "http_etag": "\"dfe94eee17035f150f2f9bd8d73782347811ff11\"",
"include_rfc2369_headers": true, "info": "", "join_address": "open_list-join@example.com",
"last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name":
"open_list", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
@@ -422,7 +428,7 @@
true, "subject_prefix": "[Open_list] ", "subscription_policy": "open", "volume":
1, "welcome_message_uri": ""}'}
headers:
- content-length: ['1846']
+ content-length: ['1994']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -443,6 +449,19 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/open_list@example.com/requests
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
+ "start": 0, "total_size": 0}'}
+ headers:
+ content-length: ['90']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/open_list.example.com/member/fritz@example.org
response:
body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"}
@@ -459,37 +478,11 @@
uri: http://localhost:9001/3.0/lists/open_list.example.com/member/test@example.com
response:
body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/test@example.com",
- "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"79cf48313d7f7d8368360b6809a5fff2d828fdb2\"",
- "list_id": "open_list.example.com", "member_id": 13, "role": "member", "self_link":
- "http://localhost:9001/3.0/members/13", "user": "http://localhost:9001/3.0/users/15"}'}
+ "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"b838a1c1467eb5e959448f8b8815218aeac85a82\"",
+ "list_id": "open_list.example.com", "member_id": 5555, "role": "member", "self_link":
+ "http://localhost:9001/3.0/members/5555", "user": "http://localhost:9001/3.0/users/3667"}'}
headers:
- content-length: ['355']
- content-type: [application/json; charset=UTF-8]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/open_list@example.com/requests
- response:
- body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
- "start": 0, "total_size": 0}'}
- headers:
- content-length: ['90']
- content-type: [application/json; charset=UTF-8]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests
- response:
- body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
- "start": 0, "total_size": 0}'}
- headers:
- content-length: ['90']
+ content-length: ['361']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -527,13 +520,13 @@
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23",
- "http_etag": "\"2f84b084fc3c4325814efcfed45decefa9ea0a6d\"", "is_server_owner":
- false, "password": "$6$rounds=656000$5xho2PHLTYB..rdZ$oG5.apwidsYDhvTy5QVBakCfsEtB9jyPh7dOO6gS.NcI2SfOZ2UZM4EBkhFrTCY7tjXukAIZUhk9F/m6vPhKZ/",
- "self_link": "http://localhost:9001/3.0/users/15", "user_id": 15}], "http_etag":
- "\"0d9fb230d34c4ad093e7dab028997bff5c9ea921\"", "start": 0, "total_size":
+ "http_etag": "\"3594894ccecc35107f40ba225ee75509a947ae7e\"", "is_server_owner":
+ false, "password": "$6$rounds=656000$MV2dWAau8.A.nDob$IAfSD8n/bAENwJ7bzkwC7ABgyA0Vf0GMac6XQP3Jut0fs1Z7FZ1IlLvloVyRhTcw1U5GP3Y4HBGMxP44rMHL51",
+ "self_link": "http://localhost:9001/3.0/users/3667", "user_id": 3667}], "http_etag":
+ "\"3d21b185be4a6ea9b7b232eae246459ef7df4b7f\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['431']
+ content-length: ['435']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -541,7 +534,7 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'DELETE'
- uri: http://localhost:9001/3.0/users/15
+ uri: http://localhost:9001/3.0/users/3667
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_with_name.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_with_name.yaml
index 651ad96..bccbc66 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_with_name.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_with_name.yaml
@@ -74,9 +74,11 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Open_list", "filter_content": false,
- "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "open_list@example.com",
- "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"2aed2f0ce4a7f2c86eae4124728f0153fda52dc6\"",
+ "digests_enabled": true, "display_name": "Open_list", "dmarc_mitigate_action":
+ "no_mitigation", "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice":
+ "", "dmarc_wrapped_message_text": "", "filter_content": false, "first_strip_reply_to":
+ false, "footer_uri": "", "fqdn_listname": "open_list@example.com", "goodbye_message_uri":
+ "", "header_uri": "", "http_etag": "\"530adf8ac47d1bb5980f1c9c8fd18b8c7879a4c4\"",
"include_rfc2369_headers": true, "info": "", "join_address": "open_list-join@example.com",
"last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name":
"open_list", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
@@ -87,7 +89,7 @@
true, "subject_prefix": "[Open_list] ", "subscription_policy": "confirm",
"volume": 1, "welcome_message_uri": ""}'}
headers:
- content-length: ['1849']
+ content-length: ['1997']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -150,9 +152,11 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Moderate_subs", "filter_content":
- false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com",
- "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"60d87955c09ee35a06c8740e9a4474843e083e3a\"",
+ "digests_enabled": true, "display_name": "Moderate_subs", "dmarc_mitigate_action":
+ "no_mitigation", "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice":
+ "", "dmarc_wrapped_message_text": "", "filter_content": false, "first_strip_reply_to":
+ false, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com", "goodbye_message_uri":
+ "", "header_uri": "", "http_etag": "\"052e09045929377c9a6d9766784eb938b0f6bae4\"",
"include_rfc2369_headers": true, "info": "", "join_address": "moderate_subs-join@example.com",
"last_post_at": null, "leave_address": "moderate_subs-leave@example.com",
"list_name": "moderate_subs", "mail_host": "example.com", "moderator_password":
@@ -164,7 +168,7 @@
"[Moderate_subs] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1889']
+ content-length: ['2037']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -191,7 +195,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/users/16']
+ location: ['http://localhost:9001/3.0/users/3668']
status: {code: 201, message: Created}
- request:
body: !!python/unicode 'email=fritz%40example.org'
@@ -199,7 +203,7 @@
accept-encoding: ['gzip, deflate']
!!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
method: !!python/unicode 'POST'
- uri: http://localhost:9001/3.0/users/16/addresses
+ uri: http://localhost:9001/3.0/users/3668/addresses
response:
body: {string: !!python/unicode ''}
headers:
@@ -212,14 +216,14 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/users/16
+ uri: http://localhost:9001/3.0/users/3668
response:
body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
- "\"b46540f2c96d3ee56920d4fb84e6af961424c019\"", "is_server_owner": false,
- "password": "$6$rounds=656000$eHZDIHWZZ5hLDEYH$LCESjR4PDPYLNIMpToZy3XzlOgiCrnh5az5I2dPa36.D4KGyF1ZjH1sciKRjhBHAYj54yd6BOFOxbvIFlEhtw0",
- "self_link": "http://localhost:9001/3.0/users/16", "user_id": 16}'}
+ "\"6e81f446da35bc97770443cbe5c0867341a6258c\"", "is_server_owner": false,
+ "password": "$6$rounds=656000$7odVgQx0b3RzpkdQ$gJn1oNyvCf5y9WexPypusIW2Y65/o4kOB2c/g8TCqgZgnhfsLmbb57yNjmYcK0yL.SGSdY5yzX7xDlhZmC846/",
+ "self_link": "http://localhost:9001/3.0/users/3668", "user_id": 3668}'}
headers:
- content-length: ['326']
+ content-length: ['330']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -227,18 +231,18 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/users/16/addresses
+ uri: http://localhost:9001/3.0/users/3668/addresses
response:
body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag":
- "\"47baaf790aaea9f7745d134d985a4ef91ce31364\"", "original_email": "fritz@example.org",
+ "\"05c805c0d4f48a7ede2695b279510473c4b150b7\"", "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/16"}, {"email": "test@example.com",
- "http_etag": "\"4f8c6ce236ae784932ac2c3760ac04a842169db0\"", "original_email":
+ "user": "http://localhost:9001/3.0/users/3668"}, {"email": "test@example.com",
+ "http_etag": "\"c1a651903400e7975c960b9be02ee0a4a0b9ee82\"", "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": "\"11ce55ae2224bb093718f1c38d01171787a88fc3\"",
+ "user": "http://localhost:9001/3.0/users/3668"}], "http_etag": "\"796ef8895ee17a1567269d80cdcbd51ebdc2a85b\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['676']
+ content-length: ['680']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -275,7 +279,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/14']
+ location: ['http://localhost:9001/3.0/members/5556']
status: {code: 201, message: Created}
- request:
body: null
@@ -301,13 +305,13 @@
uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/owner
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com",
- "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"6f49cc1c958c9cc0581efca097eb457bd6bf3063\"",
- "list_id": "open_list.example.com", "member_id": 14, "moderation_action":
- "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/14",
- "user": "http://localhost:9001/3.0/users/17"}], "http_etag": "\"98136a8f5b4084a55ce75d35df70e50f2646233c\"",
+ "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"a2f4dd30f30927e869730e55f238e668a4bb86a0\"",
+ "list_id": "open_list.example.com", "member_id": 5556, "moderation_action":
+ "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/5556",
+ "user": "http://localhost:9001/3.0/users/3669"}], "http_etag": "\"c65ba887cc1159924a5c45cb56dddccc8548f766\"",
"start": 0, "total_size": 1}'}
headers:
- content-length: ['492']
+ content-length: ['498']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -351,7 +355,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/15']
+ location: ['http://localhost:9001/3.0/members/5557']
status: {code: 201, message: Created}
- request:
body: !!python/unicode 'display_name=Second+Person&list_id=open_list.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test-2%40example.org'
@@ -365,7 +369,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/16']
+ location: ['http://localhost:9001/3.0/members/5558']
status: {code: 201, message: Created}
- request:
body: !!python/unicode 'display_name=Third+Person&list_id=open_list.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test-3%40example.org'
@@ -379,7 +383,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/17']
+ location: ['http://localhost:9001/3.0/members/5559']
status: {code: 201, message: Created}
- request:
body: !!python/unicode 'list_id=open_list.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test-4%40example.org'
@@ -393,7 +397,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/18']
+ location: ['http://localhost:9001/3.0/members/5560']
status: {code: 201, message: Created}
- request:
body: !!python/unicode 'list_id=open_list.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test-5%40example.org'
@@ -407,7 +411,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/members/19']
+ location: ['http://localhost:9001/3.0/members/5561']
status: {code: 201, message: Created}
- request:
body: null
@@ -417,29 +421,29 @@
uri: http://localhost:9001/3.0/lists/open_list@example.com/roster/member
response:
body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/test-1@example.org",
- "delivery_mode": "regular", "email": "test-1@example.org", "http_etag": "\"7570a86a1a9b916f69853d8c43346d194c708767\"",
- "list_id": "open_list.example.com", "member_id": 15, "role": "member", "self_link":
- "http://localhost:9001/3.0/members/15", "user": "http://localhost:9001/3.0/users/18"},
+ "delivery_mode": "regular", "email": "test-1@example.org", "http_etag": "\"7905ce76287229d468f085aea8a363414d68ecd4\"",
+ "list_id": "open_list.example.com", "member_id": 5557, "role": "member", "self_link":
+ "http://localhost:9001/3.0/members/5557", "user": "http://localhost:9001/3.0/users/3670"},
{"address": "http://localhost:9001/3.0/addresses/test-2@example.org", "delivery_mode":
- "regular", "email": "test-2@example.org", "http_etag": "\"59efe9fd52849de9bd74bfa6eadad97a54884a60\"",
- "list_id": "open_list.example.com", "member_id": 16, "role": "member", "self_link":
- "http://localhost:9001/3.0/members/16", "user": "http://localhost:9001/3.0/users/19"},
+ "regular", "email": "test-2@example.org", "http_etag": "\"96a6976f7c81178aaf285f92e7df67dbda3cca83\"",
+ "list_id": "open_list.example.com", "member_id": 5558, "role": "member", "self_link":
+ "http://localhost:9001/3.0/members/5558", "user": "http://localhost:9001/3.0/users/3671"},
{"address": "http://localhost:9001/3.0/addresses/test-3@example.org", "delivery_mode":
- "regular", "email": "test-3@example.org", "http_etag": "\"266680ae3c95d6ea52873150471100eff532e1e9\"",
- "list_id": "open_list.example.com", "member_id": 17, "role": "member", "self_link":
- "http://localhost:9001/3.0/members/17", "user": "http://localhost:9001/3.0/users/20"},
+ "regular", "email": "test-3@example.org", "http_etag": "\"0f0dc24c88b1cafdc5c9a791df8b56ee43a7f9dd\"",
+ "list_id": "open_list.example.com", "member_id": 5559, "role": "member", "self_link":
+ "http://localhost:9001/3.0/members/5559", "user": "http://localhost:9001/3.0/users/3672"},
{"address": "http://localhost:9001/3.0/addresses/test-4@example.org", "delivery_mode":
- "regular", "email": "test-4@example.org", "http_etag": "\"896de42005b6ee7f831bf49e841e043564f8d79a\"",
- "list_id": "open_list.example.com", "member_id": 18, "role": "member", "self_link":
- "http://localhost:9001/3.0/members/18", "user": "http://localhost:9001/3.0/users/21"},
+ "regular", "email": "test-4@example.org", "http_etag": "\"43821f8da890815a92c6cd8c4cbabf431df3d9d7\"",
+ "list_id": "open_list.example.com", "member_id": 5560, "role": "member", "self_link":
+ "http://localhost:9001/3.0/members/5560", "user": "http://localhost:9001/3.0/users/3673"},
{"address": "http://localhost:9001/3.0/addresses/test-5@example.org", "delivery_mode":
- "regular", "email": "test-5@example.org", "http_etag": "\"a9b438451a98a4d9f75afe447c149915578b4b0c\"",
- "list_id": "open_list.example.com", "member_id": 19, "role": "member", "self_link":
- "http://localhost:9001/3.0/members/19", "user": "http://localhost:9001/3.0/users/22"}],
- "http_etag": "\"4bb176a0643ee9276504a4ffa3ed3e18a5343141\"", "start": 0, "total_size":
+ "regular", "email": "test-5@example.org", "http_etag": "\"93ae52903045038e02f9061e3d6ca09822632689\"",
+ "list_id": "open_list.example.com", "member_id": 5561, "role": "member", "self_link":
+ "http://localhost:9001/3.0/members/5561", "user": "http://localhost:9001/3.0/users/3674"}],
+ "http_etag": "\"e8528618cba5833e57cd19769ced75be29ad088d\"", "start": 0, "total_size":
5}'}
headers:
- content-length: ['1908']
+ content-length: ['1938']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -450,11 +454,11 @@
uri: http://localhost:9001/3.0/lists/open_list.example.com/member/test-1@example.org
response:
body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/test-1@example.org",
- "delivery_mode": "regular", "email": "test-1@example.org", "http_etag": "\"7570a86a1a9b916f69853d8c43346d194c708767\"",
- "list_id": "open_list.example.com", "member_id": 15, "role": "member", "self_link":
- "http://localhost:9001/3.0/members/15", "user": "http://localhost:9001/3.0/users/18"}'}
+ "delivery_mode": "regular", "email": "test-1@example.org", "http_etag": "\"7905ce76287229d468f085aea8a363414d68ecd4\"",
+ "list_id": "open_list.example.com", "member_id": 5557, "role": "member", "self_link":
+ "http://localhost:9001/3.0/members/5557", "user": "http://localhost:9001/3.0/users/3670"}'}
headers:
- content-length: ['359']
+ content-length: ['365']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -465,11 +469,11 @@
uri: http://localhost:9001/3.0/lists/open_list.example.com/member/test-2@example.org
response:
body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/test-2@example.org",
- "delivery_mode": "regular", "email": "test-2@example.org", "http_etag": "\"59efe9fd52849de9bd74bfa6eadad97a54884a60\"",
- "list_id": "open_list.example.com", "member_id": 16, "role": "member", "self_link":
- "http://localhost:9001/3.0/members/16", "user": "http://localhost:9001/3.0/users/19"}'}
+ "delivery_mode": "regular", "email": "test-2@example.org", "http_etag": "\"96a6976f7c81178aaf285f92e7df67dbda3cca83\"",
+ "list_id": "open_list.example.com", "member_id": 5558, "role": "member", "self_link":
+ "http://localhost:9001/3.0/members/5558", "user": "http://localhost:9001/3.0/users/3671"}'}
headers:
- content-length: ['359']
+ content-length: ['365']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -480,11 +484,11 @@
uri: http://localhost:9001/3.0/lists/open_list.example.com/member/test-3@example.org
response:
body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/test-3@example.org",
- "delivery_mode": "regular", "email": "test-3@example.org", "http_etag": "\"266680ae3c95d6ea52873150471100eff532e1e9\"",
- "list_id": "open_list.example.com", "member_id": 17, "role": "member", "self_link":
- "http://localhost:9001/3.0/members/17", "user": "http://localhost:9001/3.0/users/20"}'}
+ "delivery_mode": "regular", "email": "test-3@example.org", "http_etag": "\"0f0dc24c88b1cafdc5c9a791df8b56ee43a7f9dd\"",
+ "list_id": "open_list.example.com", "member_id": 5559, "role": "member", "self_link":
+ "http://localhost:9001/3.0/members/5559", "user": "http://localhost:9001/3.0/users/3672"}'}
headers:
- content-length: ['359']
+ content-length: ['365']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -495,11 +499,11 @@
uri: http://localhost:9001/3.0/lists/open_list.example.com/member/test-4@example.org
response:
body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/test-4@example.org",
- "delivery_mode": "regular", "email": "test-4@example.org", "http_etag": "\"896de42005b6ee7f831bf49e841e043564f8d79a\"",
- "list_id": "open_list.example.com", "member_id": 18, "role": "member", "self_link":
- "http://localhost:9001/3.0/members/18", "user": "http://localhost:9001/3.0/users/21"}'}
+ "delivery_mode": "regular", "email": "test-4@example.org", "http_etag": "\"43821f8da890815a92c6cd8c4cbabf431df3d9d7\"",
+ "list_id": "open_list.example.com", "member_id": 5560, "role": "member", "self_link":
+ "http://localhost:9001/3.0/members/5560", "user": "http://localhost:9001/3.0/users/3673"}'}
headers:
- content-length: ['359']
+ content-length: ['365']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -510,11 +514,11 @@
uri: http://localhost:9001/3.0/lists/open_list.example.com/member/test-5@example.org
response:
body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/test-5@example.org",
- "delivery_mode": "regular", "email": "test-5@example.org", "http_etag": "\"a9b438451a98a4d9f75afe447c149915578b4b0c\"",
- "list_id": "open_list.example.com", "member_id": 19, "role": "member", "self_link":
- "http://localhost:9001/3.0/members/19", "user": "http://localhost:9001/3.0/users/22"}'}
+ "delivery_mode": "regular", "email": "test-5@example.org", "http_etag": "\"93ae52903045038e02f9061e3d6ca09822632689\"",
+ "list_id": "open_list.example.com", "member_id": 5561, "role": "member", "self_link":
+ "http://localhost:9001/3.0/members/5561", "user": "http://localhost:9001/3.0/users/3674"}'}
headers:
- content-length: ['359']
+ content-length: ['365']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -525,12 +529,12 @@
uri: http://localhost:9001/3.0/addresses/test-1@example.org
response:
body: {string: !!python/unicode '{"display_name": "First Person", "email": "test-1@example.org",
- "http_etag": "\"91cc84946ee7b71e0bface241cd6284cc821a11d\"", "original_email":
+ "http_etag": "\"981a5e5749fc9308209fb052433aa01abc0048fd\"", "original_email":
"test-1@example.org", "registered_on": "2005-08-01T07:49:23", "self_link":
- "http://localhost:9001/3.0/addresses/test-1@example.org", "user": "http://localhost:9001/3.0/users/18",
+ "http://localhost:9001/3.0/addresses/test-1@example.org", "user": "http://localhost:9001/3.0/users/3670",
"verified_on": "2005-08-01T07:49:23"}'}
headers:
- content-length: ['359']
+ content-length: ['361']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -541,12 +545,12 @@
uri: http://localhost:9001/3.0/addresses/test-2@example.org
response:
body: {string: !!python/unicode '{"display_name": "Second Person", "email": "test-2@example.org",
- "http_etag": "\"d41b695d7d16a42a2942abdfdf93c231daf4de0f\"", "original_email":
+ "http_etag": "\"a65b19a0fca6af5bb54e100ed66ea7e99b2ba11d\"", "original_email":
"test-2@example.org", "registered_on": "2005-08-01T07:49:23", "self_link":
- "http://localhost:9001/3.0/addresses/test-2@example.org", "user": "http://localhost:9001/3.0/users/19",
+ "http://localhost:9001/3.0/addresses/test-2@example.org", "user": "http://localhost:9001/3.0/users/3671",
"verified_on": "2005-08-01T07:49:23"}'}
headers:
- content-length: ['360']
+ content-length: ['362']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -557,12 +561,12 @@
uri: http://localhost:9001/3.0/addresses/test-3@example.org
response:
body: {string: !!python/unicode '{"display_name": "Third Person", "email": "test-3@example.org",
- "http_etag": "\"3a237434436f97e9e3497bd02a3c098deebf1378\"", "original_email":
+ "http_etag": "\"b0baea14b6393db4ce4252032bb46a3220a54ac2\"", "original_email":
"test-3@example.org", "registered_on": "2005-08-01T07:49:23", "self_link":
- "http://localhost:9001/3.0/addresses/test-3@example.org", "user": "http://localhost:9001/3.0/users/20",
+ "http://localhost:9001/3.0/addresses/test-3@example.org", "user": "http://localhost:9001/3.0/users/3672",
"verified_on": "2005-08-01T07:49:23"}'}
headers:
- content-length: ['359']
+ content-length: ['361']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -573,11 +577,11 @@
uri: http://localhost:9001/3.0/addresses/test-4@example.org
response:
body: {string: !!python/unicode '{"email": "test-4@example.org", "http_etag":
- "\"9cde7e1445867f2c1017df81e9e328027416cdae\"", "original_email": "test-4@example.org",
+ "\"c82d957998fe563d97e84a60e3f317a74bc0d0e6\"", "original_email": "test-4@example.org",
"registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test-4@example.org",
- "user": "http://localhost:9001/3.0/users/21", "verified_on": "2005-08-01T07:49:23"}'}
+ "user": "http://localhost:9001/3.0/users/3673", "verified_on": "2005-08-01T07:49:23"}'}
headers:
- content-length: ['327']
+ content-length: ['329']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -588,37 +592,11 @@
uri: http://localhost:9001/3.0/addresses/test-5@example.org
response:
body: {string: !!python/unicode '{"email": "test-5@example.org", "http_etag":
- "\"486e0c53bb3089ff6aa97607302a1369bfc1ebcc\"", "original_email": "test-5@example.org",
+ "\"72e2dd6ac17d7f0889d0fd5ea0315f74f3f62bbd\"", "original_email": "test-5@example.org",
"registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test-5@example.org",
- "user": "http://localhost:9001/3.0/users/22", "verified_on": "2005-08-01T07:49:23"}'}
+ "user": "http://localhost:9001/3.0/users/3674", "verified_on": "2005-08-01T07:49:23"}'}
headers:
- content-length: ['327']
- content-type: [application/json; charset=UTF-8]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/open_list@example.com/requests
- response:
- body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
- "start": 0, "total_size": 0}'}
- headers:
- content-length: ['90']
- content-type: [application/json; charset=UTF-8]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests
- response:
- body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
- "start": 0, "total_size": 0}'}
- headers:
- content-length: ['90']
+ content-length: ['329']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -656,27 +634,27 @@
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23",
- "http_etag": "\"b46540f2c96d3ee56920d4fb84e6af961424c019\"", "is_server_owner":
- false, "password": "$6$rounds=656000$eHZDIHWZZ5hLDEYH$LCESjR4PDPYLNIMpToZy3XzlOgiCrnh5az5I2dPa36.D4KGyF1ZjH1sciKRjhBHAYj54yd6BOFOxbvIFlEhtw0",
- "self_link": "http://localhost:9001/3.0/users/16", "user_id": 16}, {"created_on":
- "2005-08-01T07:49:23", "http_etag": "\"5ba84a9331a86066b367c0388a143ff681442612\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/17",
- "user_id": 17}, {"created_on": "2005-08-01T07:49:23", "display_name": "First
- Person", "http_etag": "\"fecd6fdd94fd2ce3df5952a60acfbe4fd32e1b46\"", "is_server_owner":
- false, "self_link": "http://localhost:9001/3.0/users/18", "user_id": 18},
+ "http_etag": "\"6e81f446da35bc97770443cbe5c0867341a6258c\"", "is_server_owner":
+ false, "password": "$6$rounds=656000$7odVgQx0b3RzpkdQ$gJn1oNyvCf5y9WexPypusIW2Y65/o4kOB2c/g8TCqgZgnhfsLmbb57yNjmYcK0yL.SGSdY5yzX7xDlhZmC846/",
+ "self_link": "http://localhost:9001/3.0/users/3668", "user_id": 3668}, {"created_on":
+ "2005-08-01T07:49:23", "http_etag": "\"a3f86889cb9ad5206f354743cafb76cb3a4a0b66\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3669",
+ "user_id": 3669}, {"created_on": "2005-08-01T07:49:23", "display_name": "First
+ Person", "http_etag": "\"25376570c33a6471f485fa81c93cceb8eb29ccf6\"", "is_server_owner":
+ false, "self_link": "http://localhost:9001/3.0/users/3670", "user_id": 3670},
{"created_on": "2005-08-01T07:49:23", "display_name": "Second Person", "http_etag":
- "\"876ae42e726c91c684da4b667cb0daa02f4a5c43\"", "is_server_owner": false,
- "self_link": "http://localhost:9001/3.0/users/19", "user_id": 19}, {"created_on":
- "2005-08-01T07:49:23", "display_name": "Third Person", "http_etag": "\"bba40743bf7cb91bbdba4ad5b9552dd399e71c5c\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/20",
- "user_id": 20}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"2b7d189e2d8f3403cf72781d5a1837d3f6722d31\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/21",
- "user_id": 21}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"6dc3faac46bcef307cb04b877c1cb62ddff20660\"",
- "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/22",
- "user_id": 22}], "http_etag": "\"6eacfada21c5314fe09a74bbc6e1e9eb63c56902\"",
+ "\"ebc5592a55fcb5d3a53136f67256ee17390d1224\"", "is_server_owner": false,
+ "self_link": "http://localhost:9001/3.0/users/3671", "user_id": 3671}, {"created_on":
+ "2005-08-01T07:49:23", "display_name": "Third Person", "http_etag": "\"213b125d5ad4927f91dcf2b33216bb6d80c73ddc\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3672",
+ "user_id": 3672}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"795b4921d9478d926348495f5b695a40523081fc\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3673",
+ "user_id": 3673}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"d31b7e83ac1b9a8eba32a08d03909a5f2250bb3a\"",
+ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3674",
+ "user_id": 3674}], "http_etag": "\"0917107329c0a0cc391c0295b4bf5c78b176a0a7\"",
"start": 0, "total_size": 7}'}
headers:
- content-length: ['1680']
+ content-length: ['1708']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -684,7 +662,7 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'DELETE'
- uri: http://localhost:9001/3.0/users/16
+ uri: http://localhost:9001/3.0/users/3668
response:
body: {string: !!python/unicode ''}
headers:
@@ -695,7 +673,7 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'DELETE'
- uri: http://localhost:9001/3.0/users/17
+ uri: http://localhost:9001/3.0/users/3669
response:
body: {string: !!python/unicode ''}
headers:
@@ -706,7 +684,7 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'DELETE'
- uri: http://localhost:9001/3.0/users/18
+ uri: http://localhost:9001/3.0/users/3670
response:
body: {string: !!python/unicode ''}
headers:
@@ -717,7 +695,7 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'DELETE'
- uri: http://localhost:9001/3.0/users/19
+ uri: http://localhost:9001/3.0/users/3671
response:
body: {string: !!python/unicode ''}
headers:
@@ -728,7 +706,7 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'DELETE'
- uri: http://localhost:9001/3.0/users/20
+ uri: http://localhost:9001/3.0/users/3672
response:
body: {string: !!python/unicode ''}
headers:
@@ -739,7 +717,7 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'DELETE'
- uri: http://localhost:9001/3.0/users/21
+ uri: http://localhost:9001/3.0/users/3673
response:
body: {string: !!python/unicode ''}
headers:
@@ -750,7 +728,7 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'DELETE'
- uri: http://localhost:9001/3.0/users/22
+ uri: http://localhost:9001/3.0/users/3674
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_unknown_address.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_unknown_address.yaml
index dd28485..15022a8 100644
--- a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_unknown_address.yaml
+++ b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_unknown_address.yaml
@@ -74,9 +74,11 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Open_list", "filter_content": false,
- "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "open_list@example.com",
- "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"2aed2f0ce4a7f2c86eae4124728f0153fda52dc6\"",
+ "digests_enabled": true, "display_name": "Open_list", "dmarc_mitigate_action":
+ "no_mitigation", "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice":
+ "", "dmarc_wrapped_message_text": "", "filter_content": false, "first_strip_reply_to":
+ false, "footer_uri": "", "fqdn_listname": "open_list@example.com", "goodbye_message_uri":
+ "", "header_uri": "", "http_etag": "\"530adf8ac47d1bb5980f1c9c8fd18b8c7879a4c4\"",
"include_rfc2369_headers": true, "info": "", "join_address": "open_list-join@example.com",
"last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name":
"open_list", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
@@ -87,7 +89,7 @@
true, "subject_prefix": "[Open_list] ", "subscription_policy": "confirm",
"volume": 1, "welcome_message_uri": ""}'}
headers:
- content-length: ['1849']
+ content-length: ['1997']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -150,9 +152,11 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Moderate_subs", "filter_content":
- false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com",
- "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"60d87955c09ee35a06c8740e9a4474843e083e3a\"",
+ "digests_enabled": true, "display_name": "Moderate_subs", "dmarc_mitigate_action":
+ "no_mitigation", "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice":
+ "", "dmarc_wrapped_message_text": "", "filter_content": false, "first_strip_reply_to":
+ false, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com", "goodbye_message_uri":
+ "", "header_uri": "", "http_etag": "\"052e09045929377c9a6d9766784eb938b0f6bae4\"",
"include_rfc2369_headers": true, "info": "", "join_address": "moderate_subs-join@example.com",
"last_post_at": null, "leave_address": "moderate_subs-leave@example.com",
"list_name": "moderate_subs", "mail_host": "example.com", "moderator_password":
@@ -164,7 +168,7 @@
"[Moderate_subs] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
- content-length: ['1889']
+ content-length: ['2037']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -191,7 +195,7 @@
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
- location: ['http://localhost:9001/3.0/users/23']
+ location: ['http://localhost:9001/3.0/users/3675']
status: {code: 201, message: Created}
- request:
body: !!python/unicode 'email=fritz%40example.org'
@@ -199,7 +203,7 @@
accept-encoding: ['gzip, deflate']
!!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded']
method: !!python/unicode 'POST'
- uri: http://localhost:9001/3.0/users/23/addresses
+ uri: http://localhost:9001/3.0/users/3675/addresses
response:
body: {string: !!python/unicode ''}
headers:
@@ -212,14 +216,14 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/users/23
+ uri: http://localhost:9001/3.0/users/3675
response:
body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag":
- "\"255a2cbb232b9aad077f4b248947e5426e0ef35a\"", "is_server_owner": false,
- "password": "$6$rounds=656000$I/OkMHiz6ZSyKO1e$6HE.UxLTvjMGl33KAAZtiB9YIwGJ1/LZZWmQ2ivOGBXPXjLA6tNLi5QerOBY7RkyPbZsnacn1yTjzcAXFFdo91",
- "self_link": "http://localhost:9001/3.0/users/23", "user_id": 23}'}
+ "\"d4caaddf88acf4ad3efa758aaf7e663c46a82a01\"", "is_server_owner": false,
+ "password": "$6$rounds=656000$hFYPJuS7Jvf0Qgt8$OiEsgKGnsY7G.3mYP.9/KANFlenYvRo/JUFeLzGluu2pvjhG6j0alhvEAf/gXDTsTcC3M2nr4.ocYtMWn5Fs91",
+ "self_link": "http://localhost:9001/3.0/users/3675", "user_id": 3675}'}
headers:
- content-length: ['326']
+ content-length: ['330']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -227,18 +231,18 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/users/23/addresses
+ uri: http://localhost:9001/3.0/users/3675/addresses
response:
body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag":
- "\"89efc920c3887d314b9bd948d94048d047b58513\"", "original_email": "fritz@example.org",
+ "\"1b768fb1e7d54585b31835a53e3f69d1c5c6a5e1\"", "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/23"}, {"email": "test@example.com",
- "http_etag": "\"9d692423be94883f59e5670c4b08692451f8395d\"", "original_email":
+ "user": "http://localhost:9001/3.0/users/3675"}, {"email": "test@example.com",
+ "http_etag": "\"36c031eb9a6a866d5f32f185437bd32549871689\"", "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/23"}], "http_etag": "\"7743fba2d36e767fc21fcc947bf74b9334497eb9\"",
+ "user": "http://localhost:9001/3.0/users/3675"}], "http_etag": "\"5516ba037bbf4ce90d98ef35146dcfbeaad9b9c2\"",
"start": 0, "total_size": 2}'}
headers:
- content-length: ['676']
+ content-length: ['680']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -391,9 +395,11 @@
"default_nonmember_action": "hold", "description": "", "digest_footer_uri":
"", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic":
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
- "digests_enabled": true, "display_name": "Open_list", "filter_content": false,
- "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "open_list@example.com",
- "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"086805127cff33814207a09645d1d14a418fad63\"",
+ "digests_enabled": true, "display_name": "Open_list", "dmarc_mitigate_action":
+ "no_mitigation", "dmarc_mitigate_unconditionally": false, "dmarc_moderation_notice":
+ "", "dmarc_wrapped_message_text": "", "filter_content": false, "first_strip_reply_to":
+ false, "footer_uri": "", "fqdn_listname": "open_list@example.com", "goodbye_message_uri":
+ "", "header_uri": "", "http_etag": "\"dfe94eee17035f150f2f9bd8d73782347811ff11\"",
"include_rfc2369_headers": true, "info": "", "join_address": "open_list-join@example.com",
"last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name":
"open_list", "mail_host": "example.com", "moderator_password": null, "next_digest_number":
@@ -404,7 +410,7 @@
true, "subject_prefix": "[Open_list] ", "subscription_policy": "open", "volume":
1, "welcome_message_uri": ""}'}
headers:
- content-length: ['1846']
+ content-length: ['1994']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -425,6 +431,19 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
+ uri: http://localhost:9001/3.0/lists/open_list@example.com/requests
+ response:
+ body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
+ "start": 0, "total_size": 0}'}
+ headers:
+ content-length: ['90']
+ content-type: [application/json; charset=UTF-8]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ accept-encoding: ['gzip, deflate']
+ method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/open_list.example.com/member/fritz@example.org
response:
body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"}
@@ -451,32 +470,6 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/open_list@example.com/requests
- response:
- body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
- "start": 0, "total_size": 0}'}
- headers:
- content-length: ['90']
- content-type: [application/json; charset=UTF-8]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode 'GET'
- uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests
- response:
- body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
- "start": 0, "total_size": 0}'}
- headers:
- content-length: ['90']
- content-type: [application/json; charset=UTF-8]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- accept-encoding: ['gzip, deflate']
- method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
@@ -507,13 +500,13 @@
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23",
- "http_etag": "\"255a2cbb232b9aad077f4b248947e5426e0ef35a\"", "is_server_owner":
- false, "password": "$6$rounds=656000$I/OkMHiz6ZSyKO1e$6HE.UxLTvjMGl33KAAZtiB9YIwGJ1/LZZWmQ2ivOGBXPXjLA6tNLi5QerOBY7RkyPbZsnacn1yTjzcAXFFdo91",
- "self_link": "http://localhost:9001/3.0/users/23", "user_id": 23}], "http_etag":
- "\"1baa1ea8e74d100bbb97ce9ae1ae8a9e803b1dca\"", "start": 0, "total_size":
+ "http_etag": "\"d4caaddf88acf4ad3efa758aaf7e663c46a82a01\"", "is_server_owner":
+ false, "password": "$6$rounds=656000$hFYPJuS7Jvf0Qgt8$OiEsgKGnsY7G.3mYP.9/KANFlenYvRo/JUFeLzGluu2pvjhG6j0alhvEAf/gXDTsTcC3M2nr4.ocYtMWn5Fs91",
+ "self_link": "http://localhost:9001/3.0/users/3675", "user_id": 3675}], "http_etag":
+ "\"27e1b11dc8a74851abc707d1efd3dc2bb946d1c1\"", "start": 0, "total_size":
1}'}
headers:
- content-length: ['431']
+ content-length: ['435']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
@@ -521,7 +514,7 @@
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'DELETE'
- uri: http://localhost:9001/3.0/users/23
+ uri: http://localhost:9001/3.0/users/3675
response:
body: {string: !!python/unicode ''}
headers:
diff --git a/src/postorius/tests/mailman_api_tests/test_domain_new.py b/src/postorius/tests/mailman_api_tests/test_domain_new.py
index 20a6f45..9fcd045 100644
--- a/src/postorius/tests/mailman_api_tests/test_domain_new.py
+++ b/src/postorius/tests/mailman_api_tests/test_domain_new.py
@@ -68,7 +68,6 @@
'site': '1',
}
response = self.client.post(reverse('domain_new'), post_data)
- self.assertContains(response, 'Please check the errors below')
self.assertContains(response, 'Please enter a valid domain name')
# self.assertHasErrorMessage(response)
self.assertEquals(response.status_code, 200)
diff --git a/src/postorius/tests/mailman_api_tests/test_list_members.py b/src/postorius/tests/mailman_api_tests/test_list_members.py
index 9bdad7f..542ce52 100644
--- a/src/postorius/tests/mailman_api_tests/test_list_members.py
+++ b/src/postorius/tests/mailman_api_tests/test_list_members.py
@@ -95,11 +95,6 @@
self.client.login(username='su', password='pwd')
self.mm_client.get_list('foo@example.com').add_owner('su@example.com')
- def tearDown(self):
- self.foo_list.delete()
- self.su.delete()
- self.domain.delete()
-
def test_add_remove_owner(self):
url = reverse('list_members', args=('foo@example.com', 'owner',))
response = self.client.post(url, {'email': 'newowner@example.com'})
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 ee4aee5..fb0a615 100644
--- a/src/postorius/tests/mailman_api_tests/test_list_summary.py
+++ b/src/postorius/tests/mailman_api_tests/test_list_summary.py
@@ -22,6 +22,7 @@
from django.core.urlresolvers import reverse
from postorius.tests.utils import ViewTestCase
+from postorius.forms import ListAnonymousSubscribe
class ListSummaryPageTest(ViewTestCase):
@@ -41,13 +42,15 @@
user=self.user, email=self.user.email, verified=True)
def test_list_summary_logged_out(self):
- # Response must contain list obj but not the form.
+ # Response must contain list obj and anonymous subscribe form.
response = self.client.get(reverse('list_summary',
args=('foo@example.com', )))
self.assertEqual(response.status_code, 200)
self.assertEqual(response.context['list'].fqdn_listname,
'foo@example.com')
- self.assertNotContains(response, '