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 7f07f47..fef1227 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 @@ -45,6 +45,18 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/su@example.com + response: + body: {string: !!python/unicode 404 Not Found} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -73,6 +85,18 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/su@example.com + response: + body: {string: !!python/unicode 404 Not Found} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -122,23 +146,6 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator - response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newmod@example.com", - "delivery_mode": "regular", "email": "newmod@example.com", "http_etag": "\"a81587b982580f8c56376e18931e13c26ebb400d\"", - "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/2"}], "http_etag": "\"4aee3e54b318f2b2b20c079d61332487761ef57d\"", - "start": 0, "total_size": 1}'} - headers: - content-length: ['489'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", diff --git a/src/postorius/tests/fixtures/vcr_cassettes/AddRemoveOwnerTest.test_add_remove_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/AddRemoveOwnerTest.test_add_remove_owner.yaml index 145c215..8158e36 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 @@ -73,6 +73,36 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/su@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"bb1c2e6094a96b17e2d5dbf487291f7667f69f75\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/3", "user_id": 3}'} + headers: + content-length: ['188'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/3/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag": + "\"91c297417f4c33cf707148d031e79b6cb316f158\"", "original_email": "su@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", + "user": "http://localhost:9001/3.0/users/3"}], "http_etag": "\"e9a7c409726b93f93aaf643fce49558cf27237e1\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['381'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -101,6 +131,36 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/su@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"bb1c2e6094a96b17e2d5dbf487291f7667f69f75\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/3", "user_id": 3}'} + headers: + content-length: ['188'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/3/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag": + "\"91c297417f4c33cf707148d031e79b6cb316f158\"", "original_email": "su@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", + "user": "http://localhost:9001/3.0/users/3"}], "http_etag": "\"e9a7c409726b93f93aaf643fce49558cf27237e1\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['381'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -160,6 +220,36 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/su@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"bb1c2e6094a96b17e2d5dbf487291f7667f69f75\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/3", "user_id": 3}'} + headers: + content-length: ['188'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/3/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag": + "\"91c297417f4c33cf707148d031e79b6cb316f158\"", "original_email": "su@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", + "user": "http://localhost:9001/3.0/users/3"}], "http_etag": "\"e9a7c409726b93f93aaf643fce49558cf27237e1\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['381'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", 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 87b7694..dcf741f 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 @@ -145,6 +145,36 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/su@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"bb1c2e6094a96b17e2d5dbf487291f7667f69f75\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/3", "user_id": 3}'} + headers: + content-length: ['188'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/3/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag": + "\"91c297417f4c33cf707148d031e79b6cb316f158\"", "original_email": "su@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", + "user": "http://localhost:9001/3.0/users/3"}], "http_etag": "\"e9a7c409726b93f93aaf643fce49558cf27237e1\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['381'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -269,6 +299,36 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/su@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"bb1c2e6094a96b17e2d5dbf487291f7667f69f75\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/3", "user_id": 3}'} + headers: + content-length: ['188'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/3/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag": + "\"91c297417f4c33cf707148d031e79b6cb316f158\"", "original_email": "su@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", + "user": "http://localhost:9001/3.0/users/3"}], "http_etag": "\"e9a7c409726b93f93aaf643fce49558cf27237e1\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['381'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", 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 41319ed..8204a43 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 @@ -90,21 +90,6 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo@example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/su@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": @@ -135,6 +120,21 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/su@example.com", @@ -193,21 +193,6 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo@example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/su@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": @@ -238,6 +223,21 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com", @@ -332,21 +332,6 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo@example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/su@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": @@ -377,6 +362,21 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com", diff --git a/src/postorius/tests/fixtures/vcr_cassettes/DomainCreationTest.test_new_domain_created_with_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/DomainCreationTest.test_new_domain_created_with_owner.yaml index faaa504..183a173 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,5 +1,17 @@ interactions: - request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/su@example.com + response: + body: {string: !!python/unicode 404 Not Found} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + status: {code: 404, message: Not Found} +- request: body: base_url=http%3A%2F%2Fexample.com&description=A+new+Domain.&mail_host=example.com&owner=su%40example.com headers: accept-encoding: ['gzip, deflate'] @@ -17,6 +29,36 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/su@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"1479b23f4b3c2af04f98946e313297006dd20754\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/27", "user_id": 27}'} + headers: + content-length: ['190'] + content-type: [application/json; charset=utf-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/27/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag": + "\"9210a0ce3a86784179e843000a09844024fb03b4\"", "original_email": "su@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", + "user": "http://localhost:9001/3.0/users/27"}], "http_etag": "\"7684bfa20597c2d46932d3e54dd1df213fb86c45\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['382'] + content-type: [application/json; charset=utf-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": [{"base_url": "http://example.com", 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 899ca4c..30eaaba 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,6 +3,30 @@ 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 404 Not Found} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/user@example.com + response: + body: {string: !!python/unicode 404 Not Found} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE uri: http://localhost:9001/3.0/domains/example.com response: 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 60af934..d5aadf4 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 @@ -66,7 +66,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/23'] + location: ['http://localhost:9001/3.0/members/57'] status: {code: 201, message: Created} - request: body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com @@ -79,7 +79,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/24'] + location: ['http://localhost:9001/3.0/members/58'] status: {code: 201, message: Created} - request: body: null 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 08383eb..46094c0 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 @@ -66,7 +66,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/25'] + location: ['http://localhost:9001/3.0/members/59'] status: {code: 201, message: Created} - request: body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com @@ -79,12 +79,36 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/26'] + location: ['http://localhost:9001/3.0/members/60'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/test@example.com + response: + body: {string: !!python/unicode 404 Not Found} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/test@example.com + response: + body: {string: !!python/unicode 404 Not Found} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE uri: http://localhost:9001/3.0/domains/example.com response: 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 7f6d406..dd5b2c0 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 @@ -66,7 +66,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/27'] + location: ['http://localhost:9001/3.0/members/61'] status: {code: 201, message: Created} - request: body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com @@ -79,12 +79,74 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/28'] + location: ['http://localhost:9001/3.0/members/62'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/moderator@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"c7360c029a83c97672ca38dd8b008d48e05949a6\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/7", "user_id": 7}'} + headers: + content-length: ['188'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/7/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "moderator@example.com", + "http_etag": "\"dc9e6ab7f685df3bdee82a1b48abcc345c24c317\"", "original_email": + "moderator@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": + "http://localhost:9001/3.0/addresses/moderator@example.com", "user": "http://localhost:9001/3.0/users/7"}], + "http_etag": "\"61e6b2b734fab9e85bac3022e2728ddca6d73b95\"", "start": 0, "total_size": + 1}'} + headers: + content-length: ['402'] + content-type: [application/json; charset=utf-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/moderator@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"c7360c029a83c97672ca38dd8b008d48e05949a6\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/7", "user_id": 7}'} + headers: + content-length: ['188'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/7/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "moderator@example.com", + "http_etag": "\"dc9e6ab7f685df3bdee82a1b48abcc345c24c317\"", "original_email": + "moderator@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": + "http://localhost:9001/3.0/addresses/moderator@example.com", "user": "http://localhost:9001/3.0/users/7"}], + "http_etag": "\"61e6b2b734fab9e85bac3022e2728ddca6d73b95\"", "start": 0, "total_size": + 1}'} + headers: + content-length: ['402'] + 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: 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 d833587..391a0b1 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 @@ -66,7 +66,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/29'] + location: ['http://localhost:9001/3.0/members/63'] status: {code: 201, message: Created} - request: body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com @@ -79,12 +79,72 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/30'] + location: ['http://localhost:9001/3.0/members/64'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/owner@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"b774d488fd2356b7bedf0e6fa4a26dc70dc2b02b\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/6", "user_id": 6}'} + headers: + content-length: ['188'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/6/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": + "\"7efeccdd4edd0bed02cd2141365a115239f83be4\"", "original_email": "owner@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/owner@example.com", + "user": "http://localhost:9001/3.0/users/6"}], "http_etag": "\"a565f7d323e0a6ca5da35f6d965148fe4fe03fbb\"", + "start": 0, "total_size": 1}'} + headers: + 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 + uri: http://localhost:9001/3.0/users/owner@example.com + response: + body: {string: !!python/unicode '{"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}'} + headers: + content-length: ['188'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/6/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": + "\"7efeccdd4edd0bed02cd2141365a115239f83be4\"", "original_email": "owner@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/owner@example.com", + "user": "http://localhost:9001/3.0/users/6"}], "http_etag": "\"a565f7d323e0a6ca5da35f6d965148fe4fe03fbb\"", + "start": 0, "total_size": 1}'} + headers: + 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 DELETE uri: http://localhost:9001/3.0/domains/example.com response: 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 c39e9dc..e340ec9 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 @@ -66,7 +66,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/31'] + location: ['http://localhost:9001/3.0/members/65'] status: {code: 201, message: Created} - request: body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com @@ -79,12 +79,42 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/32'] + location: ['http://localhost:9001/3.0/members/66'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/su@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"bb1c2e6094a96b17e2d5dbf487291f7667f69f75\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/3", "user_id": 3}'} + headers: + content-length: ['188'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/3/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag": + "\"91c297417f4c33cf707148d031e79b6cb316f158\"", "original_email": "su@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", + "user": "http://localhost:9001/3.0/users/3"}], "http_etag": "\"e9a7c409726b93f93aaf643fce49558cf27237e1\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['381'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE uri: http://localhost:9001/3.0/domains/example.com response: @@ -97,6 +127,36 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/su@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"bb1c2e6094a96b17e2d5dbf487291f7667f69f75\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/3", "user_id": 3}'} + headers: + content-length: ['188'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/3/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag": + "\"91c297417f4c33cf707148d031e79b6cb316f158\"", "original_email": "su@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", + "user": "http://localhost:9001/3.0/users/3"}], "http_etag": "\"e9a7c409726b93f93aaf643fce49558cf27237e1\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['381'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", 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 c48e7c3..50e1558 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 @@ -66,7 +66,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/33'] + location: ['http://localhost:9001/3.0/members/67'] status: {code: 201, message: Created} - request: body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com @@ -79,13 +79,43 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/34'] + location: ['http://localhost:9001/3.0/members/68'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/su@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"bb1c2e6094a96b17e2d5dbf487291f7667f69f75\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/3", "user_id": 3}'} + headers: + content-length: ['188'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/3/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag": + "\"91c297417f4c33cf707148d031e79b6cb316f158\"", "original_email": "su@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", + "user": "http://localhost:9001/3.0/users/3"}], "http_etag": "\"e9a7c409726b93f93aaf643fce49558cf27237e1\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['381'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", diff --git a/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_contains_the_domains.yaml b/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_contains_the_domains.yaml index 1362837..1b20571 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_contains_the_domains.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_contains_the_domains.yaml @@ -66,7 +66,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/57'] + location: ['http://localhost:9001/3.0/members/91'] status: {code: 201, message: Created} - request: body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com @@ -79,13 +79,25 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/58'] + location: ['http://localhost:9001/3.0/members/92'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/su@example.com + response: + body: {string: !!python/unicode 404 Not Found} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", 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 3ac2142..97bf30b 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 @@ -66,7 +66,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/59'] + location: ['http://localhost:9001/3.0/members/93'] status: {code: 201, message: Created} - request: body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com @@ -79,12 +79,43 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/60'] + location: ['http://localhost:9001/3.0/members/94'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/moderator@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"c73be856843a113d5eb32f60ae4315192adb1045\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/26", "user_id": 26}'} + headers: + content-length: ['190'] + content-type: [application/json; charset=utf-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/26/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "moderator@example.com", + "http_etag": "\"7cbfe1152b2059ea22da3fd3c63d2e80137463c9\"", "original_email": + "moderator@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": + "http://localhost:9001/3.0/addresses/moderator@example.com", "user": "http://localhost:9001/3.0/users/26"}], + "http_etag": "\"a5cec441151e9ebbdeecd1a5dfa2bc4442606b23\"", "start": 0, "total_size": + 1}'} + headers: + content-length: ['403'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/foo@example.com response: 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 4471c49..0194483 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 @@ -66,7 +66,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/61'] + location: ['http://localhost:9001/3.0/members/95'] status: {code: 201, message: Created} - request: body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com @@ -79,12 +79,42 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/62'] + location: ['http://localhost:9001/3.0/members/96'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/owner@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"0c3f6e8712fd05b9da49c42bf9600a5414b7958f\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/25", "user_id": 25}'} + headers: + content-length: ['190'] + content-type: [application/json; charset=utf-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/25/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": + "\"4f9ed9a34230bdffba99ba04babc875b8ca84412\"", "original_email": "owner@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/owner@example.com", + "user": "http://localhost:9001/3.0/users/25"}], "http_etag": "\"f2cf8f57c20919fb8d58ac30d9a21fdf04707fd0\"", + "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 DELETE uri: http://localhost:9001/3.0/lists/foo@example.com response: 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 a062f31..22f4edd 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 @@ -66,7 +66,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/63'] + location: ['http://localhost:9001/3.0/members/97'] status: {code: 201, message: Created} - request: body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com @@ -79,7 +79,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/64'] + location: ['http://localhost:9001/3.0/members/98'] status: {code: 201, message: Created} - request: body: null 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 28507fe..499be74 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 @@ -66,7 +66,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/65'] + location: ['http://localhost:9001/3.0/members/99'] status: {code: 201, message: Created} - request: body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com @@ -79,12 +79,24 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/66'] + location: ['http://localhost:9001/3.0/members/100'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/test@example.com + response: + body: {string: !!python/unicode 404 Not Found} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE uri: http://localhost:9001/3.0/lists/foo@example.com response: 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 54dbc6b..7af4095 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 @@ -45,6 +45,18 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/test_superuser@example.com + response: + body: {string: !!python/unicode 404 Not Found} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": 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 beb2a4f..01536ba 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 @@ -45,6 +45,18 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/test_superuser@example.com + response: + body: {string: !!python/unicode 404 Not Found} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": @@ -74,6 +86,18 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/test_superuser@example.com + response: + body: {string: !!python/unicode 404 Not Found} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": 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 5b2d717..223e96a 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 @@ -88,6 +88,18 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/test_superuser@example.com + response: + body: {string: !!python/unicode 404 Not Found} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": @@ -117,6 +129,18 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/test_superuser@example.com + response: + body: {string: !!python/unicode 404 Not Found} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": 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 54dbc6b..7af4095 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 @@ -45,6 +45,18 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/test_superuser@example.com + response: + body: {string: !!python/unicode 404 Not Found} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": 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 6037647..8de6086 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 @@ -178,6 +178,18 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/test_superuser@example.com + response: + body: {string: !!python/unicode 404 Not Found} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": 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 f950796..78c104b 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 @@ -88,6 +88,18 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/test_superuser@example.com + response: + body: {string: !!python/unicode 404 Not Found} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": @@ -131,6 +143,18 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/test_superuser@example.com + response: + body: {string: !!python/unicode 404 Not Found} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": 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 f8bd359..91f9f86 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 @@ -73,6 +73,18 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/test_superuser@example.com + response: + body: {string: !!python/unicode 404 Not Found} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": @@ -102,6 +114,18 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/test_superuser@example.com + response: + body: {string: !!python/unicode 404 Not Found} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": 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 3c96848..2d4a81d 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 @@ -45,6 +45,18 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/test_user@example.com + response: + body: {string: !!python/unicode 404 Not Found} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": @@ -61,18 +73,6 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/test_user@example.com - response: - body: {string: !!python/unicode 404 Not Found} - headers: - content-length: ['13'] - content-type: [application/json; charset=utf-8] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com/roster/owner 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 abd471b..594f0db 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 @@ -17,6 +17,18 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/su@example.com + response: + body: {string: !!python/unicode 404 Not Found} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", @@ -113,7 +125,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/67'] + location: ['http://localhost:9001/3.0/members/101'] status: {code: 201, message: Created} - request: body: null @@ -134,18 +146,18 @@ 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, "fqdn_listname": "a_new_list@example.com", - "http_etag": "\"f9778b3fbe07971d27dce9b470d0c7c40bb243de\"", "include_rfc2369_headers": - true, "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", "next_digest_number": 1, "no_reply_address": "noreply@example.com", - "owner_address": "a_new_list-owner@example.com", "post_id": 1, "posting_address": - "a_new_list@example.com", "posting_pipeline": "default-posting-pipeline", + "goodbye_message_uri": "", "http_etag": "\"25d3ee87e0387ce7879acc55cab6ad8dce3ab173\"", + "include_rfc2369_headers": true, "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", "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "a_new_list-owner@example.com", "post_id": + 1, "posting_address": "a_new_list@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": "a_new_list-request@example.com", "scheme": "http", "send_welcome_message": true, "subject_prefix": "[A_new_list] ", "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1773'] + content-length: ['1800'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -184,13 +196,13 @@ 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": "\"1e2fbd629007c4240ff07f340756aa70fdfc8a14\"", - "list_id": "a_new_list.example.com", "member_id": 67, "moderation_action": - "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/67", - "user": "http://localhost:9001/3.0/users/29"}], "http_etag": "\"62ba27c9dc34385f54216da71698a09942180736\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"09866a5750e0216aadee006d6c9f483cba0cb1ab\"", + "list_id": "a_new_list.example.com", "member_id": 101, "moderation_action": + "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/101", + "user": "http://localhost:9001/3.0/users/29"}], "http_etag": "\"75ea67189342eb84d0ec5c2d16f9ec2a3f94fb0c\"", "start": 0, "total_size": 1}'} headers: - content-length: ['493'] + content-length: ['495'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: 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 8e51b61..1ece919 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 @@ -17,6 +17,30 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/user@example.com + response: + body: {string: !!python/unicode 404 Not Found} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/user@example.com + response: + body: {string: !!python/unicode 404 Not Found} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists 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 9b4f2f8..9ebb298 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add.yaml @@ -86,21 +86,6 @@ headers: accept-encoding: ['gzip, deflate'] 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", - "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", - "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} - headers: - content-length: ['299'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": @@ -131,6 +116,21 @@ headers: accept-encoding: ['gzip, deflate'] 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", + "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", + "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} + headers: + content-length: ['299'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", @@ -218,21 +218,6 @@ headers: accept-encoding: ['gzip, deflate'] 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", - "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", - "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} - headers: - content-length: ['299'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": @@ -263,6 +248,21 @@ headers: accept-encoding: ['gzip, deflate'] 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", + "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", + "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} + headers: + content-length: ['299'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", 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 13b0eba..bb0ed92 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 @@ -86,21 +86,6 @@ headers: accept-encoding: ['gzip, deflate'] 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", - "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", - "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} - headers: - content-length: ['299'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": @@ -131,6 +116,21 @@ headers: accept-encoding: ['gzip, deflate'] 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", + "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", + "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} + headers: + content-length: ['299'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", @@ -194,21 +194,6 @@ headers: accept-encoding: ['gzip, deflate'] 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", - "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", - "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} - headers: - content-length: ['299'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": @@ -239,6 +224,21 @@ headers: accept-encoding: ['gzip, deflate'] 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", + "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", + "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} + headers: + content-length: ['299'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", 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 a07c026..6732905 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 @@ -86,21 +86,6 @@ headers: accept-encoding: ['gzip, deflate'] 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", - "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", - "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} - headers: - content-length: ['299'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": @@ -131,6 +116,21 @@ headers: accept-encoding: ['gzip, deflate'] 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", + "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", + "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} + headers: + content-length: ['299'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", 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 7dc4fdd..66af06f 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 @@ -86,21 +86,6 @@ headers: accept-encoding: ['gzip, deflate'] 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", - "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", - "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} - headers: - content-length: ['299'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": @@ -131,6 +116,21 @@ headers: accept-encoding: ['gzip, deflate'] 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", + "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", + "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} + headers: + content-length: ['299'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", 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 2b0ccd9..cd7e843 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 @@ -99,21 +99,6 @@ headers: accept-encoding: ['gzip, deflate'] 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", - "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", - "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} - headers: - content-length: ['299'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": @@ -144,6 +129,21 @@ headers: accept-encoding: ['gzip, deflate'] 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", + "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", + "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} + headers: + content-length: ['299'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", @@ -247,21 +247,6 @@ headers: accept-encoding: ['gzip, deflate'] 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", - "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", - "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} - headers: - content-length: ['299'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": @@ -292,6 +277,21 @@ headers: accept-encoding: ['gzip, deflate'] 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", + "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", + "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} + headers: + content-length: ['299'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", 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 e709f1b..23d8d9d 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_delete.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_delete.yaml @@ -112,21 +112,6 @@ headers: accept-encoding: ['gzip, deflate'] 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", - "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", - "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} - headers: - content-length: ['299'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": @@ -157,6 +142,21 @@ headers: accept-encoding: ['gzip, deflate'] 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", + "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", + "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} + headers: + content-length: ['299'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", @@ -249,21 +249,6 @@ headers: accept-encoding: ['gzip, deflate'] 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", - "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", - "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} - headers: - content-length: ['299'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": @@ -294,6 +279,21 @@ headers: accept-encoding: ['gzip, deflate'] 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", + "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", + "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} + headers: + content-length: ['299'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", 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 b3ecf59..7a8cd20 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_edit.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_edit.yaml @@ -99,21 +99,6 @@ headers: accept-encoding: ['gzip, deflate'] 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", - "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", - "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} - headers: - content-length: ['299'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": @@ -144,6 +129,21 @@ headers: accept-encoding: ['gzip, deflate'] 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", + "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", + "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} + headers: + content-length: ['299'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", @@ -234,21 +234,6 @@ headers: accept-encoding: ['gzip, deflate'] 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", - "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", - "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} - headers: - content-length: ['299'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": @@ -279,6 +264,21 @@ headers: accept-encoding: ['gzip, deflate'] 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", + "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", + "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} + headers: + content-length: ['299'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", 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 6403f16..a82354c 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 @@ -99,21 +99,6 @@ headers: accept-encoding: ['gzip, deflate'] 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", - "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", - "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} - headers: - content-length: ['299'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": @@ -144,6 +129,21 @@ headers: accept-encoding: ['gzip, deflate'] 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", + "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", + "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} + headers: + content-length: ['299'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", 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 a69135c..e10f880 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 @@ -125,21 +125,6 @@ headers: accept-encoding: ['gzip, deflate'] 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", - "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", - "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} - headers: - content-length: ['299'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": @@ -170,6 +155,21 @@ headers: accept-encoding: ['gzip, deflate'] 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", + "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", + "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} + headers: + content-length: ['299'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", @@ -290,21 +290,6 @@ headers: accept-encoding: ['gzip, deflate'] 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", - "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", - "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} - headers: - content-length: ['299'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": @@ -335,6 +320,21 @@ headers: accept-encoding: ['gzip, deflate'] 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", + "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", + "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} + headers: + content-length: ['299'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", 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 574b823..9b3f1a8 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 @@ -125,21 +125,6 @@ headers: accept-encoding: ['gzip, deflate'] 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", - "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", - "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} - headers: - content-length: ['299'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": @@ -170,6 +155,21 @@ headers: accept-encoding: ['gzip, deflate'] 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", + "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", + "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} + headers: + content-length: ['299'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", @@ -290,21 +290,6 @@ headers: accept-encoding: ['gzip, deflate'] 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", - "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", - "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} - headers: - content-length: ['299'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": @@ -335,6 +320,21 @@ headers: accept-encoding: ['gzip, deflate'] 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", + "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", + "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} + headers: + content-length: ['299'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", 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 d8b57bd..1c829c5 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 @@ -86,21 +86,6 @@ headers: accept-encoding: ['gzip, deflate'] 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", - "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", - "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} - headers: - content-length: ['299'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/moderator@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": @@ -132,6 +117,21 @@ headers: accept-encoding: ['gzip, deflate'] 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", + "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", + "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} + headers: + content-length: ['299'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", 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 50f4d17..2ef4a0b 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 @@ -86,21 +86,6 @@ headers: accept-encoding: ['gzip, deflate'] 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", - "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", - "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} - headers: - content-length: ['299'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": @@ -131,6 +116,21 @@ headers: accept-encoding: ['gzip, deflate'] 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", + "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", + "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} + headers: + content-length: ['299'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", 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 27a7355..a0f53f2 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 @@ -86,6 +86,36 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/su@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"bb1c2e6094a96b17e2d5dbf487291f7667f69f75\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/3", "user_id": 3}'} + headers: + content-length: ['188'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/3/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag": + "\"91c297417f4c33cf707148d031e79b6cb316f158\"", "original_email": "su@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", + "user": "http://localhost:9001/3.0/users/3"}], "http_etag": "\"e9a7c409726b93f93aaf643fce49558cf27237e1\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['381'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/list.example.com response: body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com", 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 7be9e1b..2a66a03 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 @@ -86,6 +86,18 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/test@example.com + response: + body: {string: !!python/unicode 404 Not Found} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/list.example.com response: body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com", @@ -101,18 +113,6 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/test@example.com - response: - body: {string: !!python/unicode 404 Not Found} - headers: - content-length: ['13'] - content-type: [application/json; charset=utf-8] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", 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 9d23707..3fff6c6 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 @@ -112,21 +112,6 @@ headers: accept-encoding: ['gzip, deflate'] 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", - "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", - "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} - headers: - content-length: ['299'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": @@ -157,6 +142,21 @@ headers: accept-encoding: ['gzip, deflate'] 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", + "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", + "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} + headers: + content-length: ['299'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", 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 42630a1..7c99949 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 @@ -99,21 +99,6 @@ headers: accept-encoding: ['gzip, deflate'] 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", - "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", - "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} - headers: - content-length: ['299'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": @@ -144,6 +129,21 @@ headers: accept-encoding: ['gzip, deflate'] 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", + "http_etag": "\"e6a4f3c403f35e4c9a30c19f07bf0e36fa03e45b\"", "list_id": "list.example.com", + "list_name": "list", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} + headers: + content-length: ['299'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", 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 7272275..057e1ef 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 @@ -93,17 +93,18 @@ 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, "fqdn_listname": "foo@example.com", - "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": - true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": - "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", - "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "foo-request@example.com", "scheme": "http", "send_welcome_message": true, - "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, - "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"97436ece60591c8bf4b4d589f6b8028a5a2964a3\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "foo-owner@example.com", "post_id": 1, "posting_address": + "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Foo] ", + "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1703'] + content-length: ['1730'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -125,17 +126,18 @@ 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, "fqdn_listname": "bar@example.com", - "http_etag": "\"fb724834c1855b5b0fd096ce1ffdccfeebaf7ac9\"", "include_rfc2369_headers": - true, "join_address": "bar-join@example.com", "last_post_at": null, "leave_address": - "bar-leave@example.com", "list_name": "bar", "mail_host": "example.com", "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", "scheme": "http", "send_welcome_message": true, - "subject_prefix": "[Bar] ", "subscription_policy": "confirm", "volume": 1, - "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"2b0138b777975771f3286f1f8dfd9e6d701c58e0\"", + "include_rfc2369_headers": true, "join_address": "bar-join@example.com", "last_post_at": + null, "leave_address": "bar-leave@example.com", "list_name": "bar", "mail_host": + "example.com", "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", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Bar] ", + "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1703'] + content-length: ['1730'] 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 78a02f9..803cd8f 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 @@ -86,21 +86,6 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo@example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/moderator@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": @@ -132,6 +117,21 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", 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 04868b7..f41f43d 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 @@ -86,21 +86,6 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo@example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": @@ -131,6 +116,21 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", 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 4e0819d..c3452c0 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 @@ -86,6 +86,36 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/su@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"bb1c2e6094a96b17e2d5dbf487291f7667f69f75\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/3", "user_id": 3}'} + headers: + content-length: ['188'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/3/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag": + "\"91c297417f4c33cf707148d031e79b6cb316f158\"", "original_email": "su@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", + "user": "http://localhost:9001/3.0/users/3"}], "http_etag": "\"e9a7c409726b93f93aaf643fce49558cf27237e1\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['381'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", 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 d6a8eac..5e8465a 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 @@ -86,6 +86,18 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/test@example.com + response: + body: {string: !!python/unicode 404 Not Found} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -101,18 +113,6 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/test@example.com - response: - body: {string: !!python/unicode 404 Not Found} - headers: - content-length: ['13'] - content-type: [application/json; charset=utf-8] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", 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 18ef832..5659798 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 @@ -86,6 +86,36 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/su@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"bb1c2e6094a96b17e2d5dbf487291f7667f69f75\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/3", "user_id": 3}'} + headers: + content-length: ['188'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/3/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag": + "\"91c297417f4c33cf707148d031e79b6cb316f158\"", "original_email": "su@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", + "user": "http://localhost:9001/3.0/users/3"}], "http_etag": "\"e9a7c409726b93f93aaf643fce49558cf27237e1\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['381'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -173,6 +203,36 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/su@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"bb1c2e6094a96b17e2d5dbf487291f7667f69f75\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/3", "user_id": 3}'} + headers: + content-length: ['188'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/3/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag": + "\"91c297417f4c33cf707148d031e79b6cb316f158\"", "original_email": "su@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", + "user": "http://localhost:9001/3.0/users/3"}], "http_etag": "\"e9a7c409726b93f93aaf643fce49558cf27237e1\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['381'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", 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 b137d28..5921554 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 @@ -86,6 +86,36 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/su@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"bb1c2e6094a96b17e2d5dbf487291f7667f69f75\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/3", "user_id": 3}'} + headers: + content-length: ['188'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/3/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag": + "\"91c297417f4c33cf707148d031e79b6cb316f158\"", "original_email": "su@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", + "user": "http://localhost:9001/3.0/users/3"}], "http_etag": "\"e9a7c409726b93f93aaf643fce49558cf27237e1\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['381'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", 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 9a1b16e..0fa65e8 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_archivers.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_archivers.yaml @@ -66,7 +66,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/35'] + location: ['http://localhost:9001/3.0/members/69'] status: {code: 201, message: Created} - request: body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com @@ -79,7 +79,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/36'] + location: ['http://localhost:9001/3.0/members/70'] status: {code: 201, message: Created} - request: body: null @@ -99,6 +99,36 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/su@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"bb1c2e6094a96b17e2d5dbf487291f7667f69f75\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/3", "user_id": 3}'} + headers: + content-length: ['188'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/3/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag": + "\"91c297417f4c33cf707148d031e79b6cb316f158\"", "original_email": "su@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", + "user": "http://localhost:9001/3.0/users/3"}], "http_etag": "\"e9a7c409726b93f93aaf643fce49558cf27237e1\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['381'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -128,17 +158,18 @@ 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, "fqdn_listname": "foo@example.com", - "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": - true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": - "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", - "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "foo-request@example.com", "scheme": "http", "send_welcome_message": true, - "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, - "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"97436ece60591c8bf4b4d589f6b8028a5a2964a3\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "foo-owner@example.com", "post_id": 1, "posting_address": + "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Foo] ", + "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1703'] + content-length: ['1730'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -211,6 +242,36 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/su@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"bb1c2e6094a96b17e2d5dbf487291f7667f69f75\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/3", "user_id": 3}'} + headers: + content-length: ['188'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/3/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag": + "\"91c297417f4c33cf707148d031e79b6cb316f158\"", "original_email": "su@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", + "user": "http://localhost:9001/3.0/users/3"}], "http_etag": "\"e9a7c409726b93f93aaf643fce49558cf27237e1\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['381'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -253,17 +314,18 @@ 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, "fqdn_listname": "foo@example.com", - "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": - true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": - "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", - "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "foo-request@example.com", "scheme": "http", "send_welcome_message": true, - "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, - "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"97436ece60591c8bf4b4d589f6b8028a5a2964a3\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "foo-owner@example.com", "post_id": 1, "posting_address": + "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Foo] ", + "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1703'] + content-length: ['1730'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -320,6 +382,36 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/su@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"bb1c2e6094a96b17e2d5dbf487291f7667f69f75\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/3", "user_id": 3}'} + headers: + content-length: ['188'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/3/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag": + "\"91c297417f4c33cf707148d031e79b6cb316f158\"", "original_email": "su@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", + "user": "http://localhost:9001/3.0/users/3"}], "http_etag": "\"e9a7c409726b93f93aaf643fce49558cf27237e1\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['381'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -349,17 +441,18 @@ 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, "fqdn_listname": "foo@example.com", - "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": - true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": - "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", - "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "foo-request@example.com", "scheme": "http", "send_welcome_message": true, - "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, - "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"97436ece60591c8bf4b4d589f6b8028a5a2964a3\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "foo-owner@example.com", "post_id": 1, "posting_address": + "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Foo] ", + "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1703'] + content-length: ['1730'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: 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 f17595c..1c08235 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 @@ -66,7 +66,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/37'] + location: ['http://localhost:9001/3.0/members/71'] status: {code: 201, message: Created} - request: body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com @@ -79,7 +79,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/38'] + location: ['http://localhost:9001/3.0/members/72'] status: {code: 201, message: Created} - request: body: null @@ -100,17 +100,48 @@ 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, "fqdn_listname": "foo@example.com", - "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": - true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": - "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", - "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "foo-request@example.com", "scheme": "http", "send_welcome_message": true, - "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, - "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"97436ece60591c8bf4b4d589f6b8028a5a2964a3\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "foo-owner@example.com", "post_id": 1, "posting_address": + "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Foo] ", + "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1703'] + content-length: ['1730'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/su@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"bb1c2e6094a96b17e2d5dbf487291f7667f69f75\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/3", "user_id": 3}'} + headers: + content-length: ['188'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/3/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag": + "\"91c297417f4c33cf707148d031e79b6cb316f158\"", "original_email": "su@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", + "user": "http://localhost:9001/3.0/users/3"}], "http_etag": "\"e9a7c409726b93f93aaf643fce49558cf27237e1\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['381'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -147,17 +178,18 @@ 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, "fqdn_listname": "foo@example.com", - "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": - true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": - "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", - "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "foo-request@example.com", "scheme": "http", "send_welcome_message": true, - "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, - "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"97436ece60591c8bf4b4d589f6b8028a5a2964a3\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "foo-owner@example.com", "post_id": 1, "posting_address": + "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Foo] ", + "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1703'] + content-length: ['1730'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -230,6 +262,36 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/su@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"bb1c2e6094a96b17e2d5dbf487291f7667f69f75\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/3", "user_id": 3}'} + headers: + content-length: ['188'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/3/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag": + "\"91c297417f4c33cf707148d031e79b6cb316f158\"", "original_email": "su@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", + "user": "http://localhost:9001/3.0/users/3"}], "http_etag": "\"e9a7c409726b93f93aaf643fce49558cf27237e1\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['381'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -272,17 +334,18 @@ 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, "fqdn_listname": "foo@example.com", - "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": - true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": - "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", - "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "foo-request@example.com", "scheme": "http", "send_welcome_message": true, - "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, - "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"97436ece60591c8bf4b4d589f6b8028a5a2964a3\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "foo-owner@example.com", "post_id": 1, "posting_address": + "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Foo] ", + "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1703'] + content-length: ['1730'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -339,6 +402,36 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/su@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"bb1c2e6094a96b17e2d5dbf487291f7667f69f75\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/3", "user_id": 3}'} + headers: + content-length: ['188'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/3/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag": + "\"91c297417f4c33cf707148d031e79b6cb316f158\"", "original_email": "su@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", + "user": "http://localhost:9001/3.0/users/3"}], "http_etag": "\"e9a7c409726b93f93aaf643fce49558cf27237e1\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['381'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -368,17 +461,18 @@ 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, "fqdn_listname": "foo@example.com", - "http_etag": "\"ee2b013f388534986873dd50897c63326f8fc57d\"", "include_rfc2369_headers": - true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": - "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", - "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "foo-request@example.com", "scheme": "http", "send_welcome_message": true, - "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, - "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"d4e967807b81e9f8f8e9b284bd589729b0406ee9\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "foo-owner@example.com", "post_id": 1, "posting_address": + "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Foo] ", + "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1704'] + content-length: ['1731'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -480,17 +574,18 @@ 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, "fqdn_listname": "foo@example.com", - "http_etag": "\"ee2b013f388534986873dd50897c63326f8fc57d\"", "include_rfc2369_headers": - true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": - "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", - "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "foo-request@example.com", "scheme": "http", "send_welcome_message": true, - "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, - "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"d4e967807b81e9f8f8e9b284bd589729b0406ee9\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "foo-owner@example.com", "post_id": 1, "posting_address": + "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Foo] ", + "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1704'] + content-length: ['1731'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: 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 b295e41..4474151 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 @@ -66,7 +66,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/39'] + location: ['http://localhost:9001/3.0/members/73'] status: {code: 201, message: Created} - request: body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com @@ -79,28 +79,13 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/40'] + location: ['http://localhost:9001/3.0/members/74'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/moderator@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": @@ -132,13 +117,28 @@ 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": "\"9ce8a9f54db6e7361d5e72b090bf1aedc95ac649\"", - "list_id": "foo.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/6"}], "http_etag": "\"67c8bdf75d47cf04ae99c96372250666f70e8407\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"478c5bd47f1c5bd648eecef1b47457fcae9b502c\"", + "list_id": "foo.example.com", "member_id": 73, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/73", "user": + "http://localhost:9001/3.0/users/6"}], "http_etag": "\"e6babaa9d2120948c32eac37be8ecc5fa97ec778\"", "start": 0, "total_size": 1}'} headers: content-length: ['485'] @@ -153,10 +153,10 @@ 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": - "\"2d25c04224ab04e6f19857e6c04d37ab2367200e\"", "list_id": "foo.example.com", - "member_id": 40, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/40", "user": "http://localhost:9001/3.0/users/7"}], - "http_etag": "\"7ef4ada38413d2d7d2fd29efea066c137c91326a\"", "start": 0, "total_size": + "\"c71e2c46ed5770511b6fc62d56c05ed2f93dc6d2\"", "list_id": "foo.example.com", + "member_id": 74, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/74", "user": "http://localhost:9001/3.0/users/7"}], + "http_etag": "\"f36dc034fd855c48f223b50c69ea572e89582392\"", "start": 0, "total_size": 1}'} headers: content-length: ['497'] @@ -167,21 +167,6 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/moderator@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": @@ -213,13 +198,28 @@ 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": "\"9ce8a9f54db6e7361d5e72b090bf1aedc95ac649\"", - "list_id": "foo.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/6"}], "http_etag": "\"67c8bdf75d47cf04ae99c96372250666f70e8407\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"478c5bd47f1c5bd648eecef1b47457fcae9b502c\"", + "list_id": "foo.example.com", "member_id": 73, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/73", "user": + "http://localhost:9001/3.0/users/6"}], "http_etag": "\"e6babaa9d2120948c32eac37be8ecc5fa97ec778\"", "start": 0, "total_size": 1}'} headers: content-length: ['485'] @@ -234,10 +234,10 @@ 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": - "\"2d25c04224ab04e6f19857e6c04d37ab2367200e\"", "list_id": "foo.example.com", - "member_id": 40, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/40", "user": "http://localhost:9001/3.0/users/7"}], - "http_etag": "\"7ef4ada38413d2d7d2fd29efea066c137c91326a\"", "start": 0, "total_size": + "\"c71e2c46ed5770511b6fc62d56c05ed2f93dc6d2\"", "list_id": "foo.example.com", + "member_id": 74, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/74", "user": "http://localhost:9001/3.0/users/7"}], + "http_etag": "\"f36dc034fd855c48f223b50c69ea572e89582392\"", "start": 0, "total_size": 1}'} headers: content-length: ['497'] @@ -248,21 +248,6 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/moderator@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": @@ -294,13 +279,28 @@ 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": "\"9ce8a9f54db6e7361d5e72b090bf1aedc95ac649\"", - "list_id": "foo.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/6"}], "http_etag": "\"67c8bdf75d47cf04ae99c96372250666f70e8407\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"478c5bd47f1c5bd648eecef1b47457fcae9b502c\"", + "list_id": "foo.example.com", "member_id": 73, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/73", "user": + "http://localhost:9001/3.0/users/6"}], "http_etag": "\"e6babaa9d2120948c32eac37be8ecc5fa97ec778\"", "start": 0, "total_size": 1}'} headers: content-length: ['485'] @@ -315,10 +315,10 @@ 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": - "\"2d25c04224ab04e6f19857e6c04d37ab2367200e\"", "list_id": "foo.example.com", - "member_id": 40, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/40", "user": "http://localhost:9001/3.0/users/7"}], - "http_etag": "\"7ef4ada38413d2d7d2fd29efea066c137c91326a\"", "start": 0, "total_size": + "\"c71e2c46ed5770511b6fc62d56c05ed2f93dc6d2\"", "list_id": "foo.example.com", + "member_id": 74, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/74", "user": "http://localhost:9001/3.0/users/7"}], + "http_etag": "\"f36dc034fd855c48f223b50c69ea572e89582392\"", "start": 0, "total_size": 1}'} headers: content-length: ['497'] @@ -329,21 +329,6 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/moderator@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": @@ -375,13 +360,28 @@ 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": "\"9ce8a9f54db6e7361d5e72b090bf1aedc95ac649\"", - "list_id": "foo.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/6"}], "http_etag": "\"67c8bdf75d47cf04ae99c96372250666f70e8407\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"478c5bd47f1c5bd648eecef1b47457fcae9b502c\"", + "list_id": "foo.example.com", "member_id": 73, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/73", "user": + "http://localhost:9001/3.0/users/6"}], "http_etag": "\"e6babaa9d2120948c32eac37be8ecc5fa97ec778\"", "start": 0, "total_size": 1}'} headers: content-length: ['485'] @@ -396,10 +396,10 @@ 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": - "\"2d25c04224ab04e6f19857e6c04d37ab2367200e\"", "list_id": "foo.example.com", - "member_id": 40, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/40", "user": "http://localhost:9001/3.0/users/7"}], - "http_etag": "\"7ef4ada38413d2d7d2fd29efea066c137c91326a\"", "start": 0, "total_size": + "\"c71e2c46ed5770511b6fc62d56c05ed2f93dc6d2\"", "list_id": "foo.example.com", + "member_id": 74, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/74", "user": "http://localhost:9001/3.0/users/7"}], + "http_etag": "\"f36dc034fd855c48f223b50c69ea572e89582392\"", "start": 0, "total_size": 1}'} headers: content-length: ['497'] @@ -410,21 +410,6 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/moderator@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": @@ -456,13 +441,28 @@ 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": "\"9ce8a9f54db6e7361d5e72b090bf1aedc95ac649\"", - "list_id": "foo.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/6"}], "http_etag": "\"67c8bdf75d47cf04ae99c96372250666f70e8407\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"478c5bd47f1c5bd648eecef1b47457fcae9b502c\"", + "list_id": "foo.example.com", "member_id": 73, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/73", "user": + "http://localhost:9001/3.0/users/6"}], "http_etag": "\"e6babaa9d2120948c32eac37be8ecc5fa97ec778\"", "start": 0, "total_size": 1}'} headers: content-length: ['485'] @@ -477,10 +477,10 @@ 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": - "\"2d25c04224ab04e6f19857e6c04d37ab2367200e\"", "list_id": "foo.example.com", - "member_id": 40, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/40", "user": "http://localhost:9001/3.0/users/7"}], - "http_etag": "\"7ef4ada38413d2d7d2fd29efea066c137c91326a\"", "start": 0, "total_size": + "\"c71e2c46ed5770511b6fc62d56c05ed2f93dc6d2\"", "list_id": "foo.example.com", + "member_id": 74, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/74", "user": "http://localhost:9001/3.0/users/7"}], + "http_etag": "\"f36dc034fd855c48f223b50c69ea572e89582392\"", "start": 0, "total_size": 1}'} headers: content-length: ['497'] @@ -491,21 +491,6 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/moderator@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": @@ -537,13 +522,28 @@ 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": "\"9ce8a9f54db6e7361d5e72b090bf1aedc95ac649\"", - "list_id": "foo.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/6"}], "http_etag": "\"67c8bdf75d47cf04ae99c96372250666f70e8407\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"478c5bd47f1c5bd648eecef1b47457fcae9b502c\"", + "list_id": "foo.example.com", "member_id": 73, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/73", "user": + "http://localhost:9001/3.0/users/6"}], "http_etag": "\"e6babaa9d2120948c32eac37be8ecc5fa97ec778\"", "start": 0, "total_size": 1}'} headers: content-length: ['485'] @@ -558,10 +558,10 @@ 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": - "\"2d25c04224ab04e6f19857e6c04d37ab2367200e\"", "list_id": "foo.example.com", - "member_id": 40, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/40", "user": "http://localhost:9001/3.0/users/7"}], - "http_etag": "\"7ef4ada38413d2d7d2fd29efea066c137c91326a\"", "start": 0, "total_size": + "\"c71e2c46ed5770511b6fc62d56c05ed2f93dc6d2\"", "list_id": "foo.example.com", + "member_id": 74, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/74", "user": "http://localhost:9001/3.0/users/7"}], + "http_etag": "\"f36dc034fd855c48f223b50c69ea572e89582392\"", "start": 0, "total_size": 1}'} headers: content-length: ['497'] @@ -572,21 +572,6 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/moderator@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": @@ -618,13 +603,28 @@ 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": "\"9ce8a9f54db6e7361d5e72b090bf1aedc95ac649\"", - "list_id": "foo.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/6"}], "http_etag": "\"67c8bdf75d47cf04ae99c96372250666f70e8407\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"478c5bd47f1c5bd648eecef1b47457fcae9b502c\"", + "list_id": "foo.example.com", "member_id": 73, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/73", "user": + "http://localhost:9001/3.0/users/6"}], "http_etag": "\"e6babaa9d2120948c32eac37be8ecc5fa97ec778\"", "start": 0, "total_size": 1}'} headers: content-length: ['485'] @@ -639,10 +639,10 @@ 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": - "\"2d25c04224ab04e6f19857e6c04d37ab2367200e\"", "list_id": "foo.example.com", - "member_id": 40, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/40", "user": "http://localhost:9001/3.0/users/7"}], - "http_etag": "\"7ef4ada38413d2d7d2fd29efea066c137c91326a\"", "start": 0, "total_size": + "\"c71e2c46ed5770511b6fc62d56c05ed2f93dc6d2\"", "list_id": "foo.example.com", + "member_id": 74, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/74", "user": "http://localhost:9001/3.0/users/7"}], + "http_etag": "\"f36dc034fd855c48f223b50c69ea572e89582392\"", "start": 0, "total_size": 1}'} headers: content-length: ['497'] 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 bb2e3c6..94d232b 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 @@ -66,7 +66,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/41'] + location: ['http://localhost:9001/3.0/members/75'] status: {code: 201, message: Created} - request: body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com @@ -79,28 +79,13 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/42'] + location: ['http://localhost:9001/3.0/members/76'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": @@ -131,13 +116,28 @@ 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": "\"7c251deff7c595a16fcabcc4f9316a77be23f27c\"", - "list_id": "foo.example.com", "member_id": 41, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/41", "user": - "http://localhost:9001/3.0/users/6"}], "http_etag": "\"cc8458690f821a0474bc39d22b216f61724592c8\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"8a07c3378200ac9188087ca51ca0c58e19233be3\"", + "list_id": "foo.example.com", "member_id": 75, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/75", "user": + "http://localhost:9001/3.0/users/6"}], "http_etag": "\"a0276262cbf3ff607c063b8ec27670ea3e13532f\"", "start": 0, "total_size": 1}'} headers: content-length: ['485'] @@ -152,10 +152,10 @@ 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": - "\"c046789136095a09808111be9b0f242247f36ac7\"", "list_id": "foo.example.com", - "member_id": 42, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/42", "user": "http://localhost:9001/3.0/users/7"}], - "http_etag": "\"1ee538ac2496097d5925f42e967672c7cf96efcb\"", "start": 0, "total_size": + "\"97ac3fd660a7948315cfc1bb0325b3f4028fe12d\"", "list_id": "foo.example.com", + "member_id": 76, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/76", "user": "http://localhost:9001/3.0/users/7"}], + "http_etag": "\"1adaa52b697f2e8a46626ae3a9e17fc8770dffb3\"", "start": 0, "total_size": 1}'} headers: content-length: ['497'] @@ -195,32 +195,18 @@ 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, "fqdn_listname": "foo@example.com", - "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": - true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": - "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", - "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "foo-request@example.com", "scheme": "http", "send_welcome_message": true, - "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, - "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"97436ece60591c8bf4b4d589f6b8028a5a2964a3\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "foo-owner@example.com", "post_id": 1, "posting_address": + "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Foo] ", + "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1703'] - content-type: [application/json; charset=utf-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-length: ['1730'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -258,13 +244,28 @@ 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": "\"7c251deff7c595a16fcabcc4f9316a77be23f27c\"", - "list_id": "foo.example.com", "member_id": 41, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/41", "user": - "http://localhost:9001/3.0/users/6"}], "http_etag": "\"cc8458690f821a0474bc39d22b216f61724592c8\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"8a07c3378200ac9188087ca51ca0c58e19233be3\"", + "list_id": "foo.example.com", "member_id": 75, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/75", "user": + "http://localhost:9001/3.0/users/6"}], "http_etag": "\"a0276262cbf3ff607c063b8ec27670ea3e13532f\"", "start": 0, "total_size": 1}'} headers: content-length: ['485'] @@ -279,10 +280,10 @@ 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": - "\"c046789136095a09808111be9b0f242247f36ac7\"", "list_id": "foo.example.com", - "member_id": 42, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/42", "user": "http://localhost:9001/3.0/users/7"}], - "http_etag": "\"1ee538ac2496097d5925f42e967672c7cf96efcb\"", "start": 0, "total_size": + "\"97ac3fd660a7948315cfc1bb0325b3f4028fe12d\"", "list_id": "foo.example.com", + "member_id": 76, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/76", "user": "http://localhost:9001/3.0/users/7"}], + "http_etag": "\"1adaa52b697f2e8a46626ae3a9e17fc8770dffb3\"", "start": 0, "total_size": 1}'} headers: content-length: ['497'] @@ -322,17 +323,402 @@ 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, "fqdn_listname": "foo@example.com", - "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": - true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": - "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", - "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "foo-request@example.com", "scheme": "http", "send_welcome_message": true, - "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, - "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"97436ece60591c8bf4b4d589f6b8028a5a2964a3\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "foo-owner@example.com", "post_id": 1, "posting_address": + "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Foo] ", + "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1703'] + content-length: ['1730'] + content-type: [application/json; charset=utf-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/owner@example.com + response: + body: {string: !!python/unicode '{"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}'} + headers: + content-length: ['188'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/6/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": + "\"7efeccdd4edd0bed02cd2141365a115239f83be4\"", "original_email": "owner@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/owner@example.com", + "user": "http://localhost:9001/3.0/users/6"}], "http_etag": "\"a565f7d323e0a6ca5da35f6d965148fe4fe03fbb\"", + "start": 0, "total_size": 1}'} + headers: + 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 + 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": "\"8a07c3378200ac9188087ca51ca0c58e19233be3\"", + "list_id": "foo.example.com", "member_id": 75, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/75", "user": + "http://localhost:9001/3.0/users/6"}], "http_etag": "\"a0276262cbf3ff607c063b8ec27670ea3e13532f\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['485'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com/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": + "\"97ac3fd660a7948315cfc1bb0325b3f4028fe12d\"", "list_id": "foo.example.com", + "member_id": 76, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/76", "user": "http://localhost:9001/3.0/users/7"}], + "http_etag": "\"1adaa52b697f2e8a46626ae3a9e17fc8770dffb3\"", "start": 0, "total_size": + 1}'} + headers: + content-length: ['497'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_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, "fqdn_listname": "foo@example.com", + "goodbye_message_uri": "", "http_etag": "\"97436ece60591c8bf4b4d589f6b8028a5a2964a3\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "foo-owner@example.com", "post_id": 1, "posting_address": + "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Foo] ", + "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} + headers: + content-length: ['1730'] + content-type: [application/json; charset=utf-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/owner@example.com + response: + body: {string: !!python/unicode '{"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}'} + headers: + content-length: ['188'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/6/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": + "\"7efeccdd4edd0bed02cd2141365a115239f83be4\"", "original_email": "owner@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/owner@example.com", + "user": "http://localhost:9001/3.0/users/6"}], "http_etag": "\"a565f7d323e0a6ca5da35f6d965148fe4fe03fbb\"", + "start": 0, "total_size": 1}'} + headers: + 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 + 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": "\"8a07c3378200ac9188087ca51ca0c58e19233be3\"", + "list_id": "foo.example.com", "member_id": 75, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/75", "user": + "http://localhost:9001/3.0/users/6"}], "http_etag": "\"a0276262cbf3ff607c063b8ec27670ea3e13532f\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['485'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com/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": + "\"97ac3fd660a7948315cfc1bb0325b3f4028fe12d\"", "list_id": "foo.example.com", + "member_id": 76, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/76", "user": "http://localhost:9001/3.0/users/7"}], + "http_etag": "\"1adaa52b697f2e8a46626ae3a9e17fc8770dffb3\"", "start": 0, "total_size": + 1}'} + headers: + content-length: ['497'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_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, "fqdn_listname": "foo@example.com", + "goodbye_message_uri": "", "http_etag": "\"97436ece60591c8bf4b4d589f6b8028a5a2964a3\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "foo-owner@example.com", "post_id": 1, "posting_address": + "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Foo] ", + "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} + headers: + content-length: ['1730'] + content-type: [application/json; charset=utf-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/owner@example.com + response: + body: {string: !!python/unicode '{"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}'} + headers: + content-length: ['188'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/6/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": + "\"7efeccdd4edd0bed02cd2141365a115239f83be4\"", "original_email": "owner@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/owner@example.com", + "user": "http://localhost:9001/3.0/users/6"}], "http_etag": "\"a565f7d323e0a6ca5da35f6d965148fe4fe03fbb\"", + "start": 0, "total_size": 1}'} + headers: + 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 + 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": "\"8a07c3378200ac9188087ca51ca0c58e19233be3\"", + "list_id": "foo.example.com", "member_id": 75, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/75", "user": + "http://localhost:9001/3.0/users/6"}], "http_etag": "\"a0276262cbf3ff607c063b8ec27670ea3e13532f\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['485'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com/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": + "\"97ac3fd660a7948315cfc1bb0325b3f4028fe12d\"", "list_id": "foo.example.com", + "member_id": 76, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/76", "user": "http://localhost:9001/3.0/users/7"}], + "http_etag": "\"1adaa52b697f2e8a46626ae3a9e17fc8770dffb3\"", "start": 0, "total_size": + 1}'} + headers: + content-length: ['497'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_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, "fqdn_listname": "foo@example.com", + "goodbye_message_uri": "", "http_etag": "\"97436ece60591c8bf4b4d589f6b8028a5a2964a3\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "foo-owner@example.com", "post_id": 1, "posting_address": + "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Foo] ", + "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} + headers: + content-length: ['1730'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -405,21 +791,6 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": @@ -450,13 +821,28 @@ 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": "\"7c251deff7c595a16fcabcc4f9316a77be23f27c\"", - "list_id": "foo.example.com", "member_id": 41, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/41", "user": - "http://localhost:9001/3.0/users/6"}], "http_etag": "\"cc8458690f821a0474bc39d22b216f61724592c8\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"8a07c3378200ac9188087ca51ca0c58e19233be3\"", + "list_id": "foo.example.com", "member_id": 75, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/75", "user": + "http://localhost:9001/3.0/users/6"}], "http_etag": "\"a0276262cbf3ff607c063b8ec27670ea3e13532f\"", "start": 0, "total_size": 1}'} headers: content-length: ['485'] @@ -471,10 +857,10 @@ 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": - "\"c046789136095a09808111be9b0f242247f36ac7\"", "list_id": "foo.example.com", - "member_id": 42, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/42", "user": "http://localhost:9001/3.0/users/7"}], - "http_etag": "\"1ee538ac2496097d5925f42e967672c7cf96efcb\"", "start": 0, "total_size": + "\"97ac3fd660a7948315cfc1bb0325b3f4028fe12d\"", "list_id": "foo.example.com", + "member_id": 76, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/76", "user": "http://localhost:9001/3.0/users/7"}], + "http_etag": "\"1adaa52b697f2e8a46626ae3a9e17fc8770dffb3\"", "start": 0, "total_size": 1}'} headers: content-length: ['497'] @@ -514,32 +900,18 @@ 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, "fqdn_listname": "foo@example.com", - "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": - true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": - "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", - "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "foo-request@example.com", "scheme": "http", "send_welcome_message": true, - "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, - "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"97436ece60591c8bf4b4d589f6b8028a5a2964a3\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "foo-owner@example.com", "post_id": 1, "posting_address": + "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Foo] ", + "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1703'] - content-type: [application/json; charset=utf-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-length: ['1730'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -577,13 +949,28 @@ 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": "\"7c251deff7c595a16fcabcc4f9316a77be23f27c\"", - "list_id": "foo.example.com", "member_id": 41, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/41", "user": - "http://localhost:9001/3.0/users/6"}], "http_etag": "\"cc8458690f821a0474bc39d22b216f61724592c8\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"8a07c3378200ac9188087ca51ca0c58e19233be3\"", + "list_id": "foo.example.com", "member_id": 75, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/75", "user": + "http://localhost:9001/3.0/users/6"}], "http_etag": "\"a0276262cbf3ff607c063b8ec27670ea3e13532f\"", "start": 0, "total_size": 1}'} headers: content-length: ['485'] @@ -598,10 +985,10 @@ 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": - "\"c046789136095a09808111be9b0f242247f36ac7\"", "list_id": "foo.example.com", - "member_id": 42, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/42", "user": "http://localhost:9001/3.0/users/7"}], - "http_etag": "\"1ee538ac2496097d5925f42e967672c7cf96efcb\"", "start": 0, "total_size": + "\"97ac3fd660a7948315cfc1bb0325b3f4028fe12d\"", "list_id": "foo.example.com", + "member_id": 76, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/76", "user": "http://localhost:9001/3.0/users/7"}], + "http_etag": "\"1adaa52b697f2e8a46626ae3a9e17fc8770dffb3\"", "start": 0, "total_size": 1}'} headers: content-length: ['497'] @@ -641,398 +1028,18 @@ 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, "fqdn_listname": "foo@example.com", - "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": - true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": - "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", - "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "foo-request@example.com", "scheme": "http", "send_welcome_message": true, - "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, - "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"97436ece60591c8bf4b4d589f6b8028a5a2964a3\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "foo-owner@example.com", "post_id": 1, "posting_address": + "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Foo] ", + "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1703'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/owner@example.com - response: - body: {string: !!python/unicode '{"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}'} - headers: - content-length: ['188'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/6/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"7efeccdd4edd0bed02cd2141365a115239f83be4\"", "original_email": "owner@example.com", - "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/owner@example.com", - "user": "http://localhost:9001/3.0/users/6"}], "http_etag": "\"a565f7d323e0a6ca5da35f6d965148fe4fe03fbb\"", - "start": 0, "total_size": 1}'} - headers: - 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 - 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": "\"7c251deff7c595a16fcabcc4f9316a77be23f27c\"", - "list_id": "foo.example.com", "member_id": 41, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/41", "user": - "http://localhost:9001/3.0/users/6"}], "http_etag": "\"cc8458690f821a0474bc39d22b216f61724592c8\"", - "start": 0, "total_size": 1}'} - headers: - content-length: ['485'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/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": - "\"c046789136095a09808111be9b0f242247f36ac7\"", "list_id": "foo.example.com", - "member_id": 42, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/42", "user": "http://localhost:9001/3.0/users/7"}], - "http_etag": "\"1ee538ac2496097d5925f42e967672c7cf96efcb\"", "start": 0, "total_size": - 1}'} - headers: - content-length: ['497'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo@example.com/config - response: - body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": - true, "admin_notify_mchanges": false, "administrivia": true, "advertised": - true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": - "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": - "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", - "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": - "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": - false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_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, "fqdn_listname": "foo@example.com", - "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": - true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": - "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", - "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "foo-request@example.com", "scheme": "http", "send_welcome_message": true, - "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, - "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} - headers: - content-length: ['1703'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/owner@example.com - response: - body: {string: !!python/unicode '{"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}'} - headers: - content-length: ['188'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/6/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"7efeccdd4edd0bed02cd2141365a115239f83be4\"", "original_email": "owner@example.com", - "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/owner@example.com", - "user": "http://localhost:9001/3.0/users/6"}], "http_etag": "\"a565f7d323e0a6ca5da35f6d965148fe4fe03fbb\"", - "start": 0, "total_size": 1}'} - headers: - 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 - 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": "\"7c251deff7c595a16fcabcc4f9316a77be23f27c\"", - "list_id": "foo.example.com", "member_id": 41, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/41", "user": - "http://localhost:9001/3.0/users/6"}], "http_etag": "\"cc8458690f821a0474bc39d22b216f61724592c8\"", - "start": 0, "total_size": 1}'} - headers: - content-length: ['485'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/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": - "\"c046789136095a09808111be9b0f242247f36ac7\"", "list_id": "foo.example.com", - "member_id": 42, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/42", "user": "http://localhost:9001/3.0/users/7"}], - "http_etag": "\"1ee538ac2496097d5925f42e967672c7cf96efcb\"", "start": 0, "total_size": - 1}'} - headers: - content-length: ['497'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo@example.com/config - response: - body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": - true, "admin_notify_mchanges": false, "administrivia": true, "advertised": - true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": - "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": - "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", - "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": - "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": - false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_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, "fqdn_listname": "foo@example.com", - "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": - true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": - "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", - "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "foo-request@example.com", "scheme": "http", "send_welcome_message": true, - "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, - "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} - headers: - content-length: ['1703'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/owner@example.com - response: - body: {string: !!python/unicode '{"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}'} - headers: - content-length: ['188'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/6/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"7efeccdd4edd0bed02cd2141365a115239f83be4\"", "original_email": "owner@example.com", - "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/owner@example.com", - "user": "http://localhost:9001/3.0/users/6"}], "http_etag": "\"a565f7d323e0a6ca5da35f6d965148fe4fe03fbb\"", - "start": 0, "total_size": 1}'} - headers: - 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 - 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": "\"7c251deff7c595a16fcabcc4f9316a77be23f27c\"", - "list_id": "foo.example.com", "member_id": 41, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/41", "user": - "http://localhost:9001/3.0/users/6"}], "http_etag": "\"cc8458690f821a0474bc39d22b216f61724592c8\"", - "start": 0, "total_size": 1}'} - headers: - content-length: ['485'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/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": - "\"c046789136095a09808111be9b0f242247f36ac7\"", "list_id": "foo.example.com", - "member_id": 42, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/42", "user": "http://localhost:9001/3.0/users/7"}], - "http_etag": "\"1ee538ac2496097d5925f42e967672c7cf96efcb\"", "start": 0, "total_size": - 1}'} - headers: - content-length: ['497'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo@example.com/config - response: - body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": - true, "admin_notify_mchanges": false, "administrivia": true, "advertised": - true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": - "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": - "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", - "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": - "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": - false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_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, "fqdn_listname": "foo@example.com", - "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": - true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": - "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", - "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "foo-request@example.com", "scheme": "http", "send_welcome_message": true, - "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, - "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} - headers: - content-length: ['1703'] + content-length: ['1730'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: 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 6b8e3f5..a594bd7 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 @@ -66,7 +66,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/43'] + location: ['http://localhost:9001/3.0/members/77'] status: {code: 201, message: Created} - request: body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com @@ -79,21 +79,20 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/44'] + location: ['http://localhost:9001/3.0/members/78'] 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 + uri: http://localhost:9001/3.0/users/su@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}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"bb1c2e6094a96b17e2d5dbf487291f7667f69f75\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/3", "user_id": 3}'} headers: - content-length: ['294'] + content-length: ['188'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -101,31 +100,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo@example.com/config + uri: http://localhost:9001/3.0/users/3/addresses response: - body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": - true, "admin_notify_mchanges": false, "administrivia": true, "advertised": - true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": - "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": - "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", - "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": - "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": - false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_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, "fqdn_listname": "foo@example.com", - "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": - true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": - "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", - "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "foo-request@example.com", "scheme": "http", "send_welcome_message": true, - "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, - "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag": + "\"91c297417f4c33cf707148d031e79b6cb316f158\"", "original_email": "su@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", + "user": "http://localhost:9001/3.0/users/3"}], "http_etag": "\"e9a7c409726b93f93aaf643fce49558cf27237e1\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['1703'] + content-length: ['381'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -162,17 +145,330 @@ 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, "fqdn_listname": "foo@example.com", - "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": - true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": - "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", - "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "foo-request@example.com", "scheme": "http", "send_welcome_message": true, - "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, - "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"97436ece60591c8bf4b4d589f6b8028a5a2964a3\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "foo-owner@example.com", "post_id": 1, "posting_address": + "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Foo] ", + "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1703'] + content-length: ['1730'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/su@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"bb1c2e6094a96b17e2d5dbf487291f7667f69f75\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/3", "user_id": 3}'} + headers: + content-length: ['188'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/3/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag": + "\"91c297417f4c33cf707148d031e79b6cb316f158\"", "original_email": "su@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", + "user": "http://localhost:9001/3.0/users/3"}], "http_etag": "\"e9a7c409726b93f93aaf643fce49558cf27237e1\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['381'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_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, "fqdn_listname": "foo@example.com", + "goodbye_message_uri": "", "http_etag": "\"97436ece60591c8bf4b4d589f6b8028a5a2964a3\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "foo-owner@example.com", "post_id": 1, "posting_address": + "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Foo] ", + "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} + headers: + content-length: ['1730'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/su@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"bb1c2e6094a96b17e2d5dbf487291f7667f69f75\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/3", "user_id": 3}'} + headers: + content-length: ['188'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/3/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag": + "\"91c297417f4c33cf707148d031e79b6cb316f158\"", "original_email": "su@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", + "user": "http://localhost:9001/3.0/users/3"}], "http_etag": "\"e9a7c409726b93f93aaf643fce49558cf27237e1\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['381'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_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, "fqdn_listname": "foo@example.com", + "goodbye_message_uri": "", "http_etag": "\"97436ece60591c8bf4b4d589f6b8028a5a2964a3\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "foo-owner@example.com", "post_id": 1, "posting_address": + "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Foo] ", + "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} + headers: + content-length: ['1730'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/su@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"bb1c2e6094a96b17e2d5dbf487291f7667f69f75\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/3", "user_id": 3}'} + headers: + content-length: ['188'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/3/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag": + "\"91c297417f4c33cf707148d031e79b6cb316f158\"", "original_email": "su@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", + "user": "http://localhost:9001/3.0/users/3"}], "http_etag": "\"e9a7c409726b93f93aaf643fce49558cf27237e1\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['381'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_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, "fqdn_listname": "foo@example.com", + "goodbye_message_uri": "", "http_etag": "\"97436ece60591c8bf4b4d589f6b8028a5a2964a3\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "foo-owner@example.com", "post_id": 1, "posting_address": + "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Foo] ", + "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} + headers: + content-length: ['1730'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/su@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"bb1c2e6094a96b17e2d5dbf487291f7667f69f75\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/3", "user_id": 3}'} + headers: + content-length: ['188'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/3/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag": + "\"91c297417f4c33cf707148d031e79b6cb316f158\"", "original_email": "su@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", + "user": "http://localhost:9001/3.0/users/3"}], "http_etag": "\"e9a7c409726b93f93aaf643fce49558cf27237e1\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['381'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_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, "fqdn_listname": "foo@example.com", + "goodbye_message_uri": "", "http_etag": "\"97436ece60591c8bf4b4d589f6b8028a5a2964a3\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "foo-owner@example.com", "post_id": 1, "posting_address": + "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Foo] ", + "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} + headers: + content-length: ['1730'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -245,14 +541,13 @@ 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/users/su@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}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"bb1c2e6094a96b17e2d5dbf487291f7667f69f75\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/3", "user_id": 3}'} headers: - content-length: ['294'] + content-length: ['188'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -260,31 +555,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo@example.com/config + uri: http://localhost:9001/3.0/users/3/addresses response: - body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": - true, "admin_notify_mchanges": false, "administrivia": true, "advertised": - true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": - "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": - "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", - "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": - "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": - false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_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, "fqdn_listname": "foo@example.com", - "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": - true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": - "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", - "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "foo-request@example.com", "scheme": "http", "send_welcome_message": true, - "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, - "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag": + "\"91c297417f4c33cf707148d031e79b6cb316f158\"", "original_email": "su@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", + "user": "http://localhost:9001/3.0/users/3"}], "http_etag": "\"e9a7c409726b93f93aaf643fce49558cf27237e1\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['1703'] + content-length: ['381'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -321,17 +600,48 @@ 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, "fqdn_listname": "foo@example.com", - "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": - true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": - "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", - "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "foo-request@example.com", "scheme": "http", "send_welcome_message": true, - "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, - "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"97436ece60591c8bf4b4d589f6b8028a5a2964a3\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "foo-owner@example.com", "post_id": 1, "posting_address": + "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Foo] ", + "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1703'] + content-length: ['1730'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/su@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"bb1c2e6094a96b17e2d5dbf487291f7667f69f75\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/3", "user_id": 3}'} + headers: + content-length: ['188'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/3/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag": + "\"91c297417f4c33cf707148d031e79b6cb316f158\"", "original_email": "su@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", + "user": "http://localhost:9001/3.0/users/3"}], "http_etag": "\"e9a7c409726b93f93aaf643fce49558cf27237e1\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['381'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -368,111 +678,18 @@ 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, "fqdn_listname": "foo@example.com", - "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": - true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": - "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", - "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "foo-request@example.com", "scheme": "http", "send_welcome_message": true, - "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, - "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"97436ece60591c8bf4b4d589f6b8028a5a2964a3\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "foo-owner@example.com", "post_id": 1, "posting_address": + "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Foo] ", + "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1703'] - content-type: [application/json; charset=utf-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_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, "fqdn_listname": "foo@example.com", - "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": - true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": - "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", - "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "foo-request@example.com", "scheme": "http", "send_welcome_message": true, - "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, - "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} - headers: - content-length: ['1703'] - content-type: [application/json; charset=utf-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_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, "fqdn_listname": "foo@example.com", - "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": - true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": - "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", - "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "foo-request@example.com", "scheme": "http", "send_welcome_message": true, - "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, - "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} - headers: - content-length: ['1703'] + content-length: ['1730'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: 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 07a88d5..70269ef 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 @@ -66,7 +66,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/45'] + location: ['http://localhost:9001/3.0/members/79'] status: {code: 201, message: Created} - request: body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com @@ -79,13 +79,25 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/46'] + location: ['http://localhost:9001/3.0/members/80'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/test@example.com + response: + body: {string: !!python/unicode 404 Not Found} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -101,25 +113,13 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/test@example.com - response: - body: {string: !!python/unicode 404 Not Found} - headers: - content-length: ['13'] - content-type: [application/json; charset=utf-8] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"9e6d34ac0a971fc5529eaa02a4d464c07b65afe6\"", - "list_id": "foo.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/6"}], "http_etag": "\"4e915de8474a6b546bd2cb507bf7dff09302956a\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"0cba98958250da264a0b8614b60291a14f01cf5d\"", + "list_id": "foo.example.com", "member_id": 79, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/79", "user": + "http://localhost:9001/3.0/users/6"}], "http_etag": "\"c49d6d1744c0a487a2baeedeec361dc6cf6081f7\"", "start": 0, "total_size": 1}'} headers: content-length: ['485'] @@ -134,10 +134,10 @@ 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": - "\"93d7a476afec1054baa4b1def90c55ea7f729a81\"", "list_id": "foo.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/7"}], - "http_etag": "\"e22b3988bf1ca17a929ffbe76045c036ac6dace0\"", "start": 0, "total_size": + "\"9e8f77709462430a22180a6eb4a4a8a2bf713df3\"", "list_id": "foo.example.com", + "member_id": 80, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/80", "user": "http://localhost:9001/3.0/users/7"}], + "http_etag": "\"564580a36ae5e0650f366c3ef0baf1cb6233e5ec\"", "start": 0, "total_size": 1}'} headers: content-length: ['497'] @@ -148,6 +148,18 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/test@example.com + response: + body: {string: !!python/unicode 404 Not Found} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -163,25 +175,13 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/test@example.com - response: - body: {string: !!python/unicode 404 Not Found} - headers: - content-length: ['13'] - content-type: [application/json; charset=utf-8] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"9e6d34ac0a971fc5529eaa02a4d464c07b65afe6\"", - "list_id": "foo.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/6"}], "http_etag": "\"4e915de8474a6b546bd2cb507bf7dff09302956a\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"0cba98958250da264a0b8614b60291a14f01cf5d\"", + "list_id": "foo.example.com", "member_id": 79, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/79", "user": + "http://localhost:9001/3.0/users/6"}], "http_etag": "\"c49d6d1744c0a487a2baeedeec361dc6cf6081f7\"", "start": 0, "total_size": 1}'} headers: content-length: ['485'] @@ -196,10 +196,10 @@ 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": - "\"93d7a476afec1054baa4b1def90c55ea7f729a81\"", "list_id": "foo.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/7"}], - "http_etag": "\"e22b3988bf1ca17a929ffbe76045c036ac6dace0\"", "start": 0, "total_size": + "\"9e8f77709462430a22180a6eb4a4a8a2bf713df3\"", "list_id": "foo.example.com", + "member_id": 80, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/80", "user": "http://localhost:9001/3.0/users/7"}], + "http_etag": "\"564580a36ae5e0650f366c3ef0baf1cb6233e5ec\"", "start": 0, "total_size": 1}'} headers: content-length: ['497'] @@ -210,6 +210,18 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/test@example.com + response: + body: {string: !!python/unicode 404 Not Found} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -225,25 +237,13 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/test@example.com - response: - body: {string: !!python/unicode 404 Not Found} - headers: - content-length: ['13'] - content-type: [application/json; charset=utf-8] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"9e6d34ac0a971fc5529eaa02a4d464c07b65afe6\"", - "list_id": "foo.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/6"}], "http_etag": "\"4e915de8474a6b546bd2cb507bf7dff09302956a\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"0cba98958250da264a0b8614b60291a14f01cf5d\"", + "list_id": "foo.example.com", "member_id": 79, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/79", "user": + "http://localhost:9001/3.0/users/6"}], "http_etag": "\"c49d6d1744c0a487a2baeedeec361dc6cf6081f7\"", "start": 0, "total_size": 1}'} headers: content-length: ['485'] @@ -258,10 +258,10 @@ 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": - "\"93d7a476afec1054baa4b1def90c55ea7f729a81\"", "list_id": "foo.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/7"}], - "http_etag": "\"e22b3988bf1ca17a929ffbe76045c036ac6dace0\"", "start": 0, "total_size": + "\"9e8f77709462430a22180a6eb4a4a8a2bf713df3\"", "list_id": "foo.example.com", + "member_id": 80, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/80", "user": "http://localhost:9001/3.0/users/7"}], + "http_etag": "\"564580a36ae5e0650f366c3ef0baf1cb6233e5ec\"", "start": 0, "total_size": 1}'} headers: content-length: ['497'] @@ -272,6 +272,18 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/test@example.com + response: + body: {string: !!python/unicode 404 Not Found} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -287,25 +299,13 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/test@example.com - response: - body: {string: !!python/unicode 404 Not Found} - headers: - content-length: ['13'] - content-type: [application/json; charset=utf-8] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"9e6d34ac0a971fc5529eaa02a4d464c07b65afe6\"", - "list_id": "foo.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/6"}], "http_etag": "\"4e915de8474a6b546bd2cb507bf7dff09302956a\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"0cba98958250da264a0b8614b60291a14f01cf5d\"", + "list_id": "foo.example.com", "member_id": 79, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/79", "user": + "http://localhost:9001/3.0/users/6"}], "http_etag": "\"c49d6d1744c0a487a2baeedeec361dc6cf6081f7\"", "start": 0, "total_size": 1}'} headers: content-length: ['485'] @@ -320,10 +320,10 @@ 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": - "\"93d7a476afec1054baa4b1def90c55ea7f729a81\"", "list_id": "foo.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/7"}], - "http_etag": "\"e22b3988bf1ca17a929ffbe76045c036ac6dace0\"", "start": 0, "total_size": + "\"9e8f77709462430a22180a6eb4a4a8a2bf713df3\"", "list_id": "foo.example.com", + "member_id": 80, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/80", "user": "http://localhost:9001/3.0/users/7"}], + "http_etag": "\"564580a36ae5e0650f366c3ef0baf1cb6233e5ec\"", "start": 0, "total_size": 1}'} headers: content-length: ['497'] @@ -334,6 +334,18 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/test@example.com + response: + body: {string: !!python/unicode 404 Not Found} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -349,25 +361,13 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/test@example.com - response: - body: {string: !!python/unicode 404 Not Found} - headers: - content-length: ['13'] - content-type: [application/json; charset=utf-8] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"9e6d34ac0a971fc5529eaa02a4d464c07b65afe6\"", - "list_id": "foo.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/6"}], "http_etag": "\"4e915de8474a6b546bd2cb507bf7dff09302956a\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"0cba98958250da264a0b8614b60291a14f01cf5d\"", + "list_id": "foo.example.com", "member_id": 79, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/79", "user": + "http://localhost:9001/3.0/users/6"}], "http_etag": "\"c49d6d1744c0a487a2baeedeec361dc6cf6081f7\"", "start": 0, "total_size": 1}'} headers: content-length: ['485'] @@ -382,10 +382,10 @@ 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": - "\"93d7a476afec1054baa4b1def90c55ea7f729a81\"", "list_id": "foo.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/7"}], - "http_etag": "\"e22b3988bf1ca17a929ffbe76045c036ac6dace0\"", "start": 0, "total_size": + "\"9e8f77709462430a22180a6eb4a4a8a2bf713df3\"", "list_id": "foo.example.com", + "member_id": 80, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/80", "user": "http://localhost:9001/3.0/users/7"}], + "http_etag": "\"564580a36ae5e0650f366c3ef0baf1cb6233e5ec\"", "start": 0, "total_size": 1}'} headers: content-length: ['497'] @@ -396,6 +396,18 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/test@example.com + response: + body: {string: !!python/unicode 404 Not Found} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -411,25 +423,13 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/test@example.com - response: - body: {string: !!python/unicode 404 Not Found} - headers: - content-length: ['13'] - content-type: [application/json; charset=utf-8] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"9e6d34ac0a971fc5529eaa02a4d464c07b65afe6\"", - "list_id": "foo.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/6"}], "http_etag": "\"4e915de8474a6b546bd2cb507bf7dff09302956a\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"0cba98958250da264a0b8614b60291a14f01cf5d\"", + "list_id": "foo.example.com", "member_id": 79, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/79", "user": + "http://localhost:9001/3.0/users/6"}], "http_etag": "\"c49d6d1744c0a487a2baeedeec361dc6cf6081f7\"", "start": 0, "total_size": 1}'} headers: content-length: ['485'] @@ -444,10 +444,10 @@ 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": - "\"93d7a476afec1054baa4b1def90c55ea7f729a81\"", "list_id": "foo.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/7"}], - "http_etag": "\"e22b3988bf1ca17a929ffbe76045c036ac6dace0\"", "start": 0, "total_size": + "\"9e8f77709462430a22180a6eb4a4a8a2bf713df3\"", "list_id": "foo.example.com", + "member_id": 80, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/80", "user": "http://localhost:9001/3.0/users/7"}], + "http_etag": "\"564580a36ae5e0650f366c3ef0baf1cb6233e5ec\"", "start": 0, "total_size": 1}'} headers: content-length: ['497'] @@ -458,6 +458,18 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/test@example.com + response: + body: {string: !!python/unicode 404 Not Found} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -473,25 +485,13 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/test@example.com - response: - body: {string: !!python/unicode 404 Not Found} - headers: - content-length: ['13'] - content-type: [application/json; charset=utf-8] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"9e6d34ac0a971fc5529eaa02a4d464c07b65afe6\"", - "list_id": "foo.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/6"}], "http_etag": "\"4e915de8474a6b546bd2cb507bf7dff09302956a\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"0cba98958250da264a0b8614b60291a14f01cf5d\"", + "list_id": "foo.example.com", "member_id": 79, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/79", "user": + "http://localhost:9001/3.0/users/6"}], "http_etag": "\"c49d6d1744c0a487a2baeedeec361dc6cf6081f7\"", "start": 0, "total_size": 1}'} headers: content-length: ['485'] @@ -506,10 +506,10 @@ 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": - "\"93d7a476afec1054baa4b1def90c55ea7f729a81\"", "list_id": "foo.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/7"}], - "http_etag": "\"e22b3988bf1ca17a929ffbe76045c036ac6dace0\"", "start": 0, "total_size": + "\"9e8f77709462430a22180a6eb4a4a8a2bf713df3\"", "list_id": "foo.example.com", + "member_id": 80, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/80", "user": "http://localhost:9001/3.0/users/7"}], + "http_etag": "\"564580a36ae5e0650f366c3ef0baf1cb6233e5ec\"", "start": 0, "total_size": 1}'} headers: content-length: ['497'] 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 026cf96..3011c9b 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 @@ -66,7 +66,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/47'] + location: ['http://localhost:9001/3.0/members/81'] status: {code: 201, message: Created} - request: body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com @@ -79,7 +79,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/48'] + location: ['http://localhost:9001/3.0/members/82'] status: {code: 201, message: Created} - request: body: null 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 7d6b4f5..14c7336 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 @@ -66,28 +66,13 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/50'] + location: ['http://localhost:9001/3.0/members/84'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo@example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": @@ -118,13 +103,28 @@ 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/test@example.com", - "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"c3040ef1972a9f9cb4f5089badd7716c35aea244\"", - "list_id": "foo.example.com", "member_id": 50, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/50", "user": - "http://localhost:9001/3.0/users/17"}], "http_etag": "\"1adae2546c102d351130b593e93e432ee83f8e05\"", + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"94c2138a69c3ca4cd854383d25656312e5018629\"", + "list_id": "foo.example.com", "member_id": 84, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/84", "user": + "http://localhost:9001/3.0/users/17"}], "http_etag": "\"8456d88e785528dee669a598709c3b6825bb64cf\"", "start": 0, "total_size": 1}'} headers: content-length: ['484'] @@ -174,17 +174,18 @@ 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, "fqdn_listname": "foo@example.com", - "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": - true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": - "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", - "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "foo-request@example.com", "scheme": "http", "send_welcome_message": true, - "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, - "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"97436ece60591c8bf4b4d589f6b8028a5a2964a3\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "foo-owner@example.com", "post_id": 1, "posting_address": + "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Foo] ", + "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1703'] + content-length: ['1730'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -223,8 +224,8 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"096b4e1d622adb917fc67d8e2399eb47a3c3c7fc\"", "is_server_owner": - false, "password": "$6$rounds=592887$69rSeDgmqmAW10Vs$azHeniF3O0FsBt3EGPpAP4LCPfoXyi/5jEx2O44da5..edgP6CzRNawacG0Eg39/O/xl3.Os81nrVZY6Y1rRY1", + "http_etag": "\"f0b94bf2edd58e88d678043b4b49362ca377722e\"", "is_server_owner": + false, "password": "$6$rounds=690702$ldltgxeeAosAEu84$ypRhGVnPjh7q/JCzASdnPfc9C2lytW2mFFbTOfncE93GP9pETx6Z.Jra2.ERfCF.v/bueX6J6vvU8rWR9sCDk/", "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", @@ -243,12 +244,12 @@ false, "self_link": "http://localhost:9001/3.0/users/8", "user_id": 8}, {"created_on": "2005-08-01T07:49:23", "display_name": "None", "http_etag": "\"59a05d273f9b6592645e3346c27b5d30f85b1a3a\"", "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/9", - "user_id": 9}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"32ac533b28f1f4dbb2db1965e52ffc09401c2922\"", - "is_server_owner": false, "password": "$6$rounds=655207$gurVzqnfnroSfG3y$f/ynfn3brIvsu44VaG2dINkpY9vSMAZQ4fxAWLfieKaJs2EWtTSkjVyz3JNeYxTtQxi3YCD/0fkR0wAPdqMNf1", + "user_id": 9}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"df1da5b04076c5742af3a45b43556e1e65edf5b5\"", + "is_server_owner": false, "password": "$6$rounds=594149$iGGXb1VEgzLDhh4x$.LV0R92nkWZ4wJwno0HGVPpwAQARAb21jlEJSNG/WySi6rGJySJBAx5Iazjg993wAZ8TVrKOWisE8ecPRrvXL/", "self_link": "http://localhost:9001/3.0/users/15", "user_id": 15}, {"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}], "http_etag": "\"119b0ff47e8242d26245b7d3d6b4889d5b7ca4a3\"", + "user_id": 17}], "http_etag": "\"b5eec0aa09436f1d56c90b7118d81cb9143db2e8\"", "start": 0, "total_size": 11}'} headers: content-length: ['2518'] 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 9756a04..dd70cf0 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 @@ -45,36 +45,6 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo@example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo@example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/testadmin@example.com response: body: {string: !!python/unicode 404 Not Found} @@ -87,6 +57,21 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -139,17 +124,18 @@ 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, "fqdn_listname": "foo@example.com", - "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": - true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": - "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", - "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "foo-request@example.com", "scheme": "http", "send_welcome_message": true, - "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, - "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"97436ece60591c8bf4b4d589f6b8028a5a2964a3\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "foo-owner@example.com", "post_id": 1, "posting_address": + "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Foo] ", + "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1703'] + content-length: ['1730'] 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_metrics_not_displayed_to_moderator.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_not_displayed_to_moderator.yaml index db3a8db..d3f21ae 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 @@ -66,28 +66,13 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/51'] + location: ['http://localhost:9001/3.0/members/85'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo@example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": @@ -118,6 +103,21 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -134,10 +134,10 @@ uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/test@example.com", - "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"46462f44f2ad403b0ea4bec5681b16955fd1c59a\"", - "list_id": "foo.example.com", "member_id": 51, "moderation_action": "accept", - "role": "moderator", "self_link": "http://localhost:9001/3.0/members/51", - "user": "http://localhost:9001/3.0/users/18"}], "http_etag": "\"0b20757d2d243d52e546b9632002cbabdc733be9\"", + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"642646e754f74dbd062a4e23fe860e6e20529826\"", + "list_id": "foo.example.com", "member_id": 85, "moderation_action": "accept", + "role": "moderator", "self_link": "http://localhost:9001/3.0/members/85", + "user": "http://localhost:9001/3.0/users/18"}], "http_etag": "\"7f01a35c78753b97fcb5c44d01755b4fc9659f11\"", "start": 0, "total_size": 1}'} headers: content-length: ['488'] @@ -174,17 +174,18 @@ 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, "fqdn_listname": "foo@example.com", - "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": - true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": - "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", - "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "foo-request@example.com", "scheme": "http", "send_welcome_message": true, - "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, - "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"97436ece60591c8bf4b4d589f6b8028a5a2964a3\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "foo-owner@example.com", "post_id": 1, "posting_address": + "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Foo] ", + "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1703'] + content-length: ['1730'] 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_is_admin_secondary_moderator.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_is_admin_secondary_moderator.yaml index ef2d138..8f3126d 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 @@ -103,33 +103,18 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/52'] + location: ['http://localhost:9001/3.0/members/86'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo@example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"63083903fff27c9a493c28d16310ef04ec8ebab8\"", "is_server_owner": false, - "password": "$6$rounds=659153$.lasEshCfX90DLjS$eiOi64oafm3FxzXAB/cKLbs2ySbxM5yFI.eZxQPi9UCnMLFzEU.dLA3PoQ.uPq/Vfj8c/ZD7wNpKsQE3hBAQs0", + "\"00c4a5351ec250b939a8ca62548e24ad07eb9525\"", "is_server_owner": false, + "password": "$6$rounds=715641$InbErd/F/iQ/fr7X$qxzR5wYx3NGuC.BItffVt7D6SeDZAZm2C143tPDfCWHmrOXPtcoC70fOt09a3F/AWihTujdY5CaP3nmv3kKuT.", "self_link": "http://localhost:9001/3.0/users/19", "user_id": 19}'} headers: content-length: ['326'] @@ -160,6 +145,21 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -177,10 +177,10 @@ response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/anotheremail@example.com", "delivery_mode": "regular", "email": "anotheremail@example.com", "http_etag": - "\"ff8acdb38c20bd95b7e637f4c33e12c2cc5793e6\"", "list_id": "foo.example.com", - "member_id": 52, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/52", "user": "http://localhost:9001/3.0/users/19"}], - "http_etag": "\"6ebd33e0f460cdcb74e742ee5367e8cf8b39ca13\"", "start": 0, "total_size": + "\"32eee5c1d6673a44171c5f820c01e91ff0d84e6f\"", "list_id": "foo.example.com", + "member_id": 86, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/86", "user": "http://localhost:9001/3.0/users/19"}], + "http_etag": "\"5139cc00d1b6e20a26bc394d93676ddcb70da453\"", "start": 0, "total_size": 1}'} headers: content-length: ['504'] @@ -229,17 +229,18 @@ 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, "fqdn_listname": "foo@example.com", - "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": - true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": - "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", - "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "foo-request@example.com", "scheme": "http", "send_welcome_message": true, - "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, - "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"97436ece60591c8bf4b4d589f6b8028a5a2964a3\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "foo-owner@example.com", "post_id": 1, "posting_address": + "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Foo] ", + "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1703'] + content-length: ['1730'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -278,10 +279,10 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"63083903fff27c9a493c28d16310ef04ec8ebab8\"", "is_server_owner": - false, "password": "$6$rounds=659153$.lasEshCfX90DLjS$eiOi64oafm3FxzXAB/cKLbs2ySbxM5yFI.eZxQPi9UCnMLFzEU.dLA3PoQ.uPq/Vfj8c/ZD7wNpKsQE3hBAQs0", + "http_etag": "\"00c4a5351ec250b939a8ca62548e24ad07eb9525\"", "is_server_owner": + false, "password": "$6$rounds=715641$InbErd/F/iQ/fr7X$qxzR5wYx3NGuC.BItffVt7D6SeDZAZm2C143tPDfCWHmrOXPtcoC70fOt09a3F/AWihTujdY5CaP3nmv3kKuT.", "self_link": "http://localhost:9001/3.0/users/19", "user_id": 19}], "http_etag": - "\"6627fd5291f7f8eee0eb2a8118c6aad0c7aec852\"", "start": 0, "total_size": + "\"68a21dcfda24442856a7abc2e6aabd1a62408a5c\"", "start": 0, "total_size": 1}'} headers: content-length: ['431'] 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 c35d41d..c52455a 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 @@ -103,33 +103,18 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/53'] + location: ['http://localhost:9001/3.0/members/87'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo@example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"46062f7f86ff4b21e723303223dc7bca9b2dfa92\"", "is_server_owner": false, - "password": "$6$rounds=649374$cvz1ILcoxjjjpiLC$xjWOvwQnvYaHK/AOF5DTbnTTgaJEs0qZWAYjRBcY/gyHh7yiFnl/SIoZrpGh0B6jx6rgiJnOOKxg8jkgBpR3S0", + "\"c02d17f3007e572a007943d53454ec0e599d8e67\"", "is_server_owner": false, + "password": "$6$rounds=641878$n6gaVnE7KKPaNxm2$ZMG73lmBTxTfNL6ArXMcReH4oOx1Zf9676JeA5FLaYLwUmF8d1Ou/ebPaC4ELlVGRboyan3Th6Tf/eirAJz8q.", "self_link": "http://localhost:9001/3.0/users/20", "user_id": 20}'} headers: content-length: ['326'] @@ -160,14 +145,29 @@ 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/anotheremail@example.com", "delivery_mode": "regular", "email": "anotheremail@example.com", "http_etag": - "\"4e6508609fe248cf0ebed9074226a0a7806c61f8\"", "list_id": "foo.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/20"}], - "http_etag": "\"f24449cf761ca2351bef7bad1ebfeace24d60ecc\"", "start": 0, "total_size": + "\"b45b4c48f726e05d2100037b52eb9daded1fdf90\"", "list_id": "foo.example.com", + "member_id": 87, "moderation_action": "accept", "role": "owner", "self_link": + "http://localhost:9001/3.0/members/87", "user": "http://localhost:9001/3.0/users/20"}], + "http_etag": "\"31dc73505f6f47b70089c2c69ba970e85589e606\"", "start": 0, "total_size": 1}'} headers: content-length: ['500'] @@ -229,17 +229,18 @@ 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, "fqdn_listname": "foo@example.com", - "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": - true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": - "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", - "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "foo-request@example.com", "scheme": "http", "send_welcome_message": true, - "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, - "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"97436ece60591c8bf4b4d589f6b8028a5a2964a3\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "foo-owner@example.com", "post_id": 1, "posting_address": + "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Foo] ", + "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1703'] + content-length: ['1730'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -278,10 +279,10 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"46062f7f86ff4b21e723303223dc7bca9b2dfa92\"", "is_server_owner": - false, "password": "$6$rounds=649374$cvz1ILcoxjjjpiLC$xjWOvwQnvYaHK/AOF5DTbnTTgaJEs0qZWAYjRBcY/gyHh7yiFnl/SIoZrpGh0B6jx6rgiJnOOKxg8jkgBpR3S0", + "http_etag": "\"c02d17f3007e572a007943d53454ec0e599d8e67\"", "is_server_owner": + false, "password": "$6$rounds=641878$n6gaVnE7KKPaNxm2$ZMG73lmBTxTfNL6ArXMcReH4oOx1Zf9676JeA5FLaYLwUmF8d1Ou/ebPaC4ELlVGRboyan3Th6Tf/eirAJz8q.", "self_link": "http://localhost:9001/3.0/users/20", "user_id": 20}], "http_etag": - "\"2f267884e1352b28d86d47142b6bec7b45da9284\"", "start": 0, "total_size": + "\"815fc0b39e1bcf8e743e404a5bf80b9e0af6c724\"", "start": 0, "total_size": 1}'} headers: content-length: ['431'] 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 02a8d59..1525872 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 @@ -45,6 +45,18 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/test@example.com + response: + body: {string: !!python/unicode 404 Not Found} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -60,18 +72,6 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/test@example.com - response: - body: {string: !!python/unicode 404 Not Found} - headers: - content-length: ['13'] - content-type: [application/json; charset=utf-8] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -124,17 +124,18 @@ 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, "fqdn_listname": "foo@example.com", - "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": - true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": - "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", - "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "foo-request@example.com", "scheme": "http", "send_welcome_message": true, - "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, - "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"97436ece60591c8bf4b4d589f6b8028a5a2964a3\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "foo-owner@example.com", "post_id": 1, "posting_address": + "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Foo] ", + "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1703'] + content-length: ['1730'] 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_logged_out.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_logged_out.yaml index e77c139..06a8736 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 @@ -74,17 +74,18 @@ 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, "fqdn_listname": "foo@example.com", - "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": - true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": - "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", - "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "foo-request@example.com", "scheme": "http", "send_welcome_message": true, - "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, - "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"97436ece60591c8bf4b4d589f6b8028a5a2964a3\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "foo-owner@example.com", "post_id": 1, "posting_address": + "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Foo] ", + "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1703'] + content-length: ['1730'] 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 14baedb..6b50be7 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 @@ -79,33 +79,18 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/54'] + location: ['http://localhost:9001/3.0/members/88'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo@example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"ad8937335ed52503a78f1ab572957155f903610a\"", "is_server_owner": false, - "password": "$6$rounds=635142$H76Ifr1m3WCIkVmh$m4dycLgkcUAw.011pYccyGoI/cDpvGW.dufugZrlFLgYN9vaqsoWMNC/SmXGv/h1VFXQ0xxBPWgdCEoEPrmu2.", + "\"1a5b2ae2a64f1a71b23d4e6e9313917a0199b4da\"", "is_server_owner": false, + "password": "$6$rounds=703099$E0oFo1./bB.XTife$SdfgmF8hB3fpXvXaX82mCePFT/hKzrzM7YV/nLy8HL3wN1nhwSQf1kxwMK5D4Pgsov.BShbaNxQOLIl244Iy//", "self_link": "http://localhost:9001/3.0/users/21", "user_id": 21}'} headers: content-length: ['326'] @@ -132,6 +117,21 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -148,10 +148,10 @@ uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/test@example.com", - "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"7c88f32ea5d411a7f85e446f1adc53d4db4e9204\"", - "list_id": "foo.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/21"}], "http_etag": "\"68d2de93bc320a52da693f3b95854a4b8200311c\"", + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"524917a793e1f157e5e390c1b66c08ff9bc6871c\"", + "list_id": "foo.example.com", "member_id": 88, "moderation_action": "accept", + "role": "moderator", "self_link": "http://localhost:9001/3.0/members/88", + "user": "http://localhost:9001/3.0/users/21"}], "http_etag": "\"a21b2b051bb4eaedd5bc8bb762d6fd224f5e38c5\"", "start": 0, "total_size": 1}'} headers: content-length: ['488'] @@ -188,17 +188,18 @@ 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, "fqdn_listname": "foo@example.com", - "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": - true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": - "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", - "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "foo-request@example.com", "scheme": "http", "send_welcome_message": true, - "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, - "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"97436ece60591c8bf4b4d589f6b8028a5a2964a3\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "foo-owner@example.com", "post_id": 1, "posting_address": + "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Foo] ", + "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1703'] + content-length: ['1730'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -237,10 +238,10 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"ad8937335ed52503a78f1ab572957155f903610a\"", "is_server_owner": - false, "password": "$6$rounds=635142$H76Ifr1m3WCIkVmh$m4dycLgkcUAw.011pYccyGoI/cDpvGW.dufugZrlFLgYN9vaqsoWMNC/SmXGv/h1VFXQ0xxBPWgdCEoEPrmu2.", + "http_etag": "\"1a5b2ae2a64f1a71b23d4e6e9313917a0199b4da\"", "is_server_owner": + false, "password": "$6$rounds=703099$E0oFo1./bB.XTife$SdfgmF8hB3fpXvXaX82mCePFT/hKzrzM7YV/nLy8HL3wN1nhwSQf1kxwMK5D4Pgsov.BShbaNxQOLIl244Iy//", "self_link": "http://localhost:9001/3.0/users/21", "user_id": 21}], "http_etag": - "\"83ccdf52e1b8a484cdd44f88f0e5008393f80263\"", "start": 0, "total_size": + "\"7baa93a3a20fd952b0a4ddb7b6774f842ca26976\"", "start": 0, "total_size": 1}'} headers: content-length: ['431'] 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 5fdf366..5e229eb 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 @@ -79,33 +79,18 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/55'] + location: ['http://localhost:9001/3.0/members/89'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo@example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"b79e26d333123a7f30448d02c1823eafe59d4a60\"", "is_server_owner": false, - "password": "$6$rounds=673520$vo.iCsvSnq5oLEbt$rBIgWRAHA9TcoHp8gRIVbNXUh3SwSqqtfHAyY5h.tcrjpnoRxkrrWykqJLmxS3GcUJP9vPFunAvN/CMUG9oXn0", + "\"c81b1d74a34901fe58538ac9adae4fef06c399e4\"", "is_server_owner": false, + "password": "$6$rounds=609529$Dt4t5TF7EzAInxSK$3tD8r2R4eRR0EsbSThItfTCArSH2E2VyvIv1VnWE3KIixJOoOQq1ca.ZXw2w43ORCjC6JZuUzPytj2NI5Y1n61", "self_link": "http://localhost:9001/3.0/users/22", "user_id": 22}'} headers: content-length: ['326'] @@ -132,13 +117,28 @@ 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/test@example.com", - "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"c16caaae6cd2dd6f1329926d26292b87654110f6\"", - "list_id": "foo.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/22"}], "http_etag": "\"21d26fa6417107c951ecac7ff78f44d3a5139e28\"", + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"ed240f6c008e53a2ed605025105a5f10bc6d5f0f\"", + "list_id": "foo.example.com", "member_id": 89, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/89", "user": + "http://localhost:9001/3.0/users/22"}], "http_etag": "\"c753acc2e359635865cbde996525114b2e45bd1e\"", "start": 0, "total_size": 1}'} headers: content-length: ['484'] @@ -188,17 +188,18 @@ 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, "fqdn_listname": "foo@example.com", - "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": - true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": - "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", - "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "foo-request@example.com", "scheme": "http", "send_welcome_message": true, - "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, - "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"97436ece60591c8bf4b4d589f6b8028a5a2964a3\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "foo-owner@example.com", "post_id": 1, "posting_address": + "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Foo] ", + "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1703'] + content-length: ['1730'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -237,10 +238,10 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"b79e26d333123a7f30448d02c1823eafe59d4a60\"", "is_server_owner": - false, "password": "$6$rounds=673520$vo.iCsvSnq5oLEbt$rBIgWRAHA9TcoHp8gRIVbNXUh3SwSqqtfHAyY5h.tcrjpnoRxkrrWykqJLmxS3GcUJP9vPFunAvN/CMUG9oXn0", + "http_etag": "\"c81b1d74a34901fe58538ac9adae4fef06c399e4\"", "is_server_owner": + false, "password": "$6$rounds=609529$Dt4t5TF7EzAInxSK$3tD8r2R4eRR0EsbSThItfTCArSH2E2VyvIv1VnWE3KIixJOoOQq1ca.ZXw2w43ORCjC6JZuUzPytj2NI5Y1n61", "self_link": "http://localhost:9001/3.0/users/22", "user_id": 22}], "http_etag": - "\"730afbd3b67f4a137505805926bf88b6d7e27909\"", "start": 0, "total_size": + "\"05ad838879385573b0da6af4c63cb645049555e5\"", "start": 0, "total_size": 1}'} headers: content-length: ['431'] diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_shows_all_addresses.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_shows_all_addresses.yaml index 73e7808..cfe3c86 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_shows_all_addresses.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_shows_all_addresses.yaml @@ -112,21 +112,6 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo@example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "display_name": @@ -161,6 +146,21 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -225,17 +225,18 @@ 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, "fqdn_listname": "foo@example.com", - "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": - true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": - "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", - "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "foo-request@example.com", "scheme": "http", "send_welcome_message": true, - "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, - "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"97436ece60591c8bf4b4d589f6b8028a5a2964a3\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "foo-owner@example.com", "post_id": 1, "posting_address": + "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Foo] ", + "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1703'] + content-length: ['1730'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: 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 e77c139..06a8736 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 @@ -74,17 +74,18 @@ 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, "fqdn_listname": "foo@example.com", - "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": - true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": - "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", - "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "foo-request@example.com", "scheme": "http", "send_welcome_message": true, - "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, - "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"97436ece60591c8bf4b4d589f6b8028a5a2964a3\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "foo-owner@example.com", "post_id": 1, "posting_address": + "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Foo] ", + "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1703'] + content-length: ['1730'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: 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 57115a9..66c57ea 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 @@ -66,28 +66,13 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/56'] + location: ['http://localhost:9001/3.0/members/90'] 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": "\"98cc998d4a30293ec17da639bce10617912a6e1e\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 1, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "display_name": @@ -120,6 +105,21 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"98cc998d4a30293ec17da639bce10617912a6e1e\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 1, "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\"", @@ -149,9 +149,9 @@ 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": "\"6db4daa0098a380d8ab4a2297a738dbbf26a9e8f\"", - "list_id": "foo.example.com", "member_id": 56, "moderation_action": "defer", - "role": "member", "self_link": "http://localhost:9001/3.0/members/56", "user": + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"5997a67942ff139eb2e1ab43f4ea8fbf3502d77e\"", + "list_id": "foo.example.com", "member_id": 90, "moderation_action": "defer", + "role": "member", "self_link": "http://localhost:9001/3.0/members/90", "user": "http://localhost:9001/3.0/users/24"}'} headers: content-length: ['379'] @@ -176,17 +176,18 @@ 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, "fqdn_listname": "foo@example.com", - "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": - true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": - "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", - "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "foo-request@example.com", "scheme": "http", "send_welcome_message": true, - "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, - "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"97436ece60591c8bf4b4d589f6b8028a5a2964a3\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "foo-owner@example.com", "post_id": 1, "posting_address": + "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "foo-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Foo] ", + "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1703'] + content-length: ['1730'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: 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 4c0404e..c5a09ee 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 @@ -87,8 +87,8 @@ uri: http://localhost:9001/3.0/users/user@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"16da361da36dc538c4f7402f87466fb284eb2e45\"", "is_server_owner": false, - "password": "$6$rounds=670182$xMw39npVUnxwW3.c$2TGPS9t38JITn4u.0juxyXbkAShOu4FM63jQtqDb33ek3Jh8sWNmZuyLWDtM7lpVbpnYJVS81FrCo5PVzpCg.0", + "\"a15f70929a19063dd54c74a74094ffb51c5d79e5\"", "is_server_owner": false, + "password": "$6$rounds=661016$9GD4wfI1Nhlg7i63$QaYvGd35DyWCmB22cnRGZ0e4Z2kA3OxzM4QeAT0FnHwSA/sfdXwL3Tci.L5og2owBBRf5mGDpPF1rrT/xcgi61", "self_link": "http://localhost:9001/3.0/users/10", "user_id": 10}'} headers: content-length: ['326'] @@ -125,8 +125,46 @@ uri: http://localhost:9001/3.0/users/user@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"16da361da36dc538c4f7402f87466fb284eb2e45\"", "is_server_owner": false, - "password": "$6$rounds=670182$xMw39npVUnxwW3.c$2TGPS9t38JITn4u.0juxyXbkAShOu4FM63jQtqDb33ek3Jh8sWNmZuyLWDtM7lpVbpnYJVS81FrCo5PVzpCg.0", + "\"a15f70929a19063dd54c74a74094ffb51c5d79e5\"", "is_server_owner": false, + "password": "$6$rounds=661016$9GD4wfI1Nhlg7i63$QaYvGd35DyWCmB22cnRGZ0e4Z2kA3OxzM4QeAT0FnHwSA/sfdXwL3Tci.L5og2owBBRf5mGDpPF1rrT/xcgi61", + "self_link": "http://localhost:9001/3.0/users/10", "user_id": 10}'} + 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/10/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "user2@example.com", "http_etag": + "\"f7784cff6f71115977f197b970df92339cab52e0\"", "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/10"}, {"email": "user3@example.com", + "http_etag": "\"e883b257cdb44ccc14c3e16a7603964851ce8668\"", "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/10"}, + {"email": "user@example.com", "http_etag": "\"96d25437673d1b13cb9d473f3c2473efa7350658\"", + "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/10"}], "http_etag": "\"df3fe315c0bfe739235376276fedcfeba7e76356\"", + "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 + uri: http://localhost:9001/3.0/users/user@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"a15f70929a19063dd54c74a74094ffb51c5d79e5\"", "is_server_owner": false, + "password": "$6$rounds=661016$9GD4wfI1Nhlg7i63$QaYvGd35DyWCmB22cnRGZ0e4Z2kA3OxzM4QeAT0FnHwSA/sfdXwL3Tci.L5og2owBBRf5mGDpPF1rrT/xcgi61", "self_link": "http://localhost:9001/3.0/users/10", "user_id": 10}'} headers: content-length: ['326'] 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 1b7dba1..ea0ca92 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 @@ -79,7 +79,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/49'] + location: ['http://localhost:9001/3.0/members/83'] status: {code: 201, message: Created} - request: body: null @@ -89,8 +89,8 @@ uri: http://localhost:9001/3.0/users/user@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"7bea25317884d287822b8a1edf6ec44338c97b04\"", "is_server_owner": false, - "password": "$6$rounds=634283$CABqirJz8rSazR8F$vHWbALLzwDir1u./FB6TRpSXdtEmYktiHkiX7m2KzL0CLDEtxXgtwyVm8sYhrSfroifYVwIQma4bOJlxWwlyb0", + "\"1f6fe4f5e1cca6aee94e40fbf61466954ef4ea02\"", "is_server_owner": false, + "password": "$6$rounds=709593$ZV1v1LM8bM5wK5r5$O68BlmO3yf0bLX5gHK7vrvhAcck5PMH./A7FOaVkgl840xvAGX8ZRJJ.BDW2HqRP.olWFGKVO/hbw84R84ae90", "self_link": "http://localhost:9001/3.0/users/12", "user_id": 12}'} headers: content-length: ['326'] @@ -121,8 +121,40 @@ uri: http://localhost:9001/3.0/users/user@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"7bea25317884d287822b8a1edf6ec44338c97b04\"", "is_server_owner": false, - "password": "$6$rounds=634283$CABqirJz8rSazR8F$vHWbALLzwDir1u./FB6TRpSXdtEmYktiHkiX7m2KzL0CLDEtxXgtwyVm8sYhrSfroifYVwIQma4bOJlxWwlyb0", + "\"1f6fe4f5e1cca6aee94e40fbf61466954ef4ea02\"", "is_server_owner": false, + "password": "$6$rounds=709593$ZV1v1LM8bM5wK5r5$O68BlmO3yf0bLX5gHK7vrvhAcck5PMH./A7FOaVkgl840xvAGX8ZRJJ.BDW2HqRP.olWFGKVO/hbw84R84ae90", + "self_link": "http://localhost:9001/3.0/users/12", "user_id": 12}'} + 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/12/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag": + "\"3038369cddc9208628cc60aa23f4805d14a75693\"", "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/12", "verified_on": "2005-08-01T07:49:23"}], + "http_etag": "\"93aecb82eb7630061970ab7c3fea863f83fcc3be\"", "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 + uri: http://localhost:9001/3.0/users/user@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"1f6fe4f5e1cca6aee94e40fbf61466954ef4ea02\"", "is_server_owner": false, + "password": "$6$rounds=709593$ZV1v1LM8bM5wK5r5$O68BlmO3yf0bLX5gHK7vrvhAcck5PMH./A7FOaVkgl840xvAGX8ZRJJ.BDW2HqRP.olWFGKVO/hbw84R84ae90", "self_link": "http://localhost:9001/3.0/users/12", "user_id": 12}'} headers: content-length: ['326'] @@ -149,8 +181,8 @@ uri: http://localhost:9001/3.0/users/user@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"7bea25317884d287822b8a1edf6ec44338c97b04\"", "is_server_owner": false, - "password": "$6$rounds=634283$CABqirJz8rSazR8F$vHWbALLzwDir1u./FB6TRpSXdtEmYktiHkiX7m2KzL0CLDEtxXgtwyVm8sYhrSfroifYVwIQma4bOJlxWwlyb0", + "\"1f6fe4f5e1cca6aee94e40fbf61466954ef4ea02\"", "is_server_owner": false, + "password": "$6$rounds=709593$ZV1v1LM8bM5wK5r5$O68BlmO3yf0bLX5gHK7vrvhAcck5PMH./A7FOaVkgl840xvAGX8ZRJJ.BDW2HqRP.olWFGKVO/hbw84R84ae90", "self_link": "http://localhost:9001/3.0/users/12", "user_id": 12}'} headers: content-length: ['326'] @@ -196,8 +228,8 @@ uri: http://localhost:9001/3.0/users/user@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"7bea25317884d287822b8a1edf6ec44338c97b04\"", "is_server_owner": false, - "password": "$6$rounds=634283$CABqirJz8rSazR8F$vHWbALLzwDir1u./FB6TRpSXdtEmYktiHkiX7m2KzL0CLDEtxXgtwyVm8sYhrSfroifYVwIQma4bOJlxWwlyb0", + "\"1f6fe4f5e1cca6aee94e40fbf61466954ef4ea02\"", "is_server_owner": false, + "password": "$6$rounds=709593$ZV1v1LM8bM5wK5r5$O68BlmO3yf0bLX5gHK7vrvhAcck5PMH./A7FOaVkgl840xvAGX8ZRJJ.BDW2HqRP.olWFGKVO/hbw84R84ae90", "self_link": "http://localhost:9001/3.0/users/12", "user_id": 12}'} headers: content-length: ['326'] @@ -229,10 +261,10 @@ 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": "\"2a582f65425a3b92e0dc5b1643577623e48e98e4\"", - "list_id": "foo.example.com", "member_id": 49, "moderation_action": "defer", - "role": "member", "self_link": "http://localhost:9001/3.0/members/49", "user": - "http://localhost:9001/3.0/users/12"}], "http_etag": "\"7e8ccf295521d9fae4b60e4dd1e0c9971b9498cd\"", + "delivery_mode": "regular", "email": "user@example.com", "http_etag": "\"c105bc408c3606eae5c5b1a95662118d02075bb2\"", + "list_id": "foo.example.com", "member_id": 83, "moderation_action": "defer", + "role": "member", "self_link": "http://localhost:9001/3.0/members/83", "user": + "http://localhost:9001/3.0/users/12"}], "http_etag": "\"2c52c8dfb0c760db73bf033ee05598396c85dfc3\"", "start": 0, "total_size": 1}'} headers: content-length: ['484'] @@ -243,10 +275,10 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/members/49/preferences + uri: http://localhost:9001/3.0/members/83/preferences response: - body: {string: !!python/unicode '{"http_etag": "\"cccb0ccd0e49a37037cf87d53d4b7da1375219a7\"", - "self_link": "http://localhost:9001/3.0/members/49/preferences"}'} + body: {string: !!python/unicode '{"http_etag": "\"28a816f6708b9171159ba311d850cd56759276bf\"", + "self_link": "http://localhost:9001/3.0/members/83/preferences"}'} headers: content-length: ['126'] content-type: [application/json; charset=utf-8] @@ -259,8 +291,8 @@ uri: http://localhost:9001/3.0/users/user@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"7bea25317884d287822b8a1edf6ec44338c97b04\"", "is_server_owner": false, - "password": "$6$rounds=634283$CABqirJz8rSazR8F$vHWbALLzwDir1u./FB6TRpSXdtEmYktiHkiX7m2KzL0CLDEtxXgtwyVm8sYhrSfroifYVwIQma4bOJlxWwlyb0", + "\"1f6fe4f5e1cca6aee94e40fbf61466954ef4ea02\"", "is_server_owner": false, + "password": "$6$rounds=709593$ZV1v1LM8bM5wK5r5$O68BlmO3yf0bLX5gHK7vrvhAcck5PMH./A7FOaVkgl840xvAGX8ZRJJ.BDW2HqRP.olWFGKVO/hbw84R84ae90", "self_link": "http://localhost:9001/3.0/users/12", "user_id": 12}'} headers: content-length: ['326'] @@ -291,8 +323,40 @@ uri: http://localhost:9001/3.0/users/user@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"7bea25317884d287822b8a1edf6ec44338c97b04\"", "is_server_owner": false, - "password": "$6$rounds=634283$CABqirJz8rSazR8F$vHWbALLzwDir1u./FB6TRpSXdtEmYktiHkiX7m2KzL0CLDEtxXgtwyVm8sYhrSfroifYVwIQma4bOJlxWwlyb0", + "\"1f6fe4f5e1cca6aee94e40fbf61466954ef4ea02\"", "is_server_owner": false, + "password": "$6$rounds=709593$ZV1v1LM8bM5wK5r5$O68BlmO3yf0bLX5gHK7vrvhAcck5PMH./A7FOaVkgl840xvAGX8ZRJJ.BDW2HqRP.olWFGKVO/hbw84R84ae90", + "self_link": "http://localhost:9001/3.0/users/12", "user_id": 12}'} + 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/12/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag": + "\"3038369cddc9208628cc60aa23f4805d14a75693\"", "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/12", "verified_on": "2005-08-01T07:49:23"}], + "http_etag": "\"93aecb82eb7630061970ab7c3fea863f83fcc3be\"", "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 + uri: http://localhost:9001/3.0/users/user@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"1f6fe4f5e1cca6aee94e40fbf61466954ef4ea02\"", "is_server_owner": false, + "password": "$6$rounds=709593$ZV1v1LM8bM5wK5r5$O68BlmO3yf0bLX5gHK7vrvhAcck5PMH./A7FOaVkgl840xvAGX8ZRJJ.BDW2HqRP.olWFGKVO/hbw84R84ae90", "self_link": "http://localhost:9001/3.0/users/12", "user_id": 12}'} headers: content-length: ['326'] @@ -336,8 +400,40 @@ uri: http://localhost:9001/3.0/users/user@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"7bea25317884d287822b8a1edf6ec44338c97b04\"", "is_server_owner": false, - "password": "$6$rounds=634283$CABqirJz8rSazR8F$vHWbALLzwDir1u./FB6TRpSXdtEmYktiHkiX7m2KzL0CLDEtxXgtwyVm8sYhrSfroifYVwIQma4bOJlxWwlyb0", + "\"1f6fe4f5e1cca6aee94e40fbf61466954ef4ea02\"", "is_server_owner": false, + "password": "$6$rounds=709593$ZV1v1LM8bM5wK5r5$O68BlmO3yf0bLX5gHK7vrvhAcck5PMH./A7FOaVkgl840xvAGX8ZRJJ.BDW2HqRP.olWFGKVO/hbw84R84ae90", + "self_link": "http://localhost:9001/3.0/users/12", "user_id": 12}'} + 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/12/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag": + "\"3038369cddc9208628cc60aa23f4805d14a75693\"", "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/12", "verified_on": "2005-08-01T07:49:23"}], + "http_etag": "\"93aecb82eb7630061970ab7c3fea863f83fcc3be\"", "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 + uri: http://localhost:9001/3.0/users/user@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"1f6fe4f5e1cca6aee94e40fbf61466954ef4ea02\"", "is_server_owner": false, + "password": "$6$rounds=709593$ZV1v1LM8bM5wK5r5$O68BlmO3yf0bLX5gHK7vrvhAcck5PMH./A7FOaVkgl840xvAGX8ZRJJ.BDW2HqRP.olWFGKVO/hbw84R84ae90", "self_link": "http://localhost:9001/3.0/users/12", "user_id": 12}'} headers: content-length: ['326'] @@ -386,10 +482,10 @@ 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": "\"2a582f65425a3b92e0dc5b1643577623e48e98e4\"", - "list_id": "foo.example.com", "member_id": 49, "moderation_action": "defer", - "role": "member", "self_link": "http://localhost:9001/3.0/members/49", "user": - "http://localhost:9001/3.0/users/12"}], "http_etag": "\"7e8ccf295521d9fae4b60e4dd1e0c9971b9498cd\"", + "delivery_mode": "regular", "email": "user@example.com", "http_etag": "\"c105bc408c3606eae5c5b1a95662118d02075bb2\"", + "list_id": "foo.example.com", "member_id": 83, "moderation_action": "defer", + "role": "member", "self_link": "http://localhost:9001/3.0/members/83", "user": + "http://localhost:9001/3.0/users/12"}], "http_etag": "\"2c52c8dfb0c760db73bf033ee05598396c85dfc3\"", "start": 0, "total_size": 1}'} headers: content-length: ['484'] @@ -400,10 +496,10 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/members/49/preferences + uri: http://localhost:9001/3.0/members/83/preferences response: - body: {string: !!python/unicode '{"http_etag": "\"cccb0ccd0e49a37037cf87d53d4b7da1375219a7\"", - "self_link": "http://localhost:9001/3.0/members/49/preferences"}'} + body: {string: !!python/unicode '{"http_etag": "\"28a816f6708b9171159ba311d850cd56759276bf\"", + "self_link": "http://localhost:9001/3.0/members/83/preferences"}'} headers: content-length: ['126'] content-type: [application/json; charset=utf-8] 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 e3e08dc..158b020 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 @@ -61,8 +61,8 @@ uri: http://localhost:9001/3.0/users/user@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"87cf8eee2cc3cc8475db5ac229247f25349f8d91\"", "is_server_owner": false, - "password": "$6$rounds=670842$kH6GwhXQAjyk.EwS$dLlIBFxM79WQ8qJMNBpVdr8Q6A3m0W.Bbk6xmK8ShTkZgFVvIeyKtPY2VsH/Hi7c.gaIdnvbErrU/hgYvFtZU.", + "\"94bb2c6f163de817075a33d21d25b6340aaf5aff\"", "is_server_owner": false, + "password": "$6$rounds=610217$w3NDgCqk8l6rbWcm$0feuMIANhuhKxFnFionCzxpIrepP2O/vGw9jdNrQ5if8TpqDhwGdtQhEFX2D0aFhNQiAbA3x1ID0HQZAfnW5o.", "self_link": "http://localhost:9001/3.0/users/13", "user_id": 13}'} headers: content-length: ['326'] @@ -92,8 +92,8 @@ uri: http://localhost:9001/3.0/users/user@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"87cf8eee2cc3cc8475db5ac229247f25349f8d91\"", "is_server_owner": false, - "password": "$6$rounds=670842$kH6GwhXQAjyk.EwS$dLlIBFxM79WQ8qJMNBpVdr8Q6A3m0W.Bbk6xmK8ShTkZgFVvIeyKtPY2VsH/Hi7c.gaIdnvbErrU/hgYvFtZU.", + "\"94bb2c6f163de817075a33d21d25b6340aaf5aff\"", "is_server_owner": false, + "password": "$6$rounds=610217$w3NDgCqk8l6rbWcm$0feuMIANhuhKxFnFionCzxpIrepP2O/vGw9jdNrQ5if8TpqDhwGdtQhEFX2D0aFhNQiAbA3x1ID0HQZAfnW5o.", "self_link": "http://localhost:9001/3.0/users/13", "user_id": 13}'} headers: content-length: ['326'] 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 54d0cd9..c61009a 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 @@ -110,8 +110,8 @@ uri: http://localhost:9001/3.0/users/15 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"32ac533b28f1f4dbb2db1965e52ffc09401c2922\"", "is_server_owner": false, - "password": "$6$rounds=655207$gurVzqnfnroSfG3y$f/ynfn3brIvsu44VaG2dINkpY9vSMAZQ4fxAWLfieKaJs2EWtTSkjVyz3JNeYxTtQxi3YCD/0fkR0wAPdqMNf1", + "\"df1da5b04076c5742af3a45b43556e1e65edf5b5\"", "is_server_owner": false, + "password": "$6$rounds=594149$iGGXb1VEgzLDhh4x$.LV0R92nkWZ4wJwno0HGVPpwAQARAb21jlEJSNG/WySi6rGJySJBAx5Iazjg993wAZ8TVrKOWisE8ecPRrvXL/", "self_link": "http://localhost:9001/3.0/users/15", "user_id": 15}'} headers: content-length: ['326'] @@ -156,8 +156,8 @@ 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": - "\"32ac533b28f1f4dbb2db1965e52ffc09401c2922\"", "is_server_owner": false, - "password": "$6$rounds=655207$gurVzqnfnroSfG3y$f/ynfn3brIvsu44VaG2dINkpY9vSMAZQ4fxAWLfieKaJs2EWtTSkjVyz3JNeYxTtQxi3YCD/0fkR0wAPdqMNf1", + "\"df1da5b04076c5742af3a45b43556e1e65edf5b5\"", "is_server_owner": false, + "password": "$6$rounds=594149$iGGXb1VEgzLDhh4x$.LV0R92nkWZ4wJwno0HGVPpwAQARAb21jlEJSNG/WySi6rGJySJBAx5Iazjg993wAZ8TVrKOWisE8ecPRrvXL/", "self_link": "http://localhost:9001/3.0/users/15", "user_id": 15}'} headers: content-length: ['326'] 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 34f1f65..17c2fd1 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 @@ -61,8 +61,8 @@ uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"a4a098dd59b0a0b8ce78941ab335747e9d7d2e6a\"", "is_server_owner": false, - "password": "$6$rounds=644043$yb83RhiStRsoOX2v$HPmxWv0ZlTs6TQtXNNWczfNTy5EiH0znU4XuB8Qnf1YnrS7QeMc2KfLOOkmqxAW.QnXtyv..zcy8EtFz0Apjj0", + "\"90134bf422a17dfbfafee0f676aa1c59debfeb7a\"", "is_server_owner": false, + "password": "$6$rounds=704330$/Y7u5S4Znv5KAuPj$a9K03yXZlBp5Z/ZIoYfWNcDKbCqZpmC3kw/xPZ/cV3StGDJDnOEcCnwLGWuT.bUfUdfoCdtfqMwHH6AlIKwuD/", "self_link": "http://localhost:9001/3.0/users/28", "user_id": 28}'} headers: content-length: ['326'] @@ -126,10 +126,10 @@ "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/26", "user_id": 26}, {"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": "\"a4a098dd59b0a0b8ce78941ab335747e9d7d2e6a\"", - "is_server_owner": false, "password": "$6$rounds=644043$yb83RhiStRsoOX2v$HPmxWv0ZlTs6TQtXNNWczfNTy5EiH0znU4XuB8Qnf1YnrS7QeMc2KfLOOkmqxAW.QnXtyv..zcy8EtFz0Apjj0", + "user_id": 27}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"90134bf422a17dfbfafee0f676aa1c59debfeb7a\"", + "is_server_owner": false, "password": "$6$rounds=704330$/Y7u5S4Znv5KAuPj$a9K03yXZlBp5Z/ZIoYfWNcDKbCqZpmC3kw/xPZ/cV3StGDJDnOEcCnwLGWuT.bUfUdfoCdtfqMwHH6AlIKwuD/", "self_link": "http://localhost:9001/3.0/users/28", "user_id": 28}], "http_etag": - "\"0797cbb5fc80a14a640816a9c9761d07c9954c8e\"", "start": 0, "total_size": + "\"2dbdcc04c5a4a0c1d074060abd09213376b7f77a\"", "start": 0, "total_size": 4}'} headers: content-length: ['1007'] diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestAddressActivationForm.test_email_used_by_mailman_is_invalid.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestAddressActivationForm.test_email_used_by_mailman_is_invalid.yaml index ca01003..b63a06f 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/TestAddressActivationForm.test_email_used_by_mailman_is_invalid.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/TestAddressActivationForm.test_email_used_by_mailman_is_invalid.yaml @@ -20,8 +20,8 @@ uri: http://localhost:9001/3.0/users/subscribed@example.org response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"1924d9715c595b6b0fa3126ae524c520b8a66e63\"", "is_server_owner": false, - "password": "$6$rounds=650086$YTVyeaQuQdwH2iDK$v6fODJdI2BOHG/juW5xOVA/0ADnp6okLETsEzFm5iGHRLvK6f51mGMXSpqigPoWPFLuifblOG4LcRz442hS1h.", + "\"088010049330aec8a43b1b3758033ad2524d0be2\"", "is_server_owner": false, + "password": "$6$rounds=704401$tv7NBQeydbZ1L3q9$r3/xwpD0D56KjCvzoSLY.sqMZgs5NGBkCj3bfGQpu8OJH.7rPWdYSz6uaa86VmCZ.JVk8IXLg3On1oUb.nGFs0", "self_link": "http://localhost:9001/3.0/users/32", "user_id": 32}'} headers: content-length: ['326'] diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestAddressActivationLinkSuccess.test_add_address.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestAddressActivationLinkSuccess.test_add_address.yaml index 97692bf..43b961a 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/TestAddressActivationLinkSuccess.test_add_address.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/TestAddressActivationLinkSuccess.test_add_address.yaml @@ -20,8 +20,39 @@ uri: http://localhost:9001/3.0/users/ler@example.org response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"e4c6fe32ce1b1adbdc19b0a23f6e172757e55267\"", "is_server_owner": false, - "password": "$6$rounds=600988$E19fCfdcKlLBWjUE$p7A/8.YAlMYUI0IuDuXexNkkVWcqnquqfr5N.Jq1BBbF3CrFDoetMw5EdZsq7bRyhF6.EY/TXSwVQBhIIF/us.", + "\"48e7e905e9f9cf6179386cd903f444e244aeffc2\"", "is_server_owner": false, + "password": "$6$rounds=721149$x0wUd4fDySxlcZbX$0jy5w3eH3l5Hafpev5JLp8eYVeqMoVywQJi5NzKTeMZf7tWWzjoHQldwCfBv8j0.w5/2tUI9KYGJbfkWiUW7Q0", + "self_link": "http://localhost:9001/3.0/users/35", "user_id": 35}'} + 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/35/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "ler@example.org", "http_etag": + "\"6e3ef616d79be795bde6fda2673808e438422507\"", "original_email": "ler@example.org", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/ler@example.org", + "user": "http://localhost:9001/3.0/users/35"}], "http_etag": "\"a1c4fa39d16aca786421a6cf29242f97d483805f\"", + "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/users/ler@example.org + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"48e7e905e9f9cf6179386cd903f444e244aeffc2\"", "is_server_owner": false, + "password": "$6$rounds=721149$x0wUd4fDySxlcZbX$0jy5w3eH3l5Hafpev5JLp8eYVeqMoVywQJi5NzKTeMZf7tWWzjoHQldwCfBv8j0.w5/2tUI9KYGJbfkWiUW7Q0", "self_link": "http://localhost:9001/3.0/users/35", "user_id": 35}'} headers: content-length: ['326'] @@ -59,8 +90,8 @@ uri: http://localhost:9001/3.0/users/ler@example.org response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"e4c6fe32ce1b1adbdc19b0a23f6e172757e55267\"", "is_server_owner": false, - "password": "$6$rounds=600988$E19fCfdcKlLBWjUE$p7A/8.YAlMYUI0IuDuXexNkkVWcqnquqfr5N.Jq1BBbF3CrFDoetMw5EdZsq7bRyhF6.EY/TXSwVQBhIIF/us.", + "\"48e7e905e9f9cf6179386cd903f444e244aeffc2\"", "is_server_owner": false, + "password": "$6$rounds=721149$x0wUd4fDySxlcZbX$0jy5w3eH3l5Hafpev5JLp8eYVeqMoVywQJi5NzKTeMZf7tWWzjoHQldwCfBv8j0.w5/2tUI9KYGJbfkWiUW7Q0", "self_link": "http://localhost:9001/3.0/users/35", "user_id": 35}'} headers: content-length: ['326'] @@ -94,8 +125,8 @@ uri: http://localhost:9001/3.0/users/ler@example.org response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"e4c6fe32ce1b1adbdc19b0a23f6e172757e55267\"", "is_server_owner": false, - "password": "$6$rounds=600988$E19fCfdcKlLBWjUE$p7A/8.YAlMYUI0IuDuXexNkkVWcqnquqfr5N.Jq1BBbF3CrFDoetMw5EdZsq7bRyhF6.EY/TXSwVQBhIIF/us.", + "\"48e7e905e9f9cf6179386cd903f444e244aeffc2\"", "is_server_owner": false, + "password": "$6$rounds=721149$x0wUd4fDySxlcZbX$0jy5w3eH3l5Hafpev5JLp8eYVeqMoVywQJi5NzKTeMZf7tWWzjoHQldwCfBv8j0.w5/2tUI9KYGJbfkWiUW7Q0", "self_link": "http://localhost:9001/3.0/users/35", "user_id": 35}'} headers: content-length: ['326'] @@ -129,8 +160,8 @@ uri: http://localhost:9001/3.0/users/ler@example.org response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"e4c6fe32ce1b1adbdc19b0a23f6e172757e55267\"", "is_server_owner": false, - "password": "$6$rounds=600988$E19fCfdcKlLBWjUE$p7A/8.YAlMYUI0IuDuXexNkkVWcqnquqfr5N.Jq1BBbF3CrFDoetMw5EdZsq7bRyhF6.EY/TXSwVQBhIIF/us.", + "\"48e7e905e9f9cf6179386cd903f444e244aeffc2\"", "is_server_owner": false, + "password": "$6$rounds=721149$x0wUd4fDySxlcZbX$0jy5w3eH3l5Hafpev5JLp8eYVeqMoVywQJi5NzKTeMZf7tWWzjoHQldwCfBv8j0.w5/2tUI9KYGJbfkWiUW7Q0", "self_link": "http://localhost:9001/3.0/users/35", "user_id": 35}'} headers: content-length: ['326'] @@ -144,8 +175,8 @@ uri: http://localhost:9001/3.0/users/35 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"e4c6fe32ce1b1adbdc19b0a23f6e172757e55267\"", "is_server_owner": false, - "password": "$6$rounds=600988$E19fCfdcKlLBWjUE$p7A/8.YAlMYUI0IuDuXexNkkVWcqnquqfr5N.Jq1BBbF3CrFDoetMw5EdZsq7bRyhF6.EY/TXSwVQBhIIF/us.", + "\"48e7e905e9f9cf6179386cd903f444e244aeffc2\"", "is_server_owner": false, + "password": "$6$rounds=721149$x0wUd4fDySxlcZbX$0jy5w3eH3l5Hafpev5JLp8eYVeqMoVywQJi5NzKTeMZf7tWWzjoHQldwCfBv8j0.w5/2tUI9KYGJbfkWiUW7Q0", "self_link": "http://localhost:9001/3.0/users/35", "user_id": 35}'} headers: content-length: ['326'] diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestProfile.test_post_form_with_smtp_exception.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestProfile.test_post_form_with_smtp_exception.yaml index d12ecae..0eee3f4 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/TestProfile.test_post_form_with_smtp_exception.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/TestProfile.test_post_form_with_smtp_exception.yaml @@ -56,8 +56,8 @@ uri: http://localhost:9001/3.0/users/1 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"096b4e1d622adb917fc67d8e2399eb47a3c3c7fc\"", "is_server_owner": false, - "password": "$6$rounds=592887$69rSeDgmqmAW10Vs$azHeniF3O0FsBt3EGPpAP4LCPfoXyi/5jEx2O44da5..edgP6CzRNawacG0Eg39/O/xl3.Os81nrVZY6Y1rRY1", + "\"f0b94bf2edd58e88d678043b4b49362ca377722e\"", "is_server_owner": false, + "password": "$6$rounds=690702$ldltgxeeAosAEu84$ypRhGVnPjh7q/JCzASdnPfc9C2lytW2mFFbTOfncE93GP9pETx6Z.Jra2.ERfCF.v/bueX6J6vvU8rWR9sCDk/", "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}'} headers: content-length: ['324'] diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestProfile.test_post_invalid_form_shows_error_msg.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestProfile.test_post_invalid_form_shows_error_msg.yaml index 57bdd75..d5a674c 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/TestProfile.test_post_invalid_form_shows_error_msg.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/TestProfile.test_post_invalid_form_shows_error_msg.yaml @@ -7,8 +7,8 @@ uri: http://localhost:9001/3.0/users/les@example.org response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"096b4e1d622adb917fc67d8e2399eb47a3c3c7fc\"", "is_server_owner": false, - "password": "$6$rounds=592887$69rSeDgmqmAW10Vs$azHeniF3O0FsBt3EGPpAP4LCPfoXyi/5jEx2O44da5..edgP6CzRNawacG0Eg39/O/xl3.Os81nrVZY6Y1rRY1", + "\"f0b94bf2edd58e88d678043b4b49362ca377722e\"", "is_server_owner": false, + "password": "$6$rounds=690702$ldltgxeeAosAEu84$ypRhGVnPjh7q/JCzASdnPfc9C2lytW2mFFbTOfncE93GP9pETx6Z.Jra2.ERfCF.v/bueX6J6vvU8rWR9sCDk/", "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}'} headers: content-length: ['324'] @@ -38,8 +38,8 @@ uri: http://localhost:9001/3.0/users/les@example.org response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"096b4e1d622adb917fc67d8e2399eb47a3c3c7fc\"", "is_server_owner": false, - "password": "$6$rounds=592887$69rSeDgmqmAW10Vs$azHeniF3O0FsBt3EGPpAP4LCPfoXyi/5jEx2O44da5..edgP6CzRNawacG0Eg39/O/xl3.Os81nrVZY6Y1rRY1", + "\"f0b94bf2edd58e88d678043b4b49362ca377722e\"", "is_server_owner": false, + "password": "$6$rounds=690702$ldltgxeeAosAEu84$ypRhGVnPjh7q/JCzASdnPfc9C2lytW2mFFbTOfncE93GP9pETx6Z.Jra2.ERfCF.v/bueX6J6vvU8rWR9sCDk/", "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}'} headers: content-length: ['324'] diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestProfile.test_post_valid_form_redirects_on_success.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestProfile.test_post_valid_form_redirects_on_success.yaml index 83e3e0c..d9d9996 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/TestProfile.test_post_valid_form_redirects_on_success.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/TestProfile.test_post_valid_form_redirects_on_success.yaml @@ -7,8 +7,8 @@ uri: http://localhost:9001/3.0/users/les@example.org response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"096b4e1d622adb917fc67d8e2399eb47a3c3c7fc\"", "is_server_owner": false, - "password": "$6$rounds=592887$69rSeDgmqmAW10Vs$azHeniF3O0FsBt3EGPpAP4LCPfoXyi/5jEx2O44da5..edgP6CzRNawacG0Eg39/O/xl3.Os81nrVZY6Y1rRY1", + "\"f0b94bf2edd58e88d678043b4b49362ca377722e\"", "is_server_owner": false, + "password": "$6$rounds=690702$ldltgxeeAosAEu84$ypRhGVnPjh7q/JCzASdnPfc9C2lytW2mFFbTOfncE93GP9pETx6Z.Jra2.ERfCF.v/bueX6J6vvU8rWR9sCDk/", "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}'} headers: content-length: ['324'] @@ -38,8 +38,8 @@ uri: http://localhost:9001/3.0/users/les@example.org response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"096b4e1d622adb917fc67d8e2399eb47a3c3c7fc\"", "is_server_owner": false, - "password": "$6$rounds=592887$69rSeDgmqmAW10Vs$azHeniF3O0FsBt3EGPpAP4LCPfoXyi/5jEx2O44da5..edgP6CzRNawacG0Eg39/O/xl3.Os81nrVZY6Y1rRY1", + "\"f0b94bf2edd58e88d678043b4b49362ca377722e\"", "is_server_owner": false, + "password": "$6$rounds=690702$ldltgxeeAosAEu84$ypRhGVnPjh7q/JCzASdnPfc9C2lytW2mFFbTOfncE93GP9pETx6Z.Jra2.ERfCF.v/bueX6J6vvU8rWR9sCDk/", "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}'} headers: content-length: ['324'] @@ -65,8 +65,8 @@ uri: http://localhost:9001/3.0/users/les@example.org response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"096b4e1d622adb917fc67d8e2399eb47a3c3c7fc\"", "is_server_owner": false, - "password": "$6$rounds=592887$69rSeDgmqmAW10Vs$azHeniF3O0FsBt3EGPpAP4LCPfoXyi/5jEx2O44da5..edgP6CzRNawacG0Eg39/O/xl3.Os81nrVZY6Y1rRY1", + "\"f0b94bf2edd58e88d678043b4b49362ca377722e\"", "is_server_owner": false, + "password": "$6$rounds=690702$ldltgxeeAosAEu84$ypRhGVnPjh7q/JCzASdnPfc9C2lytW2mFFbTOfncE93GP9pETx6Z.Jra2.ERfCF.v/bueX6J6vvU8rWR9sCDk/", "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}'} headers: content-length: ['324'] @@ -96,8 +96,8 @@ uri: http://localhost:9001/3.0/users/les@example.org response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"096b4e1d622adb917fc67d8e2399eb47a3c3c7fc\"", "is_server_owner": false, - "password": "$6$rounds=592887$69rSeDgmqmAW10Vs$azHeniF3O0FsBt3EGPpAP4LCPfoXyi/5jEx2O44da5..edgP6CzRNawacG0Eg39/O/xl3.Os81nrVZY6Y1rRY1", + "\"f0b94bf2edd58e88d678043b4b49362ca377722e\"", "is_server_owner": false, + "password": "$6$rounds=690702$ldltgxeeAosAEu84$ypRhGVnPjh7q/JCzASdnPfc9C2lytW2mFFbTOfncE93GP9pETx6Z.Jra2.ERfCF.v/bueX6J6vvU8rWR9sCDk/", "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}'} headers: content-length: ['324'] diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestProfile.test_post_valid_form_shows_success_message.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestProfile.test_post_valid_form_shows_success_message.yaml index 83e3e0c..d9d9996 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/TestProfile.test_post_valid_form_shows_success_message.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/TestProfile.test_post_valid_form_shows_success_message.yaml @@ -7,8 +7,8 @@ uri: http://localhost:9001/3.0/users/les@example.org response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"096b4e1d622adb917fc67d8e2399eb47a3c3c7fc\"", "is_server_owner": false, - "password": "$6$rounds=592887$69rSeDgmqmAW10Vs$azHeniF3O0FsBt3EGPpAP4LCPfoXyi/5jEx2O44da5..edgP6CzRNawacG0Eg39/O/xl3.Os81nrVZY6Y1rRY1", + "\"f0b94bf2edd58e88d678043b4b49362ca377722e\"", "is_server_owner": false, + "password": "$6$rounds=690702$ldltgxeeAosAEu84$ypRhGVnPjh7q/JCzASdnPfc9C2lytW2mFFbTOfncE93GP9pETx6Z.Jra2.ERfCF.v/bueX6J6vvU8rWR9sCDk/", "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}'} headers: content-length: ['324'] @@ -38,8 +38,8 @@ uri: http://localhost:9001/3.0/users/les@example.org response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"096b4e1d622adb917fc67d8e2399eb47a3c3c7fc\"", "is_server_owner": false, - "password": "$6$rounds=592887$69rSeDgmqmAW10Vs$azHeniF3O0FsBt3EGPpAP4LCPfoXyi/5jEx2O44da5..edgP6CzRNawacG0Eg39/O/xl3.Os81nrVZY6Y1rRY1", + "\"f0b94bf2edd58e88d678043b4b49362ca377722e\"", "is_server_owner": false, + "password": "$6$rounds=690702$ldltgxeeAosAEu84$ypRhGVnPjh7q/JCzASdnPfc9C2lytW2mFFbTOfncE93GP9pETx6Z.Jra2.ERfCF.v/bueX6J6vvU8rWR9sCDk/", "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}'} headers: content-length: ['324'] @@ -65,8 +65,8 @@ uri: http://localhost:9001/3.0/users/les@example.org response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"096b4e1d622adb917fc67d8e2399eb47a3c3c7fc\"", "is_server_owner": false, - "password": "$6$rounds=592887$69rSeDgmqmAW10Vs$azHeniF3O0FsBt3EGPpAP4LCPfoXyi/5jEx2O44da5..edgP6CzRNawacG0Eg39/O/xl3.Os81nrVZY6Y1rRY1", + "\"f0b94bf2edd58e88d678043b4b49362ca377722e\"", "is_server_owner": false, + "password": "$6$rounds=690702$ldltgxeeAosAEu84$ypRhGVnPjh7q/JCzASdnPfc9C2lytW2mFFbTOfncE93GP9pETx6Z.Jra2.ERfCF.v/bueX6J6vvU8rWR9sCDk/", "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}'} headers: content-length: ['324'] @@ -96,8 +96,8 @@ uri: http://localhost:9001/3.0/users/les@example.org response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"096b4e1d622adb917fc67d8e2399eb47a3c3c7fc\"", "is_server_owner": false, - "password": "$6$rounds=592887$69rSeDgmqmAW10Vs$azHeniF3O0FsBt3EGPpAP4LCPfoXyi/5jEx2O44da5..edgP6CzRNawacG0Eg39/O/xl3.Os81nrVZY6Y1rRY1", + "\"f0b94bf2edd58e88d678043b4b49362ca377722e\"", "is_server_owner": false, + "password": "$6$rounds=690702$ldltgxeeAosAEu84$ypRhGVnPjh7q/JCzASdnPfc9C2lytW2mFFbTOfncE93GP9pETx6Z.Jra2.ERfCF.v/bueX6J6vvU8rWR9sCDk/", "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}'} headers: content-length: ['324'] diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestProfile.test_view_contains_form.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestProfile.test_view_contains_form.yaml index 57bdd75..d5a674c 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/TestProfile.test_view_contains_form.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/TestProfile.test_view_contains_form.yaml @@ -7,8 +7,8 @@ uri: http://localhost:9001/3.0/users/les@example.org response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"096b4e1d622adb917fc67d8e2399eb47a3c3c7fc\"", "is_server_owner": false, - "password": "$6$rounds=592887$69rSeDgmqmAW10Vs$azHeniF3O0FsBt3EGPpAP4LCPfoXyi/5jEx2O44da5..edgP6CzRNawacG0Eg39/O/xl3.Os81nrVZY6Y1rRY1", + "\"f0b94bf2edd58e88d678043b4b49362ca377722e\"", "is_server_owner": false, + "password": "$6$rounds=690702$ldltgxeeAosAEu84$ypRhGVnPjh7q/JCzASdnPfc9C2lytW2mFFbTOfncE93GP9pETx6Z.Jra2.ERfCF.v/bueX6J6vvU8rWR9sCDk/", "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}'} headers: content-length: ['324'] @@ -38,8 +38,8 @@ uri: http://localhost:9001/3.0/users/les@example.org response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"096b4e1d622adb917fc67d8e2399eb47a3c3c7fc\"", "is_server_owner": false, - "password": "$6$rounds=592887$69rSeDgmqmAW10Vs$azHeniF3O0FsBt3EGPpAP4LCPfoXyi/5jEx2O44da5..edgP6CzRNawacG0Eg39/O/xl3.Os81nrVZY6Y1rRY1", + "\"f0b94bf2edd58e88d678043b4b49362ca377722e\"", "is_server_owner": false, + "password": "$6$rounds=690702$ldltgxeeAosAEu84$ypRhGVnPjh7q/JCzASdnPfc9C2lytW2mFFbTOfncE93GP9pETx6Z.Jra2.ERfCF.v/bueX6J6vvU8rWR9sCDk/", "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}'} headers: content-length: ['324'] 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 5f99525..bfa84f7 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 @@ -75,18 +75,18 @@ null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", "digests_enabled": true, "display_name": "Open_list", "filter_content": false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", - "http_etag": "\"0df09b8caf490c5b0108208cf1a653105fcc6893\"", "include_rfc2369_headers": - true, "join_address": "open_list-join@example.com", "last_post_at": null, - "leave_address": "open_list-leave@example.com", "list_name": "open_list", - "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", - "owner_address": "open_list-owner@example.com", "post_id": 1, "posting_address": - "open_list@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": - "no_munging", "reply_to_address": "", "request_address": "open_list-request@example.com", - "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Open_list] - ", "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", - "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"3d16b6c6d1bb8fed130bd061c70a0894856a4ca8\"", + "include_rfc2369_headers": true, "join_address": "open_list-join@example.com", + "last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name": + "open_list", "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "open_list-owner@example.com", "post_id": + 1, "posting_address": "open_list@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "open_list-request@example.com", "scheme": "http", "send_welcome_message": + true, "subject_prefix": "[Open_list] ", "subscription_policy": "confirm", + "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1763'] + content-length: ['1790'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -149,18 +149,19 @@ null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", - "http_etag": "\"0ef83c8b84b16db2b497557f2d5cbba080ff1f77\"", "include_rfc2369_headers": - true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, - "leave_address": "moderate_subs-leave@example.com", "list_name": "moderate_subs", - "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", - "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": - "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "moderate_subs-request@example.com", "scheme": "http", "send_welcome_message": - true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": "confirm", - "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"bbeb372001a49a25fa038477abd59e8b3c45a20d\"", + "include_rfc2369_headers": true, "join_address": "moderate_subs-join@example.com", + "last_post_at": null, "leave_address": "moderate_subs-leave@example.com", + "list_name": "moderate_subs", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "moderate_subs-owner@example.com", + "post_id": 1, "posting_address": "moderate_subs@example.com", "posting_pipeline": + "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": + "", "request_address": "moderate_subs-request@example.com", "scheme": "http", + "send_welcome_message": true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": + "confirm", "volume": 1, "web_host": "example.com", "welcome_message_uri": + "mailman:///welcome.txt"}'} headers: - content-length: ['1803'] + content-length: ['1830'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -217,27 +218,11 @@ 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/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"39a7c9bdbfae94595820fdf387838367f8ca7529\"", "is_server_owner": false, - "password": "$6$rounds=672122$sGsXcTboVCAheDNj$NlTF.dQp/gIDXC5lFxkQNuiSNjAiMZ9Au9F1KvHmEMbaYDu093Lp57i825Rd3dZn5.BRpnuwdLd9ZdFC9g.XF/", + "\"58c11cd1a6d53d4528d2f27b6f984a60c29eb7da\"", "is_server_owner": false, + "password": "$6$rounds=611372$MRX31NlwjE8FVEak$vSOGeFtGH6Xm73nM7F4ZuOAokkRZKoPcL34vdAUM41z0s2FdD5qFfbuJy6ZM1NTC25ZVwHO2gaYsWdlDyrxvL/", "self_link": "http://localhost:9001/3.0/users/36", "user_id": 36}'} headers: content-length: ['326'] @@ -268,6 +253,22 @@ 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/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -337,27 +338,11 @@ 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/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"39a7c9bdbfae94595820fdf387838367f8ca7529\"", "is_server_owner": false, - "password": "$6$rounds=672122$sGsXcTboVCAheDNj$NlTF.dQp/gIDXC5lFxkQNuiSNjAiMZ9Au9F1KvHmEMbaYDu093Lp57i825Rd3dZn5.BRpnuwdLd9ZdFC9g.XF/", + "\"58c11cd1a6d53d4528d2f27b6f984a60c29eb7da\"", "is_server_owner": false, + "password": "$6$rounds=611372$MRX31NlwjE8FVEak$vSOGeFtGH6Xm73nM7F4ZuOAokkRZKoPcL34vdAUM41z0s2FdD5qFfbuJy6ZM1NTC25ZVwHO2gaYsWdlDyrxvL/", "self_link": "http://localhost:9001/3.0/users/36", "user_id": 36}'} headers: content-length: ['326'] @@ -388,6 +373,22 @@ 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/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -452,18 +453,19 @@ null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", - "http_etag": "\"d3e0584c03eeb46b4dbfe4412a8d63477a9c3d3c\"", "include_rfc2369_headers": - true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, - "leave_address": "moderate_subs-leave@example.com", "list_name": "moderate_subs", - "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", - "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": - "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "moderate_subs-request@example.com", "scheme": "http", "send_welcome_message": - true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": "moderate", - "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"96390e546d199b207310ec8e39040ce9dcd7ffa4\"", + "include_rfc2369_headers": true, "join_address": "moderate_subs-join@example.com", + "last_post_at": null, "leave_address": "moderate_subs-leave@example.com", + "list_name": "moderate_subs", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "moderate_subs-owner@example.com", + "post_id": 1, "posting_address": "moderate_subs@example.com", "posting_pipeline": + "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": + "", "request_address": "moderate_subs-request@example.com", "scheme": "http", + "send_welcome_message": true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": + "moderate", "volume": 1, "web_host": "example.com", "welcome_message_uri": + "mailman:///welcome.txt"}'} headers: - content-length: ['1804'] + content-length: ['1831'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: 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 edfd8d9..42e8092 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 @@ -75,18 +75,18 @@ null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", "digests_enabled": true, "display_name": "Open_list", "filter_content": false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", - "http_etag": "\"0df09b8caf490c5b0108208cf1a653105fcc6893\"", "include_rfc2369_headers": - true, "join_address": "open_list-join@example.com", "last_post_at": null, - "leave_address": "open_list-leave@example.com", "list_name": "open_list", - "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", - "owner_address": "open_list-owner@example.com", "post_id": 1, "posting_address": - "open_list@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": - "no_munging", "reply_to_address": "", "request_address": "open_list-request@example.com", - "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Open_list] - ", "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", - "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"3d16b6c6d1bb8fed130bd061c70a0894856a4ca8\"", + "include_rfc2369_headers": true, "join_address": "open_list-join@example.com", + "last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name": + "open_list", "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "open_list-owner@example.com", "post_id": + 1, "posting_address": "open_list@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "open_list-request@example.com", "scheme": "http", "send_welcome_message": + true, "subject_prefix": "[Open_list] ", "subscription_policy": "confirm", + "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1763'] + content-length: ['1790'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -149,18 +149,19 @@ null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", - "http_etag": "\"0ef83c8b84b16db2b497557f2d5cbba080ff1f77\"", "include_rfc2369_headers": - true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, - "leave_address": "moderate_subs-leave@example.com", "list_name": "moderate_subs", - "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", - "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": - "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "moderate_subs-request@example.com", "scheme": "http", "send_welcome_message": - true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": "confirm", - "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"bbeb372001a49a25fa038477abd59e8b3c45a20d\"", + "include_rfc2369_headers": true, "join_address": "moderate_subs-join@example.com", + "last_post_at": null, "leave_address": "moderate_subs-leave@example.com", + "list_name": "moderate_subs", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "moderate_subs-owner@example.com", + "post_id": 1, "posting_address": "moderate_subs@example.com", "posting_pipeline": + "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": + "", "request_address": "moderate_subs-request@example.com", "scheme": "http", + "send_welcome_message": true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": + "confirm", "volume": 1, "web_host": "example.com", "welcome_message_uri": + "mailman:///welcome.txt"}'} headers: - content-length: ['1803'] + content-length: ['1830'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -217,27 +218,11 @@ 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/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"47d72ae263019d8de73d332942e94cba74e4f996\"", "is_server_owner": false, - "password": "$6$rounds=652476$pxQNZYnV4imm0sPp$PniWOucxQKC4mJtaveQzEQt0KpMzyPfpJGwweENFNRmXreDjdPptrVf7mLmLGmu2tCN9TcIEuSDdbgEZrupYY0", + "\"18ee746b94ca62da81a25bac8e7bd4f1f2dd69c7\"", "is_server_owner": false, + "password": "$6$rounds=708617$Fa5J.mtnMglRbnzA$5x/zuvHOizn8MFnVBz3UUKczqiiMzm5WFoSzlsZYSMWVHdlBw8LeHzaPqzV0ranBBFJDcB1TDzUbayeKjqTkZ.", "self_link": "http://localhost:9001/3.0/users/37", "user_id": 37}'} headers: content-length: ['326'] @@ -268,6 +253,22 @@ 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/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -300,7 +301,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/68'] + location: ['http://localhost:9001/3.0/members/102'] status: {code: 201, message: Created} - request: body: null @@ -310,13 +311,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": "\"ca246405c9fd66b6d3a2c209a67f42a835723a78\"", - "list_id": "open_list.example.com", "member_id": 68, "moderation_action": - "defer", "role": "member", "self_link": "http://localhost:9001/3.0/members/68", - "user": "http://localhost:9001/3.0/users/37"}], "http_etag": "\"3252c384216cb214d719520637ffcc6cb8d9bd5c\"", + "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"31b906d70ffb1343b297087b0f25de5af784acb5\"", + "list_id": "open_list.example.com", "member_id": 102, "moderation_action": + "defer", "role": "member", "self_link": "http://localhost:9001/3.0/members/102", + "user": "http://localhost:9001/3.0/users/37"}], "http_etag": "\"fedc8ff71b0b74e7876fade0700fc01317e875ef\"", "start": 0, "total_size": 1}'} headers: - content-length: ['492'] + content-length: ['494'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -337,27 +338,11 @@ 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": "\"f19d0b7ddb1b51b8c81a873365571fd6aeb6162d\"", - "list_id": "open_list.example.com", "list_name": "open_list", "mail_host": - "example.com", "member_count": 1, "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/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"47d72ae263019d8de73d332942e94cba74e4f996\"", "is_server_owner": false, - "password": "$6$rounds=652476$pxQNZYnV4imm0sPp$PniWOucxQKC4mJtaveQzEQt0KpMzyPfpJGwweENFNRmXreDjdPptrVf7mLmLGmu2tCN9TcIEuSDdbgEZrupYY0", + "\"18ee746b94ca62da81a25bac8e7bd4f1f2dd69c7\"", "is_server_owner": false, + "password": "$6$rounds=708617$Fa5J.mtnMglRbnzA$5x/zuvHOizn8MFnVBz3UUKczqiiMzm5WFoSzlsZYSMWVHdlBw8LeHzaPqzV0ranBBFJDcB1TDzUbayeKjqTkZ.", "self_link": "http://localhost:9001/3.0/users/37", "user_id": 37}'} headers: content-length: ['326'] @@ -388,6 +373,22 @@ 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": "\"f19d0b7ddb1b51b8c81a873365571fd6aeb6162d\"", + "list_id": "open_list.example.com", "list_name": "open_list", "mail_host": + "example.com", "member_count": 1, "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/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -429,12 +430,12 @@ 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": "\"ca246405c9fd66b6d3a2c209a67f42a835723a78\"", - "list_id": "open_list.example.com", "member_id": 68, "moderation_action": - "defer", "role": "member", "self_link": "http://localhost:9001/3.0/members/68", + "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"31b906d70ffb1343b297087b0f25de5af784acb5\"", + "list_id": "open_list.example.com", "member_id": 102, "moderation_action": + "defer", "role": "member", "self_link": "http://localhost:9001/3.0/members/102", "user": "http://localhost:9001/3.0/users/37"}'} headers: - content-length: ['387'] + content-length: ['389'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -456,18 +457,18 @@ null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", "digests_enabled": true, "display_name": "Open_list", "filter_content": false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", - "http_etag": "\"48e9d66d84c8bf2c04406ceb5938631035498bdb\"", "include_rfc2369_headers": - true, "join_address": "open_list-join@example.com", "last_post_at": null, - "leave_address": "open_list-leave@example.com", "list_name": "open_list", - "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", - "owner_address": "open_list-owner@example.com", "post_id": 1, "posting_address": - "open_list@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": - "no_munging", "reply_to_address": "", "request_address": "open_list-request@example.com", - "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Open_list] - ", "subscription_policy": "open", "volume": 1, "web_host": "example.com", - "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"f5522fcc64a0848ce01fcad0b5f9ee42b9c02bd3\"", + "include_rfc2369_headers": true, "join_address": "open_list-join@example.com", + "last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name": + "open_list", "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "open_list-owner@example.com", "post_id": + 1, "posting_address": "open_list@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "open_list-request@example.com", "scheme": "http", "send_welcome_message": + true, "subject_prefix": "[Open_list] ", "subscription_policy": "open", "volume": + 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1760'] + content-length: ['1787'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: 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 17c1f24..8255811 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 @@ -75,18 +75,18 @@ null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", "digests_enabled": true, "display_name": "Open_list", "filter_content": false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", - "http_etag": "\"0df09b8caf490c5b0108208cf1a653105fcc6893\"", "include_rfc2369_headers": - true, "join_address": "open_list-join@example.com", "last_post_at": null, - "leave_address": "open_list-leave@example.com", "list_name": "open_list", - "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", - "owner_address": "open_list-owner@example.com", "post_id": 1, "posting_address": - "open_list@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": - "no_munging", "reply_to_address": "", "request_address": "open_list-request@example.com", - "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Open_list] - ", "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", - "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"3d16b6c6d1bb8fed130bd061c70a0894856a4ca8\"", + "include_rfc2369_headers": true, "join_address": "open_list-join@example.com", + "last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name": + "open_list", "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "open_list-owner@example.com", "post_id": + 1, "posting_address": "open_list@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "open_list-request@example.com", "scheme": "http", "send_welcome_message": + true, "subject_prefix": "[Open_list] ", "subscription_policy": "confirm", + "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1763'] + content-length: ['1790'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -149,18 +149,19 @@ null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", - "http_etag": "\"0ef83c8b84b16db2b497557f2d5cbba080ff1f77\"", "include_rfc2369_headers": - true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, - "leave_address": "moderate_subs-leave@example.com", "list_name": "moderate_subs", - "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", - "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": - "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "moderate_subs-request@example.com", "scheme": "http", "send_welcome_message": - true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": "confirm", - "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"bbeb372001a49a25fa038477abd59e8b3c45a20d\"", + "include_rfc2369_headers": true, "join_address": "moderate_subs-join@example.com", + "last_post_at": null, "leave_address": "moderate_subs-leave@example.com", + "list_name": "moderate_subs", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "moderate_subs-owner@example.com", + "post_id": 1, "posting_address": "moderate_subs@example.com", "posting_pipeline": + "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": + "", "request_address": "moderate_subs-request@example.com", "scheme": "http", + "send_welcome_message": true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": + "confirm", "volume": 1, "web_host": "example.com", "welcome_message_uri": + "mailman:///welcome.txt"}'} headers: - content-length: ['1803'] + content-length: ['1830'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -217,27 +218,11 @@ 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/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"876dd07f378ac55b78fb1238d8b15987921693c8\"", "is_server_owner": false, - "password": "$6$rounds=656005$j6PSscUeaxi.698U$MDPKKwquL09xmAfv73pbe.z7jfP59JkW46qrwBQIY0kG4nsmluUeVC6OkusUm6r7YqEc3uZgTYKpXWxCrCkx1.", + "\"f55b6d2cdb24a4220514d508022d7fbeb794e565\"", "is_server_owner": false, + "password": "$6$rounds=665526$W5HrBWCgyh7X5CEl$VvAE2Mu8AbJKwl8cnR9sDm/2zMVuhON/ruvweIlHQ/inm0TDQHbDUx54zsBiOIMsWezvyropNcF6MC6rtK4bu/", "self_link": "http://localhost:9001/3.0/users/38", "user_id": 38}'} headers: content-length: ['326'] @@ -268,6 +253,22 @@ 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/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -337,27 +338,11 @@ 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/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"876dd07f378ac55b78fb1238d8b15987921693c8\"", "is_server_owner": false, - "password": "$6$rounds=656005$j6PSscUeaxi.698U$MDPKKwquL09xmAfv73pbe.z7jfP59JkW46qrwBQIY0kG4nsmluUeVC6OkusUm6r7YqEc3uZgTYKpXWxCrCkx1.", + "\"f55b6d2cdb24a4220514d508022d7fbeb794e565\"", "is_server_owner": false, + "password": "$6$rounds=665526$W5HrBWCgyh7X5CEl$VvAE2Mu8AbJKwl8cnR9sDm/2zMVuhON/ruvweIlHQ/inm0TDQHbDUx54zsBiOIMsWezvyropNcF6MC6rtK4bu/", "self_link": "http://localhost:9001/3.0/users/38", "user_id": 38}'} headers: content-length: ['326'] @@ -389,6 +374,22 @@ 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/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -453,18 +454,19 @@ null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", - "http_etag": "\"d3e0584c03eeb46b4dbfe4412a8d63477a9c3d3c\"", "include_rfc2369_headers": - true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, - "leave_address": "moderate_subs-leave@example.com", "list_name": "moderate_subs", - "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", - "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": - "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "moderate_subs-request@example.com", "scheme": "http", "send_welcome_message": - true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": "moderate", - "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"96390e546d199b207310ec8e39040ce9dcd7ffa4\"", + "include_rfc2369_headers": true, "join_address": "moderate_subs-join@example.com", + "last_post_at": null, "leave_address": "moderate_subs-leave@example.com", + "list_name": "moderate_subs", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "moderate_subs-owner@example.com", + "post_id": 1, "posting_address": "moderate_subs@example.com", "posting_pipeline": + "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": + "", "request_address": "moderate_subs-request@example.com", "scheme": "http", + "send_welcome_message": true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": + "moderate", "volume": 1, "web_host": "example.com", "welcome_message_uri": + "mailman:///welcome.txt"}'} headers: - content-length: ['1804'] + content-length: ['1831'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_mod_then_open.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_mod_then_open.yaml index b74eadf..6a9e561 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_mod_then_open.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_mod_then_open.yaml @@ -75,18 +75,18 @@ null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", "digests_enabled": true, "display_name": "Open_list", "filter_content": false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", - "http_etag": "\"0df09b8caf490c5b0108208cf1a653105fcc6893\"", "include_rfc2369_headers": - true, "join_address": "open_list-join@example.com", "last_post_at": null, - "leave_address": "open_list-leave@example.com", "list_name": "open_list", - "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", - "owner_address": "open_list-owner@example.com", "post_id": 1, "posting_address": - "open_list@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": - "no_munging", "reply_to_address": "", "request_address": "open_list-request@example.com", - "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Open_list] - ", "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", - "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"3d16b6c6d1bb8fed130bd061c70a0894856a4ca8\"", + "include_rfc2369_headers": true, "join_address": "open_list-join@example.com", + "last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name": + "open_list", "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "open_list-owner@example.com", "post_id": + 1, "posting_address": "open_list@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "open_list-request@example.com", "scheme": "http", "send_welcome_message": + true, "subject_prefix": "[Open_list] ", "subscription_policy": "confirm", + "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1763'] + content-length: ['1790'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -149,18 +149,19 @@ null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", - "http_etag": "\"0ef83c8b84b16db2b497557f2d5cbba080ff1f77\"", "include_rfc2369_headers": - true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, - "leave_address": "moderate_subs-leave@example.com", "list_name": "moderate_subs", - "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", - "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": - "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "moderate_subs-request@example.com", "scheme": "http", "send_welcome_message": - true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": "confirm", - "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"bbeb372001a49a25fa038477abd59e8b3c45a20d\"", + "include_rfc2369_headers": true, "join_address": "moderate_subs-join@example.com", + "last_post_at": null, "leave_address": "moderate_subs-leave@example.com", + "list_name": "moderate_subs", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "moderate_subs-owner@example.com", + "post_id": 1, "posting_address": "moderate_subs@example.com", "posting_pipeline": + "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": + "", "request_address": "moderate_subs-request@example.com", "scheme": "http", + "send_welcome_message": true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": + "confirm", "volume": 1, "web_host": "example.com", "welcome_message_uri": + "mailman:///welcome.txt"}'} headers: - content-length: ['1803'] + content-length: ['1830'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -186,7 +187,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/1'] + location: ['http://localhost:9001/3.0/users/39'] status: {code: 201, message: Created} - request: body: email=fritz%40example.org @@ -194,7 +195,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/1/addresses + uri: http://localhost:9001/3.0/users/39/addresses response: body: {string: !!python/unicode ''} headers: @@ -217,6 +218,41 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/test@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"d5eeb9c2a9b9bd060b4766c5b549fdc5fa19abe9\"", "is_server_owner": false, + "password": "$6$rounds=693603$X6zNTcKBHAea0aQS$Hx0a6EYZkraD7RFLfr7mv2.m2yZ1M.sAQbyLVBHw85uUgfbdwF4Ih3e7CbNG5M/cQVTDrhY3pCaXNZhnrxlSj1", + "self_link": "http://localhost:9001/3.0/users/39", "user_id": 39}'} + 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/39/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": + "\"b83404249db7d4ea3134fc9479681cb8a1b7919a\"", "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/39", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"3f59bc56ac53ac889ba2218b66f731489cd6e010\"", + "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/39"}], "http_etag": "\"6c1699ec38040137f8327bbf2632585a7b7e4ccc\"", + "start": 0, "total_size": 2}'} + headers: + content-length: ['714'] + content-type: [application/json; charset=utf-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 response: body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": @@ -233,41 +269,6 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/test@example.com - response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"d000604df7fcf30f09fb110b78bb199a2f4354a3\"", "is_server_owner": false, - "password": "$6$rounds=659686$FJfzJ0zbBHLK53.o$7pD4Z9ueX8OmPOpIHMsZ52rLufxDxzHcF5w8v7DYEuSI5ibQ3sHEVXsU4upeGbMZAHiElHwIIyulDm24m9vgV/", - "self_link": "http://localhost:9001/3.0/users/1", "user_id": 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/users/1/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"beba50816195251c83f486bbd257e29fd639385f\"", "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/1", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"0e805a389459bccaa6e81517808582547119e624\"", - "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/1"}], "http_etag": "\"ee559713b362b6255ec837d55998b5008bee5f45\"", - "start": 0, "total_size": 2}'} - headers: - content-length: ['712'] - content-type: [application/json; charset=utf-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/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -297,8 +298,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": "\"5480a4c844f282957ebb374ced8ce88fa58b6585\"", + "token": "0000000000000000000000000000000000000004", "token_owner": "moderator"}'} headers: content-length: ['142'] content-type: [application/json; charset=utf-8] @@ -324,9 +325,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": "\"8efa5e1807fb677a182a8fad178f764070f16556\"", "list_id": "moderate_subs.example.com", - "token": "0000000000000000000000000000000000000001", "token_owner": "moderator", - "type": "subscription", "when": "2005-08-01T07:49:23"}], "http_etag": "\"389657a991521e274eeead2cd3166d897f1cb4cf\"", + "http_etag": "\"e4212c5fc5242e26387ecc198ed836969112d7c3\"", "list_id": "moderate_subs.example.com", + "token": "0000000000000000000000000000000000000004", "token_owner": "moderator", + "type": "subscription", "when": "2005-08-01T07:49:23"}], "http_etag": "\"4913cf6755cf9cd8a400986c70792d2c62993529\"", "start": 0, "total_size": 1}'} headers: content-length: ['391'] @@ -351,18 +352,19 @@ null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", - "http_etag": "\"d3e0584c03eeb46b4dbfe4412a8d63477a9c3d3c\"", "include_rfc2369_headers": - true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, - "leave_address": "moderate_subs-leave@example.com", "list_name": "moderate_subs", - "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", - "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": - "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "moderate_subs-request@example.com", "scheme": "http", "send_welcome_message": - true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": "moderate", - "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"96390e546d199b207310ec8e39040ce9dcd7ffa4\"", + "include_rfc2369_headers": true, "join_address": "moderate_subs-join@example.com", + "last_post_at": null, "leave_address": "moderate_subs-leave@example.com", + "list_name": "moderate_subs", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "moderate_subs-owner@example.com", + "post_id": 1, "posting_address": "moderate_subs@example.com", "posting_pipeline": + "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": + "", "request_address": "moderate_subs-request@example.com", "scheme": "http", + "send_welcome_message": true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": + "moderate", "volume": 1, "web_host": "example.com", "welcome_message_uri": + "mailman:///welcome.txt"}'} headers: - content-length: ['1804'] + content-length: ['1831'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -396,18 +398,18 @@ null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", - "http_etag": "\"d7aa0fd214f12d213401f69434fa4ea4915ca5e6\"", "include_rfc2369_headers": - true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, - "leave_address": "moderate_subs-leave@example.com", "list_name": "moderate_subs", - "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", - "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": - "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "moderate_subs-request@example.com", "scheme": "http", "send_welcome_message": - true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": "open", - "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"6ddd37afe9fcf04afd9c3c2d422f79596f621882\"", + "include_rfc2369_headers": true, "join_address": "moderate_subs-join@example.com", + "last_post_at": null, "leave_address": "moderate_subs-leave@example.com", + "list_name": "moderate_subs", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "moderate_subs-owner@example.com", + "post_id": 1, "posting_address": "moderate_subs@example.com", "posting_pipeline": + "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": + "", "request_address": "moderate_subs-request@example.com", "scheme": "http", + "send_welcome_message": true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": + "open", "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1800'] + content-length: ['1827'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -421,7 +423,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1'] + location: ['http://localhost:9001/3.0/members/103'] status: {code: 201, message: Created} - request: body: list_id=moderate_subs.example.com&role=owner&subscriber=owner%40example.com @@ -434,7 +436,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/2'] + location: ['http://localhost:9001/3.0/members/104'] status: {code: 201, message: Created} - request: body: null @@ -444,9 +446,39 @@ 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": "\"8efa5e1807fb677a182a8fad178f764070f16556\"", "list_id": "moderate_subs.example.com", - "token": "0000000000000000000000000000000000000001", "token_owner": "moderator", - "type": "subscription", "when": "2005-08-01T07:49:23"}], "http_etag": "\"389657a991521e274eeead2cd3166d897f1cb4cf\"", + "http_etag": "\"e4212c5fc5242e26387ecc198ed836969112d7c3\"", "list_id": "moderate_subs.example.com", + "token": "0000000000000000000000000000000000000004", "token_owner": "moderator", + "type": "subscription", "when": "2005-08-01T07:49:23"}], "http_etag": "\"4913cf6755cf9cd8a400986c70792d2c62993529\"", + "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/users/owner@example.com + response: + body: {string: !!python/unicode '{"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}'} + headers: + content-length: ['190'] + content-type: [application/json; charset=utf-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/29/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": + "\"3ff612271f0a78e0f15e86f1e93354528566ee9b\"", "original_email": "owner@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/owner@example.com", + "user": "http://localhost:9001/3.0/users/29"}], "http_etag": "\"f103ec7682ec6c9bb1c12931e8253ffdb7b992b2\"", "start": 0, "total_size": 1}'} headers: content-length: ['391'] @@ -473,46 +505,16 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/owner@example.com - response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"b36f8ca1d91d583901c768dc116815282d469c66\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/2", "user_id": 2}'} - headers: - content-length: ['188'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/2/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"6d4a96d1a2b0769920049ab9095c2fa1404cf393\"", "original_email": "owner@example.com", - "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/owner@example.com", - "user": "http://localhost:9001/3.0/users/2"}], "http_etag": "\"6ea82977c32c28e8aa28a1dc75a795d4ae1c336b\"", - "start": 0, "total_size": 1}'} - headers: - 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 uri: http://localhost:9001/3.0/lists/moderate_subs.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": "\"c2bb2d9adfc185c7d38c14643224570fe8747fda\"", - "list_id": "moderate_subs.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": "\"bb5aee1cdfd2fb8488fe4673d767098ebeb900ac\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"25e6c1088f0d44d7c05d28bd29ac632ead710c28\"", + "list_id": "moderate_subs.example.com", "member_id": 104, "moderation_action": + "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/104", + "user": "http://localhost:9001/3.0/users/29"}], "http_etag": "\"5582f62123579c81ac84f442a505447bfc56bf51\"", "start": 0, "total_size": 1}'} headers: - content-length: ['493'] + content-length: ['498'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -550,7 +552,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/lists/moderate_subs.example.com/requests/0000000000000000000000000000000000000001 + uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/requests/0000000000000000000000000000000000000004 response: body: {string: !!python/unicode Already subscribed} headers: @@ -562,6 +564,36 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/owner@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"4e1a95736360f3a01f989768ff1a28a3f7b961e0\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/29", "user_id": 29}'} + headers: + content-length: ['190'] + content-type: [application/json; charset=utf-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/29/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": + "\"3ff612271f0a78e0f15e86f1e93354528566ee9b\"", "original_email": "owner@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/owner@example.com", + "user": "http://localhost:9001/3.0/users/29"}], "http_etag": "\"f103ec7682ec6c9bb1c12931e8253ffdb7b992b2\"", + "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 response: body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": @@ -578,46 +610,16 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/owner@example.com - response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"b36f8ca1d91d583901c768dc116815282d469c66\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/2", "user_id": 2}'} - headers: - content-length: ['188'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/2/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"6d4a96d1a2b0769920049ab9095c2fa1404cf393\"", "original_email": "owner@example.com", - "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/owner@example.com", - "user": "http://localhost:9001/3.0/users/2"}], "http_etag": "\"6ea82977c32c28e8aa28a1dc75a795d4ae1c336b\"", - "start": 0, "total_size": 1}'} - headers: - 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 uri: http://localhost:9001/3.0/lists/moderate_subs.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": "\"c2bb2d9adfc185c7d38c14643224570fe8747fda\"", - "list_id": "moderate_subs.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": "\"bb5aee1cdfd2fb8488fe4673d767098ebeb900ac\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"25e6c1088f0d44d7c05d28bd29ac632ead710c28\"", + "list_id": "moderate_subs.example.com", "member_id": 104, "moderation_action": + "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/104", + "user": "http://localhost:9001/3.0/users/29"}], "http_etag": "\"5582f62123579c81ac84f442a505447bfc56bf51\"", "start": 0, "total_size": 1}'} headers: - content-length: ['493'] + content-length: ['498'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -715,7 +717,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/39 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 5eaa7d3..43cbbf5 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 @@ -75,18 +75,18 @@ null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", "digests_enabled": true, "display_name": "Open_list", "filter_content": false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", - "http_etag": "\"0df09b8caf490c5b0108208cf1a653105fcc6893\"", "include_rfc2369_headers": - true, "join_address": "open_list-join@example.com", "last_post_at": null, - "leave_address": "open_list-leave@example.com", "list_name": "open_list", - "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", - "owner_address": "open_list-owner@example.com", "post_id": 1, "posting_address": - "open_list@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": - "no_munging", "reply_to_address": "", "request_address": "open_list-request@example.com", - "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Open_list] - ", "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", - "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"3d16b6c6d1bb8fed130bd061c70a0894856a4ca8\"", + "include_rfc2369_headers": true, "join_address": "open_list-join@example.com", + "last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name": + "open_list", "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "open_list-owner@example.com", "post_id": + 1, "posting_address": "open_list@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "open_list-request@example.com", "scheme": "http", "send_welcome_message": + true, "subject_prefix": "[Open_list] ", "subscription_policy": "confirm", + "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1763'] + content-length: ['1790'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -149,18 +149,19 @@ null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", - "http_etag": "\"0ef83c8b84b16db2b497557f2d5cbba080ff1f77\"", "include_rfc2369_headers": - true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, - "leave_address": "moderate_subs-leave@example.com", "list_name": "moderate_subs", - "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", - "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": - "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "moderate_subs-request@example.com", "scheme": "http", "send_welcome_message": - true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": "confirm", - "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"bbeb372001a49a25fa038477abd59e8b3c45a20d\"", + "include_rfc2369_headers": true, "join_address": "moderate_subs-join@example.com", + "last_post_at": null, "leave_address": "moderate_subs-leave@example.com", + "list_name": "moderate_subs", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "moderate_subs-owner@example.com", + "post_id": 1, "posting_address": "moderate_subs@example.com", "posting_pipeline": + "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": + "", "request_address": "moderate_subs-request@example.com", "scheme": "http", + "send_welcome_message": true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": + "confirm", "volume": 1, "web_host": "example.com", "welcome_message_uri": + "mailman:///welcome.txt"}'} headers: - content-length: ['1803'] + content-length: ['1830'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -186,7 +187,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/39'] + location: ['http://localhost:9001/3.0/users/40'] status: {code: 201, message: Created} - request: body: email=fritz%40example.org @@ -194,7 +195,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/39/addresses + uri: http://localhost:9001/3.0/users/40/addresses response: body: {string: !!python/unicode ''} headers: @@ -217,28 +218,12 @@ 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/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"363e5b64738986717ca9e3e798dce9259705cbb9\"", "is_server_owner": false, - "password": "$6$rounds=637388$9VuZO5.ur7XLASuY$53Hgu4ZZgBL9vyEVsc8oDc5lwXqQ4hqJlkD8JTEdhnCZVPih1M9./JfQmweIOKynseGC2q3d8XCXO2bT6BGi8/", - "self_link": "http://localhost:9001/3.0/users/39", "user_id": 39}'} + "\"33f7fa81ff978ef915251d54f5ff842b1ee9d946\"", "is_server_owner": false, + "password": "$6$rounds=667790$XWFN/TYfCq8Ezqjp$sHQCfJ6swEdffGC03zt1P7lVvStxzdJXqGTx5G7NM4g5Ovzce67X7ztfCmRNLBk7/vuQDbjG9Tq1Cl2GSgKMM.", + "self_link": "http://localhost:9001/3.0/users/40", "user_id": 40}'} headers: content-length: ['326'] content-type: [application/json; charset=utf-8] @@ -248,16 +233,16 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/39/addresses + uri: http://localhost:9001/3.0/users/40/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"b83404249db7d4ea3134fc9479681cb8a1b7919a\"", "original_email": "fritz@example.org", + "\"a4066256fe322d66beb287a4afe122bdaece8ffe\"", "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/39", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"3f59bc56ac53ac889ba2218b66f731489cd6e010\"", + "user": "http://localhost:9001/3.0/users/40", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"ed370cf51a7ed5a828a3c574660bfb19ff01ab8d\"", "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/39"}], "http_etag": "\"6c1699ec38040137f8327bbf2632585a7b7e4ccc\"", + "http://localhost:9001/3.0/users/40"}], "http_etag": "\"005ac52abdc2fa6fa6916cb276f48ea49bc4f1d7\"", "start": 0, "total_size": 2}'} headers: content-length: ['714'] @@ -268,6 +253,22 @@ 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/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -300,7 +301,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/69'] + location: ['http://localhost:9001/3.0/members/105'] status: {code: 201, message: Created} - request: body: null @@ -310,13 +311,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": "\"24ce5dcf84492924ec20592a525dda865799f487\"", - "list_id": "open_list.example.com", "member_id": 69, "moderation_action": - "defer", "role": "member", "self_link": "http://localhost:9001/3.0/members/69", - "user": "http://localhost:9001/3.0/users/39"}], "http_etag": "\"d9411925d4b6d6dab1c72db6b8e91c67a3fc4890\"", + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"3106af0f0b39761f903b956e7c9df6a3dfcb7337\"", + "list_id": "open_list.example.com", "member_id": 105, "moderation_action": + "defer", "role": "member", "self_link": "http://localhost:9001/3.0/members/105", + "user": "http://localhost:9001/3.0/users/40"}], "http_etag": "\"5a095534341a6c157fb5257ab97beac291008045\"", "start": 0, "total_size": 1}'} headers: - content-length: ['490'] + content-length: ['492'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -337,28 +338,12 @@ 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": "\"f19d0b7ddb1b51b8c81a873365571fd6aeb6162d\"", - "list_id": "open_list.example.com", "list_name": "open_list", "mail_host": - "example.com", "member_count": 1, "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/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"363e5b64738986717ca9e3e798dce9259705cbb9\"", "is_server_owner": false, - "password": "$6$rounds=637388$9VuZO5.ur7XLASuY$53Hgu4ZZgBL9vyEVsc8oDc5lwXqQ4hqJlkD8JTEdhnCZVPih1M9./JfQmweIOKynseGC2q3d8XCXO2bT6BGi8/", - "self_link": "http://localhost:9001/3.0/users/39", "user_id": 39}'} + "\"33f7fa81ff978ef915251d54f5ff842b1ee9d946\"", "is_server_owner": false, + "password": "$6$rounds=667790$XWFN/TYfCq8Ezqjp$sHQCfJ6swEdffGC03zt1P7lVvStxzdJXqGTx5G7NM4g5Ovzce67X7ztfCmRNLBk7/vuQDbjG9Tq1Cl2GSgKMM.", + "self_link": "http://localhost:9001/3.0/users/40", "user_id": 40}'} headers: content-length: ['326'] content-type: [application/json; charset=utf-8] @@ -368,17 +353,17 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/39/addresses + uri: http://localhost:9001/3.0/users/40/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"b83404249db7d4ea3134fc9479681cb8a1b7919a\"", "original_email": "fritz@example.org", + "\"a4066256fe322d66beb287a4afe122bdaece8ffe\"", "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/39", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"d03f8e5d44223361e8eef808014d0ee7b2440d46\"", + "user": "http://localhost:9001/3.0/users/40", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"cb798742c9bf64276173e164e05763a28c4e9da0\"", "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/39", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"0848b6b3280f6bd9108ea3c97c0740a9617daf46\"", "start": 0, "total_size": + "http://localhost:9001/3.0/users/40", "verified_on": "2005-08-01T07:49:23"}], + "http_etag": "\"cb0598da1307a4ea97d7264daf5ddf5ba40ccba2\"", "start": 0, "total_size": 2}'} headers: content-length: ['752'] @@ -389,6 +374,22 @@ 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": "\"f19d0b7ddb1b51b8c81a873365571fd6aeb6162d\"", + "list_id": "open_list.example.com", "list_name": "open_list", "mail_host": + "example.com", "member_count": 1, "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/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -418,12 +419,12 @@ 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": "\"24ce5dcf84492924ec20592a525dda865799f487\"", - "list_id": "open_list.example.com", "member_id": 69, "moderation_action": - "defer", "role": "member", "self_link": "http://localhost:9001/3.0/members/69", - "user": "http://localhost:9001/3.0/users/39"}'} + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"3106af0f0b39761f903b956e7c9df6a3dfcb7337\"", + "list_id": "open_list.example.com", "member_id": 105, "moderation_action": + "defer", "role": "member", "self_link": "http://localhost:9001/3.0/members/105", + "user": "http://localhost:9001/3.0/users/40"}'} headers: - content-length: ['385'] + content-length: ['387'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -445,18 +446,18 @@ null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", "digests_enabled": true, "display_name": "Open_list", "filter_content": false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", - "http_etag": "\"48e9d66d84c8bf2c04406ceb5938631035498bdb\"", "include_rfc2369_headers": - true, "join_address": "open_list-join@example.com", "last_post_at": null, - "leave_address": "open_list-leave@example.com", "list_name": "open_list", - "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", - "owner_address": "open_list-owner@example.com", "post_id": 1, "posting_address": - "open_list@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": - "no_munging", "reply_to_address": "", "request_address": "open_list-request@example.com", - "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Open_list] - ", "subscription_policy": "open", "volume": 1, "web_host": "example.com", - "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"f5522fcc64a0848ce01fcad0b5f9ee42b9c02bd3\"", + "include_rfc2369_headers": true, "join_address": "open_list-join@example.com", + "last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name": + "open_list", "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "open_list-owner@example.com", "post_id": + 1, "posting_address": "open_list@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "open_list-request@example.com", "scheme": "http", "send_welcome_message": + true, "subject_prefix": "[Open_list] ", "subscription_policy": "open", "volume": + 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1760'] + content-length: ['1787'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -512,7 +513,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/40 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 f75e932..f3e3406 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 @@ -75,18 +75,18 @@ null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", "digests_enabled": true, "display_name": "Open_list", "filter_content": false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", - "http_etag": "\"0df09b8caf490c5b0108208cf1a653105fcc6893\"", "include_rfc2369_headers": - true, "join_address": "open_list-join@example.com", "last_post_at": null, - "leave_address": "open_list-leave@example.com", "list_name": "open_list", - "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", - "owner_address": "open_list-owner@example.com", "post_id": 1, "posting_address": - "open_list@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": - "no_munging", "reply_to_address": "", "request_address": "open_list-request@example.com", - "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Open_list] - ", "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", - "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"3d16b6c6d1bb8fed130bd061c70a0894856a4ca8\"", + "include_rfc2369_headers": true, "join_address": "open_list-join@example.com", + "last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name": + "open_list", "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "open_list-owner@example.com", "post_id": + 1, "posting_address": "open_list@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "open_list-request@example.com", "scheme": "http", "send_welcome_message": + true, "subject_prefix": "[Open_list] ", "subscription_policy": "confirm", + "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1763'] + content-length: ['1790'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -149,18 +149,19 @@ null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", - "http_etag": "\"0ef83c8b84b16db2b497557f2d5cbba080ff1f77\"", "include_rfc2369_headers": - true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, - "leave_address": "moderate_subs-leave@example.com", "list_name": "moderate_subs", - "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", - "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": - "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "moderate_subs-request@example.com", "scheme": "http", "send_welcome_message": - true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": "confirm", - "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"bbeb372001a49a25fa038477abd59e8b3c45a20d\"", + "include_rfc2369_headers": true, "join_address": "moderate_subs-join@example.com", + "last_post_at": null, "leave_address": "moderate_subs-leave@example.com", + "list_name": "moderate_subs", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "moderate_subs-owner@example.com", + "post_id": 1, "posting_address": "moderate_subs@example.com", "posting_pipeline": + "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": + "", "request_address": "moderate_subs-request@example.com", "scheme": "http", + "send_welcome_message": true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": + "confirm", "volume": 1, "web_host": "example.com", "welcome_message_uri": + "mailman:///welcome.txt"}'} headers: - content-length: ['1803'] + content-length: ['1830'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -186,7 +187,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/40'] + location: ['http://localhost:9001/3.0/users/41'] status: {code: 201, message: Created} - request: body: email=fritz%40example.org @@ -194,7 +195,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/40/addresses + uri: http://localhost:9001/3.0/users/41/addresses response: body: {string: !!python/unicode ''} headers: @@ -217,28 +218,12 @@ 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/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"416210f7cfe8e271ea1836118d2ee45d760e1f2a\"", "is_server_owner": false, - "password": "$6$rounds=656272$tIEaXcEIsvZSaF4j$UQ.I.2DduGwh1MiOEmcWPDRKLt7Kud2LSivxA163W.Wjwd3UCZIiSZclkBRWsceAhd8zDbm9BxACjdMJRN6gH0", - "self_link": "http://localhost:9001/3.0/users/40", "user_id": 40}'} + "\"d7d8c168126f4615728d09574565ccb088bd9585\"", "is_server_owner": false, + "password": "$6$rounds=595659$G/Nc0QdUY6mRrSpM$RQeqlJNKbNZje7lWkKAeo/K5jxqAP53kCdFL3/RLPDD4Artzg6TAvULiRgvbo2UUfNRz8R6.3NxHp8UaisKJ..", + "self_link": "http://localhost:9001/3.0/users/41", "user_id": 41}'} headers: content-length: ['326'] content-type: [application/json; charset=utf-8] @@ -248,16 +233,16 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/40/addresses + uri: http://localhost:9001/3.0/users/41/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"a4066256fe322d66beb287a4afe122bdaece8ffe\"", "original_email": "fritz@example.org", + "\"8331fa25dce94aaa323864dce5938641ce31134f\"", "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/40", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"ed370cf51a7ed5a828a3c574660bfb19ff01ab8d\"", + "user": "http://localhost:9001/3.0/users/41", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"1186dbdbf5b5336adf426e8956ef25a4360a1ce7\"", "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/40"}], "http_etag": "\"005ac52abdc2fa6fa6916cb276f48ea49bc4f1d7\"", + "http://localhost:9001/3.0/users/41"}], "http_etag": "\"289b9c4b0587d73ea30665f4936ab5e4e7cdee65\"", "start": 0, "total_size": 2}'} headers: content-length: ['714'] @@ -268,6 +253,22 @@ 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/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -320,28 +321,12 @@ 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/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"416210f7cfe8e271ea1836118d2ee45d760e1f2a\"", "is_server_owner": false, - "password": "$6$rounds=656272$tIEaXcEIsvZSaF4j$UQ.I.2DduGwh1MiOEmcWPDRKLt7Kud2LSivxA163W.Wjwd3UCZIiSZclkBRWsceAhd8zDbm9BxACjdMJRN6gH0", - "self_link": "http://localhost:9001/3.0/users/40", "user_id": 40}'} + "\"d7d8c168126f4615728d09574565ccb088bd9585\"", "is_server_owner": false, + "password": "$6$rounds=595659$G/Nc0QdUY6mRrSpM$RQeqlJNKbNZje7lWkKAeo/K5jxqAP53kCdFL3/RLPDD4Artzg6TAvULiRgvbo2UUfNRz8R6.3NxHp8UaisKJ..", + "self_link": "http://localhost:9001/3.0/users/41", "user_id": 41}'} headers: content-length: ['326'] content-type: [application/json; charset=utf-8] @@ -351,16 +336,16 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/40/addresses + uri: http://localhost:9001/3.0/users/41/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"a4066256fe322d66beb287a4afe122bdaece8ffe\"", "original_email": "fritz@example.org", + "\"8331fa25dce94aaa323864dce5938641ce31134f\"", "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/40", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"ed370cf51a7ed5a828a3c574660bfb19ff01ab8d\"", + "user": "http://localhost:9001/3.0/users/41", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"1186dbdbf5b5336adf426e8956ef25a4360a1ce7\"", "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/40"}], "http_etag": "\"005ac52abdc2fa6fa6916cb276f48ea49bc4f1d7\"", + "http://localhost:9001/3.0/users/41"}], "http_etag": "\"289b9c4b0587d73ea30665f4936ab5e4e7cdee65\"", "start": 0, "total_size": 2}'} headers: content-length: ['714'] @@ -371,6 +356,22 @@ 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/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -435,18 +436,18 @@ null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", "digests_enabled": true, "display_name": "Open_list", "filter_content": false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", - "http_etag": "\"48e9d66d84c8bf2c04406ceb5938631035498bdb\"", "include_rfc2369_headers": - true, "join_address": "open_list-join@example.com", "last_post_at": null, - "leave_address": "open_list-leave@example.com", "list_name": "open_list", - "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", - "owner_address": "open_list-owner@example.com", "post_id": 1, "posting_address": - "open_list@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": - "no_munging", "reply_to_address": "", "request_address": "open_list-request@example.com", - "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Open_list] - ", "subscription_policy": "open", "volume": 1, "web_host": "example.com", - "welcome_message_uri": "mailman:///welcome.txt"}'} + "goodbye_message_uri": "", "http_etag": "\"f5522fcc64a0848ce01fcad0b5f9ee42b9c02bd3\"", + "include_rfc2369_headers": true, "join_address": "open_list-join@example.com", + "last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name": + "open_list", "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "open_list-owner@example.com", "post_id": + 1, "posting_address": "open_list@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "open_list-request@example.com", "scheme": "http", "send_welcome_message": + true, "subject_prefix": "[Open_list] ", "subscription_policy": "open", "volume": + 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1760'] + content-length: ['1787'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -502,7 +503,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/41 response: body: {string: !!python/unicode ''} headers: diff --git a/testing/test_settings.py b/testing/test_settings.py index 2b12b65..a5e8329 100755 --- a/testing/test_settings.py +++ b/testing/test_settings.py @@ -70,7 +70,7 @@ 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.security.SecurityMiddleware', - #'postorius.middleware.PostoriusMiddleware', + 'postorius.middleware.PostoriusMiddleware', ) # Set `postorius.urls` as main url config if Postorius