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 6abaee0..9d6d186 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/AddModeratorTest.test_new_moderator_added.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/AddModeratorTest.test_new_moderator_added.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -20,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] + content-length: ['172'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -47,18 +45,6 @@ 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", @@ -70,7 +56,7 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=moderator&subscriber=newmod%40example.com + body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=newmod%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -88,18 +74,6 @@ 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", 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 26bdc3e..1d21574 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/AddRemoveOwnerTest.test_add_remove_owner.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/AddRemoveOwnerTest.test_add_remove_owner.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -20,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] + content-length: ['172'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -58,7 +56,7 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=su%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=su%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -76,36 +74,6 @@ 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": - "\"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": "su@example.com", "http_etag": - "\"a8988d233ad4b9e8641ad5d75553912565efec83\"", "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/2"}], "http_etag": "\"7cc723891821fbf8b0974c2ec407cca11fbb6726\"", - "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", @@ -117,7 +85,7 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=newowner%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=newowner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -135,36 +103,6 @@ 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": - "\"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": "su@example.com", "http_etag": - "\"a8988d233ad4b9e8641ad5d75553912565efec83\"", "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/2"}], "http_etag": "\"7cc723891821fbf8b0974c2ec407cca11fbb6726\"", - "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", @@ -224,36 +162,6 @@ 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": - "\"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": "su@example.com", "http_etag": - "\"a8988d233ad4b9e8641ad5d75553912565efec83\"", "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/2"}], "http_etag": "\"7cc723891821fbf8b0974c2ec407cca11fbb6726\"", - "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 750d454..358dd25 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/AddRemoveOwnerTest.test_remove_owner_as_owner_self_last.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/AddRemoveOwnerTest.test_remove_owner_as_owner_self_last.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -20,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] + content-length: ['172'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -58,7 +56,7 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=su%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=su%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -87,7 +85,7 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=otherowner%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=otherowner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -149,36 +147,6 @@ 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": - "\"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": "su@example.com", "http_etag": - "\"a8988d233ad4b9e8641ad5d75553912565efec83\"", "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/2"}], "http_etag": "\"7cc723891821fbf8b0974c2ec407cca11fbb6726\"", - "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", @@ -241,7 +209,7 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=su%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=su%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -304,36 +272,6 @@ 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": - "\"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": "su@example.com", "http_etag": - "\"a8988d233ad4b9e8641ad5d75553912565efec83\"", "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/2"}], "http_etag": "\"7cc723891821fbf8b0974c2ec407cca11fbb6726\"", - "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 cfab934..669bacb 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/AddRemoveOwnerTest.test_remove_owner_by_owner.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/AddRemoveOwnerTest.test_remove_owner_by_owner.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -20,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] + content-length: ['172'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -58,7 +56,7 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=su%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=su%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -93,36 +91,6 @@ 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": - "\"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": "su@example.com", "http_etag": - "\"a8988d233ad4b9e8641ad5d75553912565efec83\"", "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/2"}], "http_etag": "\"7cc723891821fbf8b0974c2ec407cca11fbb6726\"", - "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", @@ -179,7 +147,7 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=newowner%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=newowner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -197,36 +165,6 @@ 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": - "\"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": "su@example.com", "http_etag": - "\"a8988d233ad4b9e8641ad5d75553912565efec83\"", "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/2"}], "http_etag": "\"7cc723891821fbf8b0974c2ec407cca11fbb6726\"", - "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", @@ -336,36 +274,6 @@ 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": - "\"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": "su@example.com", "http_etag": - "\"a8988d233ad4b9e8641ad5d75553912565efec83\"", "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/2"}], "http_etag": "\"7cc723891821fbf8b0974c2ec407cca11fbb6726\"", - "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/DomainCreationTest.test_new_domain_created_with_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/DomainCreationTest.test_new_domain_created_with_owner.yaml index 1575fb1..321bf7c 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 @@ -79,12 +79,12 @@ uri: http://localhost:9001/3.0/domains/example.com/owners response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"eb591d9720aa0ac944b49315b6af1c950410b54c\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}], "http_etag": - "\"cf73b75814e4f44e603170b39d65b5120218e52e\"", "start": 0, "total_size": + "http_etag": "\"217ae20e01d0696223ce2359757cb6076aebb31c\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/125", "user_id": 125}], + "http_etag": "\"f513400c649b8c2ccdf4aa8160113d3b586d146f\"", "start": 0, "total_size": 1}'} headers: - content-length: ['293'] + content-length: ['297'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -95,10 +95,10 @@ uri: http://localhost:9001/3.0/users/su@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"eb591d9720aa0ac944b49315b6af1c950410b54c\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}'} + "\"217ae20e01d0696223ce2359757cb6076aebb31c\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/125", "user_id": 125}'} headers: - content-length: ['188'] + content-length: ['192'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -133,12 +133,12 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"eb591d9720aa0ac944b49315b6af1c950410b54c\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}], "http_etag": - "\"cf73b75814e4f44e603170b39d65b5120218e52e\"", "start": 0, "total_size": + "http_etag": "\"217ae20e01d0696223ce2359757cb6076aebb31c\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/125", "user_id": 125}], + "http_etag": "\"f513400c649b8c2ccdf4aa8160113d3b586d146f\"", "start": 0, "total_size": 1}'} headers: - content-length: ['293'] + content-length: ['297'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -146,7 +146,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/125 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/DomainCreationTest.test_permission_denied.yaml b/src/postorius/tests/fixtures/vcr_cassettes/DomainCreationTest.test_permission_denied.yaml index cbe1f77..c442bed 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 @@ -4,37 +4,13 @@ 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/domains response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -47,6 +23,6 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/DomainCreationTest.test_validation_of_mail_host.yaml b/src/postorius/tests/fixtures/vcr_cassettes/DomainCreationTest.test_validation_of_mail_host.yaml index 9a24357..c442bed 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/DomainCreationTest.test_validation_of_mail_host.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/DomainCreationTest.test_validation_of_mail_host.yaml @@ -3,38 +3,26 @@ 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' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} version: 1 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 6c80e5d..a442a89 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_access_anonymous.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_access_anonymous.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: @@ -53,10 +53,10 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -66,10 +66,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] 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 + body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,6 +80,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/58'] status: {code: 201, message: Created} - request: @@ -88,14 +90,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -116,22 +118,22 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"cbdda1bcd01756e0b9654f511f969d9c0db788c7\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/56", "user_id": 56}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"a0047420445e969e94930347b9942e863350bcd2\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/57", - "user_id": 57}], "http_etag": "\"45af7ef5613e03c30a12f5c8f442d250579be691\"", + "http_etag": "\"4a285f1759e20051233a71c5eb314755ec29e5cf\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/51", "user_id": 51}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"694e7c8ddb0f934aebafa60d0d62e309edd4dff2\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/52", + "user_id": 52}], "http_etag": "\"746e4528f0fab9207f3fe7c097561f61c95c8218\"", "start": 0, "total_size": 2}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/56 + uri: http://localhost:9001/3.0/users/51 response: body: {string: !!python/unicode ''} headers: @@ -142,7 +144,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/57 + uri: http://localhost:9001/3.0/users/52 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_access_basic_user.yaml b/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_access_basic_user.yaml index 6a06a28..2322207 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_access_basic_user.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_access_basic_user.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: @@ -53,10 +53,10 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -66,10 +66,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] 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 + body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,6 +80,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/60'] status: {code: 201, message: Created} - request: @@ -86,40 +88,16 @@ 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 GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -140,22 +118,22 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"132e9119809986bfb1a371e9b8548ddb69655407\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/58", "user_id": 58}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"a0a537fff1aaea3eb7a9eb7a6abfae830eff26c0\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/59", - "user_id": 59}], "http_etag": "\"de436d71fedfa1724000b138b2336ab3971bcc13\"", + "http_etag": "\"3c60293ff607ebcfa12ba62a87e1117e055aaf2c\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/53", "user_id": 53}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"9b874ad1cfcec0e350cc73b74e146dc62885865e\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/54", + "user_id": 54}], "http_etag": "\"5a286d573915987075c6f319c91edc27df798dc0\"", "start": 0, "total_size": 2}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/58 + uri: http://localhost:9001/3.0/users/53 response: body: {string: !!python/unicode ''} headers: @@ -166,7 +144,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/59 + uri: http://localhost:9001/3.0/users/54 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_access_moderators.yaml b/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_access_moderators.yaml index 1c93a78..5fb5912 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_access_moderators.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_access_moderators.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: @@ -53,10 +53,10 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -66,10 +66,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] 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 + body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,6 +80,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/62'] status: {code: 201, message: Created} - request: @@ -86,78 +88,16 @@ 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": - "\"1c60ef8b0c095eafe42cc79e85750834e6f25739\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/61", "user_id": 61}'} - 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/61/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "moderator@example.com", - "http_etag": "\"30a97a6a4bc4f18a15355c9310060d433a389dc9\"", "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/61"}], - "http_etag": "\"28446812cdce32b2c964848946e1ab8e2a471447\"", "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 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": - "\"1c60ef8b0c095eafe42cc79e85750834e6f25739\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/61", "user_id": 61}'} - 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/61/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "moderator@example.com", - "http_etag": "\"30a97a6a4bc4f18a15355c9310060d433a389dc9\"", "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/61"}], - "http_etag": "\"28446812cdce32b2c964848946e1ab8e2a471447\"", "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 GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -178,22 +118,22 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"de1e4c89e338b15e8968d576d8687c538471c14c\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/60", "user_id": 60}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"1c60ef8b0c095eafe42cc79e85750834e6f25739\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/61", - "user_id": 61}], "http_etag": "\"b8906d0fbeec09102cb106bc0208f448babb9ab6\"", + "http_etag": "\"df64d4f4adfafc9332703c75e9d7e02ec7b26df1\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/55", "user_id": 55}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"cbdda1bcd01756e0b9654f511f969d9c0db788c7\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/56", + "user_id": 56}], "http_etag": "\"b7ff27c642290d6746e06631fded9bccff9a832d\"", "start": 0, "total_size": 2}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/60 + uri: http://localhost:9001/3.0/users/55 response: body: {string: !!python/unicode ''} headers: @@ -204,7 +144,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/61 + uri: http://localhost:9001/3.0/users/56 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_access_owners.yaml b/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_access_owners.yaml index 2e72353..2421c97 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_access_owners.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_access_owners.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: @@ -53,10 +53,10 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -66,10 +66,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] 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 + body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,6 +80,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/64'] status: {code: 201, message: Created} - request: @@ -86,76 +88,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": - "\"f4c118620518f77057364d55ff3113d1e549d5fd\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/62", "user_id": 62}'} - 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/62/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"3cb10fc2befec8a18b69aaf944f4231e32e65f36\"", "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/62"}], "http_etag": "\"dd53c1192b2a1d4f65d666c1501d54b56b1c218c\"", - "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": - "\"f4c118620518f77057364d55ff3113d1e549d5fd\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/62", "user_id": 62}'} - 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/62/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"3cb10fc2befec8a18b69aaf944f4231e32e65f36\"", "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/62"}], "http_etag": "\"dd53c1192b2a1d4f65d666c1501d54b56b1c218c\"", - "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/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -176,22 +118,22 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"f4c118620518f77057364d55ff3113d1e549d5fd\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/62", "user_id": 62}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"5412b1d994bc41ce564922865c91ec9909f8952f\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/63", - "user_id": 63}], "http_etag": "\"221f5bbf22a6c760954a96adadca27fad049a02a\"", + "http_etag": "\"a0047420445e969e94930347b9942e863350bcd2\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/57", "user_id": 57}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"132e9119809986bfb1a371e9b8548ddb69655407\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/58", + "user_id": 58}], "http_etag": "\"543abea76f6ba4e4984e13ea09a437610dbb8808\"", "start": 0, "total_size": 2}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/62 + uri: http://localhost:9001/3.0/users/57 response: body: {string: !!python/unicode ''} headers: @@ -202,7 +144,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/63 + uri: http://localhost:9001/3.0/users/58 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_domain_delete.yaml b/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_domain_delete.yaml index 331091a..75b2eeb 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_domain_delete.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_domain_delete.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: @@ -53,10 +53,10 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -66,10 +66,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] 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 + body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,24 +80,13 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] 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 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: @@ -109,25 +99,13 @@ 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 '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -140,7 +118,7 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -153,7 +131,7 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -166,7 +144,7 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -176,22 +154,22 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"4405ea4e8786e154d63546c973dcc73b51a2ad56\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/64", "user_id": 64}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"eac05161a72ee0876a709658d291d4371574fe41\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/65", - "user_id": 65}], "http_etag": "\"2a66ed0ce88225be58f2c4fa951851856a3bbe62\"", + "http_etag": "\"a0a537fff1aaea3eb7a9eb7a6abfae830eff26c0\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/59", "user_id": 59}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"de1e4c89e338b15e8968d576d8687c538471c14c\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/60", + "user_id": 60}], "http_etag": "\"916ad71170e4c94b350bde7995771ccd6f478e96\"", "start": 0, "total_size": 2}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/64 + uri: http://localhost:9001/3.0/users/59 response: body: {string: !!python/unicode ''} headers: @@ -202,7 +180,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/65 + uri: http://localhost:9001/3.0/users/60 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_domain_delete_confirm.yaml b/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_domain_delete_confirm.yaml index d6bd0db..cc18a6f 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_domain_delete_confirm.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_domain_delete_confirm.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: @@ -53,10 +53,10 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -66,10 +66,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] 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 + body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,6 +80,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/68'] status: {code: 201, message: Created} - request: @@ -86,28 +88,16 @@ 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", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -124,7 +114,7 @@ "start": 0, "total_size": 1}'} headers: content-length: ['399'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -133,14 +123,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -161,22 +151,22 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"0a53b06deb9b78ed4cdfa9b249ec3f8a688ba2ab\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/66", "user_id": 66}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"8f98b174e9b917748477c21a7ffd7b01a635caa8\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/67", - "user_id": 67}], "http_etag": "\"01da68868a5b69d38d6b034113f61a82b8ccc63e\"", + "http_etag": "\"1c60ef8b0c095eafe42cc79e85750834e6f25739\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/61", "user_id": 61}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"f4c118620518f77057364d55ff3113d1e549d5fd\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/62", + "user_id": 62}], "http_etag": "\"8b37b75c619ffa40573c6e74ce8926256218bb8d\"", "start": 0, "total_size": 2}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/66 + uri: http://localhost:9001/3.0/users/61 response: body: {string: !!python/unicode ''} headers: @@ -187,7 +177,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/67 + uri: http://localhost:9001/3.0/users/62 response: body: {string: !!python/unicode ''} headers: 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 0a64e9e..7ae002d 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 @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: @@ -53,10 +53,10 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -66,10 +66,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/91'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/members/114'] status: {code: 201, message: Created} - request: - body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com + body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,35 +80,24 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/92'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/members/115'] 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", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -116,13 +106,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -131,14 +119,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -159,22 +147,22 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"555b99ba1fd97d57b3489c51824a186de671c3b2\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/97", "user_id": 97}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"e2fe0559627f5c61596e6c67563791138130b815\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/98", - "user_id": 98}], "http_etag": "\"fd9dc97913f8b2aadbae3f693538063a2572a522\"", + "http_etag": "\"562a0d26c257705a22902c5a8cd196ab62f7ced1\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/115", "user_id": 115}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"ce2c375de7d732a159dcd47a5d9ffebbe27a4091\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/116", + "user_id": 116}], "http_etag": "\"cab28cf9697db1ef375c2f1b3ca55622bf7997c2\"", "start": 0, "total_size": 2}'} headers: - content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-length: ['491'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/97 + uri: http://localhost:9001/3.0/users/115 response: body: {string: !!python/unicode ''} headers: @@ -185,7 +173,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/98 + uri: http://localhost:9001/3.0/users/116 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_not_accessible_to_moderators.yaml b/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_not_accessible_to_moderators.yaml index db0378c..bea9546 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_not_accessible_to_moderators.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_not_accessible_to_moderators.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: @@ -53,10 +53,10 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -66,10 +66,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/93'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/members/116'] status: {code: 201, message: Created} - request: - body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com + body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,54 +80,24 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/94'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/members/117'] 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": - "\"0ca6fb9eadc69fead7a12f149232ec08302bb657\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/100", "user_id": 100}'} - headers: - content-length: ['192'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/100/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "moderator@example.com", - "http_etag": "\"9e61bd22194d15c6a2408949ba890d3526be6497\"", "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/100"}], - "http_etag": "\"b1589bcff630b24e500df1a6c3619f6d2b67abb9\"", "start": 0, "total_size": - 1}'} - headers: - content-length: ['404'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -147,22 +118,22 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"ec55d543b49cca522faa128968b2565a98fca8d0\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/99", "user_id": 99}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"0ca6fb9eadc69fead7a12f149232ec08302bb657\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/100", - "user_id": 100}], "http_etag": "\"8484f056095d02faebed11b0e07ac598f413dcc8\"", + "http_etag": "\"d87649f27b1fac7ffd78a81e3665ac8ed67c18a1\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/117", "user_id": 117}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"ad44224458a738fa483628a7c989fa3e09c57929\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/118", + "user_id": 118}], "http_etag": "\"65a67aa6ef83b05c58bc86c06b1514bbddce6fb0\"", "start": 0, "total_size": 2}'} headers: - content-length: ['489'] - content-type: [application/json; charset=utf-8] + content-length: ['491'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/100 + uri: http://localhost:9001/3.0/users/117 response: body: {string: !!python/unicode ''} headers: @@ -173,7 +144,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/99 + uri: http://localhost:9001/3.0/users/118 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_not_accessible_to_owners.yaml b/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_not_accessible_to_owners.yaml index 985bdfb..a5d7fec 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_not_accessible_to_owners.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_not_accessible_to_owners.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: @@ -53,10 +53,10 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -66,10 +66,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/95'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/members/118'] status: {code: 201, message: Created} - request: - body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com + body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,53 +80,24 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/96'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/members/119'] 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": - "\"db5579cd27bf13f658fc8d9cab271667a51d8625\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/101", "user_id": 101}'} - headers: - content-length: ['192'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/101/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"559e7e834a70bb3263f48dedabdd7868fe098681\"", "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/101"}], "http_etag": "\"ef507f3609c363d57dc7fa34a4cf72a03ec7ea25\"", - "start": 0, "total_size": 1}'} - headers: - content-length: ['392'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -146,22 +118,22 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"db5579cd27bf13f658fc8d9cab271667a51d8625\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/101", "user_id": 101}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"4719f322df75c491190b1cd03895920321a6b274\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/102", - "user_id": 102}], "http_etag": "\"dc11c47a3c4e58d5af2afdea0e198003da164e8f\"", + "http_etag": "\"49eb09bdcfba92ddb869657bd4d475f4b6763533\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/119", "user_id": 119}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"06c2625563d54f5dac58c8b8b87ed80b586862fd\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/120", + "user_id": 120}], "http_etag": "\"eaa3bc715d3a3616362ce9d64e408581c876ea6b\"", "start": 0, "total_size": 2}'} headers: content-length: ['491'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/101 + uri: http://localhost:9001/3.0/users/119 response: body: {string: !!python/unicode ''} headers: @@ -172,7 +144,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/102 + uri: http://localhost:9001/3.0/users/120 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_not_accessible_to_public.yaml b/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_not_accessible_to_public.yaml index 6982bf0..200c730 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_not_accessible_to_public.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_not_accessible_to_public.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: @@ -53,10 +53,10 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -66,10 +66,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/97'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/members/120'] status: {code: 201, message: Created} - request: - body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com + body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,7 +80,8 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/98'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/members/121'] status: {code: 201, message: Created} - request: body: null @@ -88,14 +90,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -116,22 +118,22 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"5a4ce9224fc8e1c786dcbf090938bc77b2432895\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/103", "user_id": 103}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"770836ceecd2d678acb71744905fc6dca5b658fc\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/104", - "user_id": 104}], "http_etag": "\"0a895f81a651a1af39e92837796237366722fca7\"", + "http_etag": "\"ce983ccffb26405fd2ec62e5f38f51aabb3ee697\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/121", "user_id": 121}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"17f3034b96dfb14bb83ad930c9cb6f83a51bce6f\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/122", + "user_id": 122}], "http_etag": "\"c15b3a62a85c85b1b258ba42de8225a5e981a46b\"", "start": 0, "total_size": 2}'} headers: content-length: ['491'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/103 + uri: http://localhost:9001/3.0/users/121 response: body: {string: !!python/unicode ''} headers: @@ -142,7 +144,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/104 + uri: http://localhost:9001/3.0/users/122 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_not_accessible_to_unpriveleged_user.yaml b/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_not_accessible_to_unpriveleged_user.yaml index 3134182..081210c 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_not_accessible_to_unpriveleged_user.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_not_accessible_to_unpriveleged_user.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: @@ -53,10 +53,10 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -66,10 +66,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/99'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/members/122'] status: {code: 201, message: Created} - request: - body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com + body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,35 +80,24 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/100'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/members/123'] 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/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -128,22 +118,22 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"8d25493a622e91bd954fef31af740533b170dd11\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/105", "user_id": 105}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"a8a6b3a9c9c881d786431d76df27933f3acfb376\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/106", - "user_id": 106}], "http_etag": "\"06987c6bea3e944b89f13f984944a0d4b3ed1b4c\"", + "http_etag": "\"2bdd1deff3c6749ca774a5589d8b6e2c40d164cb\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/123", "user_id": 123}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"39ea9156496f2970f184967c90e2312324b8ce44\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/124", + "user_id": 124}], "http_etag": "\"a3663522ff64e7142d256037f8ec0c95263356f4\"", "start": 0, "total_size": 2}'} headers: content-length: ['491'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/105 + uri: http://localhost:9001/3.0/users/123 response: body: {string: !!python/unicode ''} headers: @@ -154,7 +144,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/106 + uri: http://localhost:9001/3.0/users/124 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_access_for_superuser.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_access_for_superuser.yaml index ca6fae1..8dee231 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_access_for_superuser.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_access_for_superuser.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=test_list%40example.com + body: !!python/unicode fqdn_listname=test_list%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/test_list.example.com'] status: {code: 201, message: Created} - request: @@ -45,18 +45,6 @@ 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": @@ -66,7 +54,7 @@ "volume": 1}'} headers: content-length: ['324'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -79,7 +67,7 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -88,14 +76,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -119,6 +107,6 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} version: 1 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 0f51b77..b481a36 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_add_ban.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_add_ban.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=test_list%40example.com + body: !!python/unicode fqdn_listname=test_list%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/test_list.example.com'] status: {code: 201, message: Created} - request: @@ -45,18 +45,6 @@ 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": @@ -66,10 +54,10 @@ "volume": 1}'} headers: content-length: ['324'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: email=banned%40example.com + body: !!python/unicode email=banned%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,6 +67,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/test_list.example.com/bans/banned@example.com'] status: {code: 201, message: Created} - request: @@ -86,18 +75,6 @@ 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": @@ -107,7 +84,7 @@ "volume": 1}'} headers: content-length: ['324'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -123,7 +100,7 @@ 1}'} headers: content-length: ['327'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -139,7 +116,7 @@ 1}'} headers: content-length: ['327'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -155,7 +132,7 @@ "volume": 1}'} headers: content-length: ['324'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -169,7 +146,7 @@ "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned@example.com"}'} headers: content-length: ['222'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -178,14 +155,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -209,6 +186,6 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} version: 1 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 058035c..845b361 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_add_ban_duplicate.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_add_ban_duplicate.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=test_list%40example.com + body: !!python/unicode fqdn_listname=test_list%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/test_list.example.com'] status: {code: 201, message: Created} - request: @@ -54,10 +54,10 @@ "volume": 1}'} headers: content-length: ['324'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: email=banned%40example.com + body: !!python/unicode email=banned%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -67,6 +67,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/test_list.example.com/bans/banned@example.com'] status: {code: 201, message: Created} - request: @@ -81,25 +82,13 @@ "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned@example.com"}'} headers: content-length: ['222'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-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_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": @@ -109,10 +98,10 @@ "volume": 1}'} headers: content-length: ['324'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: email=banned%40example.com + body: !!python/unicode email=banned%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -122,25 +111,13 @@ body: {string: !!python/unicode Address is already banned} headers: content-length: ['25'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 400, message: Bad Request} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/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": @@ -150,7 +127,7 @@ "volume": 1}'} headers: content-length: ['324'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -166,7 +143,7 @@ 1}'} headers: content-length: ['327'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -182,7 +159,7 @@ 1}'} headers: content-length: ['327'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -191,14 +168,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -222,6 +199,6 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} version: 1 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 ca6fae1..8dee231 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_context_contains_create_form.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_context_contains_create_form.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=test_list%40example.com + body: !!python/unicode fqdn_listname=test_list%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/test_list.example.com'] status: {code: 201, message: Created} - request: @@ -45,18 +45,6 @@ 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": @@ -66,7 +54,7 @@ "volume": 1}'} headers: content-length: ['324'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -79,7 +67,7 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -88,14 +76,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -119,6 +107,6 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} version: 1 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 48ce840..f1e7167 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_context_contains_delete_forms.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_context_contains_delete_forms.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=test_list%40example.com + body: !!python/unicode fqdn_listname=test_list%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/test_list.example.com'] status: {code: 201, message: Created} - request: @@ -54,10 +54,10 @@ "volume": 1}'} headers: content-length: ['324'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: email=banned1%40example.com + body: !!python/unicode email=banned1%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -67,10 +67,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/test_list.example.com/bans/banned1@example.com'] status: {code: 201, message: Created} - request: - body: email=banned2%40example.com + body: !!python/unicode email=banned2%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -80,10 +81,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/test_list.example.com/bans/banned2@example.com'] status: {code: 201, message: Created} - request: - body: email=banned3%40example.com + body: !!python/unicode email=banned3%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -93,10 +95,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/test_list.example.com/bans/banned3@example.com'] status: {code: 201, message: Created} - request: - body: email=banned4%40example.com + body: !!python/unicode email=banned4%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -106,10 +109,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/test_list.example.com/bans/banned4@example.com'] status: {code: 201, message: Created} - request: - body: email=banned5%40example.com + body: !!python/unicode email=banned5%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -119,10 +123,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/test_list.example.com/bans/banned5@example.com'] status: {code: 201, message: Created} - request: - body: email=banned6%40example.com + body: !!python/unicode email=banned6%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -132,10 +137,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/test_list.example.com/bans/banned6@example.com'] status: {code: 201, message: Created} - request: - body: email=banned7%40example.com + body: !!python/unicode email=banned7%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -145,10 +151,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/test_list.example.com/bans/banned7@example.com'] status: {code: 201, message: Created} - request: - body: email=banned8%40example.com + body: !!python/unicode email=banned8%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -158,10 +165,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/test_list.example.com/bans/banned8@example.com'] status: {code: 201, message: Created} - request: - body: email=banned9%40example.com + body: !!python/unicode email=banned9%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -171,6 +179,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/test_list.example.com/bans/banned9@example.com'] status: {code: 201, message: Created} - request: @@ -178,18 +187,6 @@ 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": @@ -199,7 +196,7 @@ "volume": 1}'} headers: content-length: ['324'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -231,7 +228,7 @@ 9}'} headers: content-length: ['2137'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -263,7 +260,7 @@ 9}'} headers: content-length: ['2137'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -272,14 +269,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -303,6 +300,6 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} version: 1 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 462e1ce..7625ef8 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_del_ban.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_del_ban.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=test_list%40example.com + body: !!python/unicode fqdn_listname=test_list%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/test_list.example.com'] status: {code: 201, message: Created} - request: @@ -54,10 +54,10 @@ "volume": 1}'} headers: content-length: ['324'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: email=banned%40example.com + body: !!python/unicode email=banned%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -67,6 +67,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/test_list.example.com/bans/banned@example.com'] status: {code: 201, message: Created} - request: @@ -81,25 +82,13 @@ "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned@example.com"}'} headers: content-length: ['222'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-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_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": @@ -109,7 +98,7 @@ "volume": 1}'} headers: content-length: ['324'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -125,7 +114,7 @@ 1}'} headers: content-length: ['327'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -143,18 +132,6 @@ 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": @@ -164,7 +141,7 @@ "volume": 1}'} headers: content-length: ['324'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -177,7 +154,7 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -189,7 +166,7 @@ body: {string: !!python/unicode 'Email is not banned: banned@example.com'} headers: content-length: ['39'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 404, message: Not Found} - request: body: null @@ -198,14 +175,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -229,6 +206,6 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} version: 1 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 79008b2..4eb096f 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_del_unknown_ban.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_del_unknown_ban.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=test_list%40example.com + body: !!python/unicode fqdn_listname=test_list%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/test_list.example.com'] status: {code: 201, message: Created} - request: @@ -54,7 +54,7 @@ "volume": 1}'} headers: content-length: ['324'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -66,19 +66,7 @@ body: {string: !!python/unicode 'Email is not banned: banned@example.com'} headers: content-length: ['39'] - 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_superuser@example.com - response: - body: {string: !!python/unicode 404 Not Found} - headers: - content-length: ['13'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 404, message: Not Found} - request: body: null @@ -94,7 +82,7 @@ "volume": 1}'} headers: content-length: ['324'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -107,25 +95,13 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-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_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": @@ -135,7 +111,7 @@ "volume": 1}'} headers: content-length: ['324'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -148,7 +124,7 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -157,14 +133,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -188,6 +164,6 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_login_redirect_for_anonymous.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_login_redirect_for_anonymous.yaml index dd02fa5..f74812f 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_login_redirect_for_anonymous.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_login_redirect_for_anonymous.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=test_list%40example.com + body: !!python/unicode fqdn_listname=test_list%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/test_list.example.com'] status: {code: 201, message: Created} - request: @@ -47,14 +47,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -78,6 +78,6 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} version: 1 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 684da21..1cec94e 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_no_access_for_basic_user.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_no_access_for_basic_user.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=test_list%40example.com + body: !!python/unicode fqdn_listname=test_list%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/test_list.example.com'] status: {code: 201, message: Created} - request: @@ -45,18 +45,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 response: body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": @@ -66,7 +54,7 @@ "volume": 1}'} headers: content-length: ['324'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -79,7 +67,7 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -92,7 +80,7 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -101,14 +89,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -132,6 +120,6 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListCreationTest.test_listname_validation.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListCreationTest.test_listname_validation.yaml index 8ae4236..2fee847 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListCreationTest.test_listname_validation.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListCreationTest.test_listname_validation.yaml @@ -1,81 +1,68 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/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' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode ''} @@ -86,13 +73,13 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} version: 1 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 b685bbb..9d85a76 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListCreationTest.test_new_list_created_with_owner.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListCreationTest.test_new_list_created_with_owner.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -17,28 +18,16 @@ 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", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -47,13 +36,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -62,13 +49,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -77,16 +62,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=a_new_list%40example.com + body: !!python/unicode fqdn_listname=a_new_list%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -96,6 +79,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/a_new_list.example.com'] status: {code: 201, message: Created} - request: @@ -112,10 +96,10 @@ "volume": 1}'} headers: content-length: ['329'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=a_new_list.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=a_new_list.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -125,7 +109,8 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/101'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/members/124'] status: {code: 201, message: Created} - request: body: null @@ -142,26 +127,27 @@ "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": "a_new_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": - "monthly", "digests_enabled": true, "display_name": "A_new_list", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "a_new_list@example.com", - "goodbye_message_uri": "", "http_etag": "\"25d3ee87e0387ce7879acc55cab6ad8dce3ab173\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "A_new_list", "filter_content": false, + "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "a_new_list@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"a63fa14d96314f1896c4b2225f9d66eafab6b39b\"", "include_rfc2369_headers": true, "join_address": "a_new_list-join@example.com", "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": + "a_new_list", "mail_host": "example.com", "moderator_password": null, "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "a_new_list-owner@example.com", + "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", "send_welcome_message": true, "subject_prefix": "[A_new_list] ", "subscription_policy": "confirm", - "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1800'] - content-type: [application/json; charset=utf-8] + content-length: ['1847'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: advertised=True&description=A+new+list. + body: !!python/unicode advertised=True&description=A+new+list. headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -186,7 +172,7 @@ "volume": 1}'} headers: content-length: ['329'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -196,14 +182,14 @@ 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": "\"645830c5d2859c11d7b36adc11c1a5658fea5ea3\"", - "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/109"}], "http_etag": "\"43a4ced306c403084f8bb0643a10177d817dde77\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"4846a8b9d96758900ab5b9a7653014e212d01b73\"", + "list_id": "a_new_list.example.com", "member_id": 124, "moderation_action": + "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/124", + "user": "http://localhost:9001/3.0/users/127"}], "http_etag": "\"737bca63c160aefa4bbd379cbe85365ea0840270\"", "start": 0, "total_size": 1}'} headers: content-length: ['496'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -212,14 +198,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -240,20 +226,20 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"2d51aacc73b65f7c530c507b6e17bd20297ff4ba\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/109", "user_id": 109}], - "http_etag": "\"2d09b4e3d5bc2cb0b15fb8101ebc6f396f13c3ab\"", "start": 0, "total_size": + "http_etag": "\"6fb6f8b7416c57fd5648ed71883df43590b0e8da\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/127", "user_id": 127}], + "http_etag": "\"9b19062fce777ed7c62ff9a9dd15b1ee0bdae458\"", "start": 0, "total_size": 1}'} headers: content-length: ['297'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/109 + uri: http://localhost:9001/3.0/users/127 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListCreationTest.test_permission_denied.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListCreationTest.test_permission_denied.yaml index b5db0d3..6269e5e 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListCreationTest.test_permission_denied.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListCreationTest.test_permission_denied.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -17,40 +18,16 @@ 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/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -74,6 +51,6 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} version: 1 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 de38c80..2cd6def 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=list%40example.com + body: !!python/unicode fqdn_listname=list%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com'] status: {code: 201, message: Created} - request: @@ -53,10 +53,10 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=list.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=list.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -66,10 +66,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/23'] status: {code: 201, message: Created} - request: - body: list_id=list.example.com&role=moderator&subscriber=moderator%40example.com + body: !!python/unicode list_id=list.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,6 +80,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/24'] status: {code: 201, message: Created} - request: @@ -86,36 +88,6 @@ 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": - "\"6dc3faac46bcef307cb04b877c1cb62ddff20660\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/22", "user_id": 22}'} - 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/22/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"30c854895f615d710c8ae4658f7c6bbf4ae839bb\"", "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/22"}], "http_etag": "\"48ab35f8e823f4c7e8136d7f4c616a807fb07c22\"", - "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/list.example.com response: body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com", @@ -124,7 +96,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -134,14 +106,14 @@ uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"d9942cdb6340896f4892bd0f3133ee721f803362\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"3deff56d1af6284a79dfca309f328ac1c14b37eb\"", "list_id": "list.example.com", "member_id": 23, "moderation_action": "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/23", "user": - "http://localhost:9001/3.0/users/22"}], "http_etag": "\"814cebe88cf54907b5ae6a41f3a1a8f08a43de61\"", + "http://localhost:9001/3.0/users/17"}], "http_etag": "\"0007ae531c7a225f437bb1af12de46944dfc4ea3\"", "start": 0, "total_size": 1}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -152,14 +124,14 @@ 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": - "\"87aad2d4bae4e69339993c265ffa9b260bb6a553\"", "list_id": "list.example.com", + "\"e7ddbc9cbb4d97662834325a64e8a843a9127241\"", "list_id": "list.example.com", "member_id": 24, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/24", "user": "http://localhost:9001/3.0/users/23"}], - "http_etag": "\"aa894e4f77fb30fea769e18c7bef04264ebde146\"", "start": 0, "total_size": + "http://localhost:9001/3.0/members/24", "user": "http://localhost:9001/3.0/users/18"}], + "http_etag": "\"d753c9634fea3065fd8aef71ef8f572ddd8457d1\"", "start": 0, "total_size": 1}'} headers: content-length: ['499'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -174,7 +146,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -187,7 +159,7 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -201,7 +173,7 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: action=discard&header=testheader&pattern=testpattern + body: !!python/unicode action=discard&header=testheader&pattern=testpattern headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -211,6 +183,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com/header-matches/0'] status: {code: 201, message: Created} - request: @@ -218,36 +191,6 @@ 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": - "\"6dc3faac46bcef307cb04b877c1cb62ddff20660\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/22", "user_id": 22}'} - 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/22/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"30c854895f615d710c8ae4658f7c6bbf4ae839bb\"", "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/22"}], "http_etag": "\"48ab35f8e823f4c7e8136d7f4c616a807fb07c22\"", - "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/list.example.com response: body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com", @@ -256,7 +199,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -266,14 +209,14 @@ uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"d9942cdb6340896f4892bd0f3133ee721f803362\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"3deff56d1af6284a79dfca309f328ac1c14b37eb\"", "list_id": "list.example.com", "member_id": 23, "moderation_action": "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/23", "user": - "http://localhost:9001/3.0/users/22"}], "http_etag": "\"814cebe88cf54907b5ae6a41f3a1a8f08a43de61\"", + "http://localhost:9001/3.0/users/17"}], "http_etag": "\"0007ae531c7a225f437bb1af12de46944dfc4ea3\"", "start": 0, "total_size": 1}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -284,14 +227,14 @@ 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": - "\"87aad2d4bae4e69339993c265ffa9b260bb6a553\"", "list_id": "list.example.com", + "\"e7ddbc9cbb4d97662834325a64e8a843a9127241\"", "list_id": "list.example.com", "member_id": 24, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/24", "user": "http://localhost:9001/3.0/users/23"}], - "http_etag": "\"aa894e4f77fb30fea769e18c7bef04264ebde146\"", "start": 0, "total_size": + "http://localhost:9001/3.0/members/24", "user": "http://localhost:9001/3.0/users/18"}], + "http_etag": "\"d753c9634fea3065fd8aef71ef8f572ddd8457d1\"", "start": 0, "total_size": 1}'} headers: content-length: ['499'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -306,7 +249,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -322,7 +265,7 @@ 1}'} headers: content-length: ['334'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -338,7 +281,7 @@ 1}'} headers: content-length: ['334'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -354,7 +297,7 @@ 1}'} headers: content-length: ['334'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -363,14 +306,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -391,27 +334,27 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "display_name": "None", "http_etag": "\"49b863f075905cce6e2628f1c7286796634cb0d2\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/20", - "user_id": 20}, {"created_on": "2005-08-01T07:49:23", "display_name": "None", - "http_etag": "\"4e69221cb1880315766131d04dc5c375d3796f29\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/21", "user_id": 21}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"6dc3faac46bcef307cb04b877c1cb62ddff20660\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/22", - "user_id": 22}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"b3a1bcb260c4bd5e880e4324ec95d6287c26d550\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/23", - "user_id": 23}], "http_etag": "\"d3ce5b6ff648d750eac4ee9ec0ac770ca4f52eda\"", + "display_name": "None", "http_etag": "\"0b279530a26f451f002e7274f6182ec4f7b10218\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/15", + "user_id": 15}, {"created_on": "2005-08-01T07:49:23", "display_name": "None", + "http_etag": "\"9dc22141539f02a297f9950f28fa8f68b59c075c\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/16", "user_id": 16}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"5ba84a9331a86066b367c0388a143ff681442612\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/17", + "user_id": 17}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"9e9ec0bee5e8d3005e3e51a29a0f628cf28f7db0\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/18", + "user_id": 18}], "http_etag": "\"cff16063f412846e97efa09b1c5c3f52f63bbf0c\"", "start": 0, "total_size": 4}'} headers: content-length: ['919'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/20 + uri: http://localhost:9001/3.0/users/15 response: body: {string: !!python/unicode ''} headers: @@ -422,7 +365,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/21 + uri: http://localhost:9001/3.0/users/16 response: body: {string: !!python/unicode ''} headers: @@ -433,7 +376,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/22 + uri: http://localhost:9001/3.0/users/17 response: body: {string: !!python/unicode ''} headers: @@ -444,7 +387,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/23 + uri: http://localhost:9001/3.0/users/18 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add_empty.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add_empty.yaml index e04c8a6..2f90350 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add_empty.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add_empty.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=list%40example.com + body: !!python/unicode fqdn_listname=list%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com'] status: {code: 201, message: Created} - request: @@ -53,10 +53,10 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=list.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=list.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -66,10 +66,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/25'] status: {code: 201, message: Created} - request: - body: list_id=list.example.com&role=moderator&subscriber=moderator%40example.com + body: !!python/unicode list_id=list.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,6 +80,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/26'] status: {code: 201, message: Created} - request: @@ -86,36 +88,6 @@ 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": - "\"1e86381735f77312260a704e0b6dc204d733f858\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/24", "user_id": 24}'} - 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/24/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"42e6c30370b928e548192a049e0b1785c7ad5887\"", "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/24"}], "http_etag": "\"d16dbb4b79b13cc0d29cde6cbbea8af63cf13b8b\"", - "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/list.example.com response: body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com", @@ -124,7 +96,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -134,14 +106,14 @@ uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"5da7648ed645f07459dadc82222ca8da369d4751\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"40561d7688929e990e45dd94be6bf03ab7c95bf9\"", "list_id": "list.example.com", "member_id": 25, "moderation_action": "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/25", "user": - "http://localhost:9001/3.0/users/24"}], "http_etag": "\"c5228faf55238a9d70d82049179e244c20863821\"", + "http://localhost:9001/3.0/users/19"}], "http_etag": "\"98b82553134e1a2b2648acad9da8bc948086e911\"", "start": 0, "total_size": 1}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -152,14 +124,14 @@ 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": - "\"54e43a6c9f25a34d8acb33e9218d06c65165b1b3\"", "list_id": "list.example.com", + "\"4a8f0c410ef48ca134d2287c5e01ad8ebe1155fc\"", "list_id": "list.example.com", "member_id": 26, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/26", "user": "http://localhost:9001/3.0/users/25"}], - "http_etag": "\"0c57e592caa7e3dcc95e0c95569be6f617aa5c38\"", "start": 0, "total_size": + "http://localhost:9001/3.0/members/26", "user": "http://localhost:9001/3.0/users/20"}], + "http_etag": "\"e6d1aa12c741b1c908d4b3db4d855e9fed4295ef\"", "start": 0, "total_size": 1}'} headers: content-length: ['499'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -174,7 +146,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -187,37 +159,7 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/owner@example.com - response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"1e86381735f77312260a704e0b6dc204d733f858\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/24", "user_id": 24}'} - 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/24/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"42e6c30370b928e548192a049e0b1785c7ad5887\"", "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/24"}], "http_etag": "\"d16dbb4b79b13cc0d29cde6cbbea8af63cf13b8b\"", - "start": 0, "total_size": 1}'} - headers: - content-length: ['391'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -232,7 +174,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -242,14 +184,14 @@ uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"5da7648ed645f07459dadc82222ca8da369d4751\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"40561d7688929e990e45dd94be6bf03ab7c95bf9\"", "list_id": "list.example.com", "member_id": 25, "moderation_action": "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/25", "user": - "http://localhost:9001/3.0/users/24"}], "http_etag": "\"c5228faf55238a9d70d82049179e244c20863821\"", + "http://localhost:9001/3.0/users/19"}], "http_etag": "\"98b82553134e1a2b2648acad9da8bc948086e911\"", "start": 0, "total_size": 1}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -260,14 +202,14 @@ 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": - "\"54e43a6c9f25a34d8acb33e9218d06c65165b1b3\"", "list_id": "list.example.com", + "\"4a8f0c410ef48ca134d2287c5e01ad8ebe1155fc\"", "list_id": "list.example.com", "member_id": 26, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/26", "user": "http://localhost:9001/3.0/users/25"}], - "http_etag": "\"0c57e592caa7e3dcc95e0c95569be6f617aa5c38\"", "start": 0, "total_size": + "http://localhost:9001/3.0/members/26", "user": "http://localhost:9001/3.0/users/20"}], + "http_etag": "\"e6d1aa12c741b1c908d4b3db4d855e9fed4295ef\"", "start": 0, "total_size": 1}'} headers: content-length: ['499'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -282,7 +224,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -295,7 +237,7 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -308,7 +250,7 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -317,14 +259,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -345,22 +287,22 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"1e86381735f77312260a704e0b6dc204d733f858\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/24", "user_id": 24}, - {"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}], "http_etag": "\"c3280a2c91c60268840c851206755d59a4cf3100\"", + "http_etag": "\"f01a45c6984d9e4639cb6d338286307c11624e4f\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/19", "user_id": 19}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"9fa1761ddc1bccdf97e502e936612292fa46492e\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/20", + "user_id": 20}], "http_etag": "\"6ff8f8dc97749e9cea6b5a4c04794299e0b6b122\"", "start": 0, "total_size": 2}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/24 + uri: http://localhost:9001/3.0/users/19 response: body: {string: !!python/unicode ''} headers: @@ -371,7 +313,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/25 + uri: http://localhost:9001/3.0/users/20 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add_empty_header.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add_empty_header.yaml index e309e0c..af1eaaf 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add_empty_header.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add_empty_header.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=list%40example.com + body: !!python/unicode fqdn_listname=list%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com'] status: {code: 201, message: Created} - request: @@ -53,10 +53,10 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=list.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=list.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -66,10 +66,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/27'] status: {code: 201, message: Created} - request: - body: list_id=list.example.com&role=moderator&subscriber=moderator%40example.com + body: !!python/unicode list_id=list.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,6 +80,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/28'] status: {code: 201, message: Created} - request: @@ -86,36 +88,6 @@ 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": - "\"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": "owner@example.com", "http_etag": - "\"f32b631de442541c05aca9fa04b5c48f2846870b\"", "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/26"}], "http_etag": "\"043d3df86a2e395ff7c9531c17a336d02386205b\"", - "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/list.example.com response: body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com", @@ -124,7 +96,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -134,14 +106,14 @@ uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"86749f2b005820751c1523ff961948d37bbe2459\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"0ee63015a97befe3b37b8ab6ca9d631573afe804\"", "list_id": "list.example.com", "member_id": 27, "moderation_action": "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/27", "user": - "http://localhost:9001/3.0/users/26"}], "http_etag": "\"a760a696e37a5ea0bf6c247e813f7bcdac29181d\"", + "http://localhost:9001/3.0/users/21"}], "http_etag": "\"f7e03acb5a48c588503dc82004849424cb703cfa\"", "start": 0, "total_size": 1}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -152,14 +124,14 @@ 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": - "\"9ccd294208eafe1599fb07202c6cea963202d0c4\"", "list_id": "list.example.com", + "\"fd00fac82d095a677190c55cd368677316f7896a\"", "list_id": "list.example.com", "member_id": 28, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/28", "user": "http://localhost:9001/3.0/users/27"}], - "http_etag": "\"327fa2129d0a963d60d5dca49f2c43e35b8f0dac\"", "start": 0, "total_size": + "http://localhost:9001/3.0/members/28", "user": "http://localhost:9001/3.0/users/22"}], + "http_etag": "\"e1935903960fcb13233c195735faba5a091f9725\"", "start": 0, "total_size": 1}'} headers: content-length: ['499'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -174,7 +146,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -187,7 +159,7 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -200,7 +172,7 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -209,14 +181,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -237,22 +209,22 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"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}, - {"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}], "http_etag": "\"f31e335c7b4f83fc182ab0eafdc669a0ae1705b9\"", + "http_etag": "\"2b7d189e2d8f3403cf72781d5a1837d3f6722d31\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/21", "user_id": 21}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"6dc3faac46bcef307cb04b877c1cb62ddff20660\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/22", + "user_id": 22}], "http_etag": "\"7b7429f12f7b3dbbef91f517c9fa3512c2ad6f45\"", "start": 0, "total_size": 2}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/26 + uri: http://localhost:9001/3.0/users/21 response: body: {string: !!python/unicode ''} headers: @@ -263,7 +235,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/27 + uri: http://localhost:9001/3.0/users/22 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add_empty_pattern.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add_empty_pattern.yaml index d24241a..2c9baee 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add_empty_pattern.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add_empty_pattern.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=list%40example.com + body: !!python/unicode fqdn_listname=list%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com'] status: {code: 201, message: Created} - request: @@ -53,10 +53,10 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=list.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=list.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -66,10 +66,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/29'] status: {code: 201, message: Created} - request: - body: list_id=list.example.com&role=moderator&subscriber=moderator%40example.com + body: !!python/unicode list_id=list.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,6 +80,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/30'] status: {code: 201, message: Created} - request: @@ -86,36 +88,6 @@ 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": - "\"641cbb9a7ea368f465861330cbda5a46dedc4d71\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/28", "user_id": 28}'} - 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/28/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"1add9a764a6d0ff21f68844b3f2f3cb358e31fe0\"", "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/28"}], "http_etag": "\"15fc2c4a79e5c918e9da053d1dea5045f0f9f7e9\"", - "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/list.example.com response: body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com", @@ -124,7 +96,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -134,14 +106,14 @@ uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"3a03b52df0e2aebe8e663e476972418061359ead\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"37856c0b26e0f48852e635f0375a00fa3d63a44d\"", "list_id": "list.example.com", "member_id": 29, "moderation_action": "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/29", "user": - "http://localhost:9001/3.0/users/28"}], "http_etag": "\"bace5045bc873a08f3643e3f7eab3d14e808669f\"", + "http://localhost:9001/3.0/users/23"}], "http_etag": "\"a330ad070af0b8ca3bbe125e39fb6b42358fc729\"", "start": 0, "total_size": 1}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -152,14 +124,14 @@ 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": - "\"19df6996663932548e40c9ad812ed81795ae46f1\"", "list_id": "list.example.com", + "\"95d86817f0f2b557a247e5c2a59f9a46ca4d8c92\"", "list_id": "list.example.com", "member_id": 30, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/30", "user": "http://localhost:9001/3.0/users/29"}], - "http_etag": "\"08c72e5949835c174002bfe9a85c995fe9d5bb2c\"", "start": 0, "total_size": + "http://localhost:9001/3.0/members/30", "user": "http://localhost:9001/3.0/users/24"}], + "http_etag": "\"120b1d29c427dc55ce5d7757a40ab3c61dc46ed2\"", "start": 0, "total_size": 1}'} headers: content-length: ['499'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -174,7 +146,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -187,7 +159,7 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -200,7 +172,7 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -209,14 +181,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -237,22 +209,22 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"641cbb9a7ea368f465861330cbda5a46dedc4d71\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/28", "user_id": 28}, - {"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}], "http_etag": "\"e8c75980d0cabcd90d5b647b9b46c088be4d8784\"", + "http_etag": "\"b3a1bcb260c4bd5e880e4324ec95d6287c26d550\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/23", "user_id": 23}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"1e86381735f77312260a704e0b6dc204d733f858\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/24", + "user_id": 24}], "http_etag": "\"cb3a5932cd2b63b0422bf0e69c2da3a3deafff26\"", "start": 0, "total_size": 2}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/28 + uri: http://localhost:9001/3.0/users/23 response: body: {string: !!python/unicode ''} headers: @@ -263,7 +235,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/29 + uri: http://localhost:9001/3.0/users/24 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add_existing.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add_existing.yaml index a8a61d4..2e1cc0a 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add_existing.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_add_existing.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=list%40example.com + body: !!python/unicode fqdn_listname=list%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com'] status: {code: 201, message: Created} - request: @@ -53,10 +53,10 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=list.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=list.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -66,10 +66,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/31'] status: {code: 201, message: Created} - request: - body: list_id=list.example.com&role=moderator&subscriber=moderator%40example.com + body: !!python/unicode list_id=list.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,10 +80,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/32'] status: {code: 201, message: Created} - request: - body: action=discard&header=testheader&pattern=testpattern + body: !!python/unicode action=discard&header=testheader&pattern=testpattern headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -92,6 +94,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com/header-matches/0'] status: {code: 201, message: Created} - request: @@ -99,36 +102,6 @@ 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": - "\"32459ccb62cf1e20b180199fc48b4cf2b67b404e\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/30", "user_id": 30}'} - 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/30/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"2c8628a5236c474b5a1fc8a417e7da5cfcb1ea8d\"", "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/30"}], "http_etag": "\"45e94ef030fccf578ae9d667d715f4505ae58285\"", - "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/list.example.com response: body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com", @@ -137,7 +110,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -147,14 +120,14 @@ uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"64772c0049db994dc4bfb252ff8d8ab21197048b\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"3e443c76bf9d15ceba1a6601380207870761bdf3\"", "list_id": "list.example.com", "member_id": 31, "moderation_action": "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/31", "user": - "http://localhost:9001/3.0/users/30"}], "http_etag": "\"e0bb3ed665a4d282151571b991fa5051e34f8b95\"", + "http://localhost:9001/3.0/users/25"}], "http_etag": "\"3488e8b774e0ee00fb996dd3a0ab24247ee541ee\"", "start": 0, "total_size": 1}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -165,14 +138,14 @@ 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": - "\"d84672cfe81c18473e6d4197bdf61d4ef7191354\"", "list_id": "list.example.com", + "\"c9c732c2b71228ffc6bdf301006f4aa9f4489f54\"", "list_id": "list.example.com", "member_id": 32, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/32", "user": "http://localhost:9001/3.0/users/31"}], - "http_etag": "\"3d99fc8848bb0400e55c043246fd847ed738689b\"", "start": 0, "total_size": + "http://localhost:9001/3.0/members/32", "user": "http://localhost:9001/3.0/users/26"}], + "http_etag": "\"9c051b56a1eddd9d670907c8f6694122f7296683\"", "start": 0, "total_size": 1}'} headers: content-length: ['499'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -187,7 +160,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -203,7 +176,7 @@ 1}'} headers: content-length: ['334'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -217,7 +190,7 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: action=discard&header=testheader&pattern=testpattern + body: !!python/unicode action=discard&header=testheader&pattern=testpattern headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -227,10 +200,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com/header-matches/0'] status: {code: 201, message: Created} - request: - body: action=hold&header=testheader&pattern=testpattern + body: !!python/unicode action=hold&header=testheader&pattern=testpattern headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -240,43 +214,13 @@ body: {string: !!python/unicode This header match already exists} headers: content-length: ['32'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 400, message: Bad Request} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/owner@example.com - response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"32459ccb62cf1e20b180199fc48b4cf2b67b404e\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/30", "user_id": 30}'} - 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/30/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"2c8628a5236c474b5a1fc8a417e7da5cfcb1ea8d\"", "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/30"}], "http_etag": "\"45e94ef030fccf578ae9d667d715f4505ae58285\"", - "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/list.example.com response: body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com", @@ -285,7 +229,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -295,14 +239,14 @@ uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"64772c0049db994dc4bfb252ff8d8ab21197048b\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"3e443c76bf9d15ceba1a6601380207870761bdf3\"", "list_id": "list.example.com", "member_id": 31, "moderation_action": "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/31", "user": - "http://localhost:9001/3.0/users/30"}], "http_etag": "\"e0bb3ed665a4d282151571b991fa5051e34f8b95\"", + "http://localhost:9001/3.0/users/25"}], "http_etag": "\"3488e8b774e0ee00fb996dd3a0ab24247ee541ee\"", "start": 0, "total_size": 1}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -313,14 +257,14 @@ 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": - "\"d84672cfe81c18473e6d4197bdf61d4ef7191354\"", "list_id": "list.example.com", + "\"c9c732c2b71228ffc6bdf301006f4aa9f4489f54\"", "list_id": "list.example.com", "member_id": 32, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/32", "user": "http://localhost:9001/3.0/users/31"}], - "http_etag": "\"3d99fc8848bb0400e55c043246fd847ed738689b\"", "start": 0, "total_size": + "http://localhost:9001/3.0/members/32", "user": "http://localhost:9001/3.0/users/26"}], + "http_etag": "\"9c051b56a1eddd9d670907c8f6694122f7296683\"", "start": 0, "total_size": 1}'} headers: content-length: ['499'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -335,7 +279,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -351,7 +295,7 @@ 1}'} headers: content-length: ['334'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -367,7 +311,7 @@ 1}'} headers: content-length: ['334'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -383,7 +327,7 @@ 1}'} headers: content-length: ['334'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -392,14 +336,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -420,22 +364,22 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"32459ccb62cf1e20b180199fc48b4cf2b67b404e\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/30", "user_id": 30}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"c744d1db066b1d55bf03caedfbd1c9b98a5874bc\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/31", - "user_id": 31}], "http_etag": "\"5edee0046e4faf6e022cbc0963b99c1ef005b4a1\"", + "http_etag": "\"0c3f6e8712fd05b9da49c42bf9600a5414b7958f\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/25", "user_id": 25}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"c73be856843a113d5eb32f60ae4315192adb1045\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/26", + "user_id": 26}], "http_etag": "\"a32b34e49e6b83b8330c6f8aa6cc861c364fabe0\"", "start": 0, "total_size": 2}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/30 + uri: http://localhost:9001/3.0/users/25 response: body: {string: !!python/unicode ''} headers: @@ -446,7 +390,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/31 + uri: http://localhost:9001/3.0/users/26 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_delete.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_delete.yaml index 43aef5e..c0a1750 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_delete.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_delete.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=list%40example.com + body: !!python/unicode fqdn_listname=list%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com'] status: {code: 201, message: Created} - request: @@ -53,10 +53,10 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=list.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=list.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -66,10 +66,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/33'] status: {code: 201, message: Created} - request: - body: list_id=list.example.com&role=moderator&subscriber=moderator%40example.com + body: !!python/unicode list_id=list.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,10 +80,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/34'] status: {code: 201, message: Created} - request: - body: action=discard&header=testheader-1&pattern=testpattern-1 + body: !!python/unicode action=discard&header=testheader-1&pattern=testpattern-1 headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -92,10 +94,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com/header-matches/0'] status: {code: 201, message: Created} - request: - body: action=discard&header=testheader-2&pattern=testpattern-2 + body: !!python/unicode action=discard&header=testheader-2&pattern=testpattern-2 headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -105,6 +108,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com/header-matches/1'] status: {code: 201, message: Created} - request: @@ -112,36 +116,6 @@ 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": - "\"bdba54b81678064437568ff4e8f9edad6efc2700\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/32", "user_id": 32}'} - 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/32/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"1bc90eeb62d3c4046237d4949836179aa65b4d9a\"", "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/32"}], "http_etag": "\"15f86407975b9b0d23264db1495165e1d31ebd91\"", - "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/list.example.com response: body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com", @@ -150,7 +124,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -160,14 +134,14 @@ uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"79fd1f3b36b0ea0c90d066b8c6279d5af0538da5\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"177863c850924987742793f4330f4bff87c1d83c\"", "list_id": "list.example.com", "member_id": 33, "moderation_action": "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/33", "user": - "http://localhost:9001/3.0/users/32"}], "http_etag": "\"8b5df2262f16ffca41ab740ae476b9b53c773a44\"", + "http://localhost:9001/3.0/users/27"}], "http_etag": "\"70d97db0f030b0a106747048c4a465e38977c08a\"", "start": 0, "total_size": 1}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -178,14 +152,14 @@ 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": - "\"8a360ddee4a71566ff9fcb982ffc744189a0c5b2\"", "list_id": "list.example.com", + "\"ede55288aee8564a2d4e31679614e71d4300be63\"", "list_id": "list.example.com", "member_id": 34, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/34", "user": "http://localhost:9001/3.0/users/33"}], - "http_etag": "\"ecc415089cb778dfb594cad0d8c21beeba3102b2\"", "start": 0, "total_size": + "http://localhost:9001/3.0/members/34", "user": "http://localhost:9001/3.0/users/28"}], + "http_etag": "\"8c4dce7fb4176c42676af9aa128d76492150dd21\"", "start": 0, "total_size": 1}'} headers: content-length: ['499'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -200,7 +174,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -218,7 +192,7 @@ 2}'} headers: content-length: ['573'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -232,7 +206,7 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: action=discard&header=testheader-2&pattern=testpattern-2 + body: !!python/unicode action=discard&header=testheader-2&pattern=testpattern-2 headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -242,6 +216,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com/header-matches/0'] status: {code: 201, message: Created} - request: @@ -249,36 +224,6 @@ 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": - "\"bdba54b81678064437568ff4e8f9edad6efc2700\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/32", "user_id": 32}'} - 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/32/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"1bc90eeb62d3c4046237d4949836179aa65b4d9a\"", "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/32"}], "http_etag": "\"15f86407975b9b0d23264db1495165e1d31ebd91\"", - "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/list.example.com response: body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com", @@ -287,7 +232,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -297,14 +242,14 @@ uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"79fd1f3b36b0ea0c90d066b8c6279d5af0538da5\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"177863c850924987742793f4330f4bff87c1d83c\"", "list_id": "list.example.com", "member_id": 33, "moderation_action": "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/33", "user": - "http://localhost:9001/3.0/users/32"}], "http_etag": "\"8b5df2262f16ffca41ab740ae476b9b53c773a44\"", + "http://localhost:9001/3.0/users/27"}], "http_etag": "\"70d97db0f030b0a106747048c4a465e38977c08a\"", "start": 0, "total_size": 1}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -315,14 +260,14 @@ 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": - "\"8a360ddee4a71566ff9fcb982ffc744189a0c5b2\"", "list_id": "list.example.com", + "\"ede55288aee8564a2d4e31679614e71d4300be63\"", "list_id": "list.example.com", "member_id": 34, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/34", "user": "http://localhost:9001/3.0/users/33"}], - "http_etag": "\"ecc415089cb778dfb594cad0d8c21beeba3102b2\"", "start": 0, "total_size": + "http://localhost:9001/3.0/members/34", "user": "http://localhost:9001/3.0/users/28"}], + "http_etag": "\"8c4dce7fb4176c42676af9aa128d76492150dd21\"", "start": 0, "total_size": 1}'} headers: content-length: ['499'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -337,7 +282,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -353,7 +298,7 @@ 1}'} headers: content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -369,7 +314,7 @@ 1}'} headers: content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -385,7 +330,7 @@ 1}'} headers: content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -394,14 +339,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -422,22 +367,22 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"bdba54b81678064437568ff4e8f9edad6efc2700\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/32", "user_id": 32}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"193ede1fb8d445273173195352026184d3011303\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/33", - "user_id": 33}], "http_etag": "\"3045aa73c93f5fc892e0bdd8d2d921833183f841\"", + "http_etag": "\"1479b23f4b3c2af04f98946e313297006dd20754\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/27", "user_id": 27}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"641cbb9a7ea368f465861330cbda5a46dedc4d71\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/28", + "user_id": 28}], "http_etag": "\"a0bf6250689992c92f4c76076a9debb2eb705124\"", "start": 0, "total_size": 2}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/32 + uri: http://localhost:9001/3.0/users/27 response: body: {string: !!python/unicode ''} headers: @@ -448,7 +393,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/33 + uri: http://localhost:9001/3.0/users/28 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_edit.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_edit.yaml index f42881c..cdeecc3 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_edit.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_edit.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=list%40example.com + body: !!python/unicode fqdn_listname=list%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com'] status: {code: 201, message: Created} - request: @@ -53,10 +53,10 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=list.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=list.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -66,10 +66,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/35'] status: {code: 201, message: Created} - request: - body: list_id=list.example.com&role=moderator&subscriber=moderator%40example.com + body: !!python/unicode list_id=list.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,10 +80,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/36'] status: {code: 201, message: Created} - request: - body: action=discard&header=testheader&pattern=testpattern + body: !!python/unicode action=discard&header=testheader&pattern=testpattern headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -92,6 +94,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com/header-matches/0'] status: {code: 201, message: Created} - request: @@ -99,36 +102,6 @@ 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": - "\"fd4a8232471e43dfae3b0d05f64acab9601f0005\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/34", "user_id": 34}'} - 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/34/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"eced500b76ca28a2d1e1864f932cb92e3756609a\"", "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/34"}], "http_etag": "\"4af626aed3eb4cfc9d83adc41bdfbe70a2db20f5\"", - "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/list.example.com response: body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com", @@ -137,7 +110,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -147,14 +120,14 @@ uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"11aa3b2ec45f7c6c62f020da50bd59f7187cd630\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"e5a7b8dff9da3b89cf17104137a0fb2e63bb0130\"", "list_id": "list.example.com", "member_id": 35, "moderation_action": "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/35", "user": - "http://localhost:9001/3.0/users/34"}], "http_etag": "\"262abded361b2eb3cd3b194b94fe942eeb49c422\"", + "http://localhost:9001/3.0/users/29"}], "http_etag": "\"f6656d00846c09e404aa5ac74f6b218ed9e74ca4\"", "start": 0, "total_size": 1}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -165,14 +138,14 @@ 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": - "\"b7fd9b54ec5d172d4e45a6c4e065566e81af6f74\"", "list_id": "list.example.com", + "\"f84df3bf409843cbf6e38f099f395aaa46a55ddf\"", "list_id": "list.example.com", "member_id": 36, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/36", "user": "http://localhost:9001/3.0/users/35"}], - "http_etag": "\"3539c0f8af1261f260edcbebb797a40bfc843d9f\"", "start": 0, "total_size": + "http://localhost:9001/3.0/members/36", "user": "http://localhost:9001/3.0/users/30"}], + "http_etag": "\"a64e0fe18234a84fa68551cc1c55177abc64b834\"", "start": 0, "total_size": 1}'} headers: content-length: ['499'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -187,7 +160,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -203,7 +176,7 @@ 1}'} headers: content-length: ['334'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -217,7 +190,7 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: action=hold&header=testheader-changed&pattern=testpattern-changed + body: !!python/unicode action=hold&header=testheader-changed&pattern=testpattern-changed headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -227,6 +200,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com/header-matches/0'] status: {code: 201, message: Created} - request: @@ -234,36 +208,6 @@ 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": - "\"fd4a8232471e43dfae3b0d05f64acab9601f0005\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/34", "user_id": 34}'} - 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/34/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"eced500b76ca28a2d1e1864f932cb92e3756609a\"", "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/34"}], "http_etag": "\"4af626aed3eb4cfc9d83adc41bdfbe70a2db20f5\"", - "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/list.example.com response: body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com", @@ -272,7 +216,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -282,14 +226,14 @@ uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"11aa3b2ec45f7c6c62f020da50bd59f7187cd630\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"e5a7b8dff9da3b89cf17104137a0fb2e63bb0130\"", "list_id": "list.example.com", "member_id": 35, "moderation_action": "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/35", "user": - "http://localhost:9001/3.0/users/34"}], "http_etag": "\"262abded361b2eb3cd3b194b94fe942eeb49c422\"", + "http://localhost:9001/3.0/users/29"}], "http_etag": "\"f6656d00846c09e404aa5ac74f6b218ed9e74ca4\"", "start": 0, "total_size": 1}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -300,14 +244,14 @@ 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": - "\"b7fd9b54ec5d172d4e45a6c4e065566e81af6f74\"", "list_id": "list.example.com", + "\"f84df3bf409843cbf6e38f099f395aaa46a55ddf\"", "list_id": "list.example.com", "member_id": 36, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/36", "user": "http://localhost:9001/3.0/users/35"}], - "http_etag": "\"3539c0f8af1261f260edcbebb797a40bfc843d9f\"", "start": 0, "total_size": + "http://localhost:9001/3.0/members/36", "user": "http://localhost:9001/3.0/users/30"}], + "http_etag": "\"a64e0fe18234a84fa68551cc1c55177abc64b834\"", "start": 0, "total_size": 1}'} headers: content-length: ['499'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -322,7 +266,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -338,7 +282,7 @@ 1}'} headers: content-length: ['347'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -354,7 +298,7 @@ 1}'} headers: content-length: ['347'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -370,7 +314,7 @@ 1}'} headers: content-length: ['347'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -379,14 +323,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -407,22 +351,22 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"fd4a8232471e43dfae3b0d05f64acab9601f0005\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/34", "user_id": 34}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"d69542e8aff488054a713dbf6e0865e72dc820cd\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/35", - "user_id": 35}], "http_etag": "\"9fe231f541c92c56e6dca97f28a98b93a06b4c8a\"", + "http_etag": "\"4e1a95736360f3a01f989768ff1a28a3f7b961e0\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/29", "user_id": 29}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"32459ccb62cf1e20b180199fc48b4cf2b67b404e\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/30", + "user_id": 30}], "http_etag": "\"7d1751793e026a67f666d69ec9f09df78a76edbc\"", "start": 0, "total_size": 2}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/34 + uri: http://localhost:9001/3.0/users/29 response: body: {string: !!python/unicode ''} headers: @@ -433,7 +377,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/35 + uri: http://localhost:9001/3.0/users/30 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_edit_empty.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_edit_empty.yaml index a1b717f..e028eb9 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_edit_empty.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_edit_empty.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=list%40example.com + body: !!python/unicode fqdn_listname=list%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com'] status: {code: 201, message: Created} - request: @@ -53,10 +53,10 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=list.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=list.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -66,10 +66,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/37'] status: {code: 201, message: Created} - request: - body: list_id=list.example.com&role=moderator&subscriber=moderator%40example.com + body: !!python/unicode list_id=list.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,10 +80,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/38'] status: {code: 201, message: Created} - request: - body: action=discard&header=testheader&pattern=testpattern + body: !!python/unicode action=discard&header=testheader&pattern=testpattern headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -92,6 +94,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com/header-matches/0'] status: {code: 201, message: Created} - request: @@ -99,36 +102,6 @@ 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": - "\"ac340829f7769de8826d5096491b69aabe732430\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/36", "user_id": 36}'} - 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/36/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"5972de5f62768320ad8f30f8b9bbb3e722503da4\"", "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/36"}], "http_etag": "\"71173ea01e3db4ccdc68e9e1dedb0796403c43cc\"", - "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/list.example.com response: body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com", @@ -137,7 +110,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -147,14 +120,14 @@ uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"d8e56f692d090cd8b37eb6c0fd0950a86a6614be\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"ca10bebefd4bebeae60c1a68dc85e1e5ef0e44a3\"", "list_id": "list.example.com", "member_id": 37, "moderation_action": "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/37", "user": - "http://localhost:9001/3.0/users/36"}], "http_etag": "\"92c0084487ef50aaca6b4a6e9ddf930764d473a8\"", + "http://localhost:9001/3.0/users/31"}], "http_etag": "\"12600d49bb6766e1adf171e68e16f591dae286e4\"", "start": 0, "total_size": 1}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -165,14 +138,14 @@ 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": - "\"36cf285674543e60f209a27c1cbac6a39ab11f0f\"", "list_id": "list.example.com", + "\"5195d05bbd7f651c0281b5698529de52b56d8378\"", "list_id": "list.example.com", "member_id": 38, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/38", "user": "http://localhost:9001/3.0/users/37"}], - "http_etag": "\"563349d7a240ecdabd2792c165b57080f3a2100e\"", "start": 0, "total_size": + "http://localhost:9001/3.0/members/38", "user": "http://localhost:9001/3.0/users/32"}], + "http_etag": "\"8c0e08d16074d49ee525c150644b4b44d3d0595a\"", "start": 0, "total_size": 1}'} headers: content-length: ['499'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -187,7 +160,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -203,7 +176,7 @@ 1}'} headers: content-length: ['334'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -219,7 +192,7 @@ 1}'} headers: content-length: ['334'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -235,7 +208,7 @@ 1}'} headers: content-length: ['334'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -244,14 +217,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -272,22 +245,22 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"ac340829f7769de8826d5096491b69aabe732430\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/36", "user_id": 36}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"746af64fb3c343d4cbe089a4b44d52e65fa99133\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/37", - "user_id": 37}], "http_etag": "\"952e0d05ab123ca95f79d6395b80b46c94f99165\"", + "http_etag": "\"c744d1db066b1d55bf03caedfbd1c9b98a5874bc\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/31", "user_id": 31}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"bdba54b81678064437568ff4e8f9edad6efc2700\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/32", + "user_id": 32}], "http_etag": "\"551d9627d757d8c42d2040cdd0949bea168a11b3\"", "start": 0, "total_size": 2}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/36 + uri: http://localhost:9001/3.0/users/31 response: body: {string: !!python/unicode ''} headers: @@ -298,7 +271,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/37 + uri: http://localhost:9001/3.0/users/32 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_move_down.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_move_down.yaml index c311ee3..e3692f7 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_move_down.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_move_down.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=list%40example.com + body: !!python/unicode fqdn_listname=list%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com'] status: {code: 201, message: Created} - request: @@ -53,10 +53,10 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=list.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=list.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -66,10 +66,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/39'] status: {code: 201, message: Created} - request: - body: list_id=list.example.com&role=moderator&subscriber=moderator%40example.com + body: !!python/unicode list_id=list.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,10 +80,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/40'] status: {code: 201, message: Created} - request: - body: action=discard&header=testheader-1&pattern=testpattern-1 + body: !!python/unicode action=discard&header=testheader-1&pattern=testpattern-1 headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -92,10 +94,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com/header-matches/0'] status: {code: 201, message: Created} - request: - body: action=discard&header=testheader-2&pattern=testpattern-2 + body: !!python/unicode action=discard&header=testheader-2&pattern=testpattern-2 headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -105,10 +108,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com/header-matches/1'] status: {code: 201, message: Created} - request: - body: action=discard&header=testheader-3&pattern=testpattern-3 + body: !!python/unicode action=discard&header=testheader-3&pattern=testpattern-3 headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -118,6 +122,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com/header-matches/2'] status: {code: 201, message: Created} - request: @@ -125,36 +130,6 @@ 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": - "\"54d21bebe42e4c00bce51a7839dfb0bb7a74e22e\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/38", "user_id": 38}'} - 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/38/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"a26e9bd668d7d558e477239c815d631bcbe51526\"", "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/38"}], "http_etag": "\"2206fe8c8a7533538e9f89f1978b6adbebf4e7a2\"", - "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/list.example.com response: body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com", @@ -163,7 +138,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -173,14 +148,14 @@ uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"e3936c0db03ea980c0716ad7875be65777a8e8ce\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"ef8312eae1d33f2fd70bcf6771d8fc129c70bb0c\"", "list_id": "list.example.com", "member_id": 39, "moderation_action": "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/39", "user": - "http://localhost:9001/3.0/users/38"}], "http_etag": "\"9e42b9d128acf6521c9829e3f1c2c3d280f21ca7\"", + "http://localhost:9001/3.0/users/33"}], "http_etag": "\"3186da6816ba86bcb591da910f1a2c9b84f1ae88\"", "start": 0, "total_size": 1}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -191,14 +166,14 @@ 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": - "\"eb98eb31f5a60a49e11b73cfdf1ba42afc2ce74e\"", "list_id": "list.example.com", + "\"7efabd69ee74b3506f90aa38f86b674bf8b7c65a\"", "list_id": "list.example.com", "member_id": 40, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/40", "user": "http://localhost:9001/3.0/users/39"}], - "http_etag": "\"7c9edcf6c9d52798bd7d81587a49ebcbcf2a3d4c\"", "start": 0, "total_size": + "http://localhost:9001/3.0/members/40", "user": "http://localhost:9001/3.0/users/34"}], + "http_etag": "\"4da8e2caff2f230f08c0bd42a6213b6c0203a81d\"", "start": 0, "total_size": 1}'} headers: content-length: ['499'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -213,7 +188,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -233,7 +208,7 @@ 3}'} headers: content-length: ['808'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -247,7 +222,7 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: action=discard&header=testheader-2&pattern=testpattern-2 + body: !!python/unicode action=discard&header=testheader-2&pattern=testpattern-2 headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -257,10 +232,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com/header-matches/0'] status: {code: 201, message: Created} - request: - body: action=discard&header=testheader-1&pattern=testpattern-1 + body: !!python/unicode action=discard&header=testheader-1&pattern=testpattern-1 headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -270,10 +246,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com/header-matches/1'] status: {code: 201, message: Created} - request: - body: action=discard&header=testheader-3&pattern=testpattern-3 + body: !!python/unicode action=discard&header=testheader-3&pattern=testpattern-3 headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -283,6 +260,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com/header-matches/2'] status: {code: 201, message: Created} - request: @@ -290,36 +268,6 @@ 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": - "\"54d21bebe42e4c00bce51a7839dfb0bb7a74e22e\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/38", "user_id": 38}'} - 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/38/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"a26e9bd668d7d558e477239c815d631bcbe51526\"", "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/38"}], "http_etag": "\"2206fe8c8a7533538e9f89f1978b6adbebf4e7a2\"", - "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/list.example.com response: body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com", @@ -328,7 +276,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -338,14 +286,14 @@ uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"e3936c0db03ea980c0716ad7875be65777a8e8ce\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"ef8312eae1d33f2fd70bcf6771d8fc129c70bb0c\"", "list_id": "list.example.com", "member_id": 39, "moderation_action": "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/39", "user": - "http://localhost:9001/3.0/users/38"}], "http_etag": "\"9e42b9d128acf6521c9829e3f1c2c3d280f21ca7\"", + "http://localhost:9001/3.0/users/33"}], "http_etag": "\"3186da6816ba86bcb591da910f1a2c9b84f1ae88\"", "start": 0, "total_size": 1}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -356,14 +304,14 @@ 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": - "\"eb98eb31f5a60a49e11b73cfdf1ba42afc2ce74e\"", "list_id": "list.example.com", + "\"7efabd69ee74b3506f90aa38f86b674bf8b7c65a\"", "list_id": "list.example.com", "member_id": 40, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/40", "user": "http://localhost:9001/3.0/users/39"}], - "http_etag": "\"7c9edcf6c9d52798bd7d81587a49ebcbcf2a3d4c\"", "start": 0, "total_size": + "http://localhost:9001/3.0/members/40", "user": "http://localhost:9001/3.0/users/34"}], + "http_etag": "\"4da8e2caff2f230f08c0bd42a6213b6c0203a81d\"", "start": 0, "total_size": 1}'} headers: content-length: ['499'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -378,7 +326,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -398,7 +346,7 @@ 3}'} headers: content-length: ['808'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -418,7 +366,7 @@ 3}'} headers: content-length: ['808'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -438,7 +386,7 @@ 3}'} headers: content-length: ['808'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -447,14 +395,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -475,22 +423,22 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"54d21bebe42e4c00bce51a7839dfb0bb7a74e22e\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/38", "user_id": 38}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"cf8014263ef08f63a4cfea4d0d8b0170e725df07\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/39", - "user_id": 39}], "http_etag": "\"c4ba58c6fd7da115153a928a782f61b7f1f02690\"", + "http_etag": "\"193ede1fb8d445273173195352026184d3011303\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/33", "user_id": 33}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"fd4a8232471e43dfae3b0d05f64acab9601f0005\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/34", + "user_id": 34}], "http_etag": "\"e2d790dc98717aebcd771bcc218543ae1810cec2\"", "start": 0, "total_size": 2}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/38 + uri: http://localhost:9001/3.0/users/33 response: body: {string: !!python/unicode ''} headers: @@ -501,7 +449,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/34 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_move_up.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_move_up.yaml index e6014cd..a1f5495 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_move_up.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_move_up.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=list%40example.com + body: !!python/unicode fqdn_listname=list%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com'] status: {code: 201, message: Created} - request: @@ -53,10 +53,10 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=list.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=list.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -66,10 +66,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/41'] status: {code: 201, message: Created} - request: - body: list_id=list.example.com&role=moderator&subscriber=moderator%40example.com + body: !!python/unicode list_id=list.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,10 +80,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/42'] status: {code: 201, message: Created} - request: - body: action=discard&header=testheader-1&pattern=testpattern-1 + body: !!python/unicode action=discard&header=testheader-1&pattern=testpattern-1 headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -92,10 +94,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com/header-matches/0'] status: {code: 201, message: Created} - request: - body: action=discard&header=testheader-2&pattern=testpattern-2 + body: !!python/unicode action=discard&header=testheader-2&pattern=testpattern-2 headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -105,10 +108,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com/header-matches/1'] status: {code: 201, message: Created} - request: - body: action=discard&header=testheader-3&pattern=testpattern-3 + body: !!python/unicode action=discard&header=testheader-3&pattern=testpattern-3 headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -118,6 +122,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com/header-matches/2'] status: {code: 201, message: Created} - request: @@ -125,36 +130,6 @@ 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": - "\"2a531149c67abd4d7972f411361758c9f4235bb1\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/40", "user_id": 40}'} - 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/40/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"d46d4092496427eee6ce9d57947d874759f5c06d\"", "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/40"}], "http_etag": "\"270f6bf3f2bbf2a7366878be2cd8e790ab21a5e6\"", - "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/list.example.com response: body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com", @@ -163,7 +138,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -173,14 +148,14 @@ uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"800ee69dd1c2ef623c00cb353cdf3d3fee487403\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"cfe811bfc429a22e298409130c455e89bf24c317\"", "list_id": "list.example.com", "member_id": 41, "moderation_action": "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/41", "user": - "http://localhost:9001/3.0/users/40"}], "http_etag": "\"baed3bfcd7a4c79091509597578d1b446a346352\"", + "http://localhost:9001/3.0/users/35"}], "http_etag": "\"cf067b3b3eb67073441b4caa3098a1f3ced6171a\"", "start": 0, "total_size": 1}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -191,14 +166,14 @@ 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": - "\"d727e7b34147b93c5458559682fd8476930b7617\"", "list_id": "list.example.com", + "\"b956d7a5b38a19d6adf39f7b78f4b805c2666838\"", "list_id": "list.example.com", "member_id": 42, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/42", "user": "http://localhost:9001/3.0/users/41"}], - "http_etag": "\"7379aa4f6683700c261b5d50bc06560af06a42dd\"", "start": 0, "total_size": + "http://localhost:9001/3.0/members/42", "user": "http://localhost:9001/3.0/users/36"}], + "http_etag": "\"8b3d6588abf14ecbddbba20cf910a465eab601f9\"", "start": 0, "total_size": 1}'} headers: content-length: ['499'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -213,7 +188,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -233,7 +208,7 @@ 3}'} headers: content-length: ['808'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -247,7 +222,7 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: action=discard&header=testheader-1&pattern=testpattern-1 + body: !!python/unicode action=discard&header=testheader-1&pattern=testpattern-1 headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -257,10 +232,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com/header-matches/0'] status: {code: 201, message: Created} - request: - body: action=discard&header=testheader-3&pattern=testpattern-3 + body: !!python/unicode action=discard&header=testheader-3&pattern=testpattern-3 headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -270,10 +246,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com/header-matches/1'] status: {code: 201, message: Created} - request: - body: action=discard&header=testheader-2&pattern=testpattern-2 + body: !!python/unicode action=discard&header=testheader-2&pattern=testpattern-2 headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -283,6 +260,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com/header-matches/2'] status: {code: 201, message: Created} - request: @@ -290,36 +268,6 @@ 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": - "\"2a531149c67abd4d7972f411361758c9f4235bb1\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/40", "user_id": 40}'} - 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/40/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"d46d4092496427eee6ce9d57947d874759f5c06d\"", "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/40"}], "http_etag": "\"270f6bf3f2bbf2a7366878be2cd8e790ab21a5e6\"", - "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/list.example.com response: body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com", @@ -328,7 +276,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -338,14 +286,14 @@ uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"800ee69dd1c2ef623c00cb353cdf3d3fee487403\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"cfe811bfc429a22e298409130c455e89bf24c317\"", "list_id": "list.example.com", "member_id": 41, "moderation_action": "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/41", "user": - "http://localhost:9001/3.0/users/40"}], "http_etag": "\"baed3bfcd7a4c79091509597578d1b446a346352\"", + "http://localhost:9001/3.0/users/35"}], "http_etag": "\"cf067b3b3eb67073441b4caa3098a1f3ced6171a\"", "start": 0, "total_size": 1}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -356,14 +304,14 @@ 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": - "\"d727e7b34147b93c5458559682fd8476930b7617\"", "list_id": "list.example.com", + "\"b956d7a5b38a19d6adf39f7b78f4b805c2666838\"", "list_id": "list.example.com", "member_id": 42, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/42", "user": "http://localhost:9001/3.0/users/41"}], - "http_etag": "\"7379aa4f6683700c261b5d50bc06560af06a42dd\"", "start": 0, "total_size": + "http://localhost:9001/3.0/members/42", "user": "http://localhost:9001/3.0/users/36"}], + "http_etag": "\"8b3d6588abf14ecbddbba20cf910a465eab601f9\"", "start": 0, "total_size": 1}'} headers: content-length: ['499'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -378,7 +326,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -398,7 +346,7 @@ 3}'} headers: content-length: ['808'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -418,7 +366,7 @@ 3}'} headers: content-length: ['808'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -438,7 +386,7 @@ 3}'} headers: content-length: ['808'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -447,14 +395,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -475,22 +423,22 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"2a531149c67abd4d7972f411361758c9f4235bb1\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/40", "user_id": 40}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"6071df37f4a4cb86be05c478f66ec256e9e02896\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/41", - "user_id": 41}], "http_etag": "\"bbc894a0652b58e21a2ca3f521fb7083034438a4\"", + "http_etag": "\"d69542e8aff488054a713dbf6e0865e72dc820cd\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/35", "user_id": 35}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"ac340829f7769de8826d5096491b69aabe732430\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/36", + "user_id": 36}], "http_etag": "\"5b2cbb1e0ff56baa9e78d9d5f331765f875e0c58\"", "start": 0, "total_size": 2}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/40 + uri: http://localhost:9001/3.0/users/35 response: body: {string: !!python/unicode ''} headers: @@ -501,7 +449,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/41 + uri: http://localhost:9001/3.0/users/36 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_not_accessible_for_moderator.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_not_accessible_for_moderator.yaml index 1da7621..3256d32 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_not_accessible_for_moderator.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_not_accessible_for_moderator.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=list%40example.com + body: !!python/unicode fqdn_listname=list%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com'] status: {code: 201, message: Created} - request: @@ -53,10 +53,10 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=list.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=list.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -66,10 +66,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/43'] status: {code: 201, message: Created} - request: - body: list_id=list.example.com&role=moderator&subscriber=moderator%40example.com + body: !!python/unicode list_id=list.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,6 +80,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/44'] status: {code: 201, message: Created} - request: @@ -86,37 +88,6 @@ 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": - "\"8baa884afd4f798ea7a841b7db104287b4f1175a\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/43", "user_id": 43}'} - 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/43/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "moderator@example.com", - "http_etag": "\"05b5173a50d5b7abb128797de5757ce026b442d8\"", "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/43"}], - "http_etag": "\"098999e64fc0a20bc89cc20c71e2c3846f509a3f\"", "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 GET uri: http://localhost:9001/3.0/lists/list.example.com response: body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com", @@ -125,7 +96,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -135,14 +106,14 @@ uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"ccb5c97101db8fca638c49ad10d73597d97e2dde\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"91c6f1a482e4d66dd0c7c3bb918a018238083b34\"", "list_id": "list.example.com", "member_id": 43, "moderation_action": "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/43", "user": - "http://localhost:9001/3.0/users/42"}], "http_etag": "\"0318965e405d27b3f804e4c46c947adcc706afc9\"", + "http://localhost:9001/3.0/users/37"}], "http_etag": "\"c15c0dd1c09ff8990d2416e09eeff6dd18ea1572\"", "start": 0, "total_size": 1}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -153,14 +124,14 @@ 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": - "\"677f56b01db16ea41b4a60d686ce3a700d363e66\"", "list_id": "list.example.com", + "\"2d29952ba707e171d2eb78c4ce8aae3f9fa78c3e\"", "list_id": "list.example.com", "member_id": 44, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/44", "user": "http://localhost:9001/3.0/users/43"}], - "http_etag": "\"7287f4690c390bafa754e197b1459367d4926e7d\"", "start": 0, "total_size": + "http://localhost:9001/3.0/members/44", "user": "http://localhost:9001/3.0/users/38"}], + "http_etag": "\"4b75f9020d03ca76c7fceb40efdff26f4d329965\"", "start": 0, "total_size": 1}'} headers: content-length: ['499'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -169,14 +140,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -197,22 +168,22 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"61ff2561963f4a48a5bbe30d2c4168b52c485752\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/42", "user_id": 42}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"8baa884afd4f798ea7a841b7db104287b4f1175a\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/43", - "user_id": 43}], "http_etag": "\"8a9dcb4284924eb285aaef3b09d5d5c9d7cdf2e0\"", + "http_etag": "\"746af64fb3c343d4cbe089a4b44d52e65fa99133\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/37", "user_id": 37}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"54d21bebe42e4c00bce51a7839dfb0bb7a74e22e\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/38", + "user_id": 38}], "http_etag": "\"dbb3c07c159e15774d8b648fdd6c714d5bba9ec1\"", "start": 0, "total_size": 2}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/42 + uri: http://localhost:9001/3.0/users/37 response: body: {string: !!python/unicode ''} headers: @@ -223,7 +194,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/43 + uri: http://localhost:9001/3.0/users/38 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_page_accessible_for_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_page_accessible_for_owner.yaml index 3355cc9..7491fd9 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_page_accessible_for_owner.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_page_accessible_for_owner.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=list%40example.com + body: !!python/unicode fqdn_listname=list%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com'] status: {code: 201, message: Created} - request: @@ -53,10 +53,10 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=list.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=list.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -66,10 +66,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/45'] status: {code: 201, message: Created} - request: - body: list_id=list.example.com&role=moderator&subscriber=moderator%40example.com + body: !!python/unicode list_id=list.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,6 +80,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/46'] status: {code: 201, message: Created} - request: @@ -86,36 +88,6 @@ 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": - "\"6d612d2536821ffdb84398d1385fa03883c014cf\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/44", "user_id": 44}'} - 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/44/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"cff09a1be48550e876d14ab7286cefe50fc753f6\"", "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/44"}], "http_etag": "\"1b8a52f8f53aae1ac498f78a341b888b07183822\"", - "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/list.example.com response: body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com", @@ -124,7 +96,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -134,14 +106,14 @@ uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"75458695c72556e539dad3949a3bf27730dbb213\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"67cdae5375b745a650f23bc30334694a0e6ad3fa\"", "list_id": "list.example.com", "member_id": 45, "moderation_action": "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/45", "user": - "http://localhost:9001/3.0/users/44"}], "http_etag": "\"6e38636cf93bee28a0bea28dad76e1bfe7fddc16\"", + "http://localhost:9001/3.0/users/39"}], "http_etag": "\"f6d00d52be8846fc0ba730e9fec00bb072fffcff\"", "start": 0, "total_size": 1}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -152,14 +124,14 @@ 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": - "\"e2e45c4000d2fb18325a645d87499132b86cda06\"", "list_id": "list.example.com", + "\"72d8896e8318bbf914e1c789563a2d2e1ff1270f\"", "list_id": "list.example.com", "member_id": 46, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/46", "user": "http://localhost:9001/3.0/users/45"}], - "http_etag": "\"bf11d1b46b03c88e164b3eb2ae27f63ad255bc98\"", "start": 0, "total_size": + "http://localhost:9001/3.0/members/46", "user": "http://localhost:9001/3.0/users/40"}], + "http_etag": "\"2fe1913ac03b82e2566a6a31e34d3547392d2117\"", "start": 0, "total_size": 1}'} headers: content-length: ['499'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -174,7 +146,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -187,7 +159,7 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -196,14 +168,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -224,22 +196,22 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"6d612d2536821ffdb84398d1385fa03883c014cf\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/44", "user_id": 44}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"78e04703c01d88c72de40b7ec588160678a8be92\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/45", - "user_id": 45}], "http_etag": "\"5cfabd1bf64a7175b946ee3af40c94a0254fa024\"", + "http_etag": "\"cf8014263ef08f63a4cfea4d0d8b0170e725df07\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/39", "user_id": 39}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"2a531149c67abd4d7972f411361758c9f4235bb1\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/40", + "user_id": 40}], "http_etag": "\"27e3c1a2d092ff6bb39bca76aa61f6d7a053274d\"", "start": 0, "total_size": 2}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/44 + uri: http://localhost:9001/3.0/users/39 response: body: {string: !!python/unicode ''} headers: @@ -250,7 +222,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/45 + uri: http://localhost:9001/3.0/users/40 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_page_accessible_for_superuser.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_page_accessible_for_superuser.yaml index f587a55..c9ade54 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_page_accessible_for_superuser.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_page_accessible_for_superuser.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=list%40example.com + body: !!python/unicode fqdn_listname=list%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com'] status: {code: 201, message: Created} - request: @@ -53,10 +53,10 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=list.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=list.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -66,10 +66,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/47'] status: {code: 201, message: Created} - request: - body: list_id=list.example.com&role=moderator&subscriber=moderator%40example.com + body: !!python/unicode list_id=list.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,6 +80,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/48'] status: {code: 201, message: Created} - request: @@ -86,18 +88,6 @@ 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/list.example.com response: body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com", @@ -106,7 +96,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -119,7 +109,7 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -128,14 +118,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -156,22 +146,22 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"edcea41adfd3150fc44a03bedd6fd8873a9ef393\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/46", "user_id": 46}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"b104730ccfabfd68697319f733687494ff23079c\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/47", - "user_id": 47}], "http_etag": "\"0bac402a67c86d02007fc1bb57189300d4ea9280\"", + "http_etag": "\"6071df37f4a4cb86be05c478f66ec256e9e02896\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/41", "user_id": 41}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"61ff2561963f4a48a5bbe30d2c4168b52c485752\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/42", + "user_id": 42}], "http_etag": "\"7518f9dd0a97eb7e3beb7d7d44012cd5236461e2\"", "start": 0, "total_size": 2}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/46 + uri: http://localhost:9001/3.0/users/41 response: body: {string: !!python/unicode ''} headers: @@ -182,7 +172,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/47 + uri: http://localhost:9001/3.0/users/42 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_page_not_accessible_for_unprivileged_users.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_page_not_accessible_for_unprivileged_users.yaml index cf865bc..d14585a 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_page_not_accessible_for_unprivileged_users.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_page_not_accessible_for_unprivileged_users.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=list%40example.com + body: !!python/unicode fqdn_listname=list%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com'] status: {code: 201, message: Created} - request: @@ -53,10 +53,10 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=list.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=list.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -66,10 +66,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/49'] status: {code: 201, message: Created} - request: - body: list_id=list.example.com&role=moderator&subscriber=moderator%40example.com + body: !!python/unicode list_id=list.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,6 +80,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/50'] status: {code: 201, message: Created} - request: @@ -86,18 +88,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 response: body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com", @@ -106,7 +96,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -116,14 +106,14 @@ uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"ffbe44a35a1b261f508f66635ecf56a9c579f27c\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"ca2cbcb3cf7ec4d68b83c609459bae47aa900711\"", "list_id": "list.example.com", "member_id": 49, "moderation_action": "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/49", "user": - "http://localhost:9001/3.0/users/48"}], "http_etag": "\"e819d7ca10774953013a9d884787e99dcbcf6adb\"", + "http://localhost:9001/3.0/users/43"}], "http_etag": "\"d82e40b96c1089c0b6d4df0ccb16681cba1bc4bc\"", "start": 0, "total_size": 1}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -134,14 +124,14 @@ 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": - "\"3326b8258e51a58397f5165dc11f151f767dd265\"", "list_id": "list.example.com", + "\"03f1f13b273331a3366d8b1e3bb4a0e9426e67c3\"", "list_id": "list.example.com", "member_id": 50, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/50", "user": "http://localhost:9001/3.0/users/49"}], - "http_etag": "\"14cd323b60a69cd6f2bd9d02cf71efb028c77f3f\"", "start": 0, "total_size": + "http://localhost:9001/3.0/members/50", "user": "http://localhost:9001/3.0/users/44"}], + "http_etag": "\"054e1c8005af725212e52a6b25a26e624e1ead99\"", "start": 0, "total_size": 1}'} headers: content-length: ['499'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -150,14 +140,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -178,22 +168,22 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"c709c54bbc1563a8f27c82c362599fd351d2e019\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/48", "user_id": 48}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"60ed2ec4e71f0aea8fec40d17c53ac324288d285\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/49", - "user_id": 49}], "http_etag": "\"21c9c73596319c76559cc4784111e72bee67d18b\"", + "http_etag": "\"8baa884afd4f798ea7a841b7db104287b4f1175a\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/43", "user_id": 43}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"6d612d2536821ffdb84398d1385fa03883c014cf\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/44", + "user_id": 44}], "http_etag": "\"a814c9af37c3cf5a0676ccc6a8f43537cdb17da1\"", "start": 0, "total_size": 2}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/48 + uri: http://localhost:9001/3.0/users/43 response: body: {string: !!python/unicode ''} headers: @@ -204,7 +194,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/49 + uri: http://localhost:9001/3.0/users/44 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_page_not_accessible_if_not_logged_in.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_page_not_accessible_if_not_logged_in.yaml index 645de3f..7c040b6 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_page_not_accessible_if_not_logged_in.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_page_not_accessible_if_not_logged_in.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=list%40example.com + body: !!python/unicode fqdn_listname=list%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com'] status: {code: 201, message: Created} - request: @@ -53,10 +53,10 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=list.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=list.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -66,10 +66,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/51'] status: {code: 201, message: Created} - request: - body: list_id=list.example.com&role=moderator&subscriber=moderator%40example.com + body: !!python/unicode list_id=list.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,6 +80,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/52'] status: {code: 201, message: Created} - request: @@ -88,14 +90,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -116,22 +118,22 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"1cacbb8ba8546f2629af4198fab5277b01fdea0a\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/50", "user_id": 50}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"4a285f1759e20051233a71c5eb314755ec29e5cf\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/51", - "user_id": 51}], "http_etag": "\"36244f3e900255c4f1f3abbfee87ff35c9c9306e\"", + "http_etag": "\"78e04703c01d88c72de40b7ec588160678a8be92\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/45", "user_id": 45}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"edcea41adfd3150fc44a03bedd6fd8873a9ef393\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/46", + "user_id": 46}], "http_etag": "\"c6e3b337fdd6537bd06169d0b92620a2f01d6e3f\"", "start": 0, "total_size": 2}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/50 + uri: http://localhost:9001/3.0/users/45 response: body: {string: !!python/unicode ''} headers: @@ -142,7 +144,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/51 + uri: http://localhost:9001/3.0/users/46 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_same_order.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_same_order.yaml index 2946bdd..86ee7e2 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_same_order.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_same_order.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=list%40example.com + body: !!python/unicode fqdn_listname=list%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com'] status: {code: 201, message: Created} - request: @@ -53,10 +53,10 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=list.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=list.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -66,10 +66,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/53'] status: {code: 201, message: Created} - request: - body: list_id=list.example.com&role=moderator&subscriber=moderator%40example.com + body: !!python/unicode list_id=list.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,10 +80,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/54'] status: {code: 201, message: Created} - request: - body: action=discard&header=testheader-1&pattern=testpattern-1 + body: !!python/unicode action=discard&header=testheader-1&pattern=testpattern-1 headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -92,10 +94,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com/header-matches/0'] status: {code: 201, message: Created} - request: - body: action=discard&header=testheader-2&pattern=testpattern-2 + body: !!python/unicode action=discard&header=testheader-2&pattern=testpattern-2 headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -105,6 +108,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com/header-matches/1'] status: {code: 201, message: Created} - request: @@ -112,36 +116,6 @@ 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": - "\"694e7c8ddb0f934aebafa60d0d62e309edd4dff2\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/52", "user_id": 52}'} - 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/52/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"de19cf781de41cc171b98021d827eb6790c32b5f\"", "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/52"}], "http_etag": "\"30267a5757a2afc185217d055de138f74054c614\"", - "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/list.example.com response: body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com", @@ -150,7 +124,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -160,14 +134,14 @@ uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"cc06135b6b5206b385a2db183e6084c7a5848160\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"2ec1626c491e08a2308f84bde34e10fe4f0aa5e6\"", "list_id": "list.example.com", "member_id": 53, "moderation_action": "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/53", "user": - "http://localhost:9001/3.0/users/52"}], "http_etag": "\"981a4c5149e11de66815c3c3fb85475488774c7b\"", + "http://localhost:9001/3.0/users/47"}], "http_etag": "\"c221070db0ebbed6d754255a61c4d76b80bd6ed2\"", "start": 0, "total_size": 1}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -178,14 +152,14 @@ 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": - "\"02a54f369b42bdaa89958c4621da5961c2adc249\"", "list_id": "list.example.com", + "\"c05558f2a2827e792a9ddaa5ae89c9fb5c33bd0d\"", "list_id": "list.example.com", "member_id": 54, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/54", "user": "http://localhost:9001/3.0/users/53"}], - "http_etag": "\"83ef06dd944684c7cb9637d2b7f7cad96e6de5bc\"", "start": 0, "total_size": + "http://localhost:9001/3.0/members/54", "user": "http://localhost:9001/3.0/users/48"}], + "http_etag": "\"6b210a54dff3da838eef475223c61d7a633bdbff\"", "start": 0, "total_size": 1}'} headers: content-length: ['499'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -200,7 +174,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -218,7 +192,7 @@ 2}'} headers: content-length: ['573'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -236,7 +210,7 @@ 2}'} headers: content-length: ['573'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -254,7 +228,7 @@ 2}'} headers: content-length: ['573'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -263,14 +237,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -291,22 +265,22 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"694e7c8ddb0f934aebafa60d0d62e309edd4dff2\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/52", "user_id": 52}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"3c60293ff607ebcfa12ba62a87e1117e055aaf2c\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/53", - "user_id": 53}], "http_etag": "\"87df200e8008483eeb66a7ae6bd6e5b92ba14ee6\"", + "http_etag": "\"b104730ccfabfd68697319f733687494ff23079c\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/47", "user_id": 47}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"c709c54bbc1563a8f27c82c362599fd351d2e019\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/48", + "user_id": 48}], "http_etag": "\"669b6156ca8690626167f604ac8c6b064f327af2\"", "start": 0, "total_size": 2}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/52 + uri: http://localhost:9001/3.0/users/47 response: body: {string: !!python/unicode ''} headers: @@ -317,7 +291,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/53 + uri: http://localhost:9001/3.0/users/48 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_show_existing.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_show_existing.yaml index e9b7921..b41718d 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_show_existing.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListHeaderMatchesTest.test_show_existing.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=list%40example.com + body: !!python/unicode fqdn_listname=list%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com'] status: {code: 201, message: Created} - request: @@ -53,10 +53,10 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=list.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=list.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -66,10 +66,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/55'] status: {code: 201, message: Created} - request: - body: list_id=list.example.com&role=moderator&subscriber=moderator%40example.com + body: !!python/unicode list_id=list.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,10 +80,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/56'] status: {code: 201, message: Created} - request: - body: action=discard&header=testheader&pattern=testpattern + body: !!python/unicode action=discard&header=testheader&pattern=testpattern headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -92,6 +94,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/list.example.com/header-matches/0'] status: {code: 201, message: Created} - request: @@ -99,36 +102,6 @@ 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": - "\"9b874ad1cfcec0e350cc73b74e146dc62885865e\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/54", "user_id": 54}'} - 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/54/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"41053de2d369d99b8bd9e04420d2cd09329f653d\"", "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/54"}], "http_etag": "\"70c22c0a4cef0052a217651a637c28f0386b50c8\"", - "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/list.example.com response: body: {string: !!python/unicode '{"display_name": "List", "fqdn_listname": "list@example.com", @@ -137,7 +110,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -147,14 +120,14 @@ uri: http://localhost:9001/3.0/lists/list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"511e53ce86449b0f896d7f5c3644c8cd57a23609\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"54f38a8cd78cb045dded9859275883cdca96b866\"", "list_id": "list.example.com", "member_id": 55, "moderation_action": "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/55", "user": - "http://localhost:9001/3.0/users/54"}], "http_etag": "\"d0dab7d4e277b26b3249c40063098841eb238a7a\"", + "http://localhost:9001/3.0/users/49"}], "http_etag": "\"5db5dc60f9a966e867dbcb5c25149d20cb750fcb\"", "start": 0, "total_size": 1}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -165,14 +138,14 @@ 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": - "\"fea2e1c43991de4bb78bfef07324466313db1b5b\"", "list_id": "list.example.com", + "\"eda86635613ab7bc741e405c5e55ba52ef23c37d\"", "list_id": "list.example.com", "member_id": 56, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/56", "user": "http://localhost:9001/3.0/users/55"}], - "http_etag": "\"ae94e304357175074788faae33048e1fbae00d89\"", "start": 0, "total_size": + "http://localhost:9001/3.0/members/56", "user": "http://localhost:9001/3.0/users/50"}], + "http_etag": "\"25f6e68fdd9b46edf45bdd9caeb885e1520910dd\"", "start": 0, "total_size": 1}'} headers: content-length: ['499'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -187,7 +160,7 @@ "http://localhost:9001/3.0/lists/list.example.com", "volume": 1}'} headers: content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -203,7 +176,7 @@ 1}'} headers: content-length: ['334'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -212,14 +185,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -240,22 +213,22 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"9b874ad1cfcec0e350cc73b74e146dc62885865e\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/54", "user_id": 54}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"df64d4f4adfafc9332703c75e9d7e02ec7b26df1\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/55", - "user_id": 55}], "http_etag": "\"3d672a1552fc81e1778e2a68c9741c1730dff010\"", + "http_etag": "\"60ed2ec4e71f0aea8fec40d17c53ac324288d285\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/49", "user_id": 49}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"1cacbb8ba8546f2629af4198fab5277b01fdea0a\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/50", + "user_id": 50}], "http_etag": "\"b74554632366af35263a3000a8640cee684758d6\"", "start": 0, "total_size": 2}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/54 + uri: http://localhost:9001/3.0/users/49 response: body: {string: !!python/unicode ''} headers: @@ -266,7 +239,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/55 + uri: http://localhost:9001/3.0/users/50 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListIndexPageTest.test_list_index_contains_the_lists.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListIndexPageTest.test_list_index_contains_the_lists.yaml index b9cf5ed..10cac47 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 @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,10 +37,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: - body: fqdn_listname=bar%40example.com + body: !!python/unicode fqdn_listname=bar%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -51,6 +51,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/bar.example.com'] status: {code: 201, message: Created} - request: @@ -60,52 +61,19 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: - body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": - "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "list_id": "foo.example.com", "list_name": "foo", "mail_host": "example.com", - "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", - "volume": 1}, {"display_name": "Bar", "fqdn_listname": "bar@example.com", - "http_etag": "\"ca42a69a3bab5619e147cc6cbbfca16115976764\"", "list_id": "bar.example.com", - "list_name": "bar", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/bar.example.com", "volume": 1}], "http_etag": - "\"32ddcf601b73aeabdba5c18666c75d062c76eac8\"", "start": 0, "total_size": + body: {string: !!python/unicode '{"entries": [{"display_name": "Bar", "fqdn_listname": + "bar@example.com", "http_etag": "\"ca42a69a3bab5619e147cc6cbbfca16115976764\"", + "list_id": "bar.example.com", "list_name": "bar", "mail_host": "example.com", + "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/bar.example.com", + "volume": 1}, {"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}], "http_etag": + "\"70914f3f48a7570173531843e3ca4768008a9428\"", "start": 0, "total_size": 2}'} headers: content-length: ['695'] - content-type: [application/json; charset=utf-8] - 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] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -122,23 +90,58 @@ "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": "bar-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": "Bar", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "bar@example.com", - "goodbye_message_uri": "", "http_etag": "\"2b0138b777975771f3286f1f8dfd9e6d701c58e0\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Bar", "filter_content": false, "first_strip_reply_to": + false, "footer_uri": "", "fqdn_listname": "bar@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"e24c842e50f43f703c1ab0c65345650808e9b85e\"", "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"}'} + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "bar-owner@example.com", "post_id": + 1, "posting_address": "bar@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "bar-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Bar] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1730'] - content-type: [application/json; charset=utf-8] + content-length: ['1777'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} + headers: + content-length: ['1777'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -147,14 +150,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -163,13 +166,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -178,14 +179,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -209,6 +210,6 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} version: 1 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 aa3a9e1..869a6bd 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_not_accessible_for_moderator.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_not_accessible_for_moderator.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -20,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] + content-length: ['172'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -58,7 +56,7 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -69,10 +67,10 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/1'] + location: ['http://localhost:9001/3.0/members/9'] status: {code: 201, message: Created} - request: - body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com + body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -83,44 +81,13 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/2'] + location: ['http://localhost:9001/3.0/members/10'] 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": - "\"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": "moderator@example.com", - "http_etag": "\"d66892925a5affe7cea14d53f0bca01231ca8678\"", "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/2"}], - "http_etag": "\"0811f8b56d843ad04a8d71ed461ea6f9dafebdb4\"", "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/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -139,10 +106,10 @@ 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": "\"11aea171dc5df92af684a864f617be79e7d8a603\"", - "list_id": "foo.example.com", "member_id": 1, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/1", "user": - "http://localhost:9001/3.0/users/1"}], "http_etag": "\"802adaf7a699faae959236bbef39d3f39b24f40f\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"e954ac08bd224de03551765da8c594b25fa78a14\"", + "list_id": "foo.example.com", "member_id": 9, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/9", "user": + "http://localhost:9001/3.0/users/5"}], "http_etag": "\"421b1403f5702076a932c6e83cc5e6ee9dd3d2c1\"", "start": 0, "total_size": 1}'} headers: content-length: ['483'] @@ -157,13 +124,13 @@ response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"80dcfe2946d08e9764e9281c3373a1b58550e86f\"", "list_id": "foo.example.com", - "member_id": 2, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/2", "user": "http://localhost:9001/3.0/users/2"}], - "http_etag": "\"d62762ec998e9528fcdbf41df839bad8f446e5ca\"", "start": 0, "total_size": + "\"f24c248b914be898eca0cc45afd0e46da0e43538\"", "list_id": "foo.example.com", + "member_id": 10, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/10", "user": "http://localhost:9001/3.0/users/6"}], + "http_etag": "\"88546319f2cb2dcbb4e7532df77e7210870be9fb\"", "start": 0, "total_size": 1}'} headers: - content-length: ['495'] + content-length: ['497'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -173,13 +140,13 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] + content-length: ['277'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -205,10 +172,18 @@ false, "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"b36f8ca1d91d583901c768dc116815282d469c66\"", "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/2", - "user_id": 2}], "http_etag": "\"02a1b3f934bd7d185e0442a63a169c0f3f356f60\"", - "start": 0, "total_size": 2}'} + "user_id": 2}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"bb1c2e6094a96b17e2d5dbf487291f7667f69f75\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3", + "user_id": 3}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"c1dcbf16536eb2e2151441f4bce2989ab1dab30b\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/4", + "user_id": 4}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"637c12d15eb0203c9ffac9ea2d5ac8605d18e38d\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/5", + "user_id": 5}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"b774d488fd2356b7bedf0e6fa4a26dc70dc2b02b\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/6", + "user_id": 6}], "http_etag": "\"840fae39dc3e6da914d7035b65ef378f5d9cf97c\"", + "start": 0, "total_size": 6}'} headers: - content-length: ['483'] + content-length: ['1243'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -233,4 +208,48 @@ headers: content-length: ['0'] status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/3 + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/4 + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/5 + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/6 + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_page_accessible_for_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_page_accessible_for_owner.yaml index 698f9e6..ff48f20 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_page_accessible_for_owner.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_page_accessible_for_owner.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -20,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] + content-length: ['172'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -58,7 +56,7 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -69,10 +67,10 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/3'] + location: ['http://localhost:9001/3.0/members/11'] status: {code: 201, message: Created} - request: - body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com + body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -83,43 +81,13 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/4'] + location: ['http://localhost:9001/3.0/members/12'] 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": - "\"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": "owner@example.com", "http_etag": - "\"9b7e4ba7721338ab16619f69a74fdf6b7921c289\"", "original_email": "owner@example.com", - "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/owner@example.com", - "user": "http://localhost:9001/3.0/users/3"}], "http_etag": "\"b217d5409fbf8befcb8c31825a74e70470e5f5a2\"", - "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", @@ -138,13 +106,13 @@ uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"df215d837d2610ab3523418a8d9585238854bb49\"", - "list_id": "foo.example.com", "member_id": 3, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/3", "user": - "http://localhost:9001/3.0/users/3"}], "http_etag": "\"d1d412c20b7645203e4c733eda1f8afaf4624d83\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"c2b18ddd796ebc33a86d17c5b933173e7a8fe36b\"", + "list_id": "foo.example.com", "member_id": 11, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/11", "user": + "http://localhost:9001/3.0/users/7"}], "http_etag": "\"644592bc6be63a3c3fbc937509c2f2cec4b67823\"", "start": 0, "total_size": 1}'} headers: - content-length: ['483'] + content-length: ['485'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -156,13 +124,13 @@ response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"2719ced3f4bf6a0a4f635a0acb678677a453b16e\"", "list_id": "foo.example.com", - "member_id": 4, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/4", "user": "http://localhost:9001/3.0/users/4"}], - "http_etag": "\"a9d400540a00a272f1904ec9eab01b1700d45a3c\"", "start": 0, "total_size": + "\"f98b983b2f49dc4b14034de7e8ab3405473e8c88\"", "list_id": "foo.example.com", + "member_id": 12, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/12", "user": "http://localhost:9001/3.0/users/8"}], + "http_etag": "\"d60d311365e89160e2be663f30bd7aab7d4d1a64\"", "start": 0, "total_size": 1}'} headers: - content-length: ['495'] + content-length: ['497'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -211,28 +179,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member - response: - body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] + content-length: ['277'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -254,11 +209,11 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"bb1c2e6094a96b17e2d5dbf487291f7667f69f75\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/3", "user_id": 3}, {"created_on": - "2005-08-01T07:49:23", "http_etag": "\"c1dcbf16536eb2e2151441f4bce2989ab1dab30b\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/4", - "user_id": 4}], "http_etag": "\"8f3f78e0a24b92a40100375b7c9eeac5c8c65407\"", + "http_etag": "\"c7360c029a83c97672ca38dd8b008d48e05949a6\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/7", "user_id": 7}, {"created_on": + "2005-08-01T07:49:23", "http_etag": "\"9f85bec9adf1f795257120c028ebcd42df491bcb\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/8", + "user_id": 8}], "http_etag": "\"6d79d8839102712f649497295042532321f7a937\"", "start": 0, "total_size": 2}'} headers: content-length: ['483'] @@ -269,7 +224,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/3 + uri: http://localhost:9001/3.0/users/7 response: body: {string: !!python/unicode ''} headers: @@ -280,7 +235,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/4 + uri: http://localhost:9001/3.0/users/8 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_page_accessible_for_superuser.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_page_accessible_for_superuser.yaml index d5193eb..ad54497 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_page_accessible_for_superuser.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_page_accessible_for_superuser.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -20,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] + content-length: ['172'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -58,7 +56,7 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -69,10 +67,10 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/5'] + location: ['http://localhost:9001/3.0/members/13'] status: {code: 201, message: Created} - request: - body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com + body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -83,25 +81,13 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/6'] + location: ['http://localhost:9001/3.0/members/14'] 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/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -143,28 +129,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member - response: - body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] + content-length: ['277'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -186,14 +159,14 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"637c12d15eb0203c9ffac9ea2d5ac8605d18e38d\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/5", "user_id": 5}, {"created_on": - "2005-08-01T07:49:23", "http_etag": "\"b774d488fd2356b7bedf0e6fa4a26dc70dc2b02b\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/6", - "user_id": 6}], "http_etag": "\"c99e9a6fdf01f14e8fb4669bd208f4c519b83933\"", + "http_etag": "\"d3653a82ed2e228300cde355e9d15020657bfb86\"", "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": "\"40c88498622198c212181e9ff106e60a3cba46ed\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/10", + "user_id": 10}], "http_etag": "\"932fe2d6b99ecd15c16ca34c98d760ed33d42bea\"", "start": 0, "total_size": 2}'} headers: - content-length: ['483'] + content-length: ['485'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -201,7 +174,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/5 + uri: http://localhost:9001/3.0/users/10 response: body: {string: !!python/unicode ''} headers: @@ -212,7 +185,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/6 + uri: http://localhost:9001/3.0/users/9 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_page_not_accessible_for_unprivileged_users.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_page_not_accessible_for_unprivileged_users.yaml index 554b269..1d44b48 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_page_not_accessible_for_unprivileged_users.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_page_not_accessible_for_unprivileged_users.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -20,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] + content-length: ['172'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -58,7 +56,7 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -69,10 +67,10 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/7'] + location: ['http://localhost:9001/3.0/members/15'] status: {code: 201, message: Created} - request: - body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com + body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -83,25 +81,13 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/8'] + location: ['http://localhost:9001/3.0/members/16'] 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", @@ -120,13 +106,13 @@ uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"776a09d90204935e7d125fce3c160f06d2a98155\"", - "list_id": "foo.example.com", "member_id": 7, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/7", "user": - "http://localhost:9001/3.0/users/7"}], "http_etag": "\"2a92d22ca2421f26632227565034353f36bc658c\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"0ac3e9bfbff1268da972693401cef9e207e5551e\"", + "list_id": "foo.example.com", "member_id": 15, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/15", "user": + "http://localhost:9001/3.0/users/11"}], "http_etag": "\"ee781643e3f9cd6a6b25929bca32d70301db5ab9\"", "start": 0, "total_size": 1}'} headers: - content-length: ['483'] + content-length: ['486'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -138,13 +124,13 @@ response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"1d14e6e615be285d3926aace6c71fd58418533b6\"", "list_id": "foo.example.com", - "member_id": 8, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/8", "user": "http://localhost:9001/3.0/users/8"}], - "http_etag": "\"b2b67d3f4db3a3effcaa64bb69aef4ef93b94aad\"", "start": 0, "total_size": + "\"3f4b7816878ffaffdedda6207345458ab7004e16\"", "list_id": "foo.example.com", + "member_id": 16, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/16", "user": "http://localhost:9001/3.0/users/12"}], + "http_etag": "\"65e11e971b6459e7d3c548263445a06e6c56307f\"", "start": 0, "total_size": 1}'} headers: - content-length: ['495'] + content-length: ['498'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -154,13 +140,13 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] + content-length: ['277'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -182,14 +168,14 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"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}, {"created_on": - "2005-08-01T07:49:23", "http_etag": "\"9f85bec9adf1f795257120c028ebcd42df491bcb\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/8", - "user_id": 8}], "http_etag": "\"6d79d8839102712f649497295042532321f7a937\"", + "http_etag": "\"4c816726023bb1daf76d48e82b250689df6a4694\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/11", "user_id": 11}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"87648caa0e3380982e197beebf79e468670de477\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/12", + "user_id": 12}], "http_etag": "\"a6c9f698a5107d37e39c105071b77479e0bdc6c7\"", "start": 0, "total_size": 2}'} headers: - content-length: ['483'] + content-length: ['487'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -197,7 +183,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/7 + uri: http://localhost:9001/3.0/users/11 response: body: {string: !!python/unicode ''} headers: @@ -208,7 +194,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/8 + uri: http://localhost:9001/3.0/users/12 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_page_not_accessible_if_not_logged_in.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_page_not_accessible_if_not_logged_in.yaml index d7ba4ea..abede2f 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_page_not_accessible_if_not_logged_in.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_page_not_accessible_if_not_logged_in.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -20,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] + content-length: ['172'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -58,7 +56,7 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -69,10 +67,10 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/9'] + location: ['http://localhost:9001/3.0/members/17'] status: {code: 201, message: Created} - request: - body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com + body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -83,7 +81,7 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/10'] + location: ['http://localhost:9001/3.0/members/18'] status: {code: 201, message: Created} - request: body: null @@ -92,13 +90,13 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] + content-length: ['277'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -120,14 +118,14 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"d3653a82ed2e228300cde355e9d15020657bfb86\"", "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": "\"40c88498622198c212181e9ff106e60a3cba46ed\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/10", - "user_id": 10}], "http_etag": "\"932fe2d6b99ecd15c16ca34c98d760ed33d42bea\"", + "http_etag": "\"007cc78d77622058dc0f70458877d09487378a12\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/13", "user_id": 13}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"0151e0193b20e2c0ad85bb8486f2147bea762806\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/14", + "user_id": 14}], "http_etag": "\"e2f61a2e57e01510a45f2c4dbec7d88ebc6353aa\"", "start": 0, "total_size": 2}'} headers: - content-length: ['485'] + content-length: ['487'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -135,7 +133,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/10 + uri: http://localhost:9001/3.0/users/13 response: body: {string: !!python/unicode ''} headers: @@ -146,7 +144,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/9 + uri: http://localhost:9001/3.0/users/14 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_moderation_action.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_moderation_action.yaml index f542bb8..c1e38ba 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_moderation_action.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_moderation_action.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -20,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] + content-length: ['172'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -58,7 +56,7 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -69,10 +67,10 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/25'] + location: ['http://localhost:9001/3.0/members/85'] status: {code: 201, message: Created} - request: - body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com + body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -83,10 +81,10 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/26'] + location: ['http://localhost:9001/3.0/members/86'] status: {code: 201, message: Created} - request: - body: email=test%40example.com + body: !!python/unicode email=test%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -97,19 +95,19 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/users/27'] + location: ['http://localhost:9001/3.0/users/81'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/27 + uri: http://localhost:9001/3.0/users/81 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"d5c9e2ff74032042aba83dcf2b1cc2f0cd9495a8\"", "is_server_owner": false, - "password": "$6$rounds=702318$RY1JZNyy2pj3R6UB$WlqhPTL2MgRq.wPLjTaigkJ9nn6i40m1mLzpXts/G98BcYt1zt6oECNIxlXT5Ihyhq4AX/EdC5AbSh3yHoNlN0", - "self_link": "http://localhost:9001/3.0/users/27", "user_id": 27}'} + "\"1ff736046d43116d71a4a6ad7f5b9e43b884a402\"", "is_server_owner": false, + "password": "$6$rounds=614131$Y.YeyBO.poxmJWFT$tKDi5fUDJsSBluqWoVj/dCJcRzP116QJHVQBlAxui23GQgfvXwrsys15uKxomc.22LVYKszElx7dxsg8cw1/S/", + "self_link": "http://localhost:9001/3.0/users/81", "user_id": 81}'} headers: content-length: ['326'] content-type: [application/json; charset=UTF-8] @@ -119,12 +117,12 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/27/addresses + uri: http://localhost:9001/3.0/users/81/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag": - "\"ad8ac76a93e51a3d36c47c3565f996c1629b6caa\"", "original_email": "test@example.com", + "\"28a313e1aa232d96d2c954eb3b714e936137a39a\"", "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/27"}], "http_etag": "\"f2bf8b02c220c810aca7bf6ce4627feb3fac56b6\"", + "user": "http://localhost:9001/3.0/users/81"}], "http_etag": "\"eccd8cf04de2d5a09dfdf72f77aefbf7fd5268bb\"", "start": 0, "total_size": 1}'} headers: content-length: ['388'] @@ -142,7 +140,7 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com + body: !!python/unicode display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -153,7 +151,7 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/27'] + location: ['http://localhost:9001/3.0/members/87'] status: {code: 201, message: Created} - request: body: null @@ -163,9 +161,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": "\"e2c451765e1e4ac82414bfa7ea6153b6a84a851c\"", - "list_id": "foo.example.com", "member_id": 27, "role": "member", "self_link": - "http://localhost:9001/3.0/members/27", "user": "http://localhost:9001/3.0/users/27"}'} + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"5e2eb20fb7936c9a105cb5b9f018f2319e15a426\"", + "list_id": "foo.example.com", "member_id": 87, "role": "member", "self_link": + "http://localhost:9001/3.0/members/87", "user": "http://localhost:9001/3.0/users/81"}'} headers: content-length: ['349'] content-type: [application/json; charset=UTF-8] @@ -175,33 +173,6 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com - response: - body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/test@example.com", - "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"e2c451765e1e4ac82414bfa7ea6153b6a84a851c\"", - "list_id": "foo.example.com", "member_id": 27, "role": "member", "self_link": - "http://localhost:9001/3.0/members/27", "user": "http://localhost:9001/3.0/users/27"}'} - headers: - content-length: ['349'] - content-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/su@example.com - response: - body: {string: !!python/unicode 404 Not Found} - headers: - content-length: ['13'] - content-type: [application/json; charset=UTF-8] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -235,9 +206,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": "\"e2c451765e1e4ac82414bfa7ea6153b6a84a851c\"", - "list_id": "foo.example.com", "member_id": 27, "role": "member", "self_link": - "http://localhost:9001/3.0/members/27", "user": "http://localhost:9001/3.0/users/27"}'} + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"5e2eb20fb7936c9a105cb5b9f018f2319e15a426\"", + "list_id": "foo.example.com", "member_id": 87, "role": "member", "self_link": + "http://localhost:9001/3.0/members/87", "user": "http://localhost:9001/3.0/users/81"}'} headers: content-length: ['349'] content-type: [application/json; charset=UTF-8] @@ -247,21 +218,21 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/members/27/preferences + uri: http://localhost:9001/3.0/members/87/preferences response: - body: {string: !!python/unicode '{"http_etag": "\"35211d8d79343dd8ab3a8f26e7aa89a465f2feea\"", - "self_link": "http://localhost:9001/3.0/members/27/preferences"}'} + body: {string: !!python/unicode '{"http_etag": "\"9c7d16cbf64d3c88c0ec30a20f4dfc02c95fe05d\"", + "self_link": "http://localhost:9001/3.0/members/87/preferences"}'} headers: content-length: ['126'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: moderation_action=hold + body: !!python/unicode moderation_action=hold headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] method: !!python/unicode PATCH - uri: http://localhost:9001/3.0/members/27 + uri: http://localhost:9001/3.0/members/87 response: body: {string: !!python/unicode ''} headers: @@ -272,18 +243,6 @@ 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", @@ -317,10 +276,10 @@ 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": "\"0a01f98f340594bb43e703181e563b15134367d6\"", - "list_id": "foo.example.com", "member_id": 27, "moderation_action": "hold", - "role": "member", "self_link": "http://localhost:9001/3.0/members/27", "user": - "http://localhost:9001/3.0/users/27"}'} + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"1defd58e17e01d90f25737757d949c2d2cafc579\"", + "list_id": "foo.example.com", "member_id": 87, "moderation_action": "hold", + "role": "member", "self_link": "http://localhost:9001/3.0/members/87", "user": + "http://localhost:9001/3.0/users/81"}'} headers: content-length: ['378'] content-type: [application/json; charset=UTF-8] @@ -330,10 +289,10 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/members/27/preferences + uri: http://localhost:9001/3.0/members/87/preferences response: - body: {string: !!python/unicode '{"http_etag": "\"35211d8d79343dd8ab3a8f26e7aa89a465f2feea\"", - "self_link": "http://localhost:9001/3.0/members/27/preferences"}'} + body: {string: !!python/unicode '{"http_etag": "\"9c7d16cbf64d3c88c0ec30a20f4dfc02c95fe05d\"", + "self_link": "http://localhost:9001/3.0/members/87/preferences"}'} headers: content-length: ['126'] content-type: [application/json; charset=UTF-8] @@ -346,10 +305,10 @@ 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": "\"0a01f98f340594bb43e703181e563b15134367d6\"", - "list_id": "foo.example.com", "member_id": 27, "moderation_action": "hold", - "role": "member", "self_link": "http://localhost:9001/3.0/members/27", "user": - "http://localhost:9001/3.0/users/27"}'} + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"1defd58e17e01d90f25737757d949c2d2cafc579\"", + "list_id": "foo.example.com", "member_id": 87, "moderation_action": "hold", + "role": "member", "self_link": "http://localhost:9001/3.0/members/87", "user": + "http://localhost:9001/3.0/users/81"}'} headers: content-length: ['378'] content-type: [application/json; charset=UTF-8] @@ -359,18 +318,6 @@ 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", @@ -404,10 +351,10 @@ 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": "\"0a01f98f340594bb43e703181e563b15134367d6\"", - "list_id": "foo.example.com", "member_id": 27, "moderation_action": "hold", - "role": "member", "self_link": "http://localhost:9001/3.0/members/27", "user": - "http://localhost:9001/3.0/users/27"}'} + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"1defd58e17e01d90f25737757d949c2d2cafc579\"", + "list_id": "foo.example.com", "member_id": 87, "moderation_action": "hold", + "role": "member", "self_link": "http://localhost:9001/3.0/members/87", "user": + "http://localhost:9001/3.0/users/81"}'} headers: content-length: ['378'] content-type: [application/json; charset=UTF-8] @@ -417,10 +364,10 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/members/27/preferences + uri: http://localhost:9001/3.0/members/87/preferences response: - body: {string: !!python/unicode '{"http_etag": "\"35211d8d79343dd8ab3a8f26e7aa89a465f2feea\"", - "self_link": "http://localhost:9001/3.0/members/27/preferences"}'} + body: {string: !!python/unicode '{"http_etag": "\"9c7d16cbf64d3c88c0ec30a20f4dfc02c95fe05d\"", + "self_link": "http://localhost:9001/3.0/members/87/preferences"}'} headers: content-length: ['126'] content-type: [application/json; charset=UTF-8] @@ -431,7 +378,7 @@ accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] method: !!python/unicode PATCH - uri: http://localhost:9001/3.0/members/27 + uri: http://localhost:9001/3.0/members/87 response: body: {string: !!python/unicode ''} headers: @@ -442,18 +389,6 @@ 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", @@ -487,9 +422,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": "\"e2c451765e1e4ac82414bfa7ea6153b6a84a851c\"", - "list_id": "foo.example.com", "member_id": 27, "role": "member", "self_link": - "http://localhost:9001/3.0/members/27", "user": "http://localhost:9001/3.0/users/27"}'} + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"5e2eb20fb7936c9a105cb5b9f018f2319e15a426\"", + "list_id": "foo.example.com", "member_id": 87, "role": "member", "self_link": + "http://localhost:9001/3.0/members/87", "user": "http://localhost:9001/3.0/users/81"}'} headers: content-length: ['349'] content-type: [application/json; charset=UTF-8] @@ -499,10 +434,10 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/members/27/preferences + uri: http://localhost:9001/3.0/members/87/preferences response: - body: {string: !!python/unicode '{"http_etag": "\"35211d8d79343dd8ab3a8f26e7aa89a465f2feea\"", - "self_link": "http://localhost:9001/3.0/members/27/preferences"}'} + body: {string: !!python/unicode '{"http_etag": "\"9c7d16cbf64d3c88c0ec30a20f4dfc02c95fe05d\"", + "self_link": "http://localhost:9001/3.0/members/87/preferences"}'} headers: content-length: ['126'] content-type: [application/json; charset=UTF-8] @@ -515,9 +450,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": "\"e2c451765e1e4ac82414bfa7ea6153b6a84a851c\"", - "list_id": "foo.example.com", "member_id": 27, "role": "member", "self_link": - "http://localhost:9001/3.0/members/27", "user": "http://localhost:9001/3.0/users/27"}'} + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"5e2eb20fb7936c9a105cb5b9f018f2319e15a426\"", + "list_id": "foo.example.com", "member_id": 87, "role": "member", "self_link": + "http://localhost:9001/3.0/members/87", "user": "http://localhost:9001/3.0/users/81"}'} headers: content-length: ['349'] content-type: [application/json; charset=UTF-8] @@ -529,13 +464,13 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] + content-length: ['277'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -557,14 +492,14 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"0c3f6e8712fd05b9da49c42bf9600a5414b7958f\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/25", "user_id": 25}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"c73be856843a113d5eb32f60ae4315192adb1045\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/26", - "user_id": 26}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"d5c9e2ff74032042aba83dcf2b1cc2f0cd9495a8\"", - "is_server_owner": false, "password": "$6$rounds=702318$RY1JZNyy2pj3R6UB$WlqhPTL2MgRq.wPLjTaigkJ9nn6i40m1mLzpXts/G98BcYt1zt6oECNIxlXT5Ihyhq4AX/EdC5AbSh3yHoNlN0", - "self_link": "http://localhost:9001/3.0/users/27", "user_id": 27}], "http_etag": - "\"8c30e9df1ed2ff50f2a59cf6e94ed532287bffb8\"", "start": 0, "total_size": + "http_etag": "\"1893973f238810e437cd3233b04ee5c1ab23022c\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/79", "user_id": 79}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"3cfc8052df45dbd51a138a5b79c02833187f6536\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/80", + "user_id": 80}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"1ff736046d43116d71a4a6ad7f5b9e43b884a402\"", + "is_server_owner": false, "password": "$6$rounds=614131$Y.YeyBO.poxmJWFT$tKDi5fUDJsSBluqWoVj/dCJcRzP116QJHVQBlAxui23GQgfvXwrsys15uKxomc.22LVYKszElx7dxsg8cw1/S/", + "self_link": "http://localhost:9001/3.0/users/81", "user_id": 81}], "http_etag": + "\"48e38e3a76daeed6272593e20a3eda0543ef6681\"", "start": 0, "total_size": 3}'} headers: content-length: ['815'] @@ -575,7 +510,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/25 + uri: http://localhost:9001/3.0/users/79 response: body: {string: !!python/unicode ''} headers: @@ -586,7 +521,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/26 + uri: http://localhost:9001/3.0/users/80 response: body: {string: !!python/unicode ''} headers: @@ -597,7 +532,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/27 + uri: http://localhost:9001/3.0/users/81 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_not_accessible_for_moderator.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_not_accessible_for_moderator.yaml index b9b54b7..07d4238 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_not_accessible_for_moderator.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_not_accessible_for_moderator.yaml @@ -1,50 +1,50 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -53,83 +53,86 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/4580'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/members/88'] status: {code: 201, message: Created} - request: - body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com + body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/4581'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/members/89'] status: {code: 201, message: Created} - request: - body: email=test%40example.com + body: !!python/unicode email=test%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/2603'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/users/84'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/2603 + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/84 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"01028cf2252303ed31683073cf13726312408108\"", "is_server_owner": false, - "password": "$6$rounds=662618$6xrZ4rQrBB8hSzaL$RdA1Z9Q95E7DOH10vz0rB5Vzrorluw.BWbPJmt2cZ2Mc3yDOGo6r1wJrtgaiG5p4jU/hrMkuqnfUpi0MjAorW/", - "self_link": "http://localhost:9001/3.0/users/2603", "user_id": 2603}'} + "\"806465cebdfe0b401348f9141623640d7cf607be\"", "is_server_owner": false, + "password": "$6$rounds=652305$DgG3P.AjNzZmubFS$v4Rd6Lth6tMqLqUBipJyAsSbDfwtNvEkWwTP5iWIuEXjD1R5.2Dftp2FqKPZZXz4RVjI80Uxt0NujDMWkb/sx1", + "self_link": "http://localhost:9001/3.0/users/84", "user_id": 84}'} headers: - content-length: ['330'] - content-type: [application/json; charset=utf-8] + 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/2603/addresses + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/84/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag": - "\"e9e4e8cc659decdfe2f95dcf2216529ac067d24d\"", "original_email": "test@example.com", + "\"c6990b2f7be6eaeb0388a90260c9972ea9640ad3\"", "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/2603"}], "http_etag": "\"607cbe30e196f5a431003e0232150df4fe4269c1\"", + "user": "http://localhost:9001/3.0/users/84"}], "http_etag": "\"6252f0c990524812d5d3a7d27bc5226452ee2e89\"", "start": 0, "total_size": 1}'} headers: - content-length: ['390'] - content-type: [application/json; charset=utf-8] + content-length: ['388'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'POST' + method: !!python/unicode POST uri: http://localhost:9001/3.0/addresses/test@example.com/verify response: body: {string: !!python/unicode ''} @@ -137,54 +140,24 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com + body: !!python/unicode display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/4582'] + content-type: [application/json; charset=UTF-8] + 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/users/moderator@example.com - response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"2654dd9289836cf68b2608957880cde5da86e8c2\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/2569", "user_id": 2569}'} - headers: - content-length: ['194'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/2569/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "moderator@example.com", - "http_etag": "\"9c8285f78e80becdaedbc1f04bf2a3e7330ed2a1\"", "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/2569"}], - "http_etag": "\"6f5f79afccc63020c68b96a858389175e893fda7\"", "start": 0, "total_size": - 1}'} - headers: - content-length: ['405'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -193,87 +166,64 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"188510c419f7a90a33608baac9853bc2904e26ce\"", - "list_id": "foo.example.com", "member_id": 4580, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/4580", "user": - "http://localhost:9001/3.0/users/2568"}], "http_etag": "\"0d49e02aa1e0558098f5e6804890e551e22f94c7\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"8557c958a5e29fc22a52ba9b368e79108eba719c\"", + "list_id": "foo.example.com", "member_id": 88, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/88", "user": + "http://localhost:9001/3.0/users/82"}], "http_etag": "\"24f8945924befe57d8bd9839bd17ad6649bee3ec\"", "start": 0, "total_size": 1}'} headers: - content-length: ['492'] - content-type: [application/json; charset=utf-8] + content-length: ['486'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"a2050f1e3e8a8754c16b1ac2a6d270c743c27743\"", "list_id": "foo.example.com", - "member_id": 4581, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/4581", "user": "http://localhost:9001/3.0/users/2569"}], - "http_etag": "\"d5fb908d143b060c38a4cb0eb2f23d40c62fc5e1\"", "start": 0, "total_size": + "\"4f8cd50b02adf9b90d445ca6ddfb8af2a7c044e8\"", "list_id": "foo.example.com", + "member_id": 89, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/89", "user": "http://localhost:9001/3.0/users/83"}], + "http_etag": "\"c10b8a8628a700cf8fdb0d8903d4d734edf01e56\"", "start": 0, "total_size": 1}'} headers: - content-length: ['504'] - content-type: [application/json; charset=utf-8] + content-length: ['498'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}, {"base_url": "http://example.net", "description": - null, "http_etag": "\"0d2f2e58986938da3ee32b4625c8d2ee7818f5f8\"", "mail_host": - "example.net", "self_link": "http://localhost:9001/3.0/domains/example.net", - "url_host": "example.net"}, {"base_url": "http://example.org", "description": - "Example domain", "http_etag": "\"c13e61a042d2abbb10bb7f7547024b919e376dc2\"", - "mail_host": "example.org", "self_link": "http://localhost:9001/3.0/domains/example.org", - "url_host": "example.org"}, {"base_url": "http://allmy.example.com", "description": - "My new domain", "http_etag": "\"8a5f64e33a236a8c80a4a4ff64b0a7449940df6a\"", - "mail_host": "my.example.com", "self_link": "http://localhost:9001/3.0/domains/my.example.com", - "url_host": "allmy.example.com"}, {"base_url": "http://your.example.com", - "description": null, "http_etag": "\"d93fe2a3f55329c10082ea5d8b0bd8ce2461043b\"", - "mail_host": "your.example.com", "self_link": "http://localhost:9001/3.0/domains/your.example.com", - "url_host": "your.example.com"}], "http_etag": "\"742f26b8b146ac7a6260742c0093595b61664a75\"", - "start": 0, "total_size": 5}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['1339'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/domains/my.example.com - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode ''} @@ -284,85 +234,29 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/domains/example.net - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/domains/example.org - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/domains/your.example.com - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"aa8770f902ca0dad27dfd5e88a1841a4c1531810\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/2568", "user_id": 2568}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"2654dd9289836cf68b2608957880cde5da86e8c2\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/2569", - "user_id": 2569}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"223506b993d7e04dc617c384eeb77461c7749dff\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/2580", - "user_id": 2580}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"aa7513fa55cc62c9d733aa5b931cc497810c6631\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/2581", - "user_id": 2581}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"668c2ec8b4864cea88abd8ddd087fa6cfb0356ce\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/2582", - "user_id": 2582}, {"created_on": "2005-08-01T07:49:23", "display_name": "Dave - Person", "http_etag": "\"a287a9e4977d07563fc1eaaa75afebd06401e790\"", "is_server_owner": - false, "password": "$6$rounds=681319$eO2clXJM58s3gOxm$Alpuibs7epqwFp8GCyK/k7egEUeBApu/59rJiL5i14pUdjrQVE1n3m8Y9pysiw9TwRyVYCVGR/OQT.WuK1OWK1", - "self_link": "http://localhost:9001/3.0/users/2587", "user_id": 2587}, {"created_on": - "2005-08-01T07:49:23", "display_name": "Elly Person", "http_etag": "\"d1ffb270e5d16fa37d28b0e4111cf616dd60356d\"", - "is_server_owner": false, "password": "$6$rounds=624384$OdUJXTpTIQc6m59K$mQI7ucB.iYcCykBOJfSl5qi/Z03w33JYGBN4NaL/T2tFoHyXZMQfDPntXjEuXJy.rfa0qJLntBzxcZR9W9KiC.", - "self_link": "http://localhost:9001/3.0/users/2588", "user_id": 2588}, {"created_on": - "2005-08-01T07:49:23", "display_name": "Gwen Person", "http_etag": "\"bec5ffb740c09d3e762df7f0cdb9305e0d387fd8\"", - "is_server_owner": true, "password": "$6$rounds=596969$A4ggUrP0senuLkXj$bNtPAxyzjxhpaTEQz20flvmB4Cy5oaxy1GL.KXiN99Dyc3mQpzPtiVScPxaQgd435VGoXcvG82tUhlkg8oXNm/", - "self_link": "http://localhost:9001/3.0/users/2589", "user_id": 2589}, {"created_on": - "2005-08-01T07:49:23", "display_name": "Herb Person", "http_etag": "\"e84961f5b0f9c35088de0fb978e211837b917038\"", - "is_server_owner": false, "password": "$6$rounds=633984$WXWlhWBAmeaSxlNn$HXr4dBquDZnGnnmuMUTGIi.53hVXyrjhrIg/JrnNPPGel9uEaH02MP7l/QkLtKL9ozD3016FrW/ywRYMZDWI.0", - "self_link": "http://localhost:9001/3.0/users/2590", "user_id": 2590}, {"created_on": - "2005-08-01T07:49:23", "http_etag": "\"0a9d7a56e2efeb7142d245b84c85bf3b13efec85\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/2591", - "user_id": 2591}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"66bb81cab0c048684620f5246d9ff44b0b23d86c\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/2592", - "user_id": 2592}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"01028cf2252303ed31683073cf13726312408108\"", - "is_server_owner": false, "password": "$6$rounds=662618$6xrZ4rQrBB8hSzaL$RdA1Z9Q95E7DOH10vz0rB5Vzrorluw.BWbPJmt2cZ2Mc3yDOGo6r1wJrtgaiG5p4jU/hrMkuqnfUpi0MjAorW/", - "self_link": "http://localhost:9001/3.0/users/2603", "user_id": 2603}], "http_etag": - "\"0e96e847fe033cfbdb9c7eb64aab812270ccc370\"", "start": 0, "total_size": - 12}'} + "http_etag": "\"6cc84efed3ba5c47e7cede0467e5cf7ed9f52e59\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/82", "user_id": 82}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"ae032e851b49829d0eebf657695e27bbfb44873e\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/83", + "user_id": 83}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"806465cebdfe0b401348f9141623640d7cf607be\"", + "is_server_owner": false, "password": "$6$rounds=652305$DgG3P.AjNzZmubFS$v4Rd6Lth6tMqLqUBipJyAsSbDfwtNvEkWwTP5iWIuEXjD1R5.2Dftp2FqKPZZXz4RVjI80Uxt0NujDMWkb/sx1", + "self_link": "http://localhost:9001/3.0/users/84", "user_id": 84}], "http_etag": + "\"5a2062596feb5e70b45072bad193345e802a6f4c\"", "start": 0, "total_size": + 3}'} headers: - content-length: ['3259'] - content-type: [application/json; charset=utf-8] + content-length: ['815'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/2568 + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/82 response: body: {string: !!python/unicode ''} headers: @@ -372,8 +266,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/2569 + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/83 response: body: {string: !!python/unicode ''} headers: @@ -383,107 +277,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/2580 - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/2581 - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/2582 - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/2587 - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/2588 - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/2589 - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/2590 - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/2591 - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/2592 - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/2603 + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/84 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_page_accessible_for_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_page_accessible_for_owner.yaml index b405e44..71b5e78 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_page_accessible_for_owner.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_page_accessible_for_owner.yaml @@ -1,50 +1,50 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -53,83 +53,86 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/4583'] + content-type: [application/json; charset=UTF-8] + 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 + body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/4584'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/members/92'] status: {code: 201, message: Created} - request: - body: email=test%40example.com + body: !!python/unicode email=test%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/2606'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/users/87'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/2606 + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/87 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"22ea12a200ab0ec16bd6539694c2c43c8baa831f\"", "is_server_owner": false, - "password": "$6$rounds=592740$GhFSxGf/D.JuEMlm$EHqGxzCqkZJy70pC5QCEAmgVdeFLZ.MaNHWXjVBZM2/agUE/jTWXiIXC.B6lJMB/a5KASUA8Eg6ZIxuyIIomG0", - "self_link": "http://localhost:9001/3.0/users/2606", "user_id": 2606}'} + "\"0695bc3c10a75a59df78e7a2666567e831fdfdd5\"", "is_server_owner": false, + "password": "$6$rounds=629282$8FOZrYQjU6qhnNCN$lhTFFUk/n.9L6S7M/9i86xGOvy4iGnRi1qG7TNT790vMbB4aXcQt2jAQ/zwIWBcVGgojIcyr8BHGjk89rAQt40", + "self_link": "http://localhost:9001/3.0/users/87", "user_id": 87}'} headers: - content-length: ['330'] - content-type: [application/json; charset=utf-8] + 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/2606/addresses + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/87/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag": - "\"0cf7f7537b8386dc0366e045de413ba99cbcd994\"", "original_email": "test@example.com", + "\"20641d9c8c76f6db31a96a28ae6679f70d5f821f\"", "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/2606"}], "http_etag": "\"c3138b56102ee3c7307dc4c05ac4fb46f92ae07e\"", + "user": "http://localhost:9001/3.0/users/87"}], "http_etag": "\"97177c80ab15809389b925f500624159b0d5cbde\"", "start": 0, "total_size": 1}'} headers: - content-length: ['390'] - content-type: [application/json; charset=utf-8] + content-length: ['388'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'POST' + method: !!python/unicode POST uri: http://localhost:9001/3.0/addresses/test@example.com/verify response: body: {string: !!python/unicode ''} @@ -137,53 +140,24 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com + body: !!python/unicode display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/4585'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/members/93'] 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": - "\"603f74b10f4ed40a9fecc9e81e6540c6ea6599de\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/2604", "user_id": 2604}'} - headers: - content-length: ['194'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/2604/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"618e31d1f8dc3d0198606c518e137335697251a0\"", "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/2604"}], "http_etag": "\"de936bc8dad370bf5d8d00ce9955c3555aa5e09f\"", - "start": 0, "total_size": 1}'} - headers: - content-length: ['393'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -192,48 +166,48 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"244d66ca9fc48d0a5132a6d9d22f31923ad73c15\"", - "list_id": "foo.example.com", "member_id": 4583, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/4583", "user": - "http://localhost:9001/3.0/users/2604"}], "http_etag": "\"645065ef66e69dfde1af5cd5a19f5f70edf8ce5c\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"ea401ae1617fbaf22b0bffbcbb21c4da1b1c7211\"", + "list_id": "foo.example.com", "member_id": 91, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/91", "user": + "http://localhost:9001/3.0/users/85"}], "http_etag": "\"2e0308f08abd732906740bfab1a453bd2f1aef2a\"", "start": 0, "total_size": 1}'} headers: - content-length: ['492'] - content-type: [application/json; charset=utf-8] + content-length: ['486'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"af44ee1e674d4d899f02528d43e381fbefd9bc89\"", "list_id": "foo.example.com", - "member_id": 4584, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/4584", "user": "http://localhost:9001/3.0/users/2605"}], - "http_etag": "\"f4781ed9c09601404f5e797264420fcbef476a27\"", "start": 0, "total_size": + "\"0511ebbaf41902d1c0a73fdabaf25cb95f3066b5\"", "list_id": "foo.example.com", + "member_id": 92, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/92", "user": "http://localhost:9001/3.0/users/86"}], + "http_etag": "\"04ec55411e8354fb4e3837cd222c6978aee1810b\"", "start": 0, "total_size": 1}'} headers: - content-length: ['504'] - content-type: [application/json; charset=utf-8] + content-length: ['498'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -242,13 +216,13 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -257,58 +231,57 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com response: body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/test@example.com", - "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"85368e96033fe3cdf8ff868afea6b320647b13c4\"", - "list_id": "foo.example.com", "member_id": 4585, "moderation_action": "defer", - "role": "member", "self_link": "http://localhost:9001/3.0/members/4585", "user": - "http://localhost:9001/3.0/users/2606"}'} + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"166050a7746668af162047a1490f75574b596b21\"", + "list_id": "foo.example.com", "member_id": 93, "role": "member", "self_link": + "http://localhost:9001/3.0/members/93", "user": "http://localhost:9001/3.0/users/87"}'} headers: - content-length: ['385'] - content-type: [application/json; charset=utf-8] + content-length: ['349'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/members/4585/preferences + method: !!python/unicode GET + uri: http://localhost:9001/3.0/members/93/preferences response: - body: {string: !!python/unicode '{"http_etag": "\"99f1ebb90d41016f39dd1581700bd794ffe8b8e4\"", - "self_link": "http://localhost:9001/3.0/members/4585/preferences"}'} + body: {string: !!python/unicode '{"http_etag": "\"890c343dada6f0a99796e0fdf449747878979423\"", + "self_link": "http://localhost:9001/3.0/members/93/preferences"}'} headers: - content-length: ['128'] - content-type: [application/json; charset=utf-8] + content-length: ['126'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode ''} @@ -319,29 +292,29 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"603f74b10f4ed40a9fecc9e81e6540c6ea6599de\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/2604", "user_id": 2604}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"5ad5052034de55092e6e401be1af4e0d607be467\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/2605", - "user_id": 2605}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"22ea12a200ab0ec16bd6539694c2c43c8baa831f\"", - "is_server_owner": false, "password": "$6$rounds=592740$GhFSxGf/D.JuEMlm$EHqGxzCqkZJy70pC5QCEAmgVdeFLZ.MaNHWXjVBZM2/agUE/jTWXiIXC.B6lJMB/a5KASUA8Eg6ZIxuyIIomG0", - "self_link": "http://localhost:9001/3.0/users/2606", "user_id": 2606}], "http_etag": - "\"f01e11defd61036ab180f55ffbcabc2bc17d8411\"", "start": 0, "total_size": + "http_etag": "\"906bc5518b2aad927af24ed4d25f3aa3748e94b5\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/85", "user_id": 85}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"4308c6b5ccd9980a5be4aec0170dc65e3f062278\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/86", + "user_id": 86}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"0695bc3c10a75a59df78e7a2666567e831fdfdd5\"", + "is_server_owner": false, "password": "$6$rounds=629282$8FOZrYQjU6qhnNCN$lhTFFUk/n.9L6S7M/9i86xGOvy4iGnRi1qG7TNT790vMbB4aXcQt2jAQ/zwIWBcVGgojIcyr8BHGjk89rAQt40", + "self_link": "http://localhost:9001/3.0/users/87", "user_id": 87}], "http_etag": + "\"d2ef80b1aeae85d8b32cbc011992eed930d67a13\"", "start": 0, "total_size": 3}'} headers: - content-length: ['827'] - content-type: [application/json; charset=utf-8] + content-length: ['815'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/2604 + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/85 response: body: {string: !!python/unicode ''} headers: @@ -351,8 +324,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/2605 + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/86 response: body: {string: !!python/unicode ''} headers: @@ -362,8 +335,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/2606 + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/87 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_page_accessible_for_superuser.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_page_accessible_for_superuser.yaml index 7802ed6..07f1619 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_page_accessible_for_superuser.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_page_accessible_for_superuser.yaml @@ -1,50 +1,50 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -53,83 +53,86 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/4586'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/members/94'] status: {code: 201, message: Created} - request: - body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com + body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/4587'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/members/95'] status: {code: 201, message: Created} - request: - body: email=test%40example.com + body: !!python/unicode email=test%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/2609'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/users/90'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/2609 + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/90 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"4b4075c4ce76bfca6a0ec15694426f263188b6ad\"", "is_server_owner": false, - "password": "$6$rounds=619999$kqmF6jxKXqF9AfSt$opfAIBt9Y8UTNF9X3wfrLGDlLQFn4mlZQf52Ya5GOjy1xvLsDefq8rP8.TK1keMArFQ/33szPXXLndGwofF0V1", - "self_link": "http://localhost:9001/3.0/users/2609", "user_id": 2609}'} + "\"306622a1c800f37426963ae97e02fd0c761a6457\"", "is_server_owner": false, + "password": "$6$rounds=647513$V3yttrKqzMEgqLNy$JazsLmjaTWEclvMkEcozqcpRxKi80BPnBAbx4mkbBYGs/13H7jKWOoQwEbmTnGzH.uhEJysC3uLgL2kl3rOzg/", + "self_link": "http://localhost:9001/3.0/users/90", "user_id": 90}'} headers: - content-length: ['330'] - content-type: [application/json; charset=utf-8] + 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/2609/addresses + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/90/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag": - "\"c0868c33abd342e340b9b8d4d4f52ae32cb5e48f\"", "original_email": "test@example.com", + "\"6dfac99c9d645aa968f16e0f939af17a87294175\"", "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/2609"}], "http_etag": "\"49778316c189c9c5f4389deb15349becf65261ea\"", + "user": "http://localhost:9001/3.0/users/90"}], "http_etag": "\"ddbbc355358c643cc536ed7be783d49c33a061c6\"", "start": 0, "total_size": 1}'} headers: - content-length: ['390'] - content-type: [application/json; charset=utf-8] + content-length: ['388'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'POST' + method: !!python/unicode POST uri: http://localhost:9001/3.0/addresses/test@example.com/verify response: body: {string: !!python/unicode ''} @@ -137,35 +140,24 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com + body: !!python/unicode display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/4588'] + content-type: [application/json; charset=UTF-8] + 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/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' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -174,13 +166,13 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -189,58 +181,57 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com response: body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/test@example.com", - "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"73b340a57ed1411204c8922abf81cedbdcd75b5d\"", - "list_id": "foo.example.com", "member_id": 4588, "moderation_action": "defer", - "role": "member", "self_link": "http://localhost:9001/3.0/members/4588", "user": - "http://localhost:9001/3.0/users/2609"}'} + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"bb361961d176862e373d685319e4874f1c58efee\"", + "list_id": "foo.example.com", "member_id": 96, "role": "member", "self_link": + "http://localhost:9001/3.0/members/96", "user": "http://localhost:9001/3.0/users/90"}'} headers: - content-length: ['385'] - content-type: [application/json; charset=utf-8] + content-length: ['349'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/members/4588/preferences + method: !!python/unicode GET + uri: http://localhost:9001/3.0/members/96/preferences response: - body: {string: !!python/unicode '{"http_etag": "\"caf20559435fb7e0fc0bd9d70ac3f6e98a5a17cd\"", - "self_link": "http://localhost:9001/3.0/members/4588/preferences"}'} + body: {string: !!python/unicode '{"http_etag": "\"2254c1d1876becb0cea8058b7acf523b8d60125e\"", + "self_link": "http://localhost:9001/3.0/members/96/preferences"}'} headers: - content-length: ['128'] - content-type: [application/json; charset=utf-8] + content-length: ['126'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode ''} @@ -251,29 +242,29 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"59a4e036e3acede27869483a1bbbe9413fadb703\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/2607", "user_id": 2607}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"e1a7ef501eb310e42acda39d402a3ad96588b032\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/2608", - "user_id": 2608}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"4b4075c4ce76bfca6a0ec15694426f263188b6ad\"", - "is_server_owner": false, "password": "$6$rounds=619999$kqmF6jxKXqF9AfSt$opfAIBt9Y8UTNF9X3wfrLGDlLQFn4mlZQf52Ya5GOjy1xvLsDefq8rP8.TK1keMArFQ/33szPXXLndGwofF0V1", - "self_link": "http://localhost:9001/3.0/users/2609", "user_id": 2609}], "http_etag": - "\"18c62ebe7bdc4e1f14e968297d0a8c8e1cfd05a8\"", "start": 0, "total_size": + "http_etag": "\"c51cd9a7c8d836e852c3c5a23790abc68066e71f\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/88", "user_id": 88}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"8286cc98937375102d07528f8b097f299b24d85e\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/89", + "user_id": 89}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"306622a1c800f37426963ae97e02fd0c761a6457\"", + "is_server_owner": false, "password": "$6$rounds=647513$V3yttrKqzMEgqLNy$JazsLmjaTWEclvMkEcozqcpRxKi80BPnBAbx4mkbBYGs/13H7jKWOoQwEbmTnGzH.uhEJysC3uLgL2kl3rOzg/", + "self_link": "http://localhost:9001/3.0/users/90", "user_id": 90}], "http_etag": + "\"d0ae7d4dcf001cf6b431efb5761658d5d0596a60\"", "start": 0, "total_size": 3}'} headers: - content-length: ['827'] - content-type: [application/json; charset=utf-8] + content-length: ['815'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/2607 + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/88 response: body: {string: !!python/unicode ''} headers: @@ -283,8 +274,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/2608 + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/89 response: body: {string: !!python/unicode ''} headers: @@ -294,8 +285,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/2609 + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/90 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_page_not_accessible_for_unprivileged_users.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_page_not_accessible_for_unprivileged_users.yaml index 77de007..0aad949 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_page_not_accessible_for_unprivileged_users.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_page_not_accessible_for_unprivileged_users.yaml @@ -1,50 +1,50 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -53,83 +53,86 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/4589'] + content-type: [application/json; charset=UTF-8] + 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 + body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/4590'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/members/98'] status: {code: 201, message: Created} - request: - body: email=test%40example.com + body: !!python/unicode email=test%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/2612'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/users/93'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/2612 + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/93 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"708ef604f84d384f1d7cfbc229926f3173eff543\"", "is_server_owner": false, - "password": "$6$rounds=607783$i14H5eib631hoRwN$38xYdx4aYhBal.qrN2nQbPBKnffLTJb/4X7nRlodE.lAvDpNEQnNNRITnXPNlkLl2eL70l5COpf5vAghG5Td6/", - "self_link": "http://localhost:9001/3.0/users/2612", "user_id": 2612}'} + "\"44288efba20df8ef09cd0542257c877082d55eb5\"", "is_server_owner": false, + "password": "$6$rounds=689424$FxIi.7K15QA53Gz0$PmgThfnViY3nqzBWsz.wWxM93jgcOAaSTBpfWo8FjboljmRd9RCA/xunSNzsNuL7yn63vTlpiXMkVH09oRFv5/", + "self_link": "http://localhost:9001/3.0/users/93", "user_id": 93}'} headers: - content-length: ['330'] - content-type: [application/json; charset=utf-8] + 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/2612/addresses + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/93/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag": - "\"f400325071fe0a882cb73dbbe4240164312a1756\"", "original_email": "test@example.com", + "\"31ee0018c62463aeb4e1f91309c2117c6c7baf4c\"", "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/2612"}], "http_etag": "\"93d9fb86dbb975810fc1c33e7b3aca06e5099575\"", + "user": "http://localhost:9001/3.0/users/93"}], "http_etag": "\"d9584c5b72c15ffa822eb7bbd883029d6b6e1788\"", "start": 0, "total_size": 1}'} headers: - content-length: ['390'] - content-type: [application/json; charset=utf-8] + content-length: ['388'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'POST' + method: !!python/unicode POST uri: http://localhost:9001/3.0/addresses/test@example.com/verify response: body: {string: !!python/unicode ''} @@ -137,55 +140,24 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com + body: !!python/unicode display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/4591'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/members/99'] 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 '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"708ef604f84d384f1d7cfbc229926f3173eff543\"", "is_server_owner": false, - "password": "$6$rounds=607783$i14H5eib631hoRwN$38xYdx4aYhBal.qrN2nQbPBKnffLTJb/4X7nRlodE.lAvDpNEQnNNRITnXPNlkLl2eL70l5COpf5vAghG5Td6/", - "self_link": "http://localhost:9001/3.0/users/2612", "user_id": 2612}'} - headers: - content-length: ['330'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/2612/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag": - "\"22b7bbefdd8e6300f55edbaad06f45d889a35c4d\"", "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/2612", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"4c3e0e9c4b80a7fa8d66cc9922ccf8dacaaa0702\"", "start": 0, "total_size": - 1}'} - headers: - content-length: ['428'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -194,64 +166,64 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"4d30cbf1f859cb5a83da2d77f49d8fb50f5f7420\"", - "list_id": "foo.example.com", "member_id": 4589, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/4589", "user": - "http://localhost:9001/3.0/users/2610"}], "http_etag": "\"88557a24364b6c9e172714fc9a0ef51d54ef17da\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"a0874cc83f3613087d3ce2c13666742165f6d89c\"", + "list_id": "foo.example.com", "member_id": 97, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/97", "user": + "http://localhost:9001/3.0/users/91"}], "http_etag": "\"d78978fe2b1dd9203536b0d2bd21c8becb90b9e9\"", "start": 0, "total_size": 1}'} headers: - content-length: ['492'] - content-type: [application/json; charset=utf-8] + content-length: ['486'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"b6ee7365a660001ef272004ae1248f94dc9c7523\"", "list_id": "foo.example.com", - "member_id": 4590, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/4590", "user": "http://localhost:9001/3.0/users/2611"}], - "http_etag": "\"7fc0479dfcfa9296f6ef6faf17bb6467d0f14d3c\"", "start": 0, "total_size": + "\"821e9ad6ab2ee5fa67f1383444b7900fff3df8a7\"", "list_id": "foo.example.com", + "member_id": 98, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/98", "user": "http://localhost:9001/3.0/users/92"}], + "http_etag": "\"f07f833aa11630a17995cff09a22b16d426065b7\"", "start": 0, "total_size": 1}'} headers: - content-length: ['504'] - content-type: [application/json; charset=utf-8] + content-length: ['498'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode ''} @@ -262,29 +234,29 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"59837947ccfaf5c271f4d5fb21e7c1cf011b272f\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/2610", "user_id": 2610}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"d7c50d476e69848f5433854c54088aa32074a18d\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/2611", - "user_id": 2611}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"708ef604f84d384f1d7cfbc229926f3173eff543\"", - "is_server_owner": false, "password": "$6$rounds=607783$i14H5eib631hoRwN$38xYdx4aYhBal.qrN2nQbPBKnffLTJb/4X7nRlodE.lAvDpNEQnNNRITnXPNlkLl2eL70l5COpf5vAghG5Td6/", - "self_link": "http://localhost:9001/3.0/users/2612", "user_id": 2612}], "http_etag": - "\"f8d6e982ff405062fbb2bdebb1999af0e8293834\"", "start": 0, "total_size": + "http_etag": "\"855423b674f80ed98278ad677e5e9d79c8dbd8d5\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/91", "user_id": 91}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"5af19f2376363dfa85e4b394f9218d765743db46\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/92", + "user_id": 92}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"44288efba20df8ef09cd0542257c877082d55eb5\"", + "is_server_owner": false, "password": "$6$rounds=689424$FxIi.7K15QA53Gz0$PmgThfnViY3nqzBWsz.wWxM93jgcOAaSTBpfWo8FjboljmRd9RCA/xunSNzsNuL7yn63vTlpiXMkVH09oRFv5/", + "self_link": "http://localhost:9001/3.0/users/93", "user_id": 93}], "http_etag": + "\"52c3ee09c5563b710870c5fa9b6b114425515ff8\"", "start": 0, "total_size": 3}'} headers: - content-length: ['827'] - content-type: [application/json; charset=utf-8] + content-length: ['815'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/2610 + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/91 response: body: {string: !!python/unicode ''} headers: @@ -294,8 +266,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/2611 + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/92 response: body: {string: !!python/unicode ''} headers: @@ -305,8 +277,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/2612 + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/93 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_page_not_accessible_if_not_logged_in.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_page_not_accessible_if_not_logged_in.yaml index cc175bd..68da3a6 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_page_not_accessible_if_not_logged_in.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersOptionsTest.test_page_not_accessible_if_not_logged_in.yaml @@ -1,50 +1,50 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -53,83 +53,86 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/4592'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/members/100'] status: {code: 201, message: Created} - request: - body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com + body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/4593'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/members/101'] status: {code: 201, message: Created} - request: - body: email=test%40example.com + body: !!python/unicode email=test%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/2615'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/users/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/2615 + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/96 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"6391e4d99c1ed86c7e2038b737a4a08b4dbcf1af\"", "is_server_owner": false, - "password": "$6$rounds=646278$a6o1VjW.zq/0gyLy$oNuHrAQqj2jmKAJ.idVUKzKKWHxTQO6.HnyZHPeX4gJZlvwTBtGEgdY9A8ximHM1k/pECprdI2CiDL3WXGcbI0", - "self_link": "http://localhost:9001/3.0/users/2615", "user_id": 2615}'} + "\"e325efcf8a9e5a2f31e0d19dfa1e6c322d204ccf\"", "is_server_owner": false, + "password": "$6$rounds=601160$Cnjc/PkHccgR/a4I$sJqfgMWilfkETGpuVHBG7XQdUghKmQu996OvK4KelCIXp26v9tbgtU8d0lBBdAXgnf/XNu3dlP/FrfH7GlhXU1", + "self_link": "http://localhost:9001/3.0/users/96", "user_id": 96}'} headers: - content-length: ['330'] - content-type: [application/json; charset=utf-8] + 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/2615/addresses + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/96/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag": - "\"0d0873ed918c580fea38c274cc97df68b013ca79\"", "original_email": "test@example.com", + "\"66869c268a0b0c5f47979e217fe7f0766aab0045\"", "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/2615"}], "http_etag": "\"7f2f3ef161bf541697fa1f2e29d450f799e73691\"", + "user": "http://localhost:9001/3.0/users/96"}], "http_etag": "\"19d945bb0ef157dd60a92ed2841789a0102cde23\"", "start": 0, "total_size": 1}'} headers: - content-length: ['390'] - content-type: [application/json; charset=utf-8] + content-length: ['388'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'POST' + method: !!python/unicode POST uri: http://localhost:9001/3.0/addresses/test@example.com/verify response: body: {string: !!python/unicode ''} @@ -137,39 +140,40 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com + body: !!python/unicode display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/4594'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/members/102'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode ''} @@ -180,29 +184,29 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"02338048f13405069664dd64cca65ab8266c3297\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/2613", "user_id": 2613}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"7d0624c8804cefe27f10c0a6e163b01035403fed\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/2614", - "user_id": 2614}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"6391e4d99c1ed86c7e2038b737a4a08b4dbcf1af\"", - "is_server_owner": false, "password": "$6$rounds=646278$a6o1VjW.zq/0gyLy$oNuHrAQqj2jmKAJ.idVUKzKKWHxTQO6.HnyZHPeX4gJZlvwTBtGEgdY9A8ximHM1k/pECprdI2CiDL3WXGcbI0", - "self_link": "http://localhost:9001/3.0/users/2615", "user_id": 2615}], "http_etag": - "\"7b1da78e2a459106585efb95a3c957e8ea8e7421\"", "start": 0, "total_size": + "http_etag": "\"a53ee03519c95de79b49d2e20802288df909f78f\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/94", "user_id": 94}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"3ec9955c240fbecdc79198908a2f6a4097f94b9d\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/95", + "user_id": 95}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"e325efcf8a9e5a2f31e0d19dfa1e6c322d204ccf\"", + "is_server_owner": false, "password": "$6$rounds=601160$Cnjc/PkHccgR/a4I$sJqfgMWilfkETGpuVHBG7XQdUghKmQu996OvK4KelCIXp26v9tbgtU8d0lBBdAXgnf/XNu3dlP/FrfH7GlhXU1", + "self_link": "http://localhost:9001/3.0/users/96", "user_id": 96}], "http_etag": + "\"eb9d0e572de2ab338a25e0f25be9bda5ece45b65\"", "start": 0, "total_size": 3}'} headers: - content-length: ['827'] - content-type: [application/json; charset=utf-8] + content-length: ['815'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/2613 + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/94 response: body: {string: !!python/unicode ''} headers: @@ -212,8 +216,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/2614 + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/95 response: body: {string: !!python/unicode ''} headers: @@ -223,8 +227,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/2615 + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/96 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersTest.test_search_members_1.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersTest.test_search_members_1.yaml index 71ff078..de00b62 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersTest.test_search_members_1.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersTest.test_search_members_1.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -20,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] + content-length: ['172'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -58,7 +56,7 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=member-1%40example.com + body: !!python/unicode display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=member-1%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -69,10 +67,10 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/9'] + location: ['http://localhost:9001/3.0/members/19'] status: {code: 201, message: Created} - request: - body: display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=member-2%40example.com + body: !!python/unicode display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=member-2%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -83,43 +81,13 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/10'] + location: ['http://localhost:9001/3.0/members/20'] 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": - "\"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": "su@example.com", "http_etag": - "\"a8988d233ad4b9e8641ad5d75553912565efec83\"", "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/2"}], "http_etag": "\"7cc723891821fbf8b0974c2ec407cca11fbb6726\"", - "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", @@ -139,12 +107,12 @@ response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/member-1@example.com", "delivery_mode": "regular", "email": "member-1@example.com", "http_etag": - "\"e0e12330684b2501c7ffba5c3b88356340f9904a\"", "list_id": "foo.example.com", - "member_id": 9, "role": "member", "self_link": "http://localhost:9001/3.0/members/9", - "user": "http://localhost:9001/3.0/users/5"}], "http_etag": "\"6f2347517cd46134e24b3134db264dfb791cf381\"", + "\"7c54807133c6e2f3eab6f206553f163b718ed002\"", "list_id": "foo.example.com", + "member_id": 19, "role": "member", "self_link": "http://localhost:9001/3.0/members/19", + "user": "http://localhost:9001/3.0/users/15"}], "http_etag": "\"94a21db2ed8b25aea2374f33e353d5fbc32086c4\"", "start": 0, "total_size": 2}'} headers: - content-length: ['459'] + content-length: ['462'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -156,16 +124,16 @@ response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/member-1@example.com", "delivery_mode": "regular", "email": "member-1@example.com", "http_etag": - "\"e0e12330684b2501c7ffba5c3b88356340f9904a\"", "list_id": "foo.example.com", - "member_id": 9, "role": "member", "self_link": "http://localhost:9001/3.0/members/9", - "user": "http://localhost:9001/3.0/users/5"}, {"address": "http://localhost:9001/3.0/addresses/member-2@example.com", + "\"7c54807133c6e2f3eab6f206553f163b718ed002\"", "list_id": "foo.example.com", + "member_id": 19, "role": "member", "self_link": "http://localhost:9001/3.0/members/19", + "user": "http://localhost:9001/3.0/users/15"}, {"address": "http://localhost:9001/3.0/addresses/member-2@example.com", "delivery_mode": "regular", "email": "member-2@example.com", "http_etag": - "\"233a7991f62ebe214a13301caa0ebba5a0047669\"", "list_id": "foo.example.com", - "member_id": 10, "role": "member", "self_link": "http://localhost:9001/3.0/members/10", - "user": "http://localhost:9001/3.0/users/6"}], "http_etag": "\"c269df1d423548bd59e1cf3695914101827894c3\"", + "\"84a00da5f6ec113989ce06dafa100eeae2c16b96\"", "list_id": "foo.example.com", + "member_id": 20, "role": "member", "self_link": "http://localhost:9001/3.0/members/20", + "user": "http://localhost:9001/3.0/users/16"}], "http_etag": "\"2d42e9fb2c2cab6743eee759633837dc74195371\"", "start": 0, "total_size": 2}'} headers: - content-length: ['817'] + content-length: ['821'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -173,15 +141,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/members/9 + uri: http://localhost:9001/3.0/members/19 response: body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/member-1@example.com", "delivery_mode": "regular", "email": "member-1@example.com", "http_etag": - "\"e0e12330684b2501c7ffba5c3b88356340f9904a\"", "list_id": "foo.example.com", - "member_id": 9, "role": "member", "self_link": "http://localhost:9001/3.0/members/9", - "user": "http://localhost:9001/3.0/users/5"}'} + "\"7c54807133c6e2f3eab6f206553f163b718ed002\"", "list_id": "foo.example.com", + "member_id": 19, "role": "member", "self_link": "http://localhost:9001/3.0/members/19", + "user": "http://localhost:9001/3.0/users/15"}'} headers: - content-length: ['354'] + content-length: ['357'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -189,45 +157,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/members/10 + uri: http://localhost:9001/3.0/members/20 response: body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/member-2@example.com", "delivery_mode": "regular", "email": "member-2@example.com", "http_etag": - "\"233a7991f62ebe214a13301caa0ebba5a0047669\"", "list_id": "foo.example.com", - "member_id": 10, "role": "member", "self_link": "http://localhost:9001/3.0/members/10", - "user": "http://localhost:9001/3.0/users/6"}'} + "\"84a00da5f6ec113989ce06dafa100eeae2c16b96\"", "list_id": "foo.example.com", + "member_id": 20, "role": "member", "self_link": "http://localhost:9001/3.0/members/20", + "user": "http://localhost:9001/3.0/users/16"}'} headers: - content-length: ['356'] - content-type: [application/json; charset=UTF-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": - "\"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": "su@example.com", "http_etag": - "\"a8988d233ad4b9e8641ad5d75553912565efec83\"", "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/2"}], "http_etag": "\"7cc723891821fbf8b0974c2ec407cca11fbb6726\"", - "start": 0, "total_size": 1}'} - headers: - content-length: ['381'] + content-length: ['357'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -254,12 +192,12 @@ response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/member-1@example.com", "delivery_mode": "regular", "email": "member-1@example.com", "http_etag": - "\"e0e12330684b2501c7ffba5c3b88356340f9904a\"", "list_id": "foo.example.com", - "member_id": 9, "role": "member", "self_link": "http://localhost:9001/3.0/members/9", - "user": "http://localhost:9001/3.0/users/5"}], "http_etag": "\"09cc85910b40e5b560f97f0383348d00e7928969\"", + "\"7c54807133c6e2f3eab6f206553f163b718ed002\"", "list_id": "foo.example.com", + "member_id": 19, "role": "member", "self_link": "http://localhost:9001/3.0/members/19", + "user": "http://localhost:9001/3.0/users/15"}], "http_etag": "\"1471f8314fcac157588d326b1f17fdf19ad9a62d\"", "start": 0, "total_size": 1}'} headers: - content-length: ['459'] + content-length: ['462'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -271,42 +209,12 @@ response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/member-1@example.com", "delivery_mode": "regular", "email": "member-1@example.com", "http_etag": - "\"e0e12330684b2501c7ffba5c3b88356340f9904a\"", "list_id": "foo.example.com", - "member_id": 9, "role": "member", "self_link": "http://localhost:9001/3.0/members/9", - "user": "http://localhost:9001/3.0/users/5"}], "http_etag": "\"09cc85910b40e5b560f97f0383348d00e7928969\"", + "\"7c54807133c6e2f3eab6f206553f163b718ed002\"", "list_id": "foo.example.com", + "member_id": 19, "role": "member", "self_link": "http://localhost:9001/3.0/members/19", + "user": "http://localhost:9001/3.0/users/15"}], "http_etag": "\"1471f8314fcac157588d326b1f17fdf19ad9a62d\"", "start": 0, "total_size": 1}'} headers: - content-length: ['459'] - content-type: [application/json; charset=UTF-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": - "\"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": "su@example.com", "http_etag": - "\"a8988d233ad4b9e8641ad5d75553912565efec83\"", "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/2"}], "http_etag": "\"7cc723891821fbf8b0974c2ec407cca11fbb6726\"", - "start": 0, "total_size": 1}'} - headers: - content-length: ['381'] + content-length: ['462'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -377,36 +285,6 @@ 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": - "\"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": "su@example.com", "http_etag": - "\"a8988d233ad4b9e8641ad5d75553912565efec83\"", "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/2"}], "http_etag": "\"7cc723891821fbf8b0974c2ec407cca11fbb6726\"", - "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 ad3b69e..9c9bd5b 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListMembersTest.test_show_members_page.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListMembersTest.test_show_members_page.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -20,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] + content-length: ['172'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -58,7 +56,7 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=member-1%40example.com + body: !!python/unicode display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=member-1%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -69,10 +67,10 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/11'] + location: ['http://localhost:9001/3.0/members/21'] status: {code: 201, message: Created} - request: - body: display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=member-2%40example.com + body: !!python/unicode display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=member-2%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -83,43 +81,13 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/12'] + location: ['http://localhost:9001/3.0/members/22'] 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": - "\"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": "su@example.com", "http_etag": - "\"a8988d233ad4b9e8641ad5d75553912565efec83\"", "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/2"}], "http_etag": "\"7cc723891821fbf8b0974c2ec407cca11fbb6726\"", - "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", @@ -139,12 +107,12 @@ response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/member-1@example.com", "delivery_mode": "regular", "email": "member-1@example.com", "http_etag": - "\"24cec09a6e07f5597d4fbc83689c9034afec9fc2\"", "list_id": "foo.example.com", - "member_id": 11, "role": "member", "self_link": "http://localhost:9001/3.0/members/11", - "user": "http://localhost:9001/3.0/users/5"}], "http_etag": "\"26f5832c8f6b95fb67b6c3026fa68544aba149ec\"", + "\"9644c4287fb8d3f8a6a63962d897789c52cfb9be\"", "list_id": "foo.example.com", + "member_id": 21, "role": "member", "self_link": "http://localhost:9001/3.0/members/21", + "user": "http://localhost:9001/3.0/users/15"}], "http_etag": "\"1fd1a56a33b76199959cd05685a20703754664c5\"", "start": 0, "total_size": 2}'} headers: - content-length: ['461'] + content-length: ['462'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -156,16 +124,16 @@ response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/member-1@example.com", "delivery_mode": "regular", "email": "member-1@example.com", "http_etag": - "\"24cec09a6e07f5597d4fbc83689c9034afec9fc2\"", "list_id": "foo.example.com", - "member_id": 11, "role": "member", "self_link": "http://localhost:9001/3.0/members/11", - "user": "http://localhost:9001/3.0/users/5"}, {"address": "http://localhost:9001/3.0/addresses/member-2@example.com", + "\"9644c4287fb8d3f8a6a63962d897789c52cfb9be\"", "list_id": "foo.example.com", + "member_id": 21, "role": "member", "self_link": "http://localhost:9001/3.0/members/21", + "user": "http://localhost:9001/3.0/users/15"}, {"address": "http://localhost:9001/3.0/addresses/member-2@example.com", "delivery_mode": "regular", "email": "member-2@example.com", "http_etag": - "\"17654978c78e90d7f6512d33948bbb51e3d241ff\"", "list_id": "foo.example.com", - "member_id": 12, "role": "member", "self_link": "http://localhost:9001/3.0/members/12", - "user": "http://localhost:9001/3.0/users/6"}], "http_etag": "\"25076a1424e2731f9551fa21cdb7ab7018553013\"", + "\"acd96e1031aac5feff0a9c34590e162dcc5c8871\"", "list_id": "foo.example.com", + "member_id": 22, "role": "member", "self_link": "http://localhost:9001/3.0/members/22", + "user": "http://localhost:9001/3.0/users/16"}], "http_etag": "\"2e1673b0754f678fad24835824e8dbf4c130f056\"", "start": 0, "total_size": 2}'} headers: - content-length: ['819'] + content-length: ['821'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -173,15 +141,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/members/11 + uri: http://localhost:9001/3.0/members/21 response: body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/member-1@example.com", "delivery_mode": "regular", "email": "member-1@example.com", "http_etag": - "\"24cec09a6e07f5597d4fbc83689c9034afec9fc2\"", "list_id": "foo.example.com", - "member_id": 11, "role": "member", "self_link": "http://localhost:9001/3.0/members/11", - "user": "http://localhost:9001/3.0/users/5"}'} + "\"9644c4287fb8d3f8a6a63962d897789c52cfb9be\"", "list_id": "foo.example.com", + "member_id": 21, "role": "member", "self_link": "http://localhost:9001/3.0/members/21", + "user": "http://localhost:9001/3.0/users/15"}'} headers: - content-length: ['356'] + content-length: ['357'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -189,15 +157,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/members/12 + uri: http://localhost:9001/3.0/members/22 response: body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/member-2@example.com", "delivery_mode": "regular", "email": "member-2@example.com", "http_etag": - "\"17654978c78e90d7f6512d33948bbb51e3d241ff\"", "list_id": "foo.example.com", - "member_id": 12, "role": "member", "self_link": "http://localhost:9001/3.0/members/12", - "user": "http://localhost:9001/3.0/users/6"}'} + "\"acd96e1031aac5feff0a9c34590e162dcc5c8871\"", "list_id": "foo.example.com", + "member_id": 22, "role": "member", "self_link": "http://localhost:9001/3.0/members/22", + "user": "http://localhost:9001/3.0/users/16"}'} headers: - content-length: ['356'] + content-length: ['357'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: 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 01f3a91..f547ec0 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_archivers.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_archivers.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: @@ -53,10 +53,10 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -66,10 +66,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] 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 + body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,6 +80,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/70'] status: {code: 201, message: Created} - request: @@ -92,25 +94,13 @@ "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: content-length: ['119'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/su@example.com - response: - body: {string: !!python/unicode 404 Not Found} - headers: - content-length: ['13'] - content-type: [application/json; charset=utf-8] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -119,7 +109,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -136,23 +126,24 @@ "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\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": - "example.com", "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"}'} + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1730'] - content-type: [application/json; charset=utf-8] + content-length: ['1777'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -165,7 +156,7 @@ "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: content-length: ['119'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -178,7 +169,7 @@ "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: content-length: ['119'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -191,7 +182,7 @@ "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: content-length: ['119'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -204,7 +195,7 @@ "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: content-length: ['119'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -217,25 +208,13 @@ "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: content-length: ['119'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/su@example.com - response: - body: {string: !!python/unicode 404 Not Found} - headers: - content-length: ['13'] - content-type: [application/json; charset=utf-8] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -244,20 +223,7 @@ "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/archivers - response: - body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", - "mail-archive": true, "mhonarc": true, "prototype": true}'} - headers: - content-length: ['119'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -274,23 +240,24 @@ "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\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": - "example.com", "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"}'} + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1730'] - content-type: [application/json; charset=utf-8] + content-length: ['1777'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -303,10 +270,75 @@ "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: content-length: ['119'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: mail-archive=False&mhonarc=False + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com/archivers + response: + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} + headers: + content-length: ['119'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com/archivers + response: + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} + headers: + content-length: ['119'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com/archivers + response: + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} + headers: + content-length: ['119'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com/archivers + response: + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} + headers: + content-length: ['119'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com/archivers + response: + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} + headers: + content-length: ['119'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: !!python/unicode mail-archive=False&mhonarc=False headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -346,18 +378,6 @@ 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", @@ -366,7 +386,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -383,23 +403,24 @@ "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\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": - "example.com", "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"}'} + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1730'] - content-type: [application/json; charset=utf-8] + content-length: ['1777'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -412,7 +433,7 @@ "mail-archive": false, "mhonarc": false, "prototype": true}'} headers: content-length: ['121'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -425,7 +446,7 @@ "mail-archive": false, "mhonarc": false, "prototype": true}'} headers: content-length: ['121'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -438,7 +459,7 @@ "mail-archive": false, "mhonarc": false, "prototype": true}'} headers: content-length: ['121'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -451,7 +472,7 @@ "mail-archive": false, "mhonarc": false, "prototype": true}'} headers: content-length: ['121'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -464,7 +485,7 @@ "mail-archive": false, "mhonarc": false, "prototype": true}'} headers: content-length: ['121'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -479,7 +500,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -492,7 +513,7 @@ "mail-archive": false, "mhonarc": false, "prototype": true}'} headers: content-length: ['121'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -501,14 +522,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -529,22 +550,22 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"6876e6a47eb6204326d7501101c555715f56ecb2\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/68", "user_id": 68}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"9a4eb09d5f278d468d727006ee5ad139e637be67\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/69", - "user_id": 69}], "http_etag": "\"d12c3d798fc41a65ad876b8d83d07d39389126d5\"", + "http_etag": "\"5412b1d994bc41ce564922865c91ec9909f8952f\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/63", "user_id": 63}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"4405ea4e8786e154d63546c973dcc73b51a2ad56\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/64", + "user_id": 64}], "http_etag": "\"894f6ec76372a158fdb78d23b04726cef2672d7f\"", "start": 0, "total_size": 2}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/68 + uri: http://localhost:9001/3.0/users/63 response: body: {string: !!python/unicode ''} headers: @@ -555,7 +576,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/69 + uri: http://localhost:9001/3.0/users/64 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_archiving_policy.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_archiving_policy.yaml index 4d145a2..4f2b79f 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_archiving_policy.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_archiving_policy.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: @@ -53,10 +53,10 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -66,10 +66,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] 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 + body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,6 +80,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/72'] status: {code: 201, message: Created} - request: @@ -96,41 +98,30 @@ "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\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": - "example.com", "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"}'} + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1730'] - content-type: [application/json; charset=utf-8] + content-length: ['1777'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/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", @@ -139,7 +130,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -156,23 +147,24 @@ "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\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": - "example.com", "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"}'} + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1730'] - content-type: [application/json; charset=utf-8] + content-length: ['1777'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -185,7 +177,7 @@ "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: content-length: ['119'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -198,7 +190,7 @@ "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: content-length: ['119'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -211,7 +203,7 @@ "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: content-length: ['119'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -224,7 +216,7 @@ "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: content-length: ['119'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -237,25 +229,13 @@ "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: content-length: ['119'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/su@example.com - response: - body: {string: !!python/unicode 404 Not Found} - headers: - content-length: ['13'] - content-type: [application/json; charset=utf-8] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -264,20 +244,7 @@ "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/archivers - response: - body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", - "mail-archive": true, "mhonarc": true, "prototype": true}'} - headers: - content-length: ['119'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -294,23 +261,24 @@ "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\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": - "example.com", "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"}'} + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1730'] - content-type: [application/json; charset=utf-8] + content-length: ['1777'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -323,10 +291,75 @@ "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: content-length: ['119'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: mail-archive=False&mhonarc=False&prototype=False + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com/archivers + response: + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} + headers: + content-length: ['119'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com/archivers + response: + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} + headers: + content-length: ['119'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com/archivers + response: + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} + headers: + content-length: ['119'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com/archivers + response: + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} + headers: + content-length: ['119'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com/archivers + response: + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} + headers: + content-length: ['119'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: !!python/unicode mail-archive=False&mhonarc=False&prototype=False headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -350,7 +383,7 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: archive_policy=private + body: !!python/unicode archive_policy=private headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -366,18 +399,6 @@ 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", @@ -386,7 +407,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -403,23 +424,24 @@ "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": "\"d4e967807b81e9f8f8e9b284bd589729b0406ee9\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"8cca91ab15ea7d81db23298478bd41c132d71a4c\"", "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": 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"}'} + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1731'] - content-type: [application/json; charset=utf-8] + content-length: ['1778'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -432,7 +454,7 @@ "mail-archive": false, "mhonarc": false, "prototype": false}'} headers: content-length: ['122'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -445,7 +467,7 @@ "mail-archive": false, "mhonarc": false, "prototype": false}'} headers: content-length: ['122'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -458,7 +480,7 @@ "mail-archive": false, "mhonarc": false, "prototype": false}'} headers: content-length: ['122'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -471,7 +493,7 @@ "mail-archive": false, "mhonarc": false, "prototype": false}'} headers: content-length: ['122'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -484,7 +506,7 @@ "mail-archive": false, "mhonarc": false, "prototype": false}'} headers: content-length: ['122'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -499,7 +521,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -516,23 +538,24 @@ "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": "\"d4e967807b81e9f8f8e9b284bd589729b0406ee9\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"8cca91ab15ea7d81db23298478bd41c132d71a4c\"", "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": 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"}'} + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1731'] - content-type: [application/json; charset=utf-8] + content-length: ['1778'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -541,14 +564,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -569,22 +592,22 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"249816557a9c4603b3a04540d95e78b327b715c3\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/70", "user_id": 70}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"aaf21b548c16ce156ecd1316ead130ff9710729a\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/71", - "user_id": 71}], "http_etag": "\"ca605a9cd2bb053cf7fe4ef5ff62a9e3414f79d0\"", + "http_etag": "\"eac05161a72ee0876a709658d291d4371574fe41\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/65", "user_id": 65}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"0a53b06deb9b78ed4cdfa9b249ec3f8a688ba2ab\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/66", + "user_id": 66}], "http_etag": "\"0a6266a1acaaa829b7a9e895597b2e134c79abdd\"", "start": 0, "total_size": 2}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/70 + uri: http://localhost:9001/3.0/users/65 response: body: {string: !!python/unicode ''} headers: @@ -595,7 +618,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/71 + uri: http://localhost:9001/3.0/users/66 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_bug_117.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_bug_117.yaml index a079dc3..3428c44 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_bug_117.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_bug_117.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -20,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] + content-length: ['172'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -58,7 +56,7 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -69,10 +67,10 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/1'] + location: ['http://localhost:9001/3.0/members/73'] status: {code: 201, message: Created} - request: - body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com + body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -83,7 +81,7 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/2'] + location: ['http://localhost:9001/3.0/members/74'] status: {code: 201, message: Created} - request: body: null @@ -100,22 +98,23 @@ "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\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": - "example.com", "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"}'} + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1730'] + content-length: ['1777'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -123,18 +122,6 @@ 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", @@ -160,22 +147,23 @@ "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\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": - "example.com", "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"}'} + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1730'] + content-length: ['1777'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -183,18 +171,6 @@ 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", @@ -220,26 +196,27 @@ "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\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": - "example.com", "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"}'} + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1730'] + content-length: ['1777'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: first_strip_reply_to=True + body: !!python/unicode first_strip_reply_to=True headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -255,18 +232,6 @@ 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", @@ -292,21 +257,23 @@ "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": true, "fqdn_listname": "foo@example.com", "goodbye_message_uri": - "", "http_etag": "\"511d5cabc350f8d131ed21d9ad9a7525ac63a0c4\"", "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", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + true, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"4b61b7f4b3415feea7cf1d80f10149e39dc547dd\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "foo-request@example.com", "scheme": "http", "send_welcome_message": true, - "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, - "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1729'] + content-length: ['1776'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -339,21 +306,23 @@ "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": true, "fqdn_listname": "foo@example.com", "goodbye_message_uri": - "", "http_etag": "\"511d5cabc350f8d131ed21d9ad9a7525ac63a0c4\"", "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", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + true, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"4b61b7f4b3415feea7cf1d80f10149e39dc547dd\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "foo-request@example.com", "scheme": "http", "send_welcome_message": true, - "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, - "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1729'] + content-length: ['1776'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -363,13 +332,13 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] + content-length: ['277'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -391,14 +360,14 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"eb591d9720aa0ac944b49315b6af1c950410b54c\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}, {"created_on": - "2005-08-01T07:49:23", "http_etag": "\"b36f8ca1d91d583901c768dc116815282d469c66\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/2", - "user_id": 2}], "http_etag": "\"02a1b3f934bd7d185e0442a63a169c0f3f356f60\"", + "http_etag": "\"8f98b174e9b917748477c21a7ffd7b01a635caa8\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/67", "user_id": 67}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"6876e6a47eb6204326d7501101c555715f56ecb2\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/68", + "user_id": 68}], "http_etag": "\"5421a56ef50178a772be63f2053c096481d8f520\"", "start": 0, "total_size": 2}'} headers: - content-length: ['483'] + content-length: ['487'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -406,7 +375,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/67 response: body: {string: !!python/unicode ''} headers: @@ -417,7 +386,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/2 + uri: http://localhost:9001/3.0/users/68 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_not_accessible_for_moderator.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_not_accessible_for_moderator.yaml index 858e024..b0e40ff 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_not_accessible_for_moderator.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_not_accessible_for_moderator.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: @@ -53,10 +53,10 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -66,10 +66,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/73'] + content-type: [application/json; charset=UTF-8] + 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 + body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,38 +80,58 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/74'] + content-type: [application/json; charset=UTF-8] + 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/users/moderator@example.com + uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"473b2615aa0b3a19fe77bc4c88fa9c56294b797b\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/73", "user_id": 73}'} + 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: ['190'] - content-type: [application/json; charset=utf-8] + 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/73/addresses + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"email": "moderator@example.com", - "http_etag": "\"a3f8f5ed00f8ec50954bb71a727d9f21f2bde8c2\"", "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/73"}], - "http_etag": "\"f524c811041c48ce45b2dd8fb86e39e412b879dc\"", "start": 0, "total_size": + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"11fa9352100caff8415cd6a81a7e0f94f99331d6\"", + "list_id": "foo.example.com", "member_id": 75, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/75", "user": + "http://localhost:9001/3.0/users/69"}], "http_etag": "\"028ecfc7ffbb418a4e13697534b41e694fef678b\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['486'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"38b9d04679b5a1c858248f1629521a82ae31cd7c\"", "list_id": "foo.example.com", + "member_id": 76, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/76", "user": "http://localhost:9001/3.0/users/70"}], + "http_etag": "\"154b6eb7e8e60d7ccabb87180a5725abc2e85110\"", "start": 0, "total_size": 1}'} headers: - content-length: ['403'] - content-type: [application/json; charset=utf-8] + content-length: ['498'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -125,7 +146,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -135,14 +156,14 @@ 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": "\"961c6a7eab998b92188a100be2aeea743eeae1bb\"", - "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/72"}], "http_etag": "\"55b55c82dc05af7c9192547fa1e1bafc02272d0d\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"11fa9352100caff8415cd6a81a7e0f94f99331d6\"", + "list_id": "foo.example.com", "member_id": 75, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/75", "user": + "http://localhost:9001/3.0/users/69"}], "http_etag": "\"028ecfc7ffbb418a4e13697534b41e694fef678b\"", "start": 0, "total_size": 1}'} headers: content-length: ['486'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -153,45 +174,14 @@ 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": - "\"976a1391a5564cad880cade285eb2843b20d2c7b\"", "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/73"}], - "http_etag": "\"e36a8ff989ec5990ba417c4efb42d4e4b350e480\"", "start": 0, "total_size": + "\"38b9d04679b5a1c858248f1629521a82ae31cd7c\"", "list_id": "foo.example.com", + "member_id": 76, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/76", "user": "http://localhost:9001/3.0/users/70"}], + "http_etag": "\"154b6eb7e8e60d7ccabb87180a5725abc2e85110\"", "start": 0, "total_size": 1}'} headers: content-length: ['498'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/moderator@example.com - response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"473b2615aa0b3a19fe77bc4c88fa9c56294b797b\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/73", "user_id": 73}'} - 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/73/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "moderator@example.com", - "http_etag": "\"a3f8f5ed00f8ec50954bb71a727d9f21f2bde8c2\"", "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/73"}], - "http_etag": "\"f524c811041c48ce45b2dd8fb86e39e412b879dc\"", "start": 0, "total_size": - 1}'} - headers: - content-length: ['403'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -206,7 +196,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -216,14 +206,14 @@ 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": "\"961c6a7eab998b92188a100be2aeea743eeae1bb\"", - "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/72"}], "http_etag": "\"55b55c82dc05af7c9192547fa1e1bafc02272d0d\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"11fa9352100caff8415cd6a81a7e0f94f99331d6\"", + "list_id": "foo.example.com", "member_id": 75, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/75", "user": + "http://localhost:9001/3.0/users/69"}], "http_etag": "\"028ecfc7ffbb418a4e13697534b41e694fef678b\"", "start": 0, "total_size": 1}'} headers: content-length: ['486'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -234,45 +224,14 @@ 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": - "\"976a1391a5564cad880cade285eb2843b20d2c7b\"", "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/73"}], - "http_etag": "\"e36a8ff989ec5990ba417c4efb42d4e4b350e480\"", "start": 0, "total_size": + "\"38b9d04679b5a1c858248f1629521a82ae31cd7c\"", "list_id": "foo.example.com", + "member_id": 76, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/76", "user": "http://localhost:9001/3.0/users/70"}], + "http_etag": "\"154b6eb7e8e60d7ccabb87180a5725abc2e85110\"", "start": 0, "total_size": 1}'} headers: content-length: ['498'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/moderator@example.com - response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"473b2615aa0b3a19fe77bc4c88fa9c56294b797b\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/73", "user_id": 73}'} - 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/73/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "moderator@example.com", - "http_etag": "\"a3f8f5ed00f8ec50954bb71a727d9f21f2bde8c2\"", "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/73"}], - "http_etag": "\"f524c811041c48ce45b2dd8fb86e39e412b879dc\"", "start": 0, "total_size": - 1}'} - headers: - content-length: ['403'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -287,7 +246,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -297,14 +256,14 @@ 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": "\"961c6a7eab998b92188a100be2aeea743eeae1bb\"", - "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/72"}], "http_etag": "\"55b55c82dc05af7c9192547fa1e1bafc02272d0d\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"11fa9352100caff8415cd6a81a7e0f94f99331d6\"", + "list_id": "foo.example.com", "member_id": 75, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/75", "user": + "http://localhost:9001/3.0/users/69"}], "http_etag": "\"028ecfc7ffbb418a4e13697534b41e694fef678b\"", "start": 0, "total_size": 1}'} headers: content-length: ['486'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -315,45 +274,14 @@ 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": - "\"976a1391a5564cad880cade285eb2843b20d2c7b\"", "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/73"}], - "http_etag": "\"e36a8ff989ec5990ba417c4efb42d4e4b350e480\"", "start": 0, "total_size": + "\"38b9d04679b5a1c858248f1629521a82ae31cd7c\"", "list_id": "foo.example.com", + "member_id": 76, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/76", "user": "http://localhost:9001/3.0/users/70"}], + "http_etag": "\"154b6eb7e8e60d7ccabb87180a5725abc2e85110\"", "start": 0, "total_size": 1}'} headers: content-length: ['498'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/moderator@example.com - response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"473b2615aa0b3a19fe77bc4c88fa9c56294b797b\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/73", "user_id": 73}'} - 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/73/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "moderator@example.com", - "http_etag": "\"a3f8f5ed00f8ec50954bb71a727d9f21f2bde8c2\"", "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/73"}], - "http_etag": "\"f524c811041c48ce45b2dd8fb86e39e412b879dc\"", "start": 0, "total_size": - 1}'} - headers: - content-length: ['403'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -368,7 +296,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -378,14 +306,14 @@ 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": "\"961c6a7eab998b92188a100be2aeea743eeae1bb\"", - "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/72"}], "http_etag": "\"55b55c82dc05af7c9192547fa1e1bafc02272d0d\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"11fa9352100caff8415cd6a81a7e0f94f99331d6\"", + "list_id": "foo.example.com", "member_id": 75, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/75", "user": + "http://localhost:9001/3.0/users/69"}], "http_etag": "\"028ecfc7ffbb418a4e13697534b41e694fef678b\"", "start": 0, "total_size": 1}'} headers: content-length: ['486'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -396,45 +324,14 @@ 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": - "\"976a1391a5564cad880cade285eb2843b20d2c7b\"", "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/73"}], - "http_etag": "\"e36a8ff989ec5990ba417c4efb42d4e4b350e480\"", "start": 0, "total_size": + "\"38b9d04679b5a1c858248f1629521a82ae31cd7c\"", "list_id": "foo.example.com", + "member_id": 76, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/76", "user": "http://localhost:9001/3.0/users/70"}], + "http_etag": "\"154b6eb7e8e60d7ccabb87180a5725abc2e85110\"", "start": 0, "total_size": 1}'} headers: content-length: ['498'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/moderator@example.com - response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"473b2615aa0b3a19fe77bc4c88fa9c56294b797b\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/73", "user_id": 73}'} - 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/73/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "moderator@example.com", - "http_etag": "\"a3f8f5ed00f8ec50954bb71a727d9f21f2bde8c2\"", "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/73"}], - "http_etag": "\"f524c811041c48ce45b2dd8fb86e39e412b879dc\"", "start": 0, "total_size": - 1}'} - headers: - content-length: ['403'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -449,7 +346,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -459,14 +356,14 @@ 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": "\"961c6a7eab998b92188a100be2aeea743eeae1bb\"", - "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/72"}], "http_etag": "\"55b55c82dc05af7c9192547fa1e1bafc02272d0d\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"11fa9352100caff8415cd6a81a7e0f94f99331d6\"", + "list_id": "foo.example.com", "member_id": 75, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/75", "user": + "http://localhost:9001/3.0/users/69"}], "http_etag": "\"028ecfc7ffbb418a4e13697534b41e694fef678b\"", "start": 0, "total_size": 1}'} headers: content-length: ['486'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -477,45 +374,14 @@ 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": - "\"976a1391a5564cad880cade285eb2843b20d2c7b\"", "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/73"}], - "http_etag": "\"e36a8ff989ec5990ba417c4efb42d4e4b350e480\"", "start": 0, "total_size": + "\"38b9d04679b5a1c858248f1629521a82ae31cd7c\"", "list_id": "foo.example.com", + "member_id": 76, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/76", "user": "http://localhost:9001/3.0/users/70"}], + "http_etag": "\"154b6eb7e8e60d7ccabb87180a5725abc2e85110\"", "start": 0, "total_size": 1}'} headers: content-length: ['498'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/moderator@example.com - response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"473b2615aa0b3a19fe77bc4c88fa9c56294b797b\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/73", "user_id": 73}'} - 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/73/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "moderator@example.com", - "http_etag": "\"a3f8f5ed00f8ec50954bb71a727d9f21f2bde8c2\"", "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/73"}], - "http_etag": "\"f524c811041c48ce45b2dd8fb86e39e412b879dc\"", "start": 0, "total_size": - 1}'} - headers: - content-length: ['403'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -530,7 +396,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -540,14 +406,14 @@ 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": "\"961c6a7eab998b92188a100be2aeea743eeae1bb\"", - "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/72"}], "http_etag": "\"55b55c82dc05af7c9192547fa1e1bafc02272d0d\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"11fa9352100caff8415cd6a81a7e0f94f99331d6\"", + "list_id": "foo.example.com", "member_id": 75, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/75", "user": + "http://localhost:9001/3.0/users/69"}], "http_etag": "\"028ecfc7ffbb418a4e13697534b41e694fef678b\"", "start": 0, "total_size": 1}'} headers: content-length: ['486'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -558,95 +424,14 @@ 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": - "\"976a1391a5564cad880cade285eb2843b20d2c7b\"", "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/73"}], - "http_etag": "\"e36a8ff989ec5990ba417c4efb42d4e4b350e480\"", "start": 0, "total_size": + "\"38b9d04679b5a1c858248f1629521a82ae31cd7c\"", "list_id": "foo.example.com", + "member_id": 76, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/76", "user": "http://localhost:9001/3.0/users/70"}], + "http_etag": "\"154b6eb7e8e60d7ccabb87180a5725abc2e85110\"", "start": 0, "total_size": 1}'} headers: content-length: ['498'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/moderator@example.com - response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"473b2615aa0b3a19fe77bc4c88fa9c56294b797b\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/73", "user_id": 73}'} - 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/73/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "moderator@example.com", - "http_etag": "\"a3f8f5ed00f8ec50954bb71a727d9f21f2bde8c2\"", "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/73"}], - "http_etag": "\"f524c811041c48ce45b2dd8fb86e39e412b879dc\"", "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 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": "\"961c6a7eab998b92188a100be2aeea743eeae1bb\"", - "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/72"}], "http_etag": "\"55b55c82dc05af7c9192547fa1e1bafc02272d0d\"", - "start": 0, "total_size": 1}'} - headers: - content-length: ['486'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator - response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", - "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"976a1391a5564cad880cade285eb2843b20d2c7b\"", "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/73"}], - "http_etag": "\"e36a8ff989ec5990ba417c4efb42d4e4b350e480\"", "start": 0, "total_size": - 1}'} - headers: - content-length: ['498'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -655,14 +440,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -683,22 +468,22 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"108eeb0cd5d01bafaf1f4b6b9a14a7cac7ba53ae\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/72", "user_id": 72}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"473b2615aa0b3a19fe77bc4c88fa9c56294b797b\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/73", - "user_id": 73}], "http_etag": "\"1645112701bb1c5dc35bad2042c988a150723195\"", + "http_etag": "\"9a4eb09d5f278d468d727006ee5ad139e637be67\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/69", "user_id": 69}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"249816557a9c4603b3a04540d95e78b327b715c3\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/70", + "user_id": 70}], "http_etag": "\"4eeab9f934f7fd8947d503ba94dc82036dc6ed69\"", "start": 0, "total_size": 2}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/72 + uri: http://localhost:9001/3.0/users/69 response: body: {string: !!python/unicode ''} headers: @@ -709,7 +494,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/73 + uri: http://localhost:9001/3.0/users/70 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_accessible_for_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_accessible_for_owner.yaml index 1dc0b1d..d8cbaea 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_accessible_for_owner.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_accessible_for_owner.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: @@ -53,10 +53,10 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -66,10 +66,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/75'] + content-type: [application/json; charset=UTF-8] + 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 + body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,43 +80,14 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/76'] + content-type: [application/json; charset=UTF-8] + 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/users/owner@example.com - response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"9bddc6c5439c7622ae030a2f5a3e159589e132e7\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/74", "user_id": 74}'} - 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/74/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"47f20023c6c0e20213c949d6e7a4229edfeea3f5\"", "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/74"}], "http_etag": "\"ac3c9fad9c5faf9219d8d109cfe846ac7b147cd5\"", - "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/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -124,7 +96,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -134,14 +106,14 @@ 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": "\"ba7a3922ff3007dc8f60d72cd3a03d3cbc994c58\"", - "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/74"}], "http_etag": "\"f2f11704a9dd9cc09663c7f8b0e72db065fb4361\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"3387447319c22a67b7e5981cd6cecd35b94148c3\"", + "list_id": "foo.example.com", "member_id": 77, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/77", "user": + "http://localhost:9001/3.0/users/71"}], "http_etag": "\"9975c7911b2f350d824da194686c2351dea35c98\"", "start": 0, "total_size": 1}'} headers: content-length: ['486'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -152,14 +124,14 @@ 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": - "\"096e2182b31f52b378abe1d7db7a6aae17a6004a\"", "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/75"}], - "http_etag": "\"5e9a771ccdb6c18e403632e0e20c535a8af8d59f\"", "start": 0, "total_size": + "\"dcd0a782c44cefa364cc0127c97d821e48b1f4fc\"", "list_id": "foo.example.com", + "member_id": 78, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/78", "user": "http://localhost:9001/3.0/users/72"}], + "http_etag": "\"a88ba50973cd2660129553c0e38485f62166b09e\"", "start": 0, "total_size": 1}'} headers: content-length: ['498'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -174,7 +146,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -191,53 +163,24 @@ "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\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": - "example.com", "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"}'} + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['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": - "\"9bddc6c5439c7622ae030a2f5a3e159589e132e7\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/74", "user_id": 74}'} - 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/74/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"47f20023c6c0e20213c949d6e7a4229edfeea3f5\"", "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/74"}], "http_etag": "\"ac3c9fad9c5faf9219d8d109cfe846ac7b147cd5\"", - "start": 0, "total_size": 1}'} - headers: - content-length: ['391'] - content-type: [application/json; charset=utf-8] + content-length: ['1777'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -252,7 +195,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -262,14 +205,14 @@ 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": "\"ba7a3922ff3007dc8f60d72cd3a03d3cbc994c58\"", - "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/74"}], "http_etag": "\"f2f11704a9dd9cc09663c7f8b0e72db065fb4361\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"3387447319c22a67b7e5981cd6cecd35b94148c3\"", + "list_id": "foo.example.com", "member_id": 77, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/77", "user": + "http://localhost:9001/3.0/users/71"}], "http_etag": "\"9975c7911b2f350d824da194686c2351dea35c98\"", "start": 0, "total_size": 1}'} headers: content-length: ['486'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -280,14 +223,14 @@ 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": - "\"096e2182b31f52b378abe1d7db7a6aae17a6004a\"", "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/75"}], - "http_etag": "\"5e9a771ccdb6c18e403632e0e20c535a8af8d59f\"", "start": 0, "total_size": + "\"dcd0a782c44cefa364cc0127c97d821e48b1f4fc\"", "list_id": "foo.example.com", + "member_id": 78, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/78", "user": "http://localhost:9001/3.0/users/72"}], + "http_etag": "\"a88ba50973cd2660129553c0e38485f62166b09e\"", "start": 0, "total_size": 1}'} headers: content-length: ['498'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -302,7 +245,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -319,53 +262,24 @@ "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\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": - "example.com", "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"}'} + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['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": - "\"9bddc6c5439c7622ae030a2f5a3e159589e132e7\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/74", "user_id": 74}'} - 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/74/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"47f20023c6c0e20213c949d6e7a4229edfeea3f5\"", "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/74"}], "http_etag": "\"ac3c9fad9c5faf9219d8d109cfe846ac7b147cd5\"", - "start": 0, "total_size": 1}'} - headers: - content-length: ['391'] - content-type: [application/json; charset=utf-8] + content-length: ['1777'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -380,7 +294,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -390,14 +304,14 @@ 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": "\"ba7a3922ff3007dc8f60d72cd3a03d3cbc994c58\"", - "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/74"}], "http_etag": "\"f2f11704a9dd9cc09663c7f8b0e72db065fb4361\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"3387447319c22a67b7e5981cd6cecd35b94148c3\"", + "list_id": "foo.example.com", "member_id": 77, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/77", "user": + "http://localhost:9001/3.0/users/71"}], "http_etag": "\"9975c7911b2f350d824da194686c2351dea35c98\"", "start": 0, "total_size": 1}'} headers: content-length: ['486'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -408,14 +322,14 @@ 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": - "\"096e2182b31f52b378abe1d7db7a6aae17a6004a\"", "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/75"}], - "http_etag": "\"5e9a771ccdb6c18e403632e0e20c535a8af8d59f\"", "start": 0, "total_size": + "\"dcd0a782c44cefa364cc0127c97d821e48b1f4fc\"", "list_id": "foo.example.com", + "member_id": 78, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/78", "user": "http://localhost:9001/3.0/users/72"}], + "http_etag": "\"a88ba50973cd2660129553c0e38485f62166b09e\"", "start": 0, "total_size": 1}'} headers: content-length: ['498'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -430,7 +344,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -447,23 +361,420 @@ "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\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": - "example.com", "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"}'} + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1730'] - content-type: [application/json; charset=utf-8] + content-length: ['1777'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"3387447319c22a67b7e5981cd6cecd35b94148c3\"", + "list_id": "foo.example.com", "member_id": 77, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/77", "user": + "http://localhost:9001/3.0/users/71"}], "http_etag": "\"9975c7911b2f350d824da194686c2351dea35c98\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['486'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"dcd0a782c44cefa364cc0127c97d821e48b1f4fc\"", "list_id": "foo.example.com", + "member_id": 78, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/78", "user": "http://localhost:9001/3.0/users/72"}], + "http_etag": "\"a88ba50973cd2660129553c0e38485f62166b09e\"", "start": 0, "total_size": + 1}'} + headers: + content-length: ['498'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} + headers: + content-length: ['1777'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"3387447319c22a67b7e5981cd6cecd35b94148c3\"", + "list_id": "foo.example.com", "member_id": 77, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/77", "user": + "http://localhost:9001/3.0/users/71"}], "http_etag": "\"9975c7911b2f350d824da194686c2351dea35c98\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['486'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"dcd0a782c44cefa364cc0127c97d821e48b1f4fc\"", "list_id": "foo.example.com", + "member_id": 78, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/78", "user": "http://localhost:9001/3.0/users/72"}], + "http_etag": "\"a88ba50973cd2660129553c0e38485f62166b09e\"", "start": 0, "total_size": + 1}'} + headers: + content-length: ['498'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} + headers: + content-length: ['1777'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"3387447319c22a67b7e5981cd6cecd35b94148c3\"", + "list_id": "foo.example.com", "member_id": 77, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/77", "user": + "http://localhost:9001/3.0/users/71"}], "http_etag": "\"9975c7911b2f350d824da194686c2351dea35c98\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['486'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"dcd0a782c44cefa364cc0127c97d821e48b1f4fc\"", "list_id": "foo.example.com", + "member_id": 78, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/78", "user": "http://localhost:9001/3.0/users/72"}], + "http_etag": "\"a88ba50973cd2660129553c0e38485f62166b09e\"", "start": 0, "total_size": + 1}'} + headers: + content-length: ['498'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} + headers: + content-length: ['1777'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"3387447319c22a67b7e5981cd6cecd35b94148c3\"", + "list_id": "foo.example.com", "member_id": 77, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/77", "user": + "http://localhost:9001/3.0/users/71"}], "http_etag": "\"9975c7911b2f350d824da194686c2351dea35c98\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['486'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"dcd0a782c44cefa364cc0127c97d821e48b1f4fc\"", "list_id": "foo.example.com", + "member_id": 78, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/78", "user": "http://localhost:9001/3.0/users/72"}], + "http_etag": "\"a88ba50973cd2660129553c0e38485f62166b09e\"", "start": 0, "total_size": + 1}'} + headers: + content-length: ['498'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} + headers: + content-length: ['1777'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -476,7 +787,7 @@ "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: content-length: ['119'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -489,7 +800,7 @@ "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: content-length: ['119'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -502,7 +813,7 @@ "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: content-length: ['119'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -515,7 +826,7 @@ "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: content-length: ['119'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -528,519 +839,7 @@ "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: content-length: ['119'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/owner@example.com - response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"9bddc6c5439c7622ae030a2f5a3e159589e132e7\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/74", "user_id": 74}'} - 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/74/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"47f20023c6c0e20213c949d6e7a4229edfeea3f5\"", "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/74"}], "http_etag": "\"ac3c9fad9c5faf9219d8d109cfe846ac7b147cd5\"", - "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/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": "\"ba7a3922ff3007dc8f60d72cd3a03d3cbc994c58\"", - "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/74"}], "http_etag": "\"f2f11704a9dd9cc09663c7f8b0e72db065fb4361\"", - "start": 0, "total_size": 1}'} - headers: - content-length: ['486'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator - response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", - "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"096e2182b31f52b378abe1d7db7a6aae17a6004a\"", "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/75"}], - "http_etag": "\"5e9a771ccdb6c18e403632e0e20c535a8af8d59f\"", "start": 0, "total_size": - 1}'} - headers: - content-length: ['498'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo@example.com/config - response: - body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": - true, "admin_notify_mchanges": false, "administrivia": true, "advertised": - true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": - "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": - "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", - "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": - "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": - false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_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": - "\"9bddc6c5439c7622ae030a2f5a3e159589e132e7\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/74", "user_id": 74}'} - 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/74/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"47f20023c6c0e20213c949d6e7a4229edfeea3f5\"", "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/74"}], "http_etag": "\"ac3c9fad9c5faf9219d8d109cfe846ac7b147cd5\"", - "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/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": "\"ba7a3922ff3007dc8f60d72cd3a03d3cbc994c58\"", - "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/74"}], "http_etag": "\"f2f11704a9dd9cc09663c7f8b0e72db065fb4361\"", - "start": 0, "total_size": 1}'} - headers: - content-length: ['486'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator - response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", - "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"096e2182b31f52b378abe1d7db7a6aae17a6004a\"", "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/75"}], - "http_etag": "\"5e9a771ccdb6c18e403632e0e20c535a8af8d59f\"", "start": 0, "total_size": - 1}'} - headers: - content-length: ['498'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo@example.com/config - response: - body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": - true, "admin_notify_mchanges": false, "administrivia": true, "advertised": - true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": - "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": - "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", - "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": - "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": - false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_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": - "\"9bddc6c5439c7622ae030a2f5a3e159589e132e7\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/74", "user_id": 74}'} - 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/74/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"47f20023c6c0e20213c949d6e7a4229edfeea3f5\"", "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/74"}], "http_etag": "\"ac3c9fad9c5faf9219d8d109cfe846ac7b147cd5\"", - "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/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": "\"ba7a3922ff3007dc8f60d72cd3a03d3cbc994c58\"", - "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/74"}], "http_etag": "\"f2f11704a9dd9cc09663c7f8b0e72db065fb4361\"", - "start": 0, "total_size": 1}'} - headers: - content-length: ['486'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator - response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", - "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"096e2182b31f52b378abe1d7db7a6aae17a6004a\"", "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/75"}], - "http_etag": "\"5e9a771ccdb6c18e403632e0e20c535a8af8d59f\"", "start": 0, "total_size": - 1}'} - headers: - content-length: ['498'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo@example.com/config - response: - body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": - true, "admin_notify_mchanges": false, "administrivia": true, "advertised": - true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": - "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": - "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", - "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": - "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": - false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_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": - "\"9bddc6c5439c7622ae030a2f5a3e159589e132e7\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/74", "user_id": 74}'} - 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/74/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"47f20023c6c0e20213c949d6e7a4229edfeea3f5\"", "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/74"}], "http_etag": "\"ac3c9fad9c5faf9219d8d109cfe846ac7b147cd5\"", - "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/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": "\"ba7a3922ff3007dc8f60d72cd3a03d3cbc994c58\"", - "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/74"}], "http_etag": "\"f2f11704a9dd9cc09663c7f8b0e72db065fb4361\"", - "start": 0, "total_size": 1}'} - headers: - content-length: ['486'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator - response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", - "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"096e2182b31f52b378abe1d7db7a6aae17a6004a\"", "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/75"}], - "http_etag": "\"5e9a771ccdb6c18e403632e0e20c535a8af8d59f\"", "start": 0, "total_size": - 1}'} - headers: - content-length: ['498'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo@example.com/config - response: - body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": - true, "admin_notify_mchanges": false, "administrivia": true, "advertised": - true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": - "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": - "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", - "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": - "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": - false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_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] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -1049,14 +848,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -1077,22 +876,22 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"9bddc6c5439c7622ae030a2f5a3e159589e132e7\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/74", "user_id": 74}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"135bcc249458348f1154332ff3ef40ec6e11c1af\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/75", - "user_id": 75}], "http_etag": "\"50a76eded7380f1a559dd2e775667530fa2d3b68\"", + "http_etag": "\"aaf21b548c16ce156ecd1316ead130ff9710729a\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/71", "user_id": 71}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"108eeb0cd5d01bafaf1f4b6b9a14a7cac7ba53ae\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/72", + "user_id": 72}], "http_etag": "\"a45d1fe8f349a409091378881fbc39ab9bd68967\"", "start": 0, "total_size": 2}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/74 + uri: http://localhost:9001/3.0/users/71 response: body: {string: !!python/unicode ''} headers: @@ -1103,7 +902,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/75 + uri: http://localhost:9001/3.0/users/72 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_accessible_for_superuser.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_accessible_for_superuser.yaml index 3ee6dee..f002ae2 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_accessible_for_superuser.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_accessible_for_superuser.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: @@ -53,10 +53,10 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -66,10 +66,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/77'] + content-type: [application/json; charset=UTF-8] + 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 + body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,25 +80,14 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/78'] + content-type: [application/json; charset=UTF-8] + 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/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", @@ -106,7 +96,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -123,41 +113,30 @@ "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\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": - "example.com", "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"}'} + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1730'] - content-type: [application/json; charset=utf-8] + content-length: ['1777'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/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", @@ -166,7 +145,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -183,41 +162,30 @@ "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\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": - "example.com", "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"}'} + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1730'] - content-type: [application/json; charset=utf-8] + content-length: ['1777'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/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", @@ -226,7 +194,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -243,23 +211,220 @@ "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\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": - "example.com", "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"}'} + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1730'] - content-type: [application/json; charset=utf-8] + content-length: ['1777'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} + headers: + content-length: ['1777'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} + headers: + content-length: ['1777'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} + headers: + content-length: ['1777'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", + "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": + null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} + headers: + content-length: ['1777'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -272,7 +437,7 @@ "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: content-length: ['119'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -285,7 +450,7 @@ "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: content-length: ['119'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -298,7 +463,7 @@ "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: content-length: ['119'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -311,7 +476,7 @@ "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: content-length: ['119'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -324,247 +489,7 @@ "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: content-length: ['119'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/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", - "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 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", - "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 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", - "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 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", - "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] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -573,14 +498,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -601,22 +526,22 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"33391283e97aba9adb14b967d9f9f20b9c753a07\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/76", "user_id": 76}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"f4726ea3c1b9f16f9d77ed155a404620fca4fb69\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/77", - "user_id": 77}], "http_etag": "\"3b024222bcc8e89958b1a3c6ccf92608063c8e5a\"", + "http_etag": "\"473b2615aa0b3a19fe77bc4c88fa9c56294b797b\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/73", "user_id": 73}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"9bddc6c5439c7622ae030a2f5a3e159589e132e7\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/74", + "user_id": 74}], "http_etag": "\"66eb3b9bb1edf1e028919d3868ae081dbac54a0a\"", "start": 0, "total_size": 2}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/76 + uri: http://localhost:9001/3.0/users/73 response: body: {string: !!python/unicode ''} headers: @@ -627,7 +552,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/77 + uri: http://localhost:9001/3.0/users/74 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_not_accessible_for_unprivileged_users.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_not_accessible_for_unprivileged_users.yaml index 1bfefe4..dacd093 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_not_accessible_for_unprivileged_users.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_not_accessible_for_unprivileged_users.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: @@ -53,10 +53,10 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -66,10 +66,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/79'] + content-type: [application/json; charset=UTF-8] + 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 + body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,20 +80,59 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/80'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/members/82'] 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 + uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode 404 Not Found} + 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: ['13'] - content-type: [application/json; charset=utf-8] - status: {code: 404, message: Not Found} + 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": "\"16ecf3ac701f4feb4503519e869b5818bfe87561\"", + "list_id": "foo.example.com", "member_id": 81, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/81", "user": + "http://localhost:9001/3.0/users/75"}], "http_etag": "\"d47c0277fe2e003b69424d88ec6f8c5b9c6342b6\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['486'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"e3a43736799bd65ae764104685715a3c36a9211d\"", "list_id": "foo.example.com", + "member_id": 82, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/82", "user": "http://localhost:9001/3.0/users/76"}], + "http_etag": "\"18d3b2b1ee0409ad7423a534dccd15efa6345496\"", "start": 0, "total_size": + 1}'} + headers: + content-length: ['498'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} - request: body: null headers: @@ -106,7 +146,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -116,14 +156,14 @@ 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": "\"4934fdbfa14cc02c828354fce1f0f26cabaeb08a\"", - "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/78"}], "http_etag": "\"b58df74fa2e4901acaac5bd65c651d5079719db5\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"16ecf3ac701f4feb4503519e869b5818bfe87561\"", + "list_id": "foo.example.com", "member_id": 81, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/81", "user": + "http://localhost:9001/3.0/users/75"}], "http_etag": "\"d47c0277fe2e003b69424d88ec6f8c5b9c6342b6\"", "start": 0, "total_size": 1}'} headers: content-length: ['486'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -134,32 +174,20 @@ 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": - "\"dd6fb509699e3aec91738c14a707a7c5beda534a\"", "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/79"}], - "http_etag": "\"fcc9c7ca23a2257a4023f9fc65c7a204d04cdf39\"", "start": 0, "total_size": + "\"e3a43736799bd65ae764104685715a3c36a9211d\"", "list_id": "foo.example.com", + "member_id": 82, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/82", "user": "http://localhost:9001/3.0/users/76"}], + "http_etag": "\"18d3b2b1ee0409ad7423a534dccd15efa6345496\"", "start": 0, "total_size": 1}'} headers: content-length: ['498'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-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 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", @@ -168,7 +196,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -178,14 +206,14 @@ 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": "\"4934fdbfa14cc02c828354fce1f0f26cabaeb08a\"", - "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/78"}], "http_etag": "\"b58df74fa2e4901acaac5bd65c651d5079719db5\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"16ecf3ac701f4feb4503519e869b5818bfe87561\"", + "list_id": "foo.example.com", "member_id": 81, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/81", "user": + "http://localhost:9001/3.0/users/75"}], "http_etag": "\"d47c0277fe2e003b69424d88ec6f8c5b9c6342b6\"", "start": 0, "total_size": 1}'} headers: content-length: ['486'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -196,32 +224,20 @@ 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": - "\"dd6fb509699e3aec91738c14a707a7c5beda534a\"", "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/79"}], - "http_etag": "\"fcc9c7ca23a2257a4023f9fc65c7a204d04cdf39\"", "start": 0, "total_size": + "\"e3a43736799bd65ae764104685715a3c36a9211d\"", "list_id": "foo.example.com", + "member_id": 82, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/82", "user": "http://localhost:9001/3.0/users/76"}], + "http_etag": "\"18d3b2b1ee0409ad7423a534dccd15efa6345496\"", "start": 0, "total_size": 1}'} headers: content-length: ['498'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-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 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", @@ -230,7 +246,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -240,14 +256,14 @@ 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": "\"4934fdbfa14cc02c828354fce1f0f26cabaeb08a\"", - "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/78"}], "http_etag": "\"b58df74fa2e4901acaac5bd65c651d5079719db5\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"16ecf3ac701f4feb4503519e869b5818bfe87561\"", + "list_id": "foo.example.com", "member_id": 81, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/81", "user": + "http://localhost:9001/3.0/users/75"}], "http_etag": "\"d47c0277fe2e003b69424d88ec6f8c5b9c6342b6\"", "start": 0, "total_size": 1}'} headers: content-length: ['486'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -258,32 +274,20 @@ 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": - "\"dd6fb509699e3aec91738c14a707a7c5beda534a\"", "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/79"}], - "http_etag": "\"fcc9c7ca23a2257a4023f9fc65c7a204d04cdf39\"", "start": 0, "total_size": + "\"e3a43736799bd65ae764104685715a3c36a9211d\"", "list_id": "foo.example.com", + "member_id": 82, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/82", "user": "http://localhost:9001/3.0/users/76"}], + "http_etag": "\"18d3b2b1ee0409ad7423a534dccd15efa6345496\"", "start": 0, "total_size": 1}'} headers: content-length: ['498'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-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 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", @@ -292,7 +296,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -302,14 +306,14 @@ 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": "\"4934fdbfa14cc02c828354fce1f0f26cabaeb08a\"", - "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/78"}], "http_etag": "\"b58df74fa2e4901acaac5bd65c651d5079719db5\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"16ecf3ac701f4feb4503519e869b5818bfe87561\"", + "list_id": "foo.example.com", "member_id": 81, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/81", "user": + "http://localhost:9001/3.0/users/75"}], "http_etag": "\"d47c0277fe2e003b69424d88ec6f8c5b9c6342b6\"", "start": 0, "total_size": 1}'} headers: content-length: ['486'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -320,32 +324,20 @@ 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": - "\"dd6fb509699e3aec91738c14a707a7c5beda534a\"", "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/79"}], - "http_etag": "\"fcc9c7ca23a2257a4023f9fc65c7a204d04cdf39\"", "start": 0, "total_size": + "\"e3a43736799bd65ae764104685715a3c36a9211d\"", "list_id": "foo.example.com", + "member_id": 82, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/82", "user": "http://localhost:9001/3.0/users/76"}], + "http_etag": "\"18d3b2b1ee0409ad7423a534dccd15efa6345496\"", "start": 0, "total_size": 1}'} headers: content-length: ['498'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-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 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", @@ -354,7 +346,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -364,14 +356,14 @@ 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": "\"4934fdbfa14cc02c828354fce1f0f26cabaeb08a\"", - "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/78"}], "http_etag": "\"b58df74fa2e4901acaac5bd65c651d5079719db5\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"16ecf3ac701f4feb4503519e869b5818bfe87561\"", + "list_id": "foo.example.com", "member_id": 81, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/81", "user": + "http://localhost:9001/3.0/users/75"}], "http_etag": "\"d47c0277fe2e003b69424d88ec6f8c5b9c6342b6\"", "start": 0, "total_size": 1}'} headers: content-length: ['486'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -382,32 +374,20 @@ 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": - "\"dd6fb509699e3aec91738c14a707a7c5beda534a\"", "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/79"}], - "http_etag": "\"fcc9c7ca23a2257a4023f9fc65c7a204d04cdf39\"", "start": 0, "total_size": + "\"e3a43736799bd65ae764104685715a3c36a9211d\"", "list_id": "foo.example.com", + "member_id": 82, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/82", "user": "http://localhost:9001/3.0/users/76"}], + "http_etag": "\"18d3b2b1ee0409ad7423a534dccd15efa6345496\"", "start": 0, "total_size": 1}'} headers: content-length: ['498'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-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 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", @@ -416,7 +396,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -426,14 +406,14 @@ 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": "\"4934fdbfa14cc02c828354fce1f0f26cabaeb08a\"", - "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/78"}], "http_etag": "\"b58df74fa2e4901acaac5bd65c651d5079719db5\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"16ecf3ac701f4feb4503519e869b5818bfe87561\"", + "list_id": "foo.example.com", "member_id": 81, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/81", "user": + "http://localhost:9001/3.0/users/75"}], "http_etag": "\"d47c0277fe2e003b69424d88ec6f8c5b9c6342b6\"", "start": 0, "total_size": 1}'} headers: content-length: ['486'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -444,76 +424,14 @@ 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": - "\"dd6fb509699e3aec91738c14a707a7c5beda534a\"", "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/79"}], - "http_etag": "\"fcc9c7ca23a2257a4023f9fc65c7a204d04cdf39\"", "start": 0, "total_size": + "\"e3a43736799bd65ae764104685715a3c36a9211d\"", "list_id": "foo.example.com", + "member_id": 82, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/82", "user": "http://localhost:9001/3.0/users/76"}], + "http_etag": "\"18d3b2b1ee0409ad7423a534dccd15efa6345496\"", "start": 0, "total_size": 1}'} headers: content-length: ['498'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/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", - "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": "\"4934fdbfa14cc02c828354fce1f0f26cabaeb08a\"", - "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/78"}], "http_etag": "\"b58df74fa2e4901acaac5bd65c651d5079719db5\"", - "start": 0, "total_size": 1}'} - headers: - content-length: ['486'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator - response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", - "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"dd6fb509699e3aec91738c14a707a7c5beda534a\"", "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/79"}], - "http_etag": "\"fcc9c7ca23a2257a4023f9fc65c7a204d04cdf39\"", "start": 0, "total_size": - 1}'} - headers: - content-length: ['498'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -522,14 +440,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -550,22 +468,22 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"48e69a69c5400d681e4c434b7c52d712eb2d1e67\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/78", "user_id": 78}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"1893973f238810e437cd3233b04ee5c1ab23022c\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/79", - "user_id": 79}], "http_etag": "\"0d67cbec8275319f2d218473c1aec437a9b7641e\"", + "http_etag": "\"135bcc249458348f1154332ff3ef40ec6e11c1af\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/75", "user_id": 75}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"33391283e97aba9adb14b967d9f9f20b9c753a07\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/76", + "user_id": 76}], "http_etag": "\"8f80114522f0b4696ffc7efa0ad6364f6753ee70\"", "start": 0, "total_size": 2}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/78 + uri: http://localhost:9001/3.0/users/75 response: body: {string: !!python/unicode ''} headers: @@ -576,7 +494,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/79 + uri: http://localhost:9001/3.0/users/76 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_not_accessible_if_not_logged_in.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_not_accessible_if_not_logged_in.yaml index c2e37ba..71a6a00 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_not_accessible_if_not_logged_in.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_not_accessible_if_not_logged_in.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: @@ -53,10 +53,10 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -66,10 +66,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/81'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/members/83'] status: {code: 201, message: Created} - request: - body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com + body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,7 +80,8 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/82'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/members/84'] status: {code: 201, message: Created} - request: body: null @@ -88,14 +90,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -116,22 +118,22 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"3cfc8052df45dbd51a138a5b79c02833187f6536\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/80", "user_id": 80}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"889bb0e6564a61b50ebbaeff64fa24f8ad504620\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/81", - "user_id": 81}], "http_etag": "\"96011b3b5bdb59441b6904ae40a1ed9ea8f479f5\"", + "http_etag": "\"f4726ea3c1b9f16f9d77ed155a404620fca4fb69\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/77", "user_id": 77}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"48e69a69c5400d681e4c434b7c52d712eb2d1e67\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/78", + "user_id": 78}], "http_etag": "\"d8bcd99f998fb72e49b09f5a04dd61cf5b59ab78\"", "start": 0, "total_size": 2}'} headers: content-length: ['487'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/80 + uri: http://localhost:9001/3.0/users/77 response: body: {string: !!python/unicode ''} headers: @@ -142,7 +144,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/81 + uri: http://localhost:9001/3.0/users/78 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_displayed_to_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_displayed_to_owner.yaml index 8974855..fa10ad1 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_displayed_to_owner.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_displayed_to_owner.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: @@ -53,10 +53,10 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=test%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=test%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -66,43 +66,14 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/84'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/members/106'] 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 '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"8286cc98937375102d07528f8b097f299b24d85e\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/89", "user_id": 89}'} - 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/89/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag": - "\"920393efa9dc1cf2983c83528eb739de9a07ab92\"", "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/89"}], "http_etag": "\"85922ebb67afcfc928f7f6d71dd8a35321d24bc9\"", - "start": 0, "total_size": 1}'} - headers: - content-length: ['388'] - content-type: [application/json; charset=utf-8] - 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", @@ -111,7 +82,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -121,14 +92,14 @@ 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": "\"7ebde67c28dc03d47019647e2f384128ecb10a6e\"", - "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/89"}], "http_etag": "\"563d79ec6cf2fced22174a41d9306d3e5b720d1a\"", + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"036726233bb1a48a3f8941c9c68c77df2a8f932b\"", + "list_id": "foo.example.com", "member_id": 106, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/106", "user": + "http://localhost:9001/3.0/users/107"}], "http_etag": "\"83af61ed8296effe598084427cffe32dc1281120\"", "start": 0, "total_size": 1}'} headers: - content-length: ['484'] - content-type: [application/json; charset=utf-8] + content-length: ['487'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -141,7 +112,7 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -153,7 +124,8 @@ body: {string: !!python/unicode '{}'} headers: content-length: ['2'] - content-type: [application/json] + content-type: [application/json; charset=UTF-8] + vary: [Accept] status: {code: 404, message: Not Found} - request: body: null @@ -170,23 +142,24 @@ "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\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": - "example.com", "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"}'} + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1730'] - content-type: [application/json; charset=utf-8] + content-length: ['1777'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -195,14 +168,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -223,20 +196,20 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"8286cc98937375102d07528f8b097f299b24d85e\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/89", "user_id": 89}], - "http_etag": "\"c963239b96a234fc3458f2e3a66317613f8d9ef1\"", "start": 0, "total_size": + "http_etag": "\"82f042707bad8528d367f38ace98ee0d7ff05e57\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/107", "user_id": 107}], + "http_etag": "\"626cd7e8adb007ccfba5661536ba21d5aeb4209f\"", "start": 0, "total_size": 1}'} headers: - content-length: ['295'] - content-type: [application/json; charset=utf-8] + content-length: ['297'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/89 + uri: http://localhost:9001/3.0/users/107 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_displayed_to_superuser.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_displayed_to_superuser.yaml index 83b036f..c71ecec 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_displayed_to_superuser.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_displayed_to_superuser.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: @@ -45,18 +45,6 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/testadmin@example.com - response: - body: {string: !!python/unicode 404 Not Found} - headers: - content-length: ['13'] - content-type: [application/json; charset=utf-8] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -65,7 +53,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -78,7 +66,7 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -91,7 +79,7 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -103,7 +91,8 @@ body: {string: !!python/unicode '{}'} headers: content-length: ['2'] - content-type: [application/json] + content-type: [application/json; charset=UTF-8] + vary: [Accept] status: {code: 404, message: Not Found} - request: body: null @@ -120,23 +109,24 @@ "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\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": - "example.com", "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"}'} + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1730'] - content-type: [application/json; charset=utf-8] + content-length: ['1777'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -145,14 +135,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -176,6 +166,6 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} version: 1 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 34b5f26..76eb61c 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_not_displayed_to_moderator.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_not_displayed_to_moderator.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: @@ -53,10 +53,10 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=moderator&subscriber=test%40example.com + body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=test%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -66,43 +66,14 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/85'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/members/107'] 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 '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"e57fa6a0774d564e77f4ab20200cc454e731f4f3\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/90", "user_id": 90}'} - 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/90/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag": - "\"6dfac99c9d645aa968f16e0f939af17a87294175\"", "original_email": "test@example.com", - "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "user": "http://localhost:9001/3.0/users/90"}], "http_etag": "\"ddbbc355358c643cc536ed7be783d49c33a061c6\"", - "start": 0, "total_size": 1}'} - headers: - content-length: ['388'] - content-type: [application/json; charset=utf-8] - 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", @@ -111,7 +82,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -124,7 +95,7 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -134,14 +105,14 @@ 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": "\"f71db8babafdd13ca18e5fc81ce60d93cc64fbfa\"", - "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/90"}], "http_etag": "\"3744a14e11715524253b329f6e960b3d1218e73b\"", + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"a50b734ca900936fc8f5c3d99720c97116f38700\"", + "list_id": "foo.example.com", "member_id": 107, "moderation_action": "accept", + "role": "moderator", "self_link": "http://localhost:9001/3.0/members/107", + "user": "http://localhost:9001/3.0/users/108"}], "http_etag": "\"7da74307aaf26c1b91e69d56b0f648ff2076212b\"", "start": 0, "total_size": 1}'} headers: - content-length: ['488'] - content-type: [application/json; charset=utf-8] + content-length: ['491'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -153,7 +124,8 @@ body: {string: !!python/unicode '{}'} headers: content-length: ['2'] - content-type: [application/json] + content-type: [application/json; charset=UTF-8] + vary: [Accept] status: {code: 404, message: Not Found} - request: body: null @@ -170,23 +142,24 @@ "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\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": - "example.com", "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"}'} + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1730'] - content-type: [application/json; charset=utf-8] + content-length: ['1777'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -195,14 +168,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -223,20 +196,20 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"e57fa6a0774d564e77f4ab20200cc454e731f4f3\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/90", "user_id": 90}], - "http_etag": "\"daff959c066d48f7fc2813b326c5ccc1d5234e4b\"", "start": 0, "total_size": + "http_etag": "\"9af2576176fe03b26d1952dc955f03f1c1219cc5\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/108", "user_id": 108}], + "http_etag": "\"e0d58c7574421210f953fef422e3fafc4c70909f\"", "start": 0, "total_size": 1}'} headers: - content-length: ['295'] - content-type: [application/json; charset=utf-8] + content-length: ['297'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/90 + uri: http://localhost:9001/3.0/users/108 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_is_admin_secondary_moderator.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_is_admin_secondary_moderator.yaml index f756855..d1b7ba5 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_is_admin_secondary_moderator.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_is_admin_secondary_moderator.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,10 +37,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: - body: email=test%40example.com&password=None + body: !!python/unicode email=test%40example.com&password=None headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -51,19 +51,21 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/91'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/users/109'] status: {code: 201, message: Created} - request: - body: email=anotheremail%40example.com + body: !!python/unicode email=anotheremail%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] method: !!python/unicode POST - uri: http://localhost:9001/3.0/users/91/addresses + uri: http://localhost:9001/3.0/users/109/addresses response: body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/addresses/anotheremail@example.com'] status: {code: 201, message: Created} - request: @@ -90,10 +92,10 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=moderator&subscriber=anotheremail%40example.com + body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=anotheremail%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -103,48 +105,14 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/86'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/members/108'] 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 '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"bbd8193e721e99efbe4adce8bd09bf53efe2787e\"", "is_server_owner": false, - "password": "$6$rounds=624379$Fth6VYg.OdXWi0L.$unmPtt8T6ryixFa/dssHb1EaOzInP8p4P9Qczd9GSiOSq.cThqbt9weXr9HmisIB6U1CD8LJLk1DX16NCbM5r1", - "self_link": "http://localhost:9001/3.0/users/91", "user_id": 91}'} - 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/91/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "anotheremail@example.com", - "http_etag": "\"6d35a814b1e88eac99f7bd46c13dc3be77f51515\"", "original_email": - "anotheremail@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": - "http://localhost:9001/3.0/addresses/anotheremail@example.com", "user": "http://localhost:9001/3.0/users/91", - "verified_on": "2005-08-01T07:49:23"}, {"email": "test@example.com", "http_etag": - "\"aea469ee00acc86366027dc1eed8b57a0c1a233c\"", "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/91"}], "http_etag": "\"515f8bbacf5be76115b727bdced7e87b5a4bf7f7\"", - "start": 0, "total_size": 2}'} - headers: - content-length: ['735'] - content-type: [application/json; charset=utf-8] - 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", @@ -153,7 +121,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -166,7 +134,7 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -177,38 +145,40 @@ 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": - "\"13d2637434a396802046f36c3a85152a65b0cf1b\"", "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/91"}], - "http_etag": "\"bc28d63fadbbe78211981b115494db9f71da0ddc\"", "start": 0, "total_size": + "\"07a146c3c5453620edd77029bdf0c1473a5d6154\"", "list_id": "foo.example.com", + "member_id": 108, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/108", "user": "http://localhost:9001/3.0/users/109"}], + "http_etag": "\"980e9fb7a0ef60508035ef23e031a8bdc4dcb101\"", "start": 0, "total_size": 1}'} headers: - content-length: ['504'] - content-type: [application/json; charset=utf-8] + content-length: ['507'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com - response: - body: {string: !!python/unicode '{}'} - headers: - content-length: ['2'] - content-type: [application/json] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/member/anotheremail@example.com response: body: {string: !!python/unicode '{}'} headers: content-length: ['2'] - content-type: [application/json] + content-type: [application/json; charset=UTF-8] + vary: [Accept] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com + response: + body: {string: !!python/unicode '{}'} + headers: + content-length: ['2'] + content-type: [application/json; charset=UTF-8] + vary: [Accept] status: {code: 404, message: Not Found} - request: body: null @@ -225,23 +195,24 @@ "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\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": - "example.com", "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"}'} + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1730'] - content-type: [application/json; charset=utf-8] + content-length: ['1777'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -250,14 +221,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -278,21 +249,21 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"bbd8193e721e99efbe4adce8bd09bf53efe2787e\"", "is_server_owner": - false, "password": "$6$rounds=624379$Fth6VYg.OdXWi0L.$unmPtt8T6ryixFa/dssHb1EaOzInP8p4P9Qczd9GSiOSq.cThqbt9weXr9HmisIB6U1CD8LJLk1DX16NCbM5r1", - "self_link": "http://localhost:9001/3.0/users/91", "user_id": 91}], "http_etag": - "\"a7f9fc9003ae0063fc6f9377684212e3eaa66ed2\"", "start": 0, "total_size": + "http_etag": "\"10431f5cac7e27fe469dcfc45e4f780960ff81ed\"", "is_server_owner": + false, "password": "$6$rounds=613493$mIET3A./8y1hgOq3$UdBJqVTmxM3B/3hWs/8py.8bbo3d4OhSLdJhlMqMdhKGJRd8OF67h.0zaZhcc/fYVq2xN6.5NA9BHmEPCvRxw.", + "self_link": "http://localhost:9001/3.0/users/109", "user_id": 109}], "http_etag": + "\"c97401b364a00573e649164a6a1848bacc138f2b\"", "start": 0, "total_size": 1}'} headers: - content-length: ['431'] - content-type: [application/json; charset=utf-8] + content-length: ['433'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/91 + uri: http://localhost:9001/3.0/users/109 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_is_admin_secondary_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_is_admin_secondary_owner.yaml index 517e528..09af012 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_is_admin_secondary_owner.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_is_admin_secondary_owner.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,10 +37,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: - body: email=test%40example.com&password=None + body: !!python/unicode email=test%40example.com&password=None headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -51,19 +51,21 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/92'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/users/110'] status: {code: 201, message: Created} - request: - body: email=anotheremail%40example.com + body: !!python/unicode email=anotheremail%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] method: !!python/unicode POST - uri: http://localhost:9001/3.0/users/92/addresses + uri: http://localhost:9001/3.0/users/110/addresses response: body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/addresses/anotheremail@example.com'] status: {code: 201, message: Created} - request: @@ -90,10 +92,10 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=anotheremail%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=anotheremail%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -103,48 +105,14 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/87'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/members/109'] 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 '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"e6a574de6180620a2f77370851409679fc5710a1\"", "is_server_owner": false, - "password": "$6$rounds=721240$xvkmQ5L73fNZ.oLZ$EhaGtVCgYUwTIV03fURcWLt/ip3paHdSI.wCfNaD38QVVo.c6kYIYjxLgy859kflUBeJcFBVvnLq9c8vRKlyj.", - "self_link": "http://localhost:9001/3.0/users/92", "user_id": 92}'} - 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/92/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "anotheremail@example.com", - "http_etag": "\"5c11bf77c1a7150cc84209773d6dc47b4ac99570\"", "original_email": - "anotheremail@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": - "http://localhost:9001/3.0/addresses/anotheremail@example.com", "user": "http://localhost:9001/3.0/users/92", - "verified_on": "2005-08-01T07:49:23"}, {"email": "test@example.com", "http_etag": - "\"aa5526c7755d9e9b66cc07095e49bf2b1a3a6e26\"", "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/92"}], "http_etag": "\"e5b8446598546dc8dc196346826ddbe13da5c589\"", - "start": 0, "total_size": 2}'} - headers: - content-length: ['735'] - content-type: [application/json; charset=utf-8] - 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", @@ -153,7 +121,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -164,14 +132,14 @@ 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": - "\"00da6ad71a71a2770a27066d6377b8322bccbe3c\"", "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/92"}], - "http_etag": "\"b2bdac508b6b4d2f6d297d331059a5d89c7b6738\"", "start": 0, "total_size": + "\"3d27bafa69bee37a959ce670fdac1f6c7a87ede1\"", "list_id": "foo.example.com", + "member_id": 109, "moderation_action": "accept", "role": "owner", "self_link": + "http://localhost:9001/3.0/members/109", "user": "http://localhost:9001/3.0/users/110"}], + "http_etag": "\"7d8b3809a3b2a2b6d5643e6298fda02549c15009\"", "start": 0, "total_size": 1}'} headers: - content-length: ['500'] - content-type: [application/json; charset=utf-8] + content-length: ['503'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -184,31 +152,33 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com - response: - body: {string: !!python/unicode '{}'} - headers: - content-length: ['2'] - content-type: [application/json] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/member/anotheremail@example.com response: body: {string: !!python/unicode '{}'} headers: content-length: ['2'] - content-type: [application/json] + content-type: [application/json; charset=UTF-8] + vary: [Accept] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com + response: + body: {string: !!python/unicode '{}'} + headers: + content-length: ['2'] + content-type: [application/json; charset=UTF-8] + vary: [Accept] status: {code: 404, message: Not Found} - request: body: null @@ -225,23 +195,24 @@ "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\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": - "example.com", "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"}'} + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1730'] - content-type: [application/json; charset=utf-8] + content-length: ['1777'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -250,14 +221,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -278,21 +249,21 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"e6a574de6180620a2f77370851409679fc5710a1\"", "is_server_owner": - false, "password": "$6$rounds=721240$xvkmQ5L73fNZ.oLZ$EhaGtVCgYUwTIV03fURcWLt/ip3paHdSI.wCfNaD38QVVo.c6kYIYjxLgy859kflUBeJcFBVvnLq9c8vRKlyj.", - "self_link": "http://localhost:9001/3.0/users/92", "user_id": 92}], "http_etag": - "\"cdd4c8e53075390a59f8915a3d4a2fcd66c3a2c7\"", "start": 0, "total_size": + "http_etag": "\"900db23dbae4f2dcc5758ecbeefe1b9092b9c7fd\"", "is_server_owner": + false, "password": "$6$rounds=628378$GrmVqVV729LmXOcW$jemyddeRLO/E28FR795jOyRZ1sC3JLZrIC1nnYQ5Pv2q2LVFYZtEy9DBTusalRrYIKlnKGFcNdMH3qufxZdeN0", + "self_link": "http://localhost:9001/3.0/users/110", "user_id": 110}], "http_etag": + "\"9836578f212fbe94d4d4a015d2a6fc88a678a824\"", "start": 0, "total_size": 1}'} headers: - content-length: ['431'] - content-type: [application/json; charset=utf-8] + content-length: ['433'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/92 + uri: http://localhost:9001/3.0/users/110 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_logged_in.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_logged_in.yaml index 9c521c4..c0de86e 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_logged_in.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_logged_in.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: @@ -45,18 +45,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 response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -65,7 +53,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -78,7 +66,7 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -91,7 +79,7 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -103,7 +91,8 @@ body: {string: !!python/unicode '{}'} headers: content-length: ['2'] - content-type: [application/json] + content-type: [application/json; charset=UTF-8] + vary: [Accept] status: {code: 404, message: Not Found} - request: body: null @@ -120,23 +109,24 @@ "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\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": - "example.com", "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"}'} + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1730'] - content-type: [application/json; charset=utf-8] + content-length: ['1777'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -145,14 +135,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -176,6 +166,6 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} version: 1 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 46ba842..ce1de65 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_logged_out.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_logged_out.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: @@ -53,7 +53,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -70,23 +70,24 @@ "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\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": - "example.com", "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"}'} + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1730'] - content-type: [application/json; charset=utf-8] + content-length: ['1777'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -95,14 +96,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -126,6 +127,6 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} version: 1 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 1ea0428..2607b26 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_moderator.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_moderator.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,10 +37,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: - body: email=test%40example.com&password=None + body: !!python/unicode email=test%40example.com&password=None headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -51,7 +51,8 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/93'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/users/111'] status: {code: 201, message: Created} - request: body: null @@ -66,10 +67,10 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=moderator&subscriber=test%40example.com + body: !!python/unicode list_id=foo.example.com&role=moderator&subscriber=test%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,44 +80,14 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/88'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/members/110'] 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 '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"56d86a6eed30be35b80a673dc5bd1ffb55eaecb3\"", "is_server_owner": false, - "password": "$6$rounds=601018$xuRwFtlRXckgN1jA$2THgt7iwYvQB3aLaiBNMvpLLCr76ZqlPwAR.xZf.ovg2nwIJkW8A/m/mkSY2N4P0M95pebE2zs8qsfdjMuS5T.", - "self_link": "http://localhost:9001/3.0/users/93", "user_id": 93}'} - 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/93/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag": - "\"31ee0018c62463aeb4e1f91309c2117c6c7baf4c\"", "original_email": "test@example.com", - "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "user": "http://localhost:9001/3.0/users/93"}], "http_etag": "\"d9584c5b72c15ffa822eb7bbd883029d6b6e1788\"", - "start": 0, "total_size": 1}'} - headers: - content-length: ['388'] - content-type: [application/json; charset=utf-8] - 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", @@ -125,7 +96,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -138,7 +109,7 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -148,14 +119,14 @@ 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": "\"112863e2d929e79f83c9c900966089dc2821be30\"", - "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/93"}], "http_etag": "\"c4b13fb26802b1beb3dd298004c60ef0fed43832\"", + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"49f6b08528627611dce493309358878427f9f7b6\"", + "list_id": "foo.example.com", "member_id": 110, "moderation_action": "accept", + "role": "moderator", "self_link": "http://localhost:9001/3.0/members/110", + "user": "http://localhost:9001/3.0/users/111"}], "http_etag": "\"05222740ad8be0827e01c67dbadfa22c56273f37\"", "start": 0, "total_size": 1}'} headers: - content-length: ['488'] - content-type: [application/json; charset=utf-8] + content-length: ['491'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -167,7 +138,8 @@ body: {string: !!python/unicode '{}'} headers: content-length: ['2'] - content-type: [application/json] + content-type: [application/json; charset=UTF-8] + vary: [Accept] status: {code: 404, message: Not Found} - request: body: null @@ -184,23 +156,24 @@ "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\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": - "example.com", "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"}'} + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1730'] - content-type: [application/json; charset=utf-8] + content-length: ['1777'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -209,14 +182,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -237,21 +210,21 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"56d86a6eed30be35b80a673dc5bd1ffb55eaecb3\"", "is_server_owner": - false, "password": "$6$rounds=601018$xuRwFtlRXckgN1jA$2THgt7iwYvQB3aLaiBNMvpLLCr76ZqlPwAR.xZf.ovg2nwIJkW8A/m/mkSY2N4P0M95pebE2zs8qsfdjMuS5T.", - "self_link": "http://localhost:9001/3.0/users/93", "user_id": 93}], "http_etag": - "\"68b83647bdaafa955e191afdfdee45823e1d53f6\"", "start": 0, "total_size": + "http_etag": "\"853b5f2ef0ae8cc8686d077acdb10c2d0db62b81\"", "is_server_owner": + false, "password": "$6$rounds=590565$lekZnQdHKKvrlyft$IYwJJ7nRl/.ph7KgbXABWBeFcZkKVRsXrTJDpL2hGOd22oUtdyc9miJ30r0X84xpxcMlpLJVyohupNg5o2oGf1", + "self_link": "http://localhost:9001/3.0/users/111", "user_id": 111}], "http_etag": + "\"4bf967b51887fa6b46837830064ca9f64c58df54\"", "start": 0, "total_size": 1}'} headers: - content-length: ['431'] - content-type: [application/json; charset=utf-8] + content-length: ['433'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/93 + uri: http://localhost:9001/3.0/users/111 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_owner.yaml index 194ec43..9910d51 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_owner.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_owner.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,10 +37,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: - body: email=test%40example.com&password=None + body: !!python/unicode email=test%40example.com&password=None headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -51,7 +51,8 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/94'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/users/112'] status: {code: 201, message: Created} - request: body: null @@ -66,10 +67,10 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: list_id=foo.example.com&role=owner&subscriber=test%40example.com + body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=test%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,44 +80,14 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/89'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/members/111'] 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 '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"0e6bd427997094f06d5de81c729fbbc48ff80a08\"", "is_server_owner": false, - "password": "$6$rounds=671788$BcbdgAn2ua/IZFmm$MnyxI2TiMMxM16MoGUXgSSH61Cn1lk3TlbPLLgrfHEONHJOlcG/WT9/l.9lcxD9eZrW/lCRbS79gTkN6j6w...", - "self_link": "http://localhost:9001/3.0/users/94", "user_id": 94}'} - 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/94/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag": - "\"2338779acf123427dafdd729944dac6b2a9bd1a9\"", "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/94"}], "http_etag": "\"2e3d56ca9cd43908ad8d754e46e1aa04b10a781c\"", - "start": 0, "total_size": 1}'} - headers: - content-length: ['388'] - content-type: [application/json; charset=utf-8] - 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", @@ -125,7 +96,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -135,14 +106,14 @@ 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": "\"e8b198b4c0836f61467a2a043253165822f156a6\"", - "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/94"}], "http_etag": "\"9d97319e0ba6194fbde2d6341b6ca4907acc9264\"", + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"054f4d4529bff8e970383af44e6bea87d7fc0b02\"", + "list_id": "foo.example.com", "member_id": 111, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/111", "user": + "http://localhost:9001/3.0/users/112"}], "http_etag": "\"90947f403ea5af9592febb462e2aa2f31e38a3f2\"", "start": 0, "total_size": 1}'} headers: - content-length: ['484'] - content-type: [application/json; charset=utf-8] + content-length: ['487'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -155,7 +126,7 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -167,7 +138,8 @@ body: {string: !!python/unicode '{}'} headers: content-length: ['2'] - content-type: [application/json] + content-type: [application/json; charset=UTF-8] + vary: [Accept] status: {code: 404, message: Not Found} - request: body: null @@ -184,23 +156,24 @@ "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\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": - "example.com", "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"}'} + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1730'] - content-type: [application/json; charset=utf-8] + content-length: ['1777'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -209,14 +182,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -237,21 +210,21 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"0e6bd427997094f06d5de81c729fbbc48ff80a08\"", "is_server_owner": - false, "password": "$6$rounds=671788$BcbdgAn2ua/IZFmm$MnyxI2TiMMxM16MoGUXgSSH61Cn1lk3TlbPLLgrfHEONHJOlcG/WT9/l.9lcxD9eZrW/lCRbS79gTkN6j6w...", - "self_link": "http://localhost:9001/3.0/users/94", "user_id": 94}], "http_etag": - "\"6c3c4793aad0f921c78643fc1eb00c2a9b0a82d2\"", "start": 0, "total_size": + "http_etag": "\"97f8381d9df9e380b6035eea4596dfd80efed04b\"", "is_server_owner": + false, "password": "$6$rounds=605889$SHlcRvURgDfP.TPe$pHTIvuKMNUfZNTgFTgWK8Ywh0ghs/y0EQPbCJPcoxwZNwdlgkudFJKCklNyKks/h7SIuoimmafSXFSMi4A7Wf0", + "self_link": "http://localhost:9001/3.0/users/112", "user_id": 112}], "http_etag": + "\"c87b8265832e7ee7f5942292f019a4b056e074e0\"", "start": 0, "total_size": 1}'} headers: - content-length: ['431'] - content-type: [application/json; charset=utf-8] + content-length: ['433'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/94 + uri: http://localhost:9001/3.0/users/112 response: body: {string: !!python/unicode ''} headers: 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 deleted file mode 100644 index ed53e78..0000000 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_shows_all_addresses.yaml +++ /dev/null @@ -1,296 +0,0 @@ -interactions: -- request: - body: mail_host=example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST - uri: http://localhost:9001/3.0/domains - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/domains/example.com'] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} - headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: fqdn_listname=foo%40example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/lists/foo.example.com'] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo@example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", - "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", - "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: display_name=None&list_id=foo.example.com&subscriber=test%40example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST - uri: http://localhost:9001/3.0/members - response: - body: {string: !!python/unicode '{"http_etag": "\"2f1dfffd552b1a6a0514ad416d4e426d8c927d44\"", - "token": "0000000000000000000000000000000000000001", "token_owner": "subscriber"}'} - headers: - content-length: ['143'] - content-type: [application/json; charset=utf-8] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/test@example.com - response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "display_name": - "None", "http_etag": "\"59cde8cbd18040da8b4a9455bcf71a1845de95ad\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/95", "user_id": 95}'} - headers: - content-length: ['214'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: email=anotheremail%40example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST - uri: http://localhost:9001/3.0/users/95/addresses - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/addresses/anotheremail@example.com'] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode POST - uri: http://localhost:9001/3.0/addresses/anotheremail@example.com/verify - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/test@example.com - response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "display_name": - "None", "http_etag": "\"59cde8cbd18040da8b4a9455bcf71a1845de95ad\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/95", "user_id": 95}'} - headers: - content-length: ['214'] - content-type: [application/json; charset=utf-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/95/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "anotheremail@example.com", - "http_etag": "\"29e37ef9df1a6b1fe5f7310c47caa320cc3e1d5f\"", "original_email": - "anotheremail@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": - "http://localhost:9001/3.0/addresses/anotheremail@example.com", "user": "http://localhost:9001/3.0/users/95", - "verified_on": "2005-08-01T07:49:23"}, {"display_name": "None", "email": "test@example.com", - "http_etag": "\"a01c0261cfdbab95344992fc8c11b0fcec6a0b8a\"", "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/95"}], "http_etag": "\"884bbe9dabe6f7fbae03265a71aa486b9dd74642\"", - "start": 0, "total_size": 2}'} - headers: - content-length: ['759'] - content-type: [application/json; charset=utf-8] - 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 '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator - response: - body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com - response: - body: {string: !!python/unicode '{}'} - headers: - content-length: ['2'] - content-type: [application/json] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo.example.com/member/anotheremail@example.com - response: - body: {string: !!python/unicode '{}'} - headers: - content-length: ['2'] - content-type: [application/json] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/foo@example.com/config - response: - body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": - true, "admin_notify_mchanges": false, "administrivia": true, "advertised": - true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": - "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": - "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", - "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": - "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": - false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_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/domains - response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} - headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users - response: - body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "display_name": "None", "http_etag": "\"59cde8cbd18040da8b4a9455bcf71a1845de95ad\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/95", - "user_id": 95}], "http_etag": "\"48db5140932313fe38af7e70f642cf1338c3352c\"", - "start": 0, "total_size": 1}'} - headers: - content-length: ['319'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/95 - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_metrics_not_displayed_to_anonymous.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_metrics_not_displayed_to_anonymous.yaml index 46ba842..ce1de65 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_metrics_not_displayed_to_anonymous.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_metrics_not_displayed_to_anonymous.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: @@ -53,7 +53,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -70,23 +70,24 @@ "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\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": - "example.com", "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"}'} + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1730'] - content-type: [application/json; charset=utf-8] + content-length: ['1777'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -95,14 +96,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -126,6 +127,6 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_unsubscribe_button_is_available.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_unsubscribe_button_is_available.yaml index 05fd721..0cab4b0 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_unsubscribe_button_is_available.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_unsubscribe_button_is_available.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: @@ -53,10 +53,10 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: display_name=None&list_id=foo.example.com&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com + body: !!python/unicode display_name=None&list_id=foo.example.com&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -66,45 +66,14 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/90'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/members/113'] 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 '{"created_on": "2005-08-01T07:49:23", "display_name": - "None", "http_etag": "\"8badf2306869a55a955be97d314d60b5e683d1b7\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/96", "user_id": 96}'} - headers: - content-length: ['214'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/96/addresses - response: - body: {string: !!python/unicode '{"entries": [{"display_name": "None", "email": - "test@example.com", "http_etag": "\"32fd46b7c9722a16e3cf6351e7101e77aff0befa\"", - "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", - "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/96", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"4f7b48afe11d465cdcedecefc8a0616a5bd04ff7\"", "start": 0, "total_size": - 1}'} - headers: - content-length: ['450'] - content-type: [application/json; charset=utf-8] - 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", @@ -113,7 +82,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -126,7 +95,7 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -139,7 +108,7 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -149,12 +118,12 @@ 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": "\"85295f25f0c328f5dc5a887601ad8083f51c6c82\"", - "list_id": "foo.example.com", "member_id": 90, "role": "member", "self_link": - "http://localhost:9001/3.0/members/90", "user": "http://localhost:9001/3.0/users/96"}'} + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"92b93ed181b0117fbcf5df08d0f37148102235e1\"", + "list_id": "foo.example.com", "member_id": 113, "role": "member", "self_link": + "http://localhost:9001/3.0/members/113", "user": "http://localhost:9001/3.0/users/114"}'} headers: - content-length: ['349'] - content-type: [application/json; charset=utf-8] + content-length: ['352'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -171,23 +140,24 @@ "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\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to": + false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri": + "", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"", "include_rfc2369_headers": true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": "foo-leave@example.com", "list_name": "foo", "mail_host": - "example.com", "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"}'} + "example.com", "moderator_password": null, "next_digest_number": 1, "no_reply_address": + "noreply@example.com", "owner_address": "foo-owner@example.com", "post_id": + 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1730'] - content-type: [application/json; charset=utf-8] + content-length: ['1777'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -196,14 +166,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -224,20 +194,20 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "display_name": "None", "http_etag": "\"8badf2306869a55a955be97d314d60b5e683d1b7\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/96", - "user_id": 96}], "http_etag": "\"07a321530b06e163764307ad5ce482830d379ca9\"", + "display_name": "None", "http_etag": "\"39223f4b33e9288f73b68bc5bd442a86f95c3612\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/114", + "user_id": 114}], "http_etag": "\"e5babd985d6e5457e1f2927866839fd7583773cc\"", "start": 0, "total_size": 1}'} headers: - content-length: ['319'] - content-type: [application/json; charset=utf-8] + content-length: ['321'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/96 + uri: http://localhost:9001/3.0/users/114 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_address_based_preferences.yaml b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_address_based_preferences.yaml index fa66d70..e0850f8 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_address_based_preferences.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_address_based_preferences.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,10 +37,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: - body: email=user%40example.com + body: !!python/unicode email=user%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -51,32 +51,35 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/82'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/users/97'] status: {code: 201, message: Created} - request: - body: email=user2%40example.com + body: !!python/unicode email=user2%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] method: !!python/unicode POST - uri: http://localhost:9001/3.0/users/82/addresses + uri: http://localhost:9001/3.0/users/97/addresses response: body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/addresses/user2@example.com'] status: {code: 201, message: Created} - request: - body: email=user3%40example.com + body: !!python/unicode email=user3%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] method: !!python/unicode POST - uri: http://localhost:9001/3.0/users/82/addresses + uri: http://localhost:9001/3.0/users/97/addresses response: body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/addresses/user3@example.com'] status: {code: 201, message: Created} - request: @@ -87,35 +90,35 @@ uri: http://localhost:9001/3.0/users/user@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"3c772caf0ccf6cc8dfb1889df6abf6a3b45b863e\"", "is_server_owner": false, - "password": "$6$rounds=703772$/1eng50MQTVZJ99r$zZzgoBGkXANNTHxDwqsLwdIDcLoyymJ.u6SdIUxQ/3Z8HSwoj4UX8UshUhp82CpHNfRoZR.P/q8NI1xsZKYCo/", - "self_link": "http://localhost:9001/3.0/users/82", "user_id": 82}'} + "\"4427ecc2f6d6c28650bd2be9e90d96cdacbe478c\"", "is_server_owner": false, + "password": "$6$rounds=664171$84cuCldx/iLQRuD9$OCacUJ1HUIQ2UqFRH/oCBGZQ35VJm0VrjSJ9IAauHSh4U5oOWNHSqnaio5dOVqVyghe38uvACMksaC.4V.tYH/", + "self_link": "http://localhost:9001/3.0/users/97", "user_id": 97}'} headers: content-length: ['326'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-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/82/addresses + uri: http://localhost:9001/3.0/users/97/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "user2@example.com", "http_etag": - "\"43371558cf942bb898abc8a60db1bd5080bd162a\"", "original_email": "user2@example.com", + "\"7a29504c1b8267310be35eae90bee20866a14ecb\"", "original_email": "user2@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user2@example.com", - "user": "http://localhost:9001/3.0/users/82"}, {"email": "user3@example.com", - "http_etag": "\"6276c00ff811d06ea731be4b87ba9ab5e652d6b8\"", "original_email": + "user": "http://localhost:9001/3.0/users/97"}, {"email": "user3@example.com", + "http_etag": "\"7cc3d1ece8fa4cab6a35e21b24c2f888b71a5d61\"", "original_email": "user3@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": - "http://localhost:9001/3.0/addresses/user3@example.com", "user": "http://localhost:9001/3.0/users/82"}, - {"email": "user@example.com", "http_etag": "\"1fe086fefb42a09a9a22a5f0ca7eb839b36055fb\"", + "http://localhost:9001/3.0/addresses/user3@example.com", "user": "http://localhost:9001/3.0/users/97"}, + {"email": "user@example.com", "http_etag": "\"a2a666363c664044b0119a2db0b3148515af15d0\"", "original_email": "user@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user@example.com", "user": - "http://localhost:9001/3.0/users/82"}], "http_etag": "\"ef4a8b9243a967e17188302f31ee2108d617ca05\"", + "http://localhost:9001/3.0/users/97"}], "http_etag": "\"4682278e6e1d930d5a4b4fd6a35916f57086b7c4\"", "start": 0, "total_size": 3}'} headers: content-length: ['964'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -125,73 +128,35 @@ uri: http://localhost:9001/3.0/users/user@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"3c772caf0ccf6cc8dfb1889df6abf6a3b45b863e\"", "is_server_owner": false, - "password": "$6$rounds=703772$/1eng50MQTVZJ99r$zZzgoBGkXANNTHxDwqsLwdIDcLoyymJ.u6SdIUxQ/3Z8HSwoj4UX8UshUhp82CpHNfRoZR.P/q8NI1xsZKYCo/", - "self_link": "http://localhost:9001/3.0/users/82", "user_id": 82}'} + "\"4427ecc2f6d6c28650bd2be9e90d96cdacbe478c\"", "is_server_owner": false, + "password": "$6$rounds=664171$84cuCldx/iLQRuD9$OCacUJ1HUIQ2UqFRH/oCBGZQ35VJm0VrjSJ9IAauHSh4U5oOWNHSqnaio5dOVqVyghe38uvACMksaC.4V.tYH/", + "self_link": "http://localhost:9001/3.0/users/97", "user_id": 97}'} headers: content-length: ['326'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-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/82/addresses + uri: http://localhost:9001/3.0/users/97/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "user2@example.com", "http_etag": - "\"43371558cf942bb898abc8a60db1bd5080bd162a\"", "original_email": "user2@example.com", + "\"7a29504c1b8267310be35eae90bee20866a14ecb\"", "original_email": "user2@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user2@example.com", - "user": "http://localhost:9001/3.0/users/82"}, {"email": "user3@example.com", - "http_etag": "\"6276c00ff811d06ea731be4b87ba9ab5e652d6b8\"", "original_email": + "user": "http://localhost:9001/3.0/users/97"}, {"email": "user3@example.com", + "http_etag": "\"7cc3d1ece8fa4cab6a35e21b24c2f888b71a5d61\"", "original_email": "user3@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": - "http://localhost:9001/3.0/addresses/user3@example.com", "user": "http://localhost:9001/3.0/users/82"}, - {"email": "user@example.com", "http_etag": "\"1fe086fefb42a09a9a22a5f0ca7eb839b36055fb\"", + "http://localhost:9001/3.0/addresses/user3@example.com", "user": "http://localhost:9001/3.0/users/97"}, + {"email": "user@example.com", "http_etag": "\"a2a666363c664044b0119a2db0b3148515af15d0\"", "original_email": "user@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user@example.com", "user": - "http://localhost:9001/3.0/users/82"}], "http_etag": "\"ef4a8b9243a967e17188302f31ee2108d617ca05\"", + "http://localhost:9001/3.0/users/97"}], "http_etag": "\"4682278e6e1d930d5a4b4fd6a35916f57086b7c4\"", "start": 0, "total_size": 3}'} headers: content-length: ['964'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/user@example.com - response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"3c772caf0ccf6cc8dfb1889df6abf6a3b45b863e\"", "is_server_owner": false, - "password": "$6$rounds=703772$/1eng50MQTVZJ99r$zZzgoBGkXANNTHxDwqsLwdIDcLoyymJ.u6SdIUxQ/3Z8HSwoj4UX8UshUhp82CpHNfRoZR.P/q8NI1xsZKYCo/", - "self_link": "http://localhost:9001/3.0/users/82", "user_id": 82}'} - 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/82/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "user2@example.com", "http_etag": - "\"43371558cf942bb898abc8a60db1bd5080bd162a\"", "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/82"}, {"email": "user3@example.com", - "http_etag": "\"6276c00ff811d06ea731be4b87ba9ab5e652d6b8\"", "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/82"}, - {"email": "user@example.com", "http_etag": "\"1fe086fefb42a09a9a22a5f0ca7eb839b36055fb\"", - "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/82"}], "http_etag": "\"ef4a8b9243a967e17188302f31ee2108d617ca05\"", - "start": 0, "total_size": 3}'} - headers: - content-length: ['964'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -204,7 +169,7 @@ "self_link": "http://localhost:9001/3.0/addresses/user2@example.com/preferences"}'} headers: content-length: ['143'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -217,7 +182,7 @@ "self_link": "http://localhost:9001/3.0/addresses/user3@example.com/preferences"}'} headers: content-length: ['143'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -230,7 +195,7 @@ "self_link": "http://localhost:9001/3.0/addresses/user@example.com/preferences"}'} headers: content-length: ['142'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -239,14 +204,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -267,21 +232,21 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"3c772caf0ccf6cc8dfb1889df6abf6a3b45b863e\"", "is_server_owner": - false, "password": "$6$rounds=703772$/1eng50MQTVZJ99r$zZzgoBGkXANNTHxDwqsLwdIDcLoyymJ.u6SdIUxQ/3Z8HSwoj4UX8UshUhp82CpHNfRoZR.P/q8NI1xsZKYCo/", - "self_link": "http://localhost:9001/3.0/users/82", "user_id": 82}], "http_etag": - "\"226573f353b5a8a2ff9c8de80fefa98abb2c6ea7\"", "start": 0, "total_size": + "http_etag": "\"4427ecc2f6d6c28650bd2be9e90d96cdacbe478c\"", "is_server_owner": + false, "password": "$6$rounds=664171$84cuCldx/iLQRuD9$OCacUJ1HUIQ2UqFRH/oCBGZQ35VJm0VrjSJ9IAauHSh4U5oOWNHSqnaio5dOVqVyghe38uvACMksaC.4V.tYH/", + "self_link": "http://localhost:9001/3.0/users/97", "user_id": 97}], "http_etag": + "\"f4499d0805fd4b68130a14ca9261a083cee33540\"", "start": 0, "total_size": 1}'} headers: content-length: ['431'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/82 + uri: http://localhost:9001/3.0/users/97 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_address_preferences_not_logged_in.yaml b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_address_preferences_not_logged_in.yaml index 705da6b..5c9da51 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_address_preferences_not_logged_in.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_address_preferences_not_logged_in.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,10 +37,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: - body: email=user%40example.com + body: !!python/unicode email=user%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -51,7 +51,8 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/83'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/users/98'] status: {code: 201, message: Created} - request: body: null @@ -60,14 +61,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -88,21 +89,21 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"118b93af19b87d6b415a1a39d5768cb752881a3c\"", "is_server_owner": - false, "password": "$6$rounds=633725$cl3TKCbGyT/UF1nQ$Bd/R71Zok43DLlQ7fec59q5Aa8CfrCmnrBuq0LrW9wwOl.Hx4XjqsWw5Jsv83dQlPqmfbdXkvL5AJDCHJ/cjY0", - "self_link": "http://localhost:9001/3.0/users/83", "user_id": 83}], "http_etag": - "\"6da629413819465ac2ffa4cc701847a947d1be29\"", "start": 0, "total_size": + "http_etag": "\"8f52b466ef5e4ead85043d0d397d21fcba39adfe\"", "is_server_owner": + false, "password": "$6$rounds=652167$99tso8t9x1YxCbPp$xxjX8f.mGbn3FUQdaOIC8HD5kfn20lFNF/HGqp/WmJrUQ/dmDVLh9Rts6H5n7lpsZ8zK49Zf.hLfLJFib2RHt1", + "self_link": "http://localhost:9001/3.0/users/98", "user_id": 98}], "http_etag": + "\"0258181840f508b9440745724dd05b57978a3654\"", "start": 0, "total_size": 1}'} headers: content-length: ['431'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/83 + uri: http://localhost:9001/3.0/users/98 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_list_options_shows_all_addresses.yaml b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_list_options_shows_all_addresses.yaml new file mode 100644 index 0000000..2e42326 --- /dev/null +++ b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_list_options_shows_all_addresses.yaml @@ -0,0 +1,277 @@ +interactions: +- request: + body: !!python/unicode mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/domains/example.com'] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + headers: + content-length: ['172'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: !!python/unicode fqdn_listname=foo%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/lists/foo.example.com'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode email=user%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/users + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/users/2'] + 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: !!python/unicode display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=user%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/members + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/members/2'] + status: {code: 201, message: Created} +- 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": + "\"8833513b5e27144d0d4d6a6144a63f5bc5cb361b\"", "is_server_owner": false, + "password": "$6$rounds=627685$pJC7w5AH.LcWLQrI$mUzhXiAXuZGaXfkOEoUucwvarwMKriUhyMBN2VBsVCpBfRC/pcLsQ8I8f.e52bKaV6YBgDN/XrslRi1rhahRY.", + "self_link": "http://localhost:9001/3.0/users/2", "user_id": 2}'} + headers: + content-length: ['324'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: !!python/unicode email=anotheremail%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/users/2/addresses + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/addresses/anotheremail@example.com'] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/addresses/anotheremail@example.com/verify + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/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/user@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"8833513b5e27144d0d4d6a6144a63f5bc5cb361b\"", "is_server_owner": false, + "password": "$6$rounds=627685$pJC7w5AH.LcWLQrI$mUzhXiAXuZGaXfkOEoUucwvarwMKriUhyMBN2VBsVCpBfRC/pcLsQ8I8f.e52bKaV6YBgDN/XrslRi1rhahRY.", + "self_link": "http://localhost:9001/3.0/users/2", "user_id": 2}'} + headers: + content-length: ['324'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/2/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "anotheremail@example.com", + "http_etag": "\"e4db5c40d3f770c3b97fe29d5663728af4854ce5\"", "original_email": + "anotheremail@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": + "http://localhost:9001/3.0/addresses/anotheremail@example.com", "user": "http://localhost:9001/3.0/users/2", + "verified_on": "2005-08-01T07:49:23"}, {"email": "user@example.com", "http_etag": + "\"e2ed0a0e92fde50a51fece5dcc127e1be7d8a67d\"", "original_email": "user@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user@example.com", + "user": "http://localhost:9001/3.0/users/2", "verified_on": "2005-08-01T07:49:23"}], + "http_etag": "\"1efba2362acf0ba084c8142fcb21aaf70ca3524b\"", "start": 0, "total_size": + 2}'} + headers: + content-length: ['771'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: !!python/unicode subscriber=anotheremail%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/members/find + response: + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: !!python/unicode subscriber=user%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/members/find + response: + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/user@example.com", + "delivery_mode": "regular", "email": "user@example.com", "http_etag": "\"0d6b5d198b00c63386ec1690c1fe80bfbbe01006\"", + "list_id": "foo.example.com", "member_id": 2, "role": "member", "self_link": + "http://localhost:9001/3.0/members/2", "user": "http://localhost:9001/3.0/users/2"}], + "http_etag": "\"0a8425bed08f5b42383ebb0f7dc1cb781024a5cd\"", "start": 0, "total_size": + 1}'} + headers: + content-length: ['451'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/members/2/preferences + response: + body: {string: !!python/unicode '{"http_etag": "\"35c3a459eb9ce551e79eef1f9932eb915a59322f\"", + "self_link": "http://localhost:9001/3.0/members/2/preferences"}'} + headers: + content-length: ['125'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} + headers: + content-length: ['277'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users + response: + body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", + "http_etag": "\"8833513b5e27144d0d4d6a6144a63f5bc5cb361b\"", "is_server_owner": + false, "password": "$6$rounds=627685$pJC7w5AH.LcWLQrI$mUzhXiAXuZGaXfkOEoUucwvarwMKriUhyMBN2VBsVCpBfRC/pcLsQ8I8f.e52bKaV6YBgDN/XrslRi1rhahRY.", + "self_link": "http://localhost:9001/3.0/users/2", "user_id": 2}], "http_etag": + "\"c50c75b36740137b7f13885ea650b5a0bd513e22\"", "start": 0, "total_size": + 1}'} + headers: + content-length: ['429'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/2 + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_preferences_none.yaml b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_preferences_none.yaml index 6687452..b507bae 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_preferences_none.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_preferences_none.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,10 +37,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: - body: email=user%40example.com + body: !!python/unicode email=user%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -51,7 +51,8 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/84'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/users/99'] status: {code: 201, message: Created} - request: body: null @@ -66,10 +67,10 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=user%40example.com + body: !!python/unicode display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=user%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -79,7 +80,8 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/83'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/members/103'] status: {code: 201, message: Created} - request: body: null @@ -89,29 +91,29 @@ uri: http://localhost:9001/3.0/users/user@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"ca92ce92be7bc92827a5295f67ebc3bb29e32afe\"", "is_server_owner": false, - "password": "$6$rounds=649364$KharsE48ZBcvV9zK$XfVHGRyCv8s63ubcGM7YbN2nKPV9x9RULhWJXF8d0VxHgVKqTQL25tMe2o8ua9Wz5TI4v3Reg5dUbOYB0sh4m1", - "self_link": "http://localhost:9001/3.0/users/84", "user_id": 84}'} + "\"b6003f4ee23478173a1b7cbbef5c32491fe3f4fa\"", "is_server_owner": false, + "password": "$6$rounds=633642$Yy9p1g1SRhQo382X$g696SDmWTwWUeYC8zMFp1kXxmxdI9WnsSxDGmYYkww/ldG1R16.nybAQ6AbwRWIaPvbW7Ww1RlxZmt8eUec2W/", + "self_link": "http://localhost:9001/3.0/users/99", "user_id": 99}'} headers: content-length: ['326'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/84/addresses + uri: http://localhost:9001/3.0/users/99/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag": - "\"075a1242d2fc0128cbe4dc6bc827a24c1a2bdbd7\"", "original_email": "user@example.com", + "\"46ec17aed3b05ba990665417ba816024dc69b8ff\"", "original_email": "user@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user@example.com", - "user": "http://localhost:9001/3.0/users/84", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"66ed8a5fe577da55fc26950e1370389410e08b86\"", "start": 0, "total_size": + "user": "http://localhost:9001/3.0/users/99", "verified_on": "2005-08-01T07:49:23"}], + "http_etag": "\"08fa71d143e37789397e3cd03ede1318b82fc717\"", "start": 0, "total_size": 1}'} headers: content-length: ['426'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -121,89 +123,25 @@ uri: http://localhost:9001/3.0/users/user@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"ca92ce92be7bc92827a5295f67ebc3bb29e32afe\"", "is_server_owner": false, - "password": "$6$rounds=649364$KharsE48ZBcvV9zK$XfVHGRyCv8s63ubcGM7YbN2nKPV9x9RULhWJXF8d0VxHgVKqTQL25tMe2o8ua9Wz5TI4v3Reg5dUbOYB0sh4m1", - "self_link": "http://localhost:9001/3.0/users/84", "user_id": 84}'} + "\"b6003f4ee23478173a1b7cbbef5c32491fe3f4fa\"", "is_server_owner": false, + "password": "$6$rounds=633642$Yy9p1g1SRhQo382X$g696SDmWTwWUeYC8zMFp1kXxmxdI9WnsSxDGmYYkww/ldG1R16.nybAQ6AbwRWIaPvbW7Ww1RlxZmt8eUec2W/", + "self_link": "http://localhost:9001/3.0/users/99", "user_id": 99}'} headers: content-length: ['326'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/84/addresses + uri: http://localhost:9001/3.0/users/99/preferences response: - body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag": - "\"075a1242d2fc0128cbe4dc6bc827a24c1a2bdbd7\"", "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/84", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"66ed8a5fe577da55fc26950e1370389410e08b86\"", "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": - "\"ca92ce92be7bc92827a5295f67ebc3bb29e32afe\"", "is_server_owner": false, - "password": "$6$rounds=649364$KharsE48ZBcvV9zK$XfVHGRyCv8s63ubcGM7YbN2nKPV9x9RULhWJXF8d0VxHgVKqTQL25tMe2o8ua9Wz5TI4v3Reg5dUbOYB0sh4m1", - "self_link": "http://localhost:9001/3.0/users/84", "user_id": 84}'} - 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/84/preferences - response: - body: {string: !!python/unicode '{"http_etag": "\"97711445ef27ea098bc9c3844389742eb7ef850a\"", - "self_link": "http://localhost:9001/3.0/users/84/preferences"}'} + body: {string: !!python/unicode '{"http_etag": "\"b550eb516902a3ccfd04f3141e6ed1a26d19f3f0\"", + "self_link": "http://localhost:9001/3.0/users/99/preferences"}'} headers: content-length: ['124'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/user@example.com - response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"ca92ce92be7bc92827a5295f67ebc3bb29e32afe\"", "is_server_owner": false, - "password": "$6$rounds=649364$KharsE48ZBcvV9zK$XfVHGRyCv8s63ubcGM7YbN2nKPV9x9RULhWJXF8d0VxHgVKqTQL25tMe2o8ua9Wz5TI4v3Reg5dUbOYB0sh4m1", - "self_link": "http://localhost:9001/3.0/users/84", "user_id": 84}'} - 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/84/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag": - "\"075a1242d2fc0128cbe4dc6bc827a24c1a2bdbd7\"", "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/84", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"66ed8a5fe577da55fc26950e1370389410e08b86\"", "start": 0, "total_size": - 1}'} - headers: - content-length: ['426'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -218,7 +156,7 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -228,32 +166,32 @@ uri: http://localhost:9001/3.0/users/user@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"ca92ce92be7bc92827a5295f67ebc3bb29e32afe\"", "is_server_owner": false, - "password": "$6$rounds=649364$KharsE48ZBcvV9zK$XfVHGRyCv8s63ubcGM7YbN2nKPV9x9RULhWJXF8d0VxHgVKqTQL25tMe2o8ua9Wz5TI4v3Reg5dUbOYB0sh4m1", - "self_link": "http://localhost:9001/3.0/users/84", "user_id": 84}'} + "\"b6003f4ee23478173a1b7cbbef5c32491fe3f4fa\"", "is_server_owner": false, + "password": "$6$rounds=633642$Yy9p1g1SRhQo382X$g696SDmWTwWUeYC8zMFp1kXxmxdI9WnsSxDGmYYkww/ldG1R16.nybAQ6AbwRWIaPvbW7Ww1RlxZmt8eUec2W/", + "self_link": "http://localhost:9001/3.0/users/99", "user_id": 99}'} headers: content-length: ['326'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/84/addresses + uri: http://localhost:9001/3.0/users/99/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag": - "\"075a1242d2fc0128cbe4dc6bc827a24c1a2bdbd7\"", "original_email": "user@example.com", + "\"46ec17aed3b05ba990665417ba816024dc69b8ff\"", "original_email": "user@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user@example.com", - "user": "http://localhost:9001/3.0/users/84", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"66ed8a5fe577da55fc26950e1370389410e08b86\"", "start": 0, "total_size": + "user": "http://localhost:9001/3.0/users/99", "verified_on": "2005-08-01T07:49:23"}], + "http_etag": "\"08fa71d143e37789397e3cd03ede1318b82fc717\"", "start": 0, "total_size": 1}'} headers: content-length: ['426'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: subscriber=user%40example.com + body: !!python/unicode subscriber=user%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -261,27 +199,27 @@ 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": "\"c144b2b9918da23553a467ea1d14a6b220063d8e\"", - "list_id": "foo.example.com", "member_id": 83, "role": "member", "self_link": - "http://localhost:9001/3.0/members/83", "user": "http://localhost:9001/3.0/users/84"}], - "http_etag": "\"9219402bf2d74180c98ccdb01bbb998907e20679\"", "start": 0, "total_size": + "delivery_mode": "regular", "email": "user@example.com", "http_etag": "\"3a7bef9da0b3d5034868ecb5134417fc6a3d9621\"", + "list_id": "foo.example.com", "member_id": 103, "role": "member", "self_link": + "http://localhost:9001/3.0/members/103", "user": "http://localhost:9001/3.0/users/99"}], + "http_etag": "\"4153897415f9f2907ca9558bab57666c1ade364c\"", "start": 0, "total_size": 1}'} headers: - content-length: ['454'] - content-type: [application/json; charset=utf-8] + content-length: ['456'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/members/83/preferences + uri: http://localhost:9001/3.0/members/103/preferences response: - body: {string: !!python/unicode '{"http_etag": "\"28a816f6708b9171159ba311d850cd56759276bf\"", - "self_link": "http://localhost:9001/3.0/members/83/preferences"}'} + body: {string: !!python/unicode '{"http_etag": "\"e71b5b97ebc9fd9191e6ac6c437685b512624da3\"", + "self_link": "http://localhost:9001/3.0/members/103/preferences"}'} headers: - content-length: ['126'] - content-type: [application/json; charset=utf-8] + content-length: ['127'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -291,29 +229,29 @@ uri: http://localhost:9001/3.0/users/user@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"ca92ce92be7bc92827a5295f67ebc3bb29e32afe\"", "is_server_owner": false, - "password": "$6$rounds=649364$KharsE48ZBcvV9zK$XfVHGRyCv8s63ubcGM7YbN2nKPV9x9RULhWJXF8d0VxHgVKqTQL25tMe2o8ua9Wz5TI4v3Reg5dUbOYB0sh4m1", - "self_link": "http://localhost:9001/3.0/users/84", "user_id": 84}'} + "\"b6003f4ee23478173a1b7cbbef5c32491fe3f4fa\"", "is_server_owner": false, + "password": "$6$rounds=633642$Yy9p1g1SRhQo382X$g696SDmWTwWUeYC8zMFp1kXxmxdI9WnsSxDGmYYkww/ldG1R16.nybAQ6AbwRWIaPvbW7Ww1RlxZmt8eUec2W/", + "self_link": "http://localhost:9001/3.0/users/99", "user_id": 99}'} headers: content-length: ['326'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/84/addresses + uri: http://localhost:9001/3.0/users/99/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag": - "\"075a1242d2fc0128cbe4dc6bc827a24c1a2bdbd7\"", "original_email": "user@example.com", + "\"46ec17aed3b05ba990665417ba816024dc69b8ff\"", "original_email": "user@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user@example.com", - "user": "http://localhost:9001/3.0/users/84", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"66ed8a5fe577da55fc26950e1370389410e08b86\"", "start": 0, "total_size": + "user": "http://localhost:9001/3.0/users/99", "verified_on": "2005-08-01T07:49:23"}], + "http_etag": "\"08fa71d143e37789397e3cd03ede1318b82fc717\"", "start": 0, "total_size": 1}'} headers: content-length: ['426'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -323,61 +261,29 @@ uri: http://localhost:9001/3.0/users/user@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"ca92ce92be7bc92827a5295f67ebc3bb29e32afe\"", "is_server_owner": false, - "password": "$6$rounds=649364$KharsE48ZBcvV9zK$XfVHGRyCv8s63ubcGM7YbN2nKPV9x9RULhWJXF8d0VxHgVKqTQL25tMe2o8ua9Wz5TI4v3Reg5dUbOYB0sh4m1", - "self_link": "http://localhost:9001/3.0/users/84", "user_id": 84}'} + "\"b6003f4ee23478173a1b7cbbef5c32491fe3f4fa\"", "is_server_owner": false, + "password": "$6$rounds=633642$Yy9p1g1SRhQo382X$g696SDmWTwWUeYC8zMFp1kXxmxdI9WnsSxDGmYYkww/ldG1R16.nybAQ6AbwRWIaPvbW7Ww1RlxZmt8eUec2W/", + "self_link": "http://localhost:9001/3.0/users/99", "user_id": 99}'} headers: content-length: ['326'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/84/addresses + uri: http://localhost:9001/3.0/users/99/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag": - "\"075a1242d2fc0128cbe4dc6bc827a24c1a2bdbd7\"", "original_email": "user@example.com", + "\"46ec17aed3b05ba990665417ba816024dc69b8ff\"", "original_email": "user@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user@example.com", - "user": "http://localhost:9001/3.0/users/84", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"66ed8a5fe577da55fc26950e1370389410e08b86\"", "start": 0, "total_size": + "user": "http://localhost:9001/3.0/users/99", "verified_on": "2005-08-01T07:49:23"}], + "http_etag": "\"08fa71d143e37789397e3cd03ede1318b82fc717\"", "start": 0, "total_size": 1}'} headers: content-length: ['426'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/user@example.com - response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"ca92ce92be7bc92827a5295f67ebc3bb29e32afe\"", "is_server_owner": false, - "password": "$6$rounds=649364$KharsE48ZBcvV9zK$XfVHGRyCv8s63ubcGM7YbN2nKPV9x9RULhWJXF8d0VxHgVKqTQL25tMe2o8ua9Wz5TI4v3Reg5dUbOYB0sh4m1", - "self_link": "http://localhost:9001/3.0/users/84", "user_id": 84}'} - 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/84/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag": - "\"075a1242d2fc0128cbe4dc6bc827a24c1a2bdbd7\"", "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/84", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"66ed8a5fe577da55fc26950e1370389410e08b86\"", "start": 0, "total_size": - 1}'} - headers: - content-length: ['426'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -390,7 +296,7 @@ "self_link": "http://localhost:9001/3.0/addresses/user@example.com/preferences"}'} headers: content-length: ['142'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -400,81 +306,49 @@ uri: http://localhost:9001/3.0/users/user@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"ca92ce92be7bc92827a5295f67ebc3bb29e32afe\"", "is_server_owner": false, - "password": "$6$rounds=649364$KharsE48ZBcvV9zK$XfVHGRyCv8s63ubcGM7YbN2nKPV9x9RULhWJXF8d0VxHgVKqTQL25tMe2o8ua9Wz5TI4v3Reg5dUbOYB0sh4m1", - "self_link": "http://localhost:9001/3.0/users/84", "user_id": 84}'} + "\"b6003f4ee23478173a1b7cbbef5c32491fe3f4fa\"", "is_server_owner": false, + "password": "$6$rounds=633642$Yy9p1g1SRhQo382X$g696SDmWTwWUeYC8zMFp1kXxmxdI9WnsSxDGmYYkww/ldG1R16.nybAQ6AbwRWIaPvbW7Ww1RlxZmt8eUec2W/", + "self_link": "http://localhost:9001/3.0/users/99", "user_id": 99}'} headers: content-length: ['326'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/84/addresses + uri: http://localhost:9001/3.0/users/99/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag": - "\"075a1242d2fc0128cbe4dc6bc827a24c1a2bdbd7\"", "original_email": "user@example.com", + "\"46ec17aed3b05ba990665417ba816024dc69b8ff\"", "original_email": "user@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user@example.com", - "user": "http://localhost:9001/3.0/users/84", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"66ed8a5fe577da55fc26950e1370389410e08b86\"", "start": 0, "total_size": + "user": "http://localhost:9001/3.0/users/99", "verified_on": "2005-08-01T07:49:23"}], + "http_etag": "\"08fa71d143e37789397e3cd03ede1318b82fc717\"", "start": 0, "total_size": 1}'} headers: content-length: ['426'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-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": - "\"ca92ce92be7bc92827a5295f67ebc3bb29e32afe\"", "is_server_owner": false, - "password": "$6$rounds=649364$KharsE48ZBcvV9zK$XfVHGRyCv8s63ubcGM7YbN2nKPV9x9RULhWJXF8d0VxHgVKqTQL25tMe2o8ua9Wz5TI4v3Reg5dUbOYB0sh4m1", - "self_link": "http://localhost:9001/3.0/users/84", "user_id": 84}'} - 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/84/addresses + uri: http://localhost:9001/3.0/users/99/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag": - "\"075a1242d2fc0128cbe4dc6bc827a24c1a2bdbd7\"", "original_email": "user@example.com", + "\"46ec17aed3b05ba990665417ba816024dc69b8ff\"", "original_email": "user@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user@example.com", - "user": "http://localhost:9001/3.0/users/84", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"66ed8a5fe577da55fc26950e1370389410e08b86\"", "start": 0, "total_size": + "user": "http://localhost:9001/3.0/users/99", "verified_on": "2005-08-01T07:49:23"}], + "http_etag": "\"08fa71d143e37789397e3cd03ede1318b82fc717\"", "start": 0, "total_size": 1}'} headers: content-length: ['426'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/84/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag": - "\"075a1242d2fc0128cbe4dc6bc827a24c1a2bdbd7\"", "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/84", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"66ed8a5fe577da55fc26950e1370389410e08b86\"", "start": 0, "total_size": - 1}'} - headers: - content-length: ['426'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: subscriber=user%40example.com + body: !!python/unicode subscriber=user%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -482,27 +356,27 @@ 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": "\"c144b2b9918da23553a467ea1d14a6b220063d8e\"", - "list_id": "foo.example.com", "member_id": 83, "role": "member", "self_link": - "http://localhost:9001/3.0/members/83", "user": "http://localhost:9001/3.0/users/84"}], - "http_etag": "\"9219402bf2d74180c98ccdb01bbb998907e20679\"", "start": 0, "total_size": + "delivery_mode": "regular", "email": "user@example.com", "http_etag": "\"3a7bef9da0b3d5034868ecb5134417fc6a3d9621\"", + "list_id": "foo.example.com", "member_id": 103, "role": "member", "self_link": + "http://localhost:9001/3.0/members/103", "user": "http://localhost:9001/3.0/users/99"}], + "http_etag": "\"4153897415f9f2907ca9558bab57666c1ade364c\"", "start": 0, "total_size": 1}'} headers: - content-length: ['454'] - content-type: [application/json; charset=utf-8] + content-length: ['456'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/members/83/preferences + uri: http://localhost:9001/3.0/members/103/preferences response: - body: {string: !!python/unicode '{"http_etag": "\"28a816f6708b9171159ba311d850cd56759276bf\"", - "self_link": "http://localhost:9001/3.0/members/83/preferences"}'} + body: {string: !!python/unicode '{"http_etag": "\"e71b5b97ebc9fd9191e6ac6c437685b512624da3\"", + "self_link": "http://localhost:9001/3.0/members/103/preferences"}'} headers: - content-length: ['126'] - content-type: [application/json; charset=utf-8] + content-length: ['127'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -511,14 +385,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -539,21 +413,21 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"ca92ce92be7bc92827a5295f67ebc3bb29e32afe\"", "is_server_owner": - false, "password": "$6$rounds=649364$KharsE48ZBcvV9zK$XfVHGRyCv8s63ubcGM7YbN2nKPV9x9RULhWJXF8d0VxHgVKqTQL25tMe2o8ua9Wz5TI4v3Reg5dUbOYB0sh4m1", - "self_link": "http://localhost:9001/3.0/users/84", "user_id": 84}], "http_etag": - "\"bb3168845ec64ad1ce77f73a695b46daaed6bffd\"", "start": 0, "total_size": + "http_etag": "\"b6003f4ee23478173a1b7cbbef5c32491fe3f4fa\"", "is_server_owner": + false, "password": "$6$rounds=633642$Yy9p1g1SRhQo382X$g696SDmWTwWUeYC8zMFp1kXxmxdI9WnsSxDGmYYkww/ldG1R16.nybAQ6AbwRWIaPvbW7Ww1RlxZmt8eUec2W/", + "self_link": "http://localhost:9001/3.0/users/99", "user_id": 99}], "http_etag": + "\"ea79905ff69e944c84b4595689bf173dca483a5a\"", "start": 0, "total_size": 1}'} headers: content-length: ['431'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/84 + uri: http://localhost:9001/3.0/users/99 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_presence_of_form_in_user_global_settings.yaml b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_presence_of_form_in_user_global_settings.yaml index 86259f7..a7a374b 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_presence_of_form_in_user_global_settings.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_presence_of_form_in_user_global_settings.yaml @@ -1,169 +1,139 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: - body: email=user%40example.com + body: !!python/unicode email=user%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/2621'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/users/100'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users/user@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"b7a850acd310d62e9e603a618f30b1e40f256606\"", "is_server_owner": false, - "password": "$6$rounds=681028$XHeL.4KvaJFxIFJU$xEXFeosUxSAwyHUqIoXmShKEhMuhucO5ZivjtMO.ZdqjWjYtaTtCzCkf0xW5MIJ38INR.gmszsfKtvYQjGW1c.", - "self_link": "http://localhost:9001/3.0/users/2621", "user_id": 2621}'} + "\"9f78940a1dea2e291a285ae50049f814cf40ed9f\"", "is_server_owner": false, + "password": "$6$rounds=612378$2bZSiSXMOJx1ctiH$2okQaQ4xnyD7NSn4afKhGqM5ufZhoogPnFLRQsSxxeHJniEGgGm9bymPp3CFHqy1QNJPo62pgc3YHuNkUB5w21", + "self_link": "http://localhost:9001/3.0/users/100", "user_id": 100}'} headers: - content-length: ['330'] - content-type: [application/json; charset=utf-8] + content-length: ['328'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/2621/addresses + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/100/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag": - "\"947d8347885b3d4a30b1d7e550aa0de8b58c4fbd\"", "original_email": "user@example.com", + "\"f13ceac639ac96d0e9f54501e07eb93ab2f48181\"", "original_email": "user@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user@example.com", - "user": "http://localhost:9001/3.0/users/2621"}], "http_etag": "\"ea201a77c0b60223ff4e3fa9fa45df3281a4cf75\"", + "user": "http://localhost:9001/3.0/users/100"}], "http_etag": "\"c028a6fe3b7c96610d38a3578a399ba2929e3625\"", "start": 0, "total_size": 1}'} headers: - content-length: ['390'] - content-type: [application/json; charset=utf-8] + content-length: ['389'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users/user@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"b7a850acd310d62e9e603a618f30b1e40f256606\"", "is_server_owner": false, - "password": "$6$rounds=681028$XHeL.4KvaJFxIFJU$xEXFeosUxSAwyHUqIoXmShKEhMuhucO5ZivjtMO.ZdqjWjYtaTtCzCkf0xW5MIJ38INR.gmszsfKtvYQjGW1c.", - "self_link": "http://localhost:9001/3.0/users/2621", "user_id": 2621}'} + "\"9f78940a1dea2e291a285ae50049f814cf40ed9f\"", "is_server_owner": false, + "password": "$6$rounds=612378$2bZSiSXMOJx1ctiH$2okQaQ4xnyD7NSn4afKhGqM5ufZhoogPnFLRQsSxxeHJniEGgGm9bymPp3CFHqy1QNJPo62pgc3YHuNkUB5w21", + "self_link": "http://localhost:9001/3.0/users/100", "user_id": 100}'} headers: - content-length: ['330'] - content-type: [application/json; charset=utf-8] + content-length: ['328'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/2621/addresses + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/100/preferences response: - body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag": - "\"947d8347885b3d4a30b1d7e550aa0de8b58c4fbd\"", "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/2621"}], "http_etag": "\"ea201a77c0b60223ff4e3fa9fa45df3281a4cf75\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"http_etag": "\"ecbc0ceb3e77f161c66493500183068369630cd3\"", + "self_link": "http://localhost:9001/3.0/users/100/preferences"}'} headers: - content-length: ['390'] - content-type: [application/json; charset=utf-8] + content-length: ['125'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/user@example.com - response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"b7a850acd310d62e9e603a618f30b1e40f256606\"", "is_server_owner": false, - "password": "$6$rounds=681028$XHeL.4KvaJFxIFJU$xEXFeosUxSAwyHUqIoXmShKEhMuhucO5ZivjtMO.ZdqjWjYtaTtCzCkf0xW5MIJ38INR.gmszsfKtvYQjGW1c.", - "self_link": "http://localhost:9001/3.0/users/2621", "user_id": 2621}'} - headers: - content-length: ['330'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/2621/preferences - response: - body: {string: !!python/unicode '{"http_etag": "\"2db584a9a1c66e633ca0c11c813f1a72a26999cb\"", - "self_link": "http://localhost:9001/3.0/users/2621/preferences"}'} - headers: - content-length: ['126'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode ''} @@ -174,25 +144,25 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"b7a850acd310d62e9e603a618f30b1e40f256606\"", "is_server_owner": - false, "password": "$6$rounds=681028$XHeL.4KvaJFxIFJU$xEXFeosUxSAwyHUqIoXmShKEhMuhucO5ZivjtMO.ZdqjWjYtaTtCzCkf0xW5MIJ38INR.gmszsfKtvYQjGW1c.", - "self_link": "http://localhost:9001/3.0/users/2621", "user_id": 2621}], "http_etag": - "\"6697ff9065ffa70c4cee3d57515adcd5604dcf42\"", "start": 0, "total_size": + "http_etag": "\"9f78940a1dea2e291a285ae50049f814cf40ed9f\"", "is_server_owner": + false, "password": "$6$rounds=612378$2bZSiSXMOJx1ctiH$2okQaQ4xnyD7NSn4afKhGqM5ufZhoogPnFLRQsSxxeHJniEGgGm9bymPp3CFHqy1QNJPo62pgc3YHuNkUB5w21", + "self_link": "http://localhost:9001/3.0/users/100", "user_id": 100}], "http_etag": + "\"54b5f0bf9e8cbf1caa56e2d3d8d0c638f3364e73\"", "start": 0, "total_size": 1}'} headers: - content-length: ['435'] - content-type: [application/json; charset=utf-8] + content-length: ['433'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/2621 + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/100 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_presence_of_form_in_user_list_options.yaml b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_presence_of_form_in_user_list_options.yaml index cb573fd..6d2a15c 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_presence_of_form_in_user_list_options.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_presence_of_form_in_user_list_options.yaml @@ -1,63 +1,64 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: - body: email=user%40example.com + body: !!python/unicode email=user%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/2622'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/users/101'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -66,58 +67,27 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=user%40example.com + body: !!python/unicode display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=user%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/4597'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/members/104'] status: {code: 201, message: Created} - 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": - "\"ad800a1b557c942a74002421352ad637ef54361d\"", "is_server_owner": false, - "password": "$6$rounds=668522$Zz437QzE97T.VyQt$2uk3VYKY.4pMLNS1JhszPNREjjBMLU8kPbjsQkabxEdpXsMx430oO4gffBs2jTCnjrK4UmeHkWGJqyomXyR3e0", - "self_link": "http://localhost:9001/3.0/users/2622", "user_id": 2622}'} - headers: - content-length: ['330'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/2622/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag": - "\"aae2dc671b053efd6f2a35396be2e1d0b6cf5a49\"", "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/2622", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"a7855ef58c95002a41df1bebfd6e00938f31add5\"", "start": 0, "total_size": - 1}'} - headers: - content-length: ['428'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -126,92 +96,92 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users/user@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"ad800a1b557c942a74002421352ad637ef54361d\"", "is_server_owner": false, - "password": "$6$rounds=668522$Zz437QzE97T.VyQt$2uk3VYKY.4pMLNS1JhszPNREjjBMLU8kPbjsQkabxEdpXsMx430oO4gffBs2jTCnjrK4UmeHkWGJqyomXyR3e0", - "self_link": "http://localhost:9001/3.0/users/2622", "user_id": 2622}'} + "\"17a8782a3371f5ca8d05535a0805b1f5a703c4b4\"", "is_server_owner": false, + "password": "$6$rounds=631490$qW0YaTebsoVWlG17$VteE/7C0xOsumyDdcfKouUWXpHSPl5umnoX5E8Ymh.ZvGAAzphCmMinokARwVQZdmLvnEk2sAvJfBt7cNNw2V/", + "self_link": "http://localhost:9001/3.0/users/101", "user_id": 101}'} headers: - content-length: ['330'] - content-type: [application/json; charset=utf-8] + content-length: ['328'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/2622/addresses + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/101/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag": - "\"aae2dc671b053efd6f2a35396be2e1d0b6cf5a49\"", "original_email": "user@example.com", + "\"80744bb322341d024e3f90ed6683f4d67bc0b2c8\"", "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/2622", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"a7855ef58c95002a41df1bebfd6e00938f31add5\"", "start": 0, "total_size": + "user": "http://localhost:9001/3.0/users/101", "verified_on": "2005-08-01T07:49:23"}], + "http_etag": "\"eda06689e990b251ca616dc67570bda6d81795d0\"", "start": 0, "total_size": 1}'} headers: - content-length: ['428'] - content-type: [application/json; charset=utf-8] + content-length: ['427'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: subscriber=user%40example.com + body: !!python/unicode subscriber=user%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/members/find response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/user@example.com", - "delivery_mode": "regular", "email": "user@example.com", "http_etag": "\"e851b50bc753c29b8dc7c780b9ddf936fd8d691d\"", - "list_id": "foo.example.com", "member_id": 4597, "moderation_action": "defer", - "role": "member", "self_link": "http://localhost:9001/3.0/members/4597", "user": - "http://localhost:9001/3.0/users/2622"}], "http_etag": "\"0af9a069478e96700f8edf174e01eeb73ce00f78\"", - "start": 0, "total_size": 1}'} + "delivery_mode": "regular", "email": "user@example.com", "http_etag": "\"0c3f849fb7ab3bd1e4d60e3684c2313ed04efdb3\"", + "list_id": "foo.example.com", "member_id": 104, "role": "member", "self_link": + "http://localhost:9001/3.0/members/104", "user": "http://localhost:9001/3.0/users/101"}], + "http_etag": "\"9fbe568567e2bbfb446941379ff3bb5688dbe7a8\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['490'] - content-type: [application/json; charset=utf-8] + content-length: ['457'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/members/4597/preferences + method: !!python/unicode GET + uri: http://localhost:9001/3.0/members/104/preferences response: - body: {string: !!python/unicode '{"http_etag": "\"fa5eef4cab3cebc46090e039de496e19eb825609\"", - "self_link": "http://localhost:9001/3.0/members/4597/preferences"}'} + body: {string: !!python/unicode '{"http_etag": "\"158065bcee112f4e3b301ee917aeefdd4e53bafe\"", + "self_link": "http://localhost:9001/3.0/members/104/preferences"}'} headers: - content-length: ['128'] - content-type: [application/json; charset=utf-8] + content-length: ['127'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode ''} @@ -222,25 +192,25 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"ad800a1b557c942a74002421352ad637ef54361d\"", "is_server_owner": - false, "password": "$6$rounds=668522$Zz437QzE97T.VyQt$2uk3VYKY.4pMLNS1JhszPNREjjBMLU8kPbjsQkabxEdpXsMx430oO4gffBs2jTCnjrK4UmeHkWGJqyomXyR3e0", - "self_link": "http://localhost:9001/3.0/users/2622", "user_id": 2622}], "http_etag": - "\"ba378435678523b8994e039fb8204ebd930d7851\"", "start": 0, "total_size": + "http_etag": "\"17a8782a3371f5ca8d05535a0805b1f5a703c4b4\"", "is_server_owner": + false, "password": "$6$rounds=631490$qW0YaTebsoVWlG17$VteE/7C0xOsumyDdcfKouUWXpHSPl5umnoX5E8Ymh.ZvGAAzphCmMinokARwVQZdmLvnEk2sAvJfBt7cNNw2V/", + "self_link": "http://localhost:9001/3.0/users/101", "user_id": 101}], "http_etag": + "\"802591088f81215eb00b1e7b4f5e41b0bff53e4b\"", "start": 0, "total_size": 1}'} headers: - content-length: ['435'] - content-type: [application/json; charset=utf-8] + content-length: ['433'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/2622 + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/101 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_presence_of_form_in_user_subscription_preferences.yaml b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_presence_of_form_in_user_subscription_preferences.yaml index d14f254..c60f7e7 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_presence_of_form_in_user_subscription_preferences.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_presence_of_form_in_user_subscription_preferences.yaml @@ -1,63 +1,64 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: - body: email=user%40example.com + body: !!python/unicode email=user%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/2623'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/users/102'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", @@ -66,154 +67,123 @@ "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=user%40example.com + body: !!python/unicode display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=user%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/4598'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/members/105'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users/user@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"4fa1bb835cc391709a2d6676a4e58cfad0c544f3\"", "is_server_owner": false, - "password": "$6$rounds=603749$AeC1fWkD.7I/S1eD$EyYSUN6bka5vVksWqsYekgIe6K36ZTxv9sWzS8zEU.vEsP0/XKlChd5dtyu8TKMdU9.BwzJfOiJwCa03WvE6p.", - "self_link": "http://localhost:9001/3.0/users/2623", "user_id": 2623}'} + "\"eac9ad84ec398aed5a938c74217f76329fe5d207\"", "is_server_owner": false, + "password": "$6$rounds=651974$LeZofjcuGWZxG7Ek$wnOaq2ALp44fKBn3uesD5PmN8sCMJMliT7k.OUastciklY2MVg720f83o6P9q5TCsD4ETC08q7ZL3QnvIG5Ds1", + "self_link": "http://localhost:9001/3.0/users/102", "user_id": 102}'} headers: - content-length: ['330'] - content-type: [application/json; charset=utf-8] + content-length: ['328'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/2623/addresses + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/102/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag": - "\"e89a8e796d0dd2a63a852851fba793d4651f5b65\"", "original_email": "user@example.com", + "\"41e8d26028197c410227304098ddc86d60bfd7ff\"", "original_email": "user@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user@example.com", - "user": "http://localhost:9001/3.0/users/2623", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"f3d1f02cccdb607395371f187704957e6a069da7\"", "start": 0, "total_size": + "user": "http://localhost:9001/3.0/users/102", "verified_on": "2005-08-01T07:49:23"}], + "http_etag": "\"728030aeafc5603ed9a17f33d7d9e9b03d7718a6\"", "start": 0, "total_size": 1}'} headers: - content-length: ['428'] - content-type: [application/json; charset=utf-8] + content-length: ['427'] + content-type: [application/json; charset=UTF-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": - "\"4fa1bb835cc391709a2d6676a4e58cfad0c544f3\"", "is_server_owner": false, - "password": "$6$rounds=603749$AeC1fWkD.7I/S1eD$EyYSUN6bka5vVksWqsYekgIe6K36ZTxv9sWzS8zEU.vEsP0/XKlChd5dtyu8TKMdU9.BwzJfOiJwCa03WvE6p.", - "self_link": "http://localhost:9001/3.0/users/2623", "user_id": 2623}'} - headers: - content-length: ['330'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/2623/addresses + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/102/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag": - "\"e89a8e796d0dd2a63a852851fba793d4651f5b65\"", "original_email": "user@example.com", + "\"41e8d26028197c410227304098ddc86d60bfd7ff\"", "original_email": "user@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user@example.com", - "user": "http://localhost:9001/3.0/users/2623", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"f3d1f02cccdb607395371f187704957e6a069da7\"", "start": 0, "total_size": + "user": "http://localhost:9001/3.0/users/102", "verified_on": "2005-08-01T07:49:23"}], + "http_etag": "\"728030aeafc5603ed9a17f33d7d9e9b03d7718a6\"", "start": 0, "total_size": 1}'} headers: - content-length: ['428'] - content-type: [application/json; charset=utf-8] + content-length: ['427'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: null + body: !!python/unicode subscriber=user%40example.com headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/2623/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag": - "\"e89a8e796d0dd2a63a852851fba793d4651f5b65\"", "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/2623", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"f3d1f02cccdb607395371f187704957e6a069da7\"", "start": 0, "total_size": - 1}'} - headers: - content-length: ['428'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: subscriber=user%40example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/members/find response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/user@example.com", - "delivery_mode": "regular", "email": "user@example.com", "http_etag": "\"3efe9fa8c8ee80b12ab24eddc909b5ded4388872\"", - "list_id": "foo.example.com", "member_id": 4598, "moderation_action": "defer", - "role": "member", "self_link": "http://localhost:9001/3.0/members/4598", "user": - "http://localhost:9001/3.0/users/2623"}], "http_etag": "\"aa52ba493ad14089169d4feb6a04dfbaaf7a2579\"", - "start": 0, "total_size": 1}'} + "delivery_mode": "regular", "email": "user@example.com", "http_etag": "\"168dc3350583ef3fa9f872a8455a959c8f665c06\"", + "list_id": "foo.example.com", "member_id": 105, "role": "member", "self_link": + "http://localhost:9001/3.0/members/105", "user": "http://localhost:9001/3.0/users/102"}], + "http_etag": "\"ca04144c59b86b772861b1a0f9f6500607b395a0\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['490'] - content-type: [application/json; charset=utf-8] + content-length: ['457'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/members/4598/preferences + method: !!python/unicode GET + uri: http://localhost:9001/3.0/members/105/preferences response: - body: {string: !!python/unicode '{"http_etag": "\"77bd926020df755765714a2e5812c6ddeadb8ed4\"", - "self_link": "http://localhost:9001/3.0/members/4598/preferences"}'} + body: {string: !!python/unicode '{"http_etag": "\"a2e46575442f05223ba44a9a24ac4982e4587123\"", + "self_link": "http://localhost:9001/3.0/members/105/preferences"}'} headers: - content-length: ['128'] - content-type: [application/json; charset=utf-8] + content-length: ['127'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode ''} @@ -224,25 +194,25 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"4fa1bb835cc391709a2d6676a4e58cfad0c544f3\"", "is_server_owner": - false, "password": "$6$rounds=603749$AeC1fWkD.7I/S1eD$EyYSUN6bka5vVksWqsYekgIe6K36ZTxv9sWzS8zEU.vEsP0/XKlChd5dtyu8TKMdU9.BwzJfOiJwCa03WvE6p.", - "self_link": "http://localhost:9001/3.0/users/2623", "user_id": 2623}], "http_etag": - "\"365468462e937cd4cb449747fc48fbf878c1cd91\"", "start": 0, "total_size": + "http_etag": "\"eac9ad84ec398aed5a938c74217f76329fe5d207\"", "is_server_owner": + false, "password": "$6$rounds=651974$LeZofjcuGWZxG7Ek$wnOaq2ALp44fKBn3uesD5PmN8sCMJMliT7k.OUastciklY2MVg720f83o6P9q5TCsD4ETC08q7ZL3QnvIG5Ds1", + "self_link": "http://localhost:9001/3.0/users/102", "user_id": 102}], "http_etag": + "\"23604176c64defcc105d01716ee0ebbd6aa715de\"", "start": 0, "total_size": 1}'} headers: - content-length: ['435'] - content-type: [application/json; charset=utf-8] + content-length: ['433'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/2623 + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/102 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_subscriptions_logged_in.yaml b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_subscriptions_logged_in.yaml index 3254b54..466c4ab 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_subscriptions_logged_in.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_subscriptions_logged_in.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,10 +37,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: - body: email=user%40example.com + body: !!python/unicode email=user%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -51,7 +51,8 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/85'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/users/103'] status: {code: 201, message: Created} - request: body: null @@ -61,62 +62,31 @@ uri: http://localhost:9001/3.0/users/user@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"f24ebef895bea0c55d1683e193510ef846ad3ab0\"", "is_server_owner": false, - "password": "$6$rounds=717704$ALeVemCJMbsHZRDE$oJEZ9jozfSrbwaReLLJ/5LjZcSo.PZawYGu5w6bz1ZABuWJ68OhoIokMaShg1BjHVB8pSN1Vm2d0NZ84mu5Z4/", - "self_link": "http://localhost:9001/3.0/users/85", "user_id": 85}'} + "\"e64ca97befec07fe2b856e19547f76ade39cd262\"", "is_server_owner": false, + "password": "$6$rounds=661463$82OZ14ws4CZ4CzJg$nrLUQIg4qeEQhroyrSQMmC6vlhKFtw0A8I4lMgNkQKbwduLng.bj24BPH.eSZJcfvXe2gVdLrksd2yQY1Pbwj1", + "self_link": "http://localhost:9001/3.0/users/103", "user_id": 103}'} headers: - content-length: ['326'] - content-type: [application/json; charset=utf-8] + content-length: ['328'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/85/addresses + uri: http://localhost:9001/3.0/users/103/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag": - "\"db6ff297de3068bd870396233ac52209a2094046\"", "original_email": "user@example.com", + "\"19f2a14d6ee1bab52d3c19a5f4f7b6e684f0a361\"", "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/85"}], "http_etag": "\"0c3730304a8ec8a30231839a73ddf332278e5512\"", + "user": "http://localhost:9001/3.0/users/103"}], "http_etag": "\"1b46e2fd8a2a90374c55f02b7e3546c2460bc864\"", "start": 0, "total_size": 1}'} headers: - content-length: ['388'] - content-type: [application/json; charset=utf-8] + content-length: ['389'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/user@example.com - response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"f24ebef895bea0c55d1683e193510ef846ad3ab0\"", "is_server_owner": false, - "password": "$6$rounds=717704$ALeVemCJMbsHZRDE$oJEZ9jozfSrbwaReLLJ/5LjZcSo.PZawYGu5w6bz1ZABuWJ68OhoIokMaShg1BjHVB8pSN1Vm2d0NZ84mu5Z4/", - "self_link": "http://localhost:9001/3.0/users/85", "user_id": 85}'} - 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/85/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "user@example.com", "http_etag": - "\"db6ff297de3068bd870396233ac52209a2094046\"", "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/85"}], "http_etag": "\"0c3730304a8ec8a30231839a73ddf332278e5512\"", - "start": 0, "total_size": 1}'} - headers: - content-length: ['388'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: subscriber=user%40example.com + body: !!python/unicode subscriber=user%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -127,7 +97,7 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -136,14 +106,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -164,21 +134,21 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"f24ebef895bea0c55d1683e193510ef846ad3ab0\"", "is_server_owner": - false, "password": "$6$rounds=717704$ALeVemCJMbsHZRDE$oJEZ9jozfSrbwaReLLJ/5LjZcSo.PZawYGu5w6bz1ZABuWJ68OhoIokMaShg1BjHVB8pSN1Vm2d0NZ84mu5Z4/", - "self_link": "http://localhost:9001/3.0/users/85", "user_id": 85}], "http_etag": - "\"15140a9c3d4feec5fcddb8053f8527db829da5b6\"", "start": 0, "total_size": + "http_etag": "\"e64ca97befec07fe2b856e19547f76ade39cd262\"", "is_server_owner": + false, "password": "$6$rounds=661463$82OZ14ws4CZ4CzJg$nrLUQIg4qeEQhroyrSQMmC6vlhKFtw0A8I4lMgNkQKbwduLng.bj24BPH.eSZJcfvXe2gVdLrksd2yQY1Pbwj1", + "self_link": "http://localhost:9001/3.0/users/103", "user_id": 103}], "http_etag": + "\"73cd46e487558c07672bdf7585e8b51f4674122d\"", "start": 0, "total_size": 1}'} headers: - content-length: ['431'] - content-type: [application/json; charset=utf-8] + content-length: ['433'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/85 + uri: http://localhost:9001/3.0/users/103 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_subscriptions_no_mailman_user.yaml b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_subscriptions_no_mailman_user.yaml index b1de4f9..76e319a 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 @@ -52,7 +52,7 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/users/1'] + location: ['http://localhost:9001/3.0/users/104'] status: {code: 201, message: Created} - request: body: null @@ -90,21 +90,21 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/users/2'] + location: ['http://localhost:9001/3.0/users/105'] status: {code: 201, message: Created} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/2 + uri: http://localhost:9001/3.0/users/105 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"f61cc9dfd919cfd3565a452bca39cd14bb57c176\"", "is_server_owner": false, - "password": "$6$rounds=718440$LfoJKlDoTCMT7NCY$iZLbNaLbZ4BtnedaF/KZUVYf7m5ksP7t41fwGG2o/E87v69uZwFsi2iGoF3hmT41vthJPcYWaU5GMvGz1kPVa.", - "self_link": "http://localhost:9001/3.0/users/2", "user_id": 2}'} + "\"ba9015e39fb40ba7c6caeca2f6d76de0816249ba\"", "is_server_owner": false, + "password": "$6$rounds=592929$ifOfeowdHJs9/q6I$BA9KsEMZ9Dbeg0OxG9l5A4tqQa5us8soMtIiHhqLaRkM4KkNE4kztaArknPgj1YlRDVbzhYRrKaQDGN62FESq/", + "self_link": "http://localhost:9001/3.0/users/105", "user_id": 105}'} headers: - content-length: ['324'] + content-length: ['328'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -112,16 +112,16 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/2/addresses + uri: http://localhost:9001/3.0/users/105/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "old-user@example.com", - "http_etag": "\"c0525c55f8389234b6835f13e2da185819e94507\"", "original_email": + "http_etag": "\"7563dbce29899762c1d3b1946bfcd5881d968b9f\"", "original_email": "old-user@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": - "http://localhost:9001/3.0/addresses/old-user@example.com", "user": "http://localhost:9001/3.0/users/2"}], - "http_etag": "\"11b8bff1cda2496f3a21cf476da2766fb6fae519\"", "start": 0, "total_size": + "http://localhost:9001/3.0/addresses/old-user@example.com", "user": "http://localhost:9001/3.0/users/105"}], + "http_etag": "\"4b1c3318a13ff5a859902c1c6a8c5f474ed6c00e\"", "start": 0, "total_size": 1}'} headers: - content-length: ['399'] + content-length: ['401'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -146,11 +146,11 @@ 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": - "\"f61cc9dfd919cfd3565a452bca39cd14bb57c176\"", "is_server_owner": false, - "password": "$6$rounds=718440$LfoJKlDoTCMT7NCY$iZLbNaLbZ4BtnedaF/KZUVYf7m5ksP7t41fwGG2o/E87v69uZwFsi2iGoF3hmT41vthJPcYWaU5GMvGz1kPVa.", - "self_link": "http://localhost:9001/3.0/users/2", "user_id": 2}'} + "\"ba9015e39fb40ba7c6caeca2f6d76de0816249ba\"", "is_server_owner": false, + "password": "$6$rounds=592929$ifOfeowdHJs9/q6I$BA9KsEMZ9Dbeg0OxG9l5A4tqQa5us8soMtIiHhqLaRkM4KkNE4kztaArknPgj1YlRDVbzhYRrKaQDGN62FESq/", + "self_link": "http://localhost:9001/3.0/users/105", "user_id": 105}'} headers: - content-length: ['324'] + content-length: ['328'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -188,16 +188,16 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"dafb4826927de5bd8d74899d962ce92205173ad7\"", "is_server_owner": - false, "password": "$6$rounds=651684$5wA50TkNb9PhyTzT$vgoBUK/cRvWn7CAXtFCNvzcshLNaTFZn8Db6udmVg3N8TqwtIRm7yXMOqdejAU/nhAtj.QSVJfrT6fVeNqa1k0", - "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}, {"created_on": - "2005-08-01T07:49:23", "http_etag": "\"f61cc9dfd919cfd3565a452bca39cd14bb57c176\"", - "is_server_owner": false, "password": "$6$rounds=718440$LfoJKlDoTCMT7NCY$iZLbNaLbZ4BtnedaF/KZUVYf7m5ksP7t41fwGG2o/E87v69uZwFsi2iGoF3hmT41vthJPcYWaU5GMvGz1kPVa.", - "self_link": "http://localhost:9001/3.0/users/2", "user_id": 2}], "http_etag": - "\"b276accfe83aff87be27b4f7169c7447961a08a8\"", "start": 0, "total_size": + "http_etag": "\"af585fe4f39f61813a348fb26ae2c5a7d6e49733\"", "is_server_owner": + false, "password": "$6$rounds=601361$L9uKAuK27BArmQ9D$YXv.wx0ktDf.ieEB.3xmizezFjMDCcyIygyOt/hi3K8tJy6AtvpYJPMHM9XPGgU8hnAGqaxJ072rcsx4mITiR0", + "self_link": "http://localhost:9001/3.0/users/104", "user_id": 104}, {"created_on": + "2005-08-01T07:49:23", "http_etag": "\"ba9015e39fb40ba7c6caeca2f6d76de0816249ba\"", + "is_server_owner": false, "password": "$6$rounds=592929$ifOfeowdHJs9/q6I$BA9KsEMZ9Dbeg0OxG9l5A4tqQa5us8soMtIiHhqLaRkM4KkNE4kztaArknPgj1YlRDVbzhYRrKaQDGN62FESq/", + "self_link": "http://localhost:9001/3.0/users/105", "user_id": 105}], "http_etag": + "\"ebfb159e7146dad89059e68f383a7e49a68c72bd\"", "start": 0, "total_size": 2}'} headers: - content-length: ['755'] + content-length: ['763'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -205,7 +205,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/104 response: body: {string: !!python/unicode ''} headers: @@ -216,7 +216,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/2 + uri: http://localhost:9001/3.0/users/105 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_subscriptions_not_logged_in.yaml b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_subscriptions_not_logged_in.yaml index 0d198e7..d9b238b 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_subscriptions_not_logged_in.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_subscriptions_not_logged_in.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,10 +37,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: - body: email=user%40example.com + body: !!python/unicode email=user%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -51,7 +51,8 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/88'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/users/106'] status: {code: 201, message: Created} - request: body: null @@ -60,14 +61,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -88,21 +89,21 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"7f234b398a2dfa81588572dcf8fc829a626f4951\"", "is_server_owner": - false, "password": "$6$rounds=648420$Ce6dYLRktslAr6Hl$mZ5AsqEllc2qeFyZhYR.BD5nXpUCuaIFpVn8Ok/LM9h/WdjdciKFRvHfhIx9ANM2d5ZX24rU1bFVeVgXoCLii/", - "self_link": "http://localhost:9001/3.0/users/88", "user_id": 88}], "http_etag": - "\"aca9ecb8fc5a712c72730b3e987dfaf575380fd9\"", "start": 0, "total_size": + "http_etag": "\"479db84d16e0d3c86f3557a1c89f7419d26a402d\"", "is_server_owner": + false, "password": "$6$rounds=612581$QJtl/.Ef0grULayx$EQETFQt5ArqiX0HSTEfqP8tCrLA/NqxVEv6k9qujz.9GSmS4g1Xe5iTr/HOe9J2qma9cq1u49/X82aTp2ThDA.", + "self_link": "http://localhost:9001/3.0/users/106", "user_id": 106}], "http_etag": + "\"0d1442c2ddfc38cd3f2e44458be236220d96950a\"", "start": 0, "total_size": 1}'} headers: - content-length: ['431'] - content-type: [application/json; charset=utf-8] + content-length: ['433'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/88 + uri: http://localhost:9001/3.0/users/106 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ModelTest.test_mailman_user_created_when_flag_is_on.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ModelTest.test_mailman_user_created_when_flag_is_on.yaml index baac30a..fee5203 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ModelTest.test_mailman_user_created_when_flag_is_on.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ModelTest.test_mailman_user_created_when_flag_is_on.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,10 +37,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: - body: email=test%40example.com + body: !!python/unicode email=test%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -51,7 +51,8 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/108'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/users/126'] status: {code: 201, message: Created} - request: body: null @@ -61,28 +62,28 @@ uri: http://localhost:9001/3.0/users/test@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"d31eff1c8c0fa99c90d2089db31f1bde7e5c8b82\"", "is_server_owner": false, - "password": "$6$rounds=677845$q86bGf8NDmn9SmUU$hovQHgCNuXpd.W2upS.8FmOeiyIO9fUgWBGm3jRZKt4jkKVRmeG1RFhCZn/0keoR.E5KZuT/JT3qOeBuOMzMn0", - "self_link": "http://localhost:9001/3.0/users/108", "user_id": 108}'} + "\"e04e30982f9a24e8efd57474388cc8b4bb59a7a8\"", "is_server_owner": false, + "password": "$6$rounds=685185$ZwADOOYYQZ1upzqh$p6HlJoU17gg148TtbN0bK/fbJoF23icjZo4yss.DiXMLKcKEduOcm0qmEgczwo6DuqDzUzNI8dqxmrXqm9MKI.", + "self_link": "http://localhost:9001/3.0/users/126", "user_id": 126}'} headers: content-length: ['328'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-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/108/addresses + uri: http://localhost:9001/3.0/users/126/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag": - "\"c21aeb81fbc6810cf55344d3c097899e1dc45b7d\"", "original_email": "test@example.com", + "\"3cece11446d4f4c665933c78a37a1571f853eeb3\"", "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/108"}], "http_etag": "\"eefd141b35eac017cb6ac27ba378aec7e1011f13\"", + "user": "http://localhost:9001/3.0/users/126"}], "http_etag": "\"b0b62fa89eafdb421bfa21fb220bfe5016abde5b\"", "start": 0, "total_size": 1}'} headers: content-length: ['389'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -91,14 +92,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -119,21 +120,21 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"d31eff1c8c0fa99c90d2089db31f1bde7e5c8b82\"", "is_server_owner": - false, "password": "$6$rounds=677845$q86bGf8NDmn9SmUU$hovQHgCNuXpd.W2upS.8FmOeiyIO9fUgWBGm3jRZKt4jkKVRmeG1RFhCZn/0keoR.E5KZuT/JT3qOeBuOMzMn0", - "self_link": "http://localhost:9001/3.0/users/108", "user_id": 108}], "http_etag": - "\"61a593e1e6dbf3065f1a7c52553ce0fd1b8128f7\"", "start": 0, "total_size": + "http_etag": "\"e04e30982f9a24e8efd57474388cc8b4bb59a7a8\"", "is_server_owner": + false, "password": "$6$rounds=685185$ZwADOOYYQZ1upzqh$p6HlJoU17gg148TtbN0bK/fbJoF23icjZo4yss.DiXMLKcKEduOcm0qmEgczwo6DuqDzUzNI8dqxmrXqm9MKI.", + "self_link": "http://localhost:9001/3.0/users/126", "user_id": 126}], "http_etag": + "\"d62ff0a4c4a99146c206893845a15a6c4541dc77\"", "start": 0, "total_size": 1}'} headers: content-length: ['433'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/108 + uri: http://localhost:9001/3.0/users/126 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/ModelTest.test_mailman_user_not_created_when_flag_is_off.yaml b/src/postorius/tests/fixtures/vcr_cassettes/ModelTest.test_mailman_user_not_created_when_flag_is_off.yaml index 2f28697..e1e8e50 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/ModelTest.test_mailman_user_not_created_when_flag_is_off.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/ModelTest.test_mailman_user_not_created_when_flag_is_off.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: mail_host=example.com + body: !!python/unicode mail_host=example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -10,6 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/domains/example.com'] status: {code: 201, message: Created} - request: @@ -19,16 +20,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] + content-length: ['172'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=foo%40example.com + body: !!python/unicode fqdn_listname=foo%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -38,6 +37,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/foo.example.com'] status: {code: 201, message: Created} - request: @@ -50,7 +50,7 @@ body: {string: !!python/unicode 404 Not Found} headers: content-length: ['13'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 404, message: Not Found} - request: body: null @@ -59,14 +59,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}], "http_etag": + "\"2ec9679269ad1f741705a62db0162f5585ae5c3c\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['338'] - content-type: [application/json; charset=utf-8] + content-length: ['277'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -90,6 +90,6 @@ "start": 0, "total_size": 0}'} headers: content-length: ['90'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestAddressConfirmationProfile.test_confirmation_link.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestAddressConfirmationProfile.test_confirmation_link.yaml deleted file mode 100644 index 69ef46a..0000000 --- a/src/postorius/tests/fixtures/vcr_cassettes/TestAddressConfirmationProfile.test_confirmation_link.yaml +++ /dev/null @@ -1,28 +0,0 @@ -interactions: -- 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\"", - "start": 0, "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users - response: - body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestAddressConfirmationProfile.test_profile_creation.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestAddressConfirmationProfile.test_profile_creation.yaml deleted file mode 100644 index 69ef46a..0000000 --- a/src/postorius/tests/fixtures/vcr_cassettes/TestAddressConfirmationProfile.test_profile_creation.yaml +++ /dev/null @@ -1,28 +0,0 @@ -interactions: -- 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\"", - "start": 0, "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users - response: - body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestAddressConfirmationProfile.test_profile_is_expired_default_setting.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestAddressConfirmationProfile.test_profile_is_expired_default_setting.yaml deleted file mode 100644 index 69ef46a..0000000 --- a/src/postorius/tests/fixtures/vcr_cassettes/TestAddressConfirmationProfile.test_profile_is_expired_default_setting.yaml +++ /dev/null @@ -1,28 +0,0 @@ -interactions: -- 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\"", - "start": 0, "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users - response: - body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestAddressConfirmationProfile.test_profile_is_updated_on_save.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestAddressConfirmationProfile.test_profile_is_updated_on_save.yaml deleted file mode 100644 index 69ef46a..0000000 --- a/src/postorius/tests/fixtures/vcr_cassettes/TestAddressConfirmationProfile.test_profile_is_updated_on_save.yaml +++ /dev/null @@ -1,28 +0,0 @@ -interactions: -- 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\"", - "start": 0, "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users - response: - body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestAddressConfirmationProfile.test_profile_not_expired.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestAddressConfirmationProfile.test_profile_not_expired.yaml deleted file mode 100644 index 69ef46a..0000000 --- a/src/postorius/tests/fixtures/vcr_cassettes/TestAddressConfirmationProfile.test_profile_not_expired.yaml +++ /dev/null @@ -1,28 +0,0 @@ -interactions: -- 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\"", - "start": 0, "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users - response: - body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestAddressConfirmationProfile.test_profile_not_expired_default_setting.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestAddressConfirmationProfile.test_profile_not_expired_default_setting.yaml deleted file mode 100644 index 69ef46a..0000000 --- a/src/postorius/tests/fixtures/vcr_cassettes/TestAddressConfirmationProfile.test_profile_not_expired_default_setting.yaml +++ /dev/null @@ -1,28 +0,0 @@ -interactions: -- 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\"", - "start": 0, "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users - response: - body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestAddressConfirmationProfile.test_unicode_representation.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestAddressConfirmationProfile.test_unicode_representation.yaml deleted file mode 100644 index 69ef46a..0000000 --- a/src/postorius/tests/fixtures/vcr_cassettes/TestAddressConfirmationProfile.test_unicode_representation.yaml +++ /dev/null @@ -1,28 +0,0 @@ -interactions: -- 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\"", - "start": 0, "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users - response: - body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_change_subscription_confirm.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_change_subscription_confirm.yaml index 0f50f8d..5ce713d 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_change_subscription_confirm.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_change_subscription_confirm.yaml @@ -191,7 +191,7 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/users/1'] + location: ['http://localhost:9001/3.0/users/128'] status: {code: 201, message: Created} - request: body: !!python/unicode email=fritz%40example.org @@ -199,7 +199,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/128/addresses response: body: {string: !!python/unicode ''} headers: @@ -212,14 +212,14 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/1 + uri: http://localhost:9001/3.0/users/128 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"10578ee04a3427ff7ae702f8974395862f8e936c\"", "is_server_owner": false, - "password": "$6$rounds=668957$EX5KdLSukPmt2h/y$nf7xC5Gh84CXaiFM4aE96NWLEip1TYL7h4V4KsCWUuWNae7agCrFRhaPTcU7YoBPtiP.9k.5KvO/bS5o/w9lM.", - "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}'} + "\"eb11db76f9610385a6fc4698a7687a9a9080a096\"", "is_server_owner": false, + "password": "$6$rounds=598797$RPW0MTnwAI9fHokL$s7X5x45oLB4mnkgxlqVg5rsKfi1no1YOrEkWZIq51Tb3WVHqs8dn0t9VcZ3Y9C.bQuCpbO5M0aU93bnf5mGRP0", + "self_link": "http://localhost:9001/3.0/users/128", "user_id": 128}'} headers: - content-length: ['324'] + content-length: ['328'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -227,18 +227,18 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/1/addresses + uri: http://localhost:9001/3.0/users/128/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"e285d46d0149da55f7d4f0a0ba35a34ea5168d9b\"", "original_email": "fritz@example.org", + "\"b2a7ffb1c098b50a7d05d4a7a1d5044926982a38\"", "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"}, {"email": "test@example.com", - "http_etag": "\"0e805a389459bccaa6e81517808582547119e624\"", "original_email": + "user": "http://localhost:9001/3.0/users/128"}, {"email": "test@example.com", + "http_etag": "\"8d35b6a2b343f326174470b3da62e2a01d0d3c33\"", "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": "\"65df5bc7faf13eaa5672d528649796ce0361c3cb\"", + "user": "http://localhost:9001/3.0/users/128"}], "http_etag": "\"44bc2a578619fe93c304d7300f0770111e8cbb8c\"", "start": 0, "total_size": 2}'} headers: - content-length: ['674'] + content-length: ['678'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -351,7 +351,7 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/1'] + location: ['http://localhost:9001/3.0/members/125'] status: {code: 201, message: Created} - request: body: null @@ -361,13 +361,13 @@ uri: http://localhost:9001/3.0/lists/confirm_list@example.com/roster/member response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/test@example.com", - "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"f4d54502d0280061042cda8617e3c07bd21c038d\"", - "list_id": "confirm_list.example.com", "member_id": 1, "role": "member", "self_link": - "http://localhost:9001/3.0/members/1", "user": "http://localhost:9001/3.0/users/1"}], - "http_etag": "\"5b2eeb60a60a0bf8cd3a19a5fc239e6de066f750\"", "start": 0, "total_size": + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"171139dd7061a67076d01df597e25dcf264412ad\"", + "list_id": "confirm_list.example.com", "member_id": 125, "role": "member", + "self_link": "http://localhost:9001/3.0/members/125", "user": "http://localhost:9001/3.0/users/128"}], + "http_etag": "\"93cce1a3d41e179056b3fb96f75c97824f7fb663\"", "start": 0, "total_size": 1}'} headers: - content-length: ['460'] + content-length: ['466'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -446,11 +446,11 @@ uri: http://localhost:9001/3.0/lists/confirm_list.example.com/member/test@example.com response: body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/test@example.com", - "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"f4d54502d0280061042cda8617e3c07bd21c038d\"", - "list_id": "confirm_list.example.com", "member_id": 1, "role": "member", "self_link": - "http://localhost:9001/3.0/members/1", "user": "http://localhost:9001/3.0/users/1"}'} + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"171139dd7061a67076d01df597e25dcf264412ad\"", + "list_id": "confirm_list.example.com", "member_id": 125, "role": "member", + "self_link": "http://localhost:9001/3.0/members/125", "user": "http://localhost:9001/3.0/users/128"}'} headers: - content-length: ['355'] + content-length: ['361'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -476,7 +476,7 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/2'] + location: ['http://localhost:9001/3.0/members/126'] status: {code: 201, message: Created} - request: body: null @@ -486,13 +486,13 @@ uri: http://localhost:9001/3.0/lists/confirm_list@example.com/roster/member response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/fritz@example.org", - "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"929ee82bca9da825a23c54de9ae11b13f48957ab\"", - "list_id": "confirm_list.example.com", "member_id": 2, "role": "member", "self_link": - "http://localhost:9001/3.0/members/2", "user": "http://localhost:9001/3.0/users/1"}], - "http_etag": "\"788dbfa3ac1f1f39e9c082b6302fcb26d41d8890\"", "start": 0, "total_size": + "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"25cf8617cfb8b0cd7f2791e57f27e8c7895abf92\"", + "list_id": "confirm_list.example.com", "member_id": 126, "role": "member", + "self_link": "http://localhost:9001/3.0/members/126", "user": "http://localhost:9001/3.0/users/128"}], + "http_etag": "\"83512de216235da1cc5011cee63d27f473fecfe5\"", "start": 0, "total_size": 1}'} headers: - content-length: ['462'] + content-length: ['468'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -516,11 +516,11 @@ uri: http://localhost:9001/3.0/lists/confirm_list.example.com/member/fritz@example.org response: body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/fritz@example.org", - "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"929ee82bca9da825a23c54de9ae11b13f48957ab\"", - "list_id": "confirm_list.example.com", "member_id": 2, "role": "member", "self_link": - "http://localhost:9001/3.0/members/2", "user": "http://localhost:9001/3.0/users/1"}'} + "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"25cf8617cfb8b0cd7f2791e57f27e8c7895abf92\"", + "list_id": "confirm_list.example.com", "member_id": 126, "role": "member", + "self_link": "http://localhost:9001/3.0/members/126", "user": "http://localhost:9001/3.0/users/128"}'} headers: - content-length: ['357'] + content-length: ['363'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -573,11 +573,11 @@ uri: http://localhost:9001/3.0/lists/confirm_list.example.com/member/fritz@example.org response: body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/fritz@example.org", - "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"929ee82bca9da825a23c54de9ae11b13f48957ab\"", - "list_id": "confirm_list.example.com", "member_id": 2, "role": "member", "self_link": - "http://localhost:9001/3.0/members/2", "user": "http://localhost:9001/3.0/users/1"}'} + "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"25cf8617cfb8b0cd7f2791e57f27e8c7895abf92\"", + "list_id": "confirm_list.example.com", "member_id": 126, "role": "member", + "self_link": "http://localhost:9001/3.0/members/126", "user": "http://localhost:9001/3.0/users/128"}'} headers: - content-length: ['357'] + content-length: ['363'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -675,13 +675,13 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"10578ee04a3427ff7ae702f8974395862f8e936c\"", "is_server_owner": - false, "password": "$6$rounds=668957$EX5KdLSukPmt2h/y$nf7xC5Gh84CXaiFM4aE96NWLEip1TYL7h4V4KsCWUuWNae7agCrFRhaPTcU7YoBPtiP.9k.5KvO/bS5o/w9lM.", - "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}], "http_etag": - "\"ad51831b70d76fb15add7376420319d45a3f2496\"", "start": 0, "total_size": + "http_etag": "\"eb11db76f9610385a6fc4698a7687a9a9080a096\"", "is_server_owner": + false, "password": "$6$rounds=598797$RPW0MTnwAI9fHokL$s7X5x45oLB4mnkgxlqVg5rsKfi1no1YOrEkWZIq51Tb3WVHqs8dn0t9VcZ3Y9C.bQuCpbO5M0aU93bnf5mGRP0", + "self_link": "http://localhost:9001/3.0/users/128", "user_id": 128}], "http_etag": + "\"701217c6ff3ed083084087d7ea0283a38ec68ff7\"", "start": 0, "total_size": 1}'} headers: - content-length: ['429'] + content-length: ['433'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -689,7 +689,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/128 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_change_subscription_open.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_change_subscription_open.yaml index b28ab1a..22e8c5d 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_change_subscription_open.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_change_subscription_open.yaml @@ -191,7 +191,7 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/users/2'] + location: ['http://localhost:9001/3.0/users/129'] status: {code: 201, message: Created} - request: body: !!python/unicode email=fritz%40example.org @@ -199,7 +199,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/2/addresses + uri: http://localhost:9001/3.0/users/129/addresses response: body: {string: !!python/unicode ''} headers: @@ -212,14 +212,14 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/2 + uri: http://localhost:9001/3.0/users/129 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"be7cd9e7becf108700da8e4903d3b92812c53e58\"", "is_server_owner": false, - "password": "$6$rounds=591763$gRkLzf8k9t6oVqfa$5lNGEtwzzeq2MrlyZm4/BHTDNmWXLk1q9WSRsd8bQ7PeWM0T1dsNHMjHaYWYSxg6rEzG9./LxNWQkWf82.gHs1", - "self_link": "http://localhost:9001/3.0/users/2", "user_id": 2}'} + "\"97dedf032902069732354b769825d8a3aa0fa1b9\"", "is_server_owner": false, + "password": "$6$rounds=688040$7Y39YV2vrXtDceGG$V3kubhQw6jDIXkc9.39G/BhQ70Ta.hQUj7fyyisH4pzP4Ixk3EfSn9XEo6wRSczMt.3yMmxVBc/IMhWocEv8D/", + "self_link": "http://localhost:9001/3.0/users/129", "user_id": 129}'} headers: - content-length: ['324'] + content-length: ['328'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -227,18 +227,18 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/2/addresses + uri: http://localhost:9001/3.0/users/129/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"59db728c101c90c441ba4147218eec848dbb39ac\"", "original_email": "fritz@example.org", + "\"4dcc279fd8f7c7ffffab6c4071ca40a918fa5019\"", "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/2"}, {"email": "test@example.com", - "http_etag": "\"c89baf60a49c1e2acee73e8d6a417f43c5ba821d\"", "original_email": + "user": "http://localhost:9001/3.0/users/129"}, {"email": "test@example.com", + "http_etag": "\"0d7020539f0e1debc93141efb34154929187907b\"", "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/2"}], "http_etag": "\"14bd53954051b066b79d135f728b9a52b001a4fb\"", + "user": "http://localhost:9001/3.0/users/129"}], "http_etag": "\"b3f0a784daa9da00aa1c87721972d5c1e5ddc436\"", "start": 0, "total_size": 2}'} headers: - content-length: ['674'] + content-length: ['678'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -275,7 +275,7 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/3'] + location: ['http://localhost:9001/3.0/members/127'] status: {code: 201, message: Created} - request: body: null @@ -285,13 +285,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": "\"73e5b4ffbcb9cb96d1562e4af661dc210df7d11e\"", - "list_id": "open_list.example.com", "member_id": 3, "role": "member", "self_link": - "http://localhost:9001/3.0/members/3", "user": "http://localhost:9001/3.0/users/2"}], - "http_etag": "\"38c4010c852de6a68d330bdf627881b7e719328e\"", "start": 0, "total_size": + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"1e29d33c44408afe4924a3b2ad0a9a2cdc49669c\"", + "list_id": "open_list.example.com", "member_id": 127, "role": "member", "self_link": + "http://localhost:9001/3.0/members/127", "user": "http://localhost:9001/3.0/users/129"}], + "http_etag": "\"cf01e90d3e1eb3c5ef7a3cab9a32f57bf54dc383\"", "start": 0, "total_size": 1}'} headers: - content-length: ['457'] + content-length: ['463'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -370,11 +370,11 @@ uri: http://localhost:9001/3.0/lists/open_list.example.com/member/test@example.com response: body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/test@example.com", - "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"73e5b4ffbcb9cb96d1562e4af661dc210df7d11e\"", - "list_id": "open_list.example.com", "member_id": 3, "role": "member", "self_link": - "http://localhost:9001/3.0/members/3", "user": "http://localhost:9001/3.0/users/2"}'} + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"1e29d33c44408afe4924a3b2ad0a9a2cdc49669c\"", + "list_id": "open_list.example.com", "member_id": 127, "role": "member", "self_link": + "http://localhost:9001/3.0/members/127", "user": "http://localhost:9001/3.0/users/129"}'} headers: - content-length: ['352'] + content-length: ['358'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -400,7 +400,7 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/4'] + location: ['http://localhost:9001/3.0/members/128'] status: {code: 201, message: Created} - request: body: null @@ -410,13 +410,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": "\"ac60bb917158a759c68e507d266f2278fa1b6975\"", - "list_id": "open_list.example.com", "member_id": 4, "role": "member", "self_link": - "http://localhost:9001/3.0/members/4", "user": "http://localhost:9001/3.0/users/2"}], - "http_etag": "\"45f83ad99ad557914be00739a4a428162437f761\"", "start": 0, "total_size": + "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"190d002bfc9799572e5ebc490aafc76d047202b4\"", + "list_id": "open_list.example.com", "member_id": 128, "role": "member", "self_link": + "http://localhost:9001/3.0/members/128", "user": "http://localhost:9001/3.0/users/129"}], + "http_etag": "\"1d3e93e18d833e9fdbbd9b038649671ed6fb420c\"", "start": 0, "total_size": 1}'} headers: - content-length: ['459'] + content-length: ['465'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -440,11 +440,11 @@ uri: http://localhost:9001/3.0/lists/open_list.example.com/member/fritz@example.org response: body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/fritz@example.org", - "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"ac60bb917158a759c68e507d266f2278fa1b6975\"", - "list_id": "open_list.example.com", "member_id": 4, "role": "member", "self_link": - "http://localhost:9001/3.0/members/4", "user": "http://localhost:9001/3.0/users/2"}'} + "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"190d002bfc9799572e5ebc490aafc76d047202b4\"", + "list_id": "open_list.example.com", "member_id": 128, "role": "member", "self_link": + "http://localhost:9001/3.0/members/128", "user": "http://localhost:9001/3.0/users/129"}'} headers: - content-length: ['354'] + content-length: ['360'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -497,11 +497,11 @@ uri: http://localhost:9001/3.0/lists/open_list.example.com/member/fritz@example.org response: body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/fritz@example.org", - "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"ac60bb917158a759c68e507d266f2278fa1b6975\"", - "list_id": "open_list.example.com", "member_id": 4, "role": "member", "self_link": - "http://localhost:9001/3.0/members/4", "user": "http://localhost:9001/3.0/users/2"}'} + "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"190d002bfc9799572e5ebc490aafc76d047202b4\"", + "list_id": "open_list.example.com", "member_id": 128, "role": "member", "self_link": + "http://localhost:9001/3.0/members/128", "user": "http://localhost:9001/3.0/users/129"}'} headers: - content-length: ['354'] + content-length: ['360'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -599,13 +599,13 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"be7cd9e7becf108700da8e4903d3b92812c53e58\"", "is_server_owner": - false, "password": "$6$rounds=591763$gRkLzf8k9t6oVqfa$5lNGEtwzzeq2MrlyZm4/BHTDNmWXLk1q9WSRsd8bQ7PeWM0T1dsNHMjHaYWYSxg6rEzG9./LxNWQkWf82.gHs1", - "self_link": "http://localhost:9001/3.0/users/2", "user_id": 2}], "http_etag": - "\"f685b49a14a0bc34dd63504a4a32860004ae88d5\"", "start": 0, "total_size": + "http_etag": "\"97dedf032902069732354b769825d8a3aa0fa1b9\"", "is_server_owner": + false, "password": "$6$rounds=688040$7Y39YV2vrXtDceGG$V3kubhQw6jDIXkc9.39G/BhQ70Ta.hQUj7fyyisH4pzP4Ixk3EfSn9XEo6wRSczMt.3yMmxVBc/IMhWocEv8D/", + "self_link": "http://localhost:9001/3.0/users/129", "user_id": 129}], "http_etag": + "\"d5a1f3c53625c70257ea00e4329ec8d15bbe44cf\"", "start": 0, "total_size": 1}'} headers: - content-length: ['429'] + content-length: ['433'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -613,7 +613,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/2 + uri: http://localhost:9001/3.0/users/129 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_secondary_mod.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_secondary_mod.yaml index f654947..944f757 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 @@ -191,7 +191,7 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/users/3'] + location: ['http://localhost:9001/3.0/users/130'] status: {code: 201, message: Created} - request: body: !!python/unicode email=fritz%40example.org @@ -199,7 +199,7 @@ accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] method: !!python/unicode POST - uri: http://localhost:9001/3.0/users/3/addresses + uri: http://localhost:9001/3.0/users/130/addresses response: body: {string: !!python/unicode ''} headers: @@ -212,14 +212,14 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/3 + uri: http://localhost:9001/3.0/users/130 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"165424a59e9e87cb6f309ad0866b7df5d8cfccd0\"", "is_server_owner": false, - "password": "$6$rounds=647194$ZWnM4.MFmjBEkusj$CxylTXHI7ky.B8mzUyycGYGc2DtZ8c8t/T5wKPgwWvVhix/zp.e4teETMZg.GqYYA4ft3mkw6ac36c2tEoa.o/", - "self_link": "http://localhost:9001/3.0/users/3", "user_id": 3}'} + "\"5cf0344b4258d988e1343f661b89865d170c33da\"", "is_server_owner": false, + "password": "$6$rounds=710787$0dbhPEGivQukhHoZ$bYRbE4mIQt2nZ.y8nkZH2uM2e1pMED/dheaP438ohZr3XJjjNgF9pO4qGWwbZsPgLp05eUF68nvQy9qoidMTm.", + "self_link": "http://localhost:9001/3.0/users/130", "user_id": 130}'} headers: - content-length: ['324'] + content-length: ['328'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -227,18 +227,18 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/3/addresses + uri: http://localhost:9001/3.0/users/130/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"4acba92c10f9469faebaae91b3b918d8c4955fdc\"", "original_email": "fritz@example.org", + "\"9a5e995b4e09d41c432fab00342dd3ba98886060\"", "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/3"}, {"email": "test@example.com", - "http_etag": "\"bec867729ea260d4f901a156496a3122cea4c457\"", "original_email": + "user": "http://localhost:9001/3.0/users/130"}, {"email": "test@example.com", + "http_etag": "\"10a4123cf409068f7f5db76bff636cb40b47d2db\"", "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/3"}], "http_etag": "\"ddc541a92620b0aedffb9866ab3d7688fbaf29e9\"", + "user": "http://localhost:9001/3.0/users/130"}], "http_etag": "\"0f2c83c9b044f780908534a5171a2ad955108ee2\"", "start": 0, "total_size": 2}'} headers: - content-length: ['674'] + content-length: ['678'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -527,13 +527,13 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"165424a59e9e87cb6f309ad0866b7df5d8cfccd0\"", "is_server_owner": - false, "password": "$6$rounds=647194$ZWnM4.MFmjBEkusj$CxylTXHI7ky.B8mzUyycGYGc2DtZ8c8t/T5wKPgwWvVhix/zp.e4teETMZg.GqYYA4ft3mkw6ac36c2tEoa.o/", - "self_link": "http://localhost:9001/3.0/users/3", "user_id": 3}], "http_etag": - "\"55ae0481d7599cf12b0eb7eb6a1527b71d082e8a\"", "start": 0, "total_size": + "http_etag": "\"5cf0344b4258d988e1343f661b89865d170c33da\"", "is_server_owner": + false, "password": "$6$rounds=710787$0dbhPEGivQukhHoZ$bYRbE4mIQt2nZ.y8nkZH2uM2e1pMED/dheaP438ohZr3XJjjNgF9pO4qGWwbZsPgLp05eUF68nvQy9qoidMTm.", + "self_link": "http://localhost:9001/3.0/users/130", "user_id": 130}], "http_etag": + "\"5c5e97b88c29fc33b40aa9887e950ff4ec1abe6c\"", "start": 0, "total_size": 1}'} headers: - content-length: ['429'] + content-length: ['433'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -541,7 +541,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/3 + uri: http://localhost:9001/3.0/users/130 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_secondary_open.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_secondary_open.yaml index 00026dc..b01f5fb 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 @@ -191,7 +191,7 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/users/4'] + location: ['http://localhost:9001/3.0/users/131'] status: {code: 201, message: Created} - request: body: !!python/unicode email=fritz%40example.org @@ -199,7 +199,7 @@ accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] method: !!python/unicode POST - uri: http://localhost:9001/3.0/users/4/addresses + uri: http://localhost:9001/3.0/users/131/addresses response: body: {string: !!python/unicode ''} headers: @@ -212,14 +212,14 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/4 + uri: http://localhost:9001/3.0/users/131 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"d44aa50615bd013baa1b6e17ddb2f0294bb86544\"", "is_server_owner": false, - "password": "$6$rounds=702598$Mje8Hr.oe2fLJijF$MdKfbo1I5nHxjhKihQYtv2Sla4b2IfLGYOAq0g4u/w0EtXsrco9t05YokXjXDp4j3n9nd8ba7F6UuHUx2hmrG.", - "self_link": "http://localhost:9001/3.0/users/4", "user_id": 4}'} + "\"227dd4a7bf13c7efdf8b3dedda581a9fa6643afb\"", "is_server_owner": false, + "password": "$6$rounds=652940$S3gYD3KdTEmpi4gi$6DrP1RutxTc2gWRV1tfg9pBMTAsJM5q9RQ.nd3k3NTYQ75eoJ9/hB9h/z.gTdRZUH6Z9A4LSACaoOs7M16vtp.", + "self_link": "http://localhost:9001/3.0/users/131", "user_id": 131}'} headers: - content-length: ['324'] + content-length: ['328'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -227,18 +227,18 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/4/addresses + uri: http://localhost:9001/3.0/users/131/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"219f97bb122d56bb0711dbef6a4bcf6be3ccae2d\"", "original_email": "fritz@example.org", + "\"f5f4cb62208fe00b6a6b2517ca6024d05d061fad\"", "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/4"}, {"email": "test@example.com", - "http_etag": "\"451648801e4837c39e0b076da90ada82dbc8be36\"", "original_email": + "user": "http://localhost:9001/3.0/users/131"}, {"email": "test@example.com", + "http_etag": "\"ed44c45c529dfea69924fb7fc91705882a6f9b3a\"", "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/4"}], "http_etag": "\"c891718087b8495a35bca7e8b3f37784a30b4f7f\"", + "user": "http://localhost:9001/3.0/users/131"}], "http_etag": "\"794fe8c64191b78e4c35c45a4a4c73acb2da932d\"", "start": 0, "total_size": 2}'} headers: - content-length: ['674'] + content-length: ['678'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -317,7 +317,7 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/5'] + location: ['http://localhost:9001/3.0/members/129'] status: {code: 201, message: Created} - request: body: null @@ -327,13 +327,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": "\"3209b3c7fe8c9f52d9d7ec738a2353fb22470180\"", - "list_id": "open_list.example.com", "member_id": 5, "role": "member", "self_link": - "http://localhost:9001/3.0/members/5", "user": "http://localhost:9001/3.0/users/4"}], - "http_etag": "\"6bd80df27270c8773e98482d24c024f06b459b5f\"", "start": 0, "total_size": + "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"930ab26c9ff54f657cc4f4f7791346a192c29d55\"", + "list_id": "open_list.example.com", "member_id": 129, "role": "member", "self_link": + "http://localhost:9001/3.0/members/129", "user": "http://localhost:9001/3.0/users/131"}], + "http_etag": "\"3f67f7de26bb9461fda373a5a077036addc61a33\"", "start": 0, "total_size": 1}'} headers: - content-length: ['459'] + content-length: ['465'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -399,11 +399,11 @@ uri: http://localhost:9001/3.0/lists/open_list.example.com/member/fritz@example.org response: body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/fritz@example.org", - "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"3209b3c7fe8c9f52d9d7ec738a2353fb22470180\"", - "list_id": "open_list.example.com", "member_id": 5, "role": "member", "self_link": - "http://localhost:9001/3.0/members/5", "user": "http://localhost:9001/3.0/users/4"}'} + "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"930ab26c9ff54f657cc4f4f7791346a192c29d55\"", + "list_id": "open_list.example.com", "member_id": 129, "role": "member", "self_link": + "http://localhost:9001/3.0/members/129", "user": "http://localhost:9001/3.0/users/131"}'} headers: - content-length: ['354'] + content-length: ['360'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -501,13 +501,13 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"d44aa50615bd013baa1b6e17ddb2f0294bb86544\"", "is_server_owner": - false, "password": "$6$rounds=702598$Mje8Hr.oe2fLJijF$MdKfbo1I5nHxjhKihQYtv2Sla4b2IfLGYOAq0g4u/w0EtXsrco9t05YokXjXDp4j3n9nd8ba7F6UuHUx2hmrG.", - "self_link": "http://localhost:9001/3.0/users/4", "user_id": 4}], "http_etag": - "\"3ee67888a8d37f9874a2ce5355461b7e3abefe66\"", "start": 0, "total_size": + "http_etag": "\"227dd4a7bf13c7efdf8b3dedda581a9fa6643afb\"", "is_server_owner": + false, "password": "$6$rounds=652940$S3gYD3KdTEmpi4gi$6DrP1RutxTc2gWRV1tfg9pBMTAsJM5q9RQ.nd3k3NTYQ75eoJ9/hB9h/z.gTdRZUH6Z9A4LSACaoOs7M16vtp.", + "self_link": "http://localhost:9001/3.0/users/131", "user_id": 131}], "http_etag": + "\"ca894c75e5654e28f44868c97a207a13097ed9a6\"", "start": 0, "total_size": 1}'} headers: - content-length: ['429'] + content-length: ['433'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -515,7 +515,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/4 + uri: http://localhost:9001/3.0/users/131 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_already_pending.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_already_pending.yaml index 9710d90..0e44625 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_already_pending.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_already_pending.yaml @@ -191,7 +191,7 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/users/5'] + location: ['http://localhost:9001/3.0/users/132'] status: {code: 201, message: Created} - request: body: !!python/unicode email=fritz%40example.org @@ -199,7 +199,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/5/addresses + uri: http://localhost:9001/3.0/users/132/addresses response: body: {string: !!python/unicode ''} headers: @@ -212,14 +212,14 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/5 + uri: http://localhost:9001/3.0/users/132 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"bb73815c805b4427785a3761f9621c79fffc11a4\"", "is_server_owner": false, - "password": "$6$rounds=635800$TbCZ1JeUHngRwb5M$WUEF9v.2p16rRZcOKl/0vj64IdXtx4t.OaGZJLPTkKD2hir5D56/HDeYxtOtavkbd0mH06e5YB3WA541H4/zt.", - "self_link": "http://localhost:9001/3.0/users/5", "user_id": 5}'} + "\"042ec1711b7c967a44102e1a406829312f918044\"", "is_server_owner": false, + "password": "$6$rounds=680466$WxKGWGi/sCXbElq2$RMxWAh7nUSdjg2Wj8ycikCh/wnE6yMFTGLZFcKyeM.lC.y99xgkFIE16dJrwcr.XybeT7CjBv9lufnx7.LV2K0", + "self_link": "http://localhost:9001/3.0/users/132", "user_id": 132}'} headers: - content-length: ['324'] + content-length: ['328'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -227,18 +227,18 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/5/addresses + uri: http://localhost:9001/3.0/users/132/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"f3e11efc0e3e5f04f25f204cca56404675b9d160\"", "original_email": "fritz@example.org", + "\"3e52fe74e2240ceedd9edf85d8d0332a0a6b04fa\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/5"}, {"email": "test@example.com", - "http_etag": "\"ab97396c1c0303d5a821163e7610952e207ae1fc\"", "original_email": + "user": "http://localhost:9001/3.0/users/132"}, {"email": "test@example.com", + "http_etag": "\"0c47a8cc4b54c89048c5f5ea789b841028be29e3\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "user": "http://localhost:9001/3.0/users/5"}], "http_etag": "\"051caadf3426678ec0917c05af2d5e0e48594c4f\"", + "user": "http://localhost:9001/3.0/users/132"}], "http_etag": "\"964a2c65e68e324dbaa7f4136ee3a82cb15ae478\"", "start": 0, "total_size": 2}'} headers: - content-length: ['674'] + content-length: ['678'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -508,13 +508,13 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"bb73815c805b4427785a3761f9621c79fffc11a4\"", "is_server_owner": - false, "password": "$6$rounds=635800$TbCZ1JeUHngRwb5M$WUEF9v.2p16rRZcOKl/0vj64IdXtx4t.OaGZJLPTkKD2hir5D56/HDeYxtOtavkbd0mH06e5YB3WA541H4/zt.", - "self_link": "http://localhost:9001/3.0/users/5", "user_id": 5}], "http_etag": - "\"417e20d9f10bcdc424e408ca3c52aa1966404634\"", "start": 0, "total_size": + "http_etag": "\"042ec1711b7c967a44102e1a406829312f918044\"", "is_server_owner": + false, "password": "$6$rounds=680466$WxKGWGi/sCXbElq2$RMxWAh7nUSdjg2Wj8ycikCh/wnE6yMFTGLZFcKyeM.lC.y99xgkFIE16dJrwcr.XybeT7CjBv9lufnx7.LV2K0", + "self_link": "http://localhost:9001/3.0/users/132", "user_id": 132}], "http_etag": + "\"5b9315f143c1d7e791db65dd5e73cf37444116a0\"", "start": 0, "total_size": 1}'} headers: - content-length: ['429'] + content-length: ['433'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -522,7 +522,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/5 + uri: http://localhost:9001/3.0/users/132 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_mod.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_mod.yaml index 17297c8..5dbc808 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 @@ -191,7 +191,7 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/users/6'] + location: ['http://localhost:9001/3.0/users/133'] status: {code: 201, message: Created} - request: body: !!python/unicode email=fritz%40example.org @@ -199,7 +199,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/6/addresses + uri: http://localhost:9001/3.0/users/133/addresses response: body: {string: !!python/unicode ''} headers: @@ -212,14 +212,14 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/6 + uri: http://localhost:9001/3.0/users/133 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"81fad64411a18a3dc0d2c85e9261e0ecff5309a2\"", "is_server_owner": false, - "password": "$6$rounds=661827$ckxY/f7GLiliMeLb$0g6l5BZ7qIucZWOvHXM6UjJE.H0vxpxZvvJQECA5WVIg8DuNXYYSaGTY7.2YiLsROzvgyAeaIoJP1ax67MnHz1", - "self_link": "http://localhost:9001/3.0/users/6", "user_id": 6}'} + "\"ee306af2ad835677708a8a09551bb1aca2573785\"", "is_server_owner": false, + "password": "$6$rounds=643389$ECVmUlGuUnHsBUML$0feC2BjvrbEYTPMbxpiWv9x0HmUx/Kt9JBGmI89d6TGdaMmWROFscSjiQdUHzTaz5jdwBnl0NfZYL318eqpZ2.", + "self_link": "http://localhost:9001/3.0/users/133", "user_id": 133}'} headers: - content-length: ['324'] + content-length: ['328'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -227,18 +227,18 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/6/addresses + uri: http://localhost:9001/3.0/users/133/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"6a35ee2a725c9ccc14160cb95686a0286dfdd328\"", "original_email": "fritz@example.org", + "\"835fd5644c78b527ef604a402de48a56f317af87\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/6"}, {"email": "test@example.com", - "http_etag": "\"d5238d960c86cf84782d10c3459a0ac7c33de01f\"", "original_email": + "user": "http://localhost:9001/3.0/users/133"}, {"email": "test@example.com", + "http_etag": "\"044f788a1edcc7ce073582d89d3b652fb1694e09\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "user": "http://localhost:9001/3.0/users/6"}], "http_etag": "\"90f835379c29e41bd6247b1060cd81b0dc635254\"", + "user": "http://localhost:9001/3.0/users/133"}], "http_etag": "\"45b7e74da28c71258a88be1de77abb5aa905c8c8\"", "start": 0, "total_size": 2}'} headers: - content-length: ['674'] + content-length: ['678'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -527,13 +527,13 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"81fad64411a18a3dc0d2c85e9261e0ecff5309a2\"", "is_server_owner": - false, "password": "$6$rounds=661827$ckxY/f7GLiliMeLb$0g6l5BZ7qIucZWOvHXM6UjJE.H0vxpxZvvJQECA5WVIg8DuNXYYSaGTY7.2YiLsROzvgyAeaIoJP1ax67MnHz1", - "self_link": "http://localhost:9001/3.0/users/6", "user_id": 6}], "http_etag": - "\"fd2fac7b9f3f443dbd173506531dce0e849fa7af\"", "start": 0, "total_size": + "http_etag": "\"ee306af2ad835677708a8a09551bb1aca2573785\"", "is_server_owner": + false, "password": "$6$rounds=643389$ECVmUlGuUnHsBUML$0feC2BjvrbEYTPMbxpiWv9x0HmUx/Kt9JBGmI89d6TGdaMmWROFscSjiQdUHzTaz5jdwBnl0NfZYL318eqpZ2.", + "self_link": "http://localhost:9001/3.0/users/133", "user_id": 133}], "http_etag": + "\"78a5b1841a13939f45f28284685e919375e41b56\"", "start": 0, "total_size": 1}'} headers: - content-length: ['429'] + content-length: ['433'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -541,7 +541,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/6 + uri: http://localhost:9001/3.0/users/133 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 0c5ec66..0bdfc63 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 @@ -191,7 +191,7 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/users/7'] + location: ['http://localhost:9001/3.0/users/134'] status: {code: 201, message: Created} - request: body: !!python/unicode email=fritz%40example.org @@ -199,7 +199,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/7/addresses + uri: http://localhost:9001/3.0/users/134/addresses response: body: {string: !!python/unicode ''} headers: @@ -212,14 +212,14 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/7 + uri: http://localhost:9001/3.0/users/134 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"9dbce45ff99c60fe23ee7e63421149c29dee1006\"", "is_server_owner": false, - "password": "$6$rounds=640241$2kEjRD8l3JFL6wQD$DAPPiJUvxIh4VzWnJGFAqx7pXiIOSbRIxGePAL/YKIJbWxrc3BfU0mZwLeTQLbHs2JpMeTrM6DTJNnPxlW33f.", - "self_link": "http://localhost:9001/3.0/users/7", "user_id": 7}'} + "\"743e526622e40c58bc86c7fa0ce662fe6df6809f\"", "is_server_owner": false, + "password": "$6$rounds=628738$ScquFif.qzCq2NTR$R/qrYgfCNETchRmIA33xyQWrGQkD/kQ.htgrMLWX3GF0CB2mn/.TZViyKHNYp/2YoTaozSbvdGlydDuYcN3vy/", + "self_link": "http://localhost:9001/3.0/users/134", "user_id": 134}'} headers: - content-length: ['324'] + content-length: ['328'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -227,18 +227,18 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/7/addresses + uri: http://localhost:9001/3.0/users/134/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"490365930d4f0666d685bb7ebf5611974f53e017\"", "original_email": "fritz@example.org", + "\"f41a94ae3963b81551dc5b97040d8fd7a0d3f60f\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/7"}, {"email": "test@example.com", - "http_etag": "\"deab7596aa4fed8d7db92cd9fc477a4e0fa412f6\"", "original_email": + "user": "http://localhost:9001/3.0/users/134"}, {"email": "test@example.com", + "http_etag": "\"9040f2b4b3d0f36e4445c874a479fa242f78160d\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "user": "http://localhost:9001/3.0/users/7"}], "http_etag": "\"3cef8e3cfe66593a7f6f0fa7d71387ef89fcf836\"", + "user": "http://localhost:9001/3.0/users/134"}], "http_etag": "\"d01cd42a7617141b5eb73ac5e9afa62c05044010\"", "start": 0, "total_size": 2}'} headers: - content-length: ['674'] + content-length: ['678'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -317,7 +317,7 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/6'] + location: ['http://localhost:9001/3.0/members/130'] status: {code: 201, message: Created} - request: body: null @@ -327,13 +327,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": "\"9e8935422618f0d1b2f4f48bf11a54a9eb3cab6a\"", - "list_id": "open_list.example.com", "member_id": 6, "role": "member", "self_link": - "http://localhost:9001/3.0/members/6", "user": "http://localhost:9001/3.0/users/7"}], - "http_etag": "\"acd797df4fe78af86878a179f83a05459de1a380\"", "start": 0, "total_size": + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"58199f85d16be120c6af9f2e10716db4d36ce1cd\"", + "list_id": "open_list.example.com", "member_id": 130, "role": "member", "self_link": + "http://localhost:9001/3.0/members/130", "user": "http://localhost:9001/3.0/users/134"}], + "http_etag": "\"94be5d400329745601dbe9fa3026f12d8bcbb9b6\"", "start": 0, "total_size": 1}'} headers: - content-length: ['457'] + content-length: ['463'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -412,11 +412,11 @@ uri: http://localhost:9001/3.0/lists/open_list.example.com/member/test@example.com response: body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/test@example.com", - "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"9e8935422618f0d1b2f4f48bf11a54a9eb3cab6a\"", - "list_id": "open_list.example.com", "member_id": 6, "role": "member", "self_link": - "http://localhost:9001/3.0/members/6", "user": "http://localhost:9001/3.0/users/7"}'} + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"58199f85d16be120c6af9f2e10716db4d36ce1cd\"", + "list_id": "open_list.example.com", "member_id": 130, "role": "member", "self_link": + "http://localhost:9001/3.0/members/130", "user": "http://localhost:9001/3.0/users/134"}'} headers: - content-length: ['352'] + content-length: ['358'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -514,13 +514,13 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"9dbce45ff99c60fe23ee7e63421149c29dee1006\"", "is_server_owner": - false, "password": "$6$rounds=640241$2kEjRD8l3JFL6wQD$DAPPiJUvxIh4VzWnJGFAqx7pXiIOSbRIxGePAL/YKIJbWxrc3BfU0mZwLeTQLbHs2JpMeTrM6DTJNnPxlW33f.", - "self_link": "http://localhost:9001/3.0/users/7", "user_id": 7}], "http_etag": - "\"315faa686d42351e150865088c9a2d2ab82053a3\"", "start": 0, "total_size": + "http_etag": "\"743e526622e40c58bc86c7fa0ce662fe6df6809f\"", "is_server_owner": + false, "password": "$6$rounds=628738$ScquFif.qzCq2NTR$R/qrYgfCNETchRmIA33xyQWrGQkD/kQ.htgrMLWX3GF0CB2mn/.TZViyKHNYp/2YoTaozSbvdGlydDuYcN3vy/", + "self_link": "http://localhost:9001/3.0/users/134", "user_id": 134}], "http_etag": + "\"261478918472cd5a91b753647bbe72f5f1ceadad\"", "start": 0, "total_size": 1}'} headers: - content-length: ['429'] + content-length: ['433'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -528,7 +528,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/7 + uri: http://localhost:9001/3.0/users/134 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_with_name.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_with_name.yaml index 9b91b34..b83a654 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_with_name.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_with_name.yaml @@ -191,7 +191,7 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/users/8'] + location: ['http://localhost:9001/3.0/users/135'] status: {code: 201, message: Created} - request: body: !!python/unicode email=fritz%40example.org @@ -199,7 +199,7 @@ accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] method: !!python/unicode POST - uri: http://localhost:9001/3.0/users/8/addresses + uri: http://localhost:9001/3.0/users/135/addresses response: body: {string: !!python/unicode ''} headers: @@ -212,14 +212,14 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/8 + uri: http://localhost:9001/3.0/users/135 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"8eb07088c7b2d95cb82143e028a9663eeaabb59a\"", "is_server_owner": false, - "password": "$6$rounds=643554$5W67Aw4LntGBeBnr$sQ/i/BYakmtdId7mSJOvGUBzKiXa1rYnnVMMkwuMfrYEGZAVY.15RidH6eLz0if57DGRs0gvkjsNPlj2om0EL.", - "self_link": "http://localhost:9001/3.0/users/8", "user_id": 8}'} + "\"36beb30313f9201b8a0852524a54ff8b5e6771ab\"", "is_server_owner": false, + "password": "$6$rounds=697526$r74eGof.ml91rqpp$fz2.Vi.Fuex7UK9NImp2fl7228XsxzB/KZqKpFgKtdDMeBfUfMNaebrQN7tL6dvG6KBOWdRqcqF3I56uUqH45/", + "self_link": "http://localhost:9001/3.0/users/135", "user_id": 135}'} headers: - content-length: ['324'] + content-length: ['328'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -227,18 +227,18 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/8/addresses + uri: http://localhost:9001/3.0/users/135/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"3118a56631f161e15b05f860e8ef37464c89d18e\"", "original_email": "fritz@example.org", + "\"6232f55e0c2cad228c3c63ee4c5d272045935a65\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/8"}, {"email": "test@example.com", - "http_etag": "\"ddda9833ea38cea61dbf611f3cf46fd118cba777\"", "original_email": + "user": "http://localhost:9001/3.0/users/135"}, {"email": "test@example.com", + "http_etag": "\"0e040623e340cc0d2384b35f7a9f71adaff3e858\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "user": "http://localhost:9001/3.0/users/8"}], "http_etag": "\"074af7e8657324171ae04b869b162467811b317b\"", + "user": "http://localhost:9001/3.0/users/135"}], "http_etag": "\"ed7ac05967a526d0741087106e9ed446753b94c1\"", "start": 0, "total_size": 2}'} headers: - content-length: ['674'] + content-length: ['678'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -275,7 +275,7 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/7'] + location: ['http://localhost:9001/3.0/members/131'] status: {code: 201, message: Created} - request: body: null @@ -301,13 +301,13 @@ uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"5af528491340036dc69593f1ed1450ceac7f7122\"", - "list_id": "open_list.example.com", "member_id": 7, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/7", "user": - "http://localhost:9001/3.0/users/9"}], "http_etag": "\"02340c02850d984643e364bb16292b69f65da164\"", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"7e76ba230d963b2035efa7d898fc0410a9fdfaf9\"", + "list_id": "open_list.example.com", "member_id": 131, "moderation_action": + "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/131", + "user": "http://localhost:9001/3.0/users/136"}], "http_etag": "\"9a184e97ed5b948ec8ebdfd9f0e56d7fe23d2891\"", "start": 0, "total_size": 1}'} headers: - content-length: ['489'] + content-length: ['495'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -351,7 +351,7 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/8'] + location: ['http://localhost:9001/3.0/members/132'] status: {code: 201, message: Created} - request: body: !!python/unicode display_name=Second+Person&list_id=open_list.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test-2%40example.org @@ -365,7 +365,7 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/9'] + location: ['http://localhost:9001/3.0/members/133'] status: {code: 201, message: Created} - request: body: !!python/unicode display_name=Third+Person&list_id=open_list.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test-3%40example.org @@ -379,7 +379,7 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/10'] + location: ['http://localhost:9001/3.0/members/134'] status: {code: 201, message: Created} - request: body: !!python/unicode list_id=open_list.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test-4%40example.org @@ -393,7 +393,7 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/11'] + location: ['http://localhost:9001/3.0/members/135'] status: {code: 201, message: Created} - request: body: !!python/unicode list_id=open_list.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test-5%40example.org @@ -407,7 +407,7 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/12'] + location: ['http://localhost:9001/3.0/members/136'] status: {code: 201, message: Created} - request: body: null @@ -417,29 +417,29 @@ uri: http://localhost:9001/3.0/lists/open_list@example.com/roster/member response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/test-1@example.org", - "delivery_mode": "regular", "email": "test-1@example.org", "http_etag": "\"683dc0b1b55c98b8703858d6f4fb2990fa5889b3\"", - "list_id": "open_list.example.com", "member_id": 8, "role": "member", "self_link": - "http://localhost:9001/3.0/members/8", "user": "http://localhost:9001/3.0/users/10"}, + "delivery_mode": "regular", "email": "test-1@example.org", "http_etag": "\"456a59dade14e23c9aa8cad9cf20b67449360da2\"", + "list_id": "open_list.example.com", "member_id": 132, "role": "member", "self_link": + "http://localhost:9001/3.0/members/132", "user": "http://localhost:9001/3.0/users/137"}, {"address": "http://localhost:9001/3.0/addresses/test-2@example.org", "delivery_mode": - "regular", "email": "test-2@example.org", "http_etag": "\"01edd396d1751ed6760012c41ed84bf5b511838c\"", - "list_id": "open_list.example.com", "member_id": 9, "role": "member", "self_link": - "http://localhost:9001/3.0/members/9", "user": "http://localhost:9001/3.0/users/11"}, + "regular", "email": "test-2@example.org", "http_etag": "\"c6d513719465691383452657cfc3e094fb011673\"", + "list_id": "open_list.example.com", "member_id": 133, "role": "member", "self_link": + "http://localhost:9001/3.0/members/133", "user": "http://localhost:9001/3.0/users/138"}, {"address": "http://localhost:9001/3.0/addresses/test-3@example.org", "delivery_mode": - "regular", "email": "test-3@example.org", "http_etag": "\"aa29ac3184ea9cb2e30fa4c1fdde22260c687242\"", - "list_id": "open_list.example.com", "member_id": 10, "role": "member", "self_link": - "http://localhost:9001/3.0/members/10", "user": "http://localhost:9001/3.0/users/12"}, + "regular", "email": "test-3@example.org", "http_etag": "\"c50be66fb1b9e6f2374632e5eef27f0c7e8c31a9\"", + "list_id": "open_list.example.com", "member_id": 134, "role": "member", "self_link": + "http://localhost:9001/3.0/members/134", "user": "http://localhost:9001/3.0/users/139"}, {"address": "http://localhost:9001/3.0/addresses/test-4@example.org", "delivery_mode": - "regular", "email": "test-4@example.org", "http_etag": "\"063adef3d1ee4fd06371e32de9cf0a10f9a86c90\"", - "list_id": "open_list.example.com", "member_id": 11, "role": "member", "self_link": - "http://localhost:9001/3.0/members/11", "user": "http://localhost:9001/3.0/users/13"}, + "regular", "email": "test-4@example.org", "http_etag": "\"129221aa852c719a52aa63499e0a44887e7c4feb\"", + "list_id": "open_list.example.com", "member_id": 135, "role": "member", "self_link": + "http://localhost:9001/3.0/members/135", "user": "http://localhost:9001/3.0/users/140"}, {"address": "http://localhost:9001/3.0/addresses/test-5@example.org", "delivery_mode": - "regular", "email": "test-5@example.org", "http_etag": "\"b5d2fbdaf4ede88391602936c35a1f438909d39c\"", - "list_id": "open_list.example.com", "member_id": 12, "role": "member", "self_link": - "http://localhost:9001/3.0/members/12", "user": "http://localhost:9001/3.0/users/14"}], - "http_etag": "\"cf78807d25a8eb832f8bad10f87eccebf7f26acb\"", "start": 0, "total_size": + "regular", "email": "test-5@example.org", "http_etag": "\"4975c9bea012fb07f05d3b86c090c5ef976c2314\"", + "list_id": "open_list.example.com", "member_id": 136, "role": "member", "self_link": + "http://localhost:9001/3.0/members/136", "user": "http://localhost:9001/3.0/users/141"}], + "http_etag": "\"06df31a6e5445b272e1a2da9f47db09e38fbf74f\"", "start": 0, "total_size": 5}'} headers: - content-length: ['1904'] + content-length: ['1923'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -450,11 +450,11 @@ uri: http://localhost:9001/3.0/lists/open_list.example.com/member/test-1@example.org response: body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/test-1@example.org", - "delivery_mode": "regular", "email": "test-1@example.org", "http_etag": "\"683dc0b1b55c98b8703858d6f4fb2990fa5889b3\"", - "list_id": "open_list.example.com", "member_id": 8, "role": "member", "self_link": - "http://localhost:9001/3.0/members/8", "user": "http://localhost:9001/3.0/users/10"}'} + "delivery_mode": "regular", "email": "test-1@example.org", "http_etag": "\"456a59dade14e23c9aa8cad9cf20b67449360da2\"", + "list_id": "open_list.example.com", "member_id": 132, "role": "member", "self_link": + "http://localhost:9001/3.0/members/132", "user": "http://localhost:9001/3.0/users/137"}'} headers: - content-length: ['357'] + content-length: ['362'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -465,11 +465,11 @@ uri: http://localhost:9001/3.0/lists/open_list.example.com/member/test-2@example.org response: body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/test-2@example.org", - "delivery_mode": "regular", "email": "test-2@example.org", "http_etag": "\"01edd396d1751ed6760012c41ed84bf5b511838c\"", - "list_id": "open_list.example.com", "member_id": 9, "role": "member", "self_link": - "http://localhost:9001/3.0/members/9", "user": "http://localhost:9001/3.0/users/11"}'} + "delivery_mode": "regular", "email": "test-2@example.org", "http_etag": "\"c6d513719465691383452657cfc3e094fb011673\"", + "list_id": "open_list.example.com", "member_id": 133, "role": "member", "self_link": + "http://localhost:9001/3.0/members/133", "user": "http://localhost:9001/3.0/users/138"}'} headers: - content-length: ['357'] + content-length: ['362'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -480,11 +480,11 @@ uri: http://localhost:9001/3.0/lists/open_list.example.com/member/test-3@example.org response: body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/test-3@example.org", - "delivery_mode": "regular", "email": "test-3@example.org", "http_etag": "\"aa29ac3184ea9cb2e30fa4c1fdde22260c687242\"", - "list_id": "open_list.example.com", "member_id": 10, "role": "member", "self_link": - "http://localhost:9001/3.0/members/10", "user": "http://localhost:9001/3.0/users/12"}'} + "delivery_mode": "regular", "email": "test-3@example.org", "http_etag": "\"c50be66fb1b9e6f2374632e5eef27f0c7e8c31a9\"", + "list_id": "open_list.example.com", "member_id": 134, "role": "member", "self_link": + "http://localhost:9001/3.0/members/134", "user": "http://localhost:9001/3.0/users/139"}'} headers: - content-length: ['359'] + content-length: ['362'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -495,11 +495,11 @@ uri: http://localhost:9001/3.0/lists/open_list.example.com/member/test-4@example.org response: body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/test-4@example.org", - "delivery_mode": "regular", "email": "test-4@example.org", "http_etag": "\"063adef3d1ee4fd06371e32de9cf0a10f9a86c90\"", - "list_id": "open_list.example.com", "member_id": 11, "role": "member", "self_link": - "http://localhost:9001/3.0/members/11", "user": "http://localhost:9001/3.0/users/13"}'} + "delivery_mode": "regular", "email": "test-4@example.org", "http_etag": "\"129221aa852c719a52aa63499e0a44887e7c4feb\"", + "list_id": "open_list.example.com", "member_id": 135, "role": "member", "self_link": + "http://localhost:9001/3.0/members/135", "user": "http://localhost:9001/3.0/users/140"}'} headers: - content-length: ['359'] + content-length: ['362'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -510,11 +510,11 @@ uri: http://localhost:9001/3.0/lists/open_list.example.com/member/test-5@example.org response: body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/test-5@example.org", - "delivery_mode": "regular", "email": "test-5@example.org", "http_etag": "\"b5d2fbdaf4ede88391602936c35a1f438909d39c\"", - "list_id": "open_list.example.com", "member_id": 12, "role": "member", "self_link": - "http://localhost:9001/3.0/members/12", "user": "http://localhost:9001/3.0/users/14"}'} + "delivery_mode": "regular", "email": "test-5@example.org", "http_etag": "\"4975c9bea012fb07f05d3b86c090c5ef976c2314\"", + "list_id": "open_list.example.com", "member_id": 136, "role": "member", "self_link": + "http://localhost:9001/3.0/members/136", "user": "http://localhost:9001/3.0/users/141"}'} headers: - content-length: ['359'] + content-length: ['362'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -525,25 +525,9 @@ uri: http://localhost:9001/3.0/addresses/test-1@example.org response: body: {string: !!python/unicode '{"display_name": "First Person", "email": "test-1@example.org", - "http_etag": "\"87153f640a9e48898cc77f367e65f73f6d5e2b39\"", "original_email": + "http_etag": "\"d89a1379c611ac6260074305ae7a000dea2b704f\"", "original_email": "test-1@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": - "http://localhost:9001/3.0/addresses/test-1@example.org", "user": "http://localhost:9001/3.0/users/10", - "verified_on": "2005-08-01T07:49:23"}'} - headers: - content-length: ['359'] - content-type: [application/json; charset=UTF-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/addresses/test-2@example.org - response: - body: {string: !!python/unicode '{"display_name": "Second Person", "email": "test-2@example.org", - "http_etag": "\"c121a5cd0efb10f1d4048dce8654a4a80daaf731\"", "original_email": - "test-2@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": - "http://localhost:9001/3.0/addresses/test-2@example.org", "user": "http://localhost:9001/3.0/users/11", + "http://localhost:9001/3.0/addresses/test-1@example.org", "user": "http://localhost:9001/3.0/users/137", "verified_on": "2005-08-01T07:49:23"}'} headers: content-length: ['360'] @@ -554,15 +538,31 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET + uri: http://localhost:9001/3.0/addresses/test-2@example.org + response: + body: {string: !!python/unicode '{"display_name": "Second Person", "email": "test-2@example.org", + "http_etag": "\"8e0baa1769736ccaf496974de0c085bcdb01838e\"", "original_email": + "test-2@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": + "http://localhost:9001/3.0/addresses/test-2@example.org", "user": "http://localhost:9001/3.0/users/138", + "verified_on": "2005-08-01T07:49:23"}'} + headers: + content-length: ['361'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/test-3@example.org response: body: {string: !!python/unicode '{"display_name": "Third Person", "email": "test-3@example.org", - "http_etag": "\"2559799e0dc5bd6a54550783d00e68db5e8741b0\"", "original_email": + "http_etag": "\"a940bf516504ea90468cf900c3df1271ad54ed33\"", "original_email": "test-3@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": - "http://localhost:9001/3.0/addresses/test-3@example.org", "user": "http://localhost:9001/3.0/users/12", + "http://localhost:9001/3.0/addresses/test-3@example.org", "user": "http://localhost:9001/3.0/users/139", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['359'] + content-length: ['360'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -573,11 +573,11 @@ uri: http://localhost:9001/3.0/addresses/test-4@example.org response: body: {string: !!python/unicode '{"email": "test-4@example.org", "http_etag": - "\"debf3e6a5cbbc64c03dd23f818ff27d35ab95f4d\"", "original_email": "test-4@example.org", + "\"de3fbebb915b816a85b71370d16fb625d5920686\"", "original_email": "test-4@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test-4@example.org", - "user": "http://localhost:9001/3.0/users/13", "verified_on": "2005-08-01T07:49:23"}'} + "user": "http://localhost:9001/3.0/users/140", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['327'] + content-length: ['328'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -588,11 +588,11 @@ uri: http://localhost:9001/3.0/addresses/test-5@example.org response: body: {string: !!python/unicode '{"email": "test-5@example.org", "http_etag": - "\"41975422b038a26eba498d94c66fdd0300b899ce\"", "original_email": "test-5@example.org", + "\"219f4b509ab59da531067b8486ea6331d02eb897\"", "original_email": "test-5@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test-5@example.org", - "user": "http://localhost:9001/3.0/users/14", "verified_on": "2005-08-01T07:49:23"}'} + "user": "http://localhost:9001/3.0/users/141", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['327'] + content-length: ['328'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -656,27 +656,27 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"8eb07088c7b2d95cb82143e028a9663eeaabb59a\"", "is_server_owner": - false, "password": "$6$rounds=643554$5W67Aw4LntGBeBnr$sQ/i/BYakmtdId7mSJOvGUBzKiXa1rYnnVMMkwuMfrYEGZAVY.15RidH6eLz0if57DGRs0gvkjsNPlj2om0EL.", - "self_link": "http://localhost:9001/3.0/users/8", "user_id": 8}, {"created_on": - "2005-08-01T07:49:23", "http_etag": "\"d3653a82ed2e228300cde355e9d15020657bfb86\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/9", - "user_id": 9}, {"created_on": "2005-08-01T07:49:23", "display_name": "First - Person", "http_etag": "\"1aea6ab7ad5757927d85398149cbd4961a8489d6\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/10", "user_id": 10}, + "http_etag": "\"36beb30313f9201b8a0852524a54ff8b5e6771ab\"", "is_server_owner": + false, "password": "$6$rounds=697526$r74eGof.ml91rqpp$fz2.Vi.Fuex7UK9NImp2fl7228XsxzB/KZqKpFgKtdDMeBfUfMNaebrQN7tL6dvG6KBOWdRqcqF3I56uUqH45/", + "self_link": "http://localhost:9001/3.0/users/135", "user_id": 135}, {"created_on": + "2005-08-01T07:49:23", "http_etag": "\"455e7a28abeca6bf8d1f800f77d39730794f3d34\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/136", + "user_id": 136}, {"created_on": "2005-08-01T07:49:23", "display_name": "First + Person", "http_etag": "\"3f207423096a496272fc25fe3560079cd52b7d3c\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/137", "user_id": 137}, {"created_on": "2005-08-01T07:49:23", "display_name": "Second Person", "http_etag": - "\"bee864fb842cb943b54c82ff5d871fba8bd6aa1a\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/11", "user_id": 11}, {"created_on": - "2005-08-01T07:49:23", "display_name": "Third Person", "http_etag": "\"b8776ffb915bfff70c1ac3d187007eeb9baecfac\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/12", - "user_id": 12}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"007cc78d77622058dc0f70458877d09487378a12\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/13", - "user_id": 13}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"0151e0193b20e2c0ad85bb8486f2147bea762806\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/14", - "user_id": 14}], "http_etag": "\"cc96caa8412bb738f3b33e154fa327d516a29e3a\"", + "\"06ca8414ec08caab2e2d23fdd541edcfeb4652f5\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/138", "user_id": 138}, {"created_on": + "2005-08-01T07:49:23", "display_name": "Third Person", "http_etag": "\"e9abf61776266a578db42116b1ef27b66006e8c5\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/139", + "user_id": 139}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"7a64578cac590e6a9d57cc98a0ba2d600f0fa509\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/140", + "user_id": 140}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"f830b5904be81b27efe363268e4628fb335ff8b4\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/141", + "user_id": 141}], "http_etag": "\"34e520a3394b2324727b2ccf6e969f259ba6b1d7\"", "start": 0, "total_size": 7}'} headers: - content-length: ['1676'] + content-length: ['1694'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -684,7 +684,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/10 + uri: http://localhost:9001/3.0/users/135 response: body: {string: !!python/unicode ''} headers: @@ -695,7 +695,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/11 + uri: http://localhost:9001/3.0/users/136 response: body: {string: !!python/unicode ''} headers: @@ -706,7 +706,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/12 + uri: http://localhost:9001/3.0/users/137 response: body: {string: !!python/unicode ''} headers: @@ -717,7 +717,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/13 + uri: http://localhost:9001/3.0/users/138 response: body: {string: !!python/unicode ''} headers: @@ -728,7 +728,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/14 + uri: http://localhost:9001/3.0/users/139 response: body: {string: !!python/unicode ''} headers: @@ -739,7 +739,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/8 + uri: http://localhost:9001/3.0/users/140 response: body: {string: !!python/unicode ''} headers: @@ -750,7 +750,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/9 + uri: http://localhost:9001/3.0/users/141 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 6bb68f4..94a26e7 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 @@ -191,7 +191,7 @@ headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/users/15'] + location: ['http://localhost:9001/3.0/users/142'] status: {code: 201, message: Created} - request: body: !!python/unicode email=fritz%40example.org @@ -199,7 +199,7 @@ accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] method: !!python/unicode POST - uri: http://localhost:9001/3.0/users/15/addresses + uri: http://localhost:9001/3.0/users/142/addresses response: body: {string: !!python/unicode ''} headers: @@ -212,14 +212,14 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/15 + uri: http://localhost:9001/3.0/users/142 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"3cafb87c4c4adf1672dd5853e47650ab3236d7d8\"", "is_server_owner": false, - "password": "$6$rounds=646165$klG66NNbOe2bbw/s$855dnx/911PrtwxM6.8vpud96AUnQgDWuwmnkM/rDhxyQgPQyOx2nUVhjnSfalkv7CBv635OfaSgK.NkoNoSx/", - "self_link": "http://localhost:9001/3.0/users/15", "user_id": 15}'} + "\"b15a5c41771c80b5aa654353f02517e15bf5a074\"", "is_server_owner": false, + "password": "$6$rounds=595759$5awJYv/Sbo3hAS42$Im/xVk2feXLQb6vebiouAfg0s2EIctyVwJBULFWrj56IRDNAFDTWNbjydWC8yxAxu4lZ6JwjmE11rNqFDJETZ/", + "self_link": "http://localhost:9001/3.0/users/142", "user_id": 142}'} headers: - content-length: ['326'] + content-length: ['328'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -227,18 +227,18 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/15/addresses + uri: http://localhost:9001/3.0/users/142/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"f5e7dce17a939b6cd74400155bc8208939e35913\"", "original_email": "fritz@example.org", + "\"7cf1e80c95c20e2a171f94ab0ca507b943616600\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/15"}, {"email": "test@example.com", - "http_etag": "\"7e89118330bb8d4cfca6242e4023e3685cfe802f\"", "original_email": + "user": "http://localhost:9001/3.0/users/142"}, {"email": "test@example.com", + "http_etag": "\"13cb56140b795373076e1c415f6b25ee01a4fdc9\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "user": "http://localhost:9001/3.0/users/15"}], "http_etag": "\"022eb06e8ccdd9d0317e80895bcf7fe7341666d6\"", + "user": "http://localhost:9001/3.0/users/142"}], "http_etag": "\"d5f0b9a7348a02b949f5dbc8898375acb217d7e9\"", "start": 0, "total_size": 2}'} headers: - content-length: ['676'] + content-length: ['678'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -494,13 +494,13 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"3cafb87c4c4adf1672dd5853e47650ab3236d7d8\"", "is_server_owner": - false, "password": "$6$rounds=646165$klG66NNbOe2bbw/s$855dnx/911PrtwxM6.8vpud96AUnQgDWuwmnkM/rDhxyQgPQyOx2nUVhjnSfalkv7CBv635OfaSgK.NkoNoSx/", - "self_link": "http://localhost:9001/3.0/users/15", "user_id": 15}], "http_etag": - "\"028670275ed68f3eae664174803d3a61a1c1a704\"", "start": 0, "total_size": + "http_etag": "\"b15a5c41771c80b5aa654353f02517e15bf5a074\"", "is_server_owner": + false, "password": "$6$rounds=595759$5awJYv/Sbo3hAS42$Im/xVk2feXLQb6vebiouAfg0s2EIctyVwJBULFWrj56IRDNAFDTWNbjydWC8yxAxu4lZ6JwjmE11rNqFDJETZ/", + "self_link": "http://localhost:9001/3.0/users/142", "user_id": 142}], "http_etag": + "\"5a3fac2f3f3877389141423e174a13f7e2fc7bd5\"", "start": 0, "total_size": 1}'} headers: - content-length: ['431'] + content-length: ['433'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: @@ -508,7 +508,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/15 + uri: http://localhost:9001/3.0/users/142 response: body: {string: !!python/unicode ''} headers: