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 b6c97ae..1575fb1 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/DomainCreationTest.test_new_domain_created_with_owner.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/DomainCreationTest.test_new_domain_created_with_owner.yaml @@ -1,155 +1,111 @@ interactions: - request: - body: null + body: !!python/unicode description=A+new+Domain.&mail_host=example.com&owner=su%40example.com headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/su@example.com - response: - body: {string: !!python/unicode '404 Not Found'} - headers: - content-length: ['13'] - content-type: [application/json; charset=utf-8] - status: {code: 404, message: Not Found} -- request: - body: base_url=http%3A%2F%2Fexample.com&description=A+new+Domain.&mail_host=example.com&owner=su%40example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!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 '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"976a4412eb9cb5d0caff87e1fb125a75d8557190\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/2617", "user_id": 2617}'} - 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/2617/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag": - "\"7728784f9ba62dfdd42fe755547e5fbd4b6ebc64\"", "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/2617"}], "http_etag": "\"a1d3c7326c76c0eb992cbb349a0fcc9ac092a419\"", - "start": 0, "total_size": 1}'} - headers: - content-length: ['384'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", - "description": "A new Domain.", "http_etag": "\"f574263235a622b271bd1115317117aee0e171f0\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}], "http_etag": "\"38f84ff58faee37a60c2f95a37be70303d2cfb59\"", - "start": 0, "total_size": 1}'} + body: {string: !!python/unicode '{"entries": [{"description": "A new Domain.", + "http_etag": "\"c6e72672613e4356ea2b456732e7ac6a944c7895\"", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}], + "http_etag": "\"d24e513367f58024924e08c348757556eba0c853\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['349'] - content-type: [application/json; charset=utf-8] + content-length: ['288'] + 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": - "A new Domain.", "http_etag": "\"f574263235a622b271bd1115317117aee0e171f0\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": "A new Domain.", "http_etag": + "\"c6e72672613e4356ea2b456732e7ac6a944c7895\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['244'] - content-type: [application/json; charset=utf-8] + content-length: ['183'] + 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": - "A new Domain.", "http_etag": "\"f574263235a622b271bd1115317117aee0e171f0\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": "A new Domain.", "http_etag": + "\"c6e72672613e4356ea2b456732e7ac6a944c7895\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['244'] - content-type: [application/json; charset=utf-8] + content-length: ['183'] + 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": - "A new Domain.", "http_etag": "\"f574263235a622b271bd1115317117aee0e171f0\"", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + body: {string: !!python/unicode '{"description": "A new Domain.", "http_etag": + "\"c6e72672613e4356ea2b456732e7ac6a944c7895\"", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: - content-length: ['244'] - content-type: [application/json; charset=utf-8] + content-length: ['183'] + 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/owners response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"976a4412eb9cb5d0caff87e1fb125a75d8557190\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/2617", "user_id": 2617}], - "http_etag": "\"ff75a8caf08c7fc6205bb7a4a8f1a41e03062b76\"", "start": 0, "total_size": + "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": 1}'} headers: - content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-length: ['293'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/users/su@example.com response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"976a4412eb9cb5d0caff87e1fb125a75d8557190\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/2617", "user_id": 2617}'} + "\"eb591d9720aa0ac944b49315b6af1c950410b54c\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}'} headers: - content-length: ['194'] - content-type: [application/json; charset=utf-8] + 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 'DELETE' + method: !!python/unicode DELETE uri: http://localhost:9001/3.0/domains/example.com response: body: {string: !!python/unicode ''} @@ -160,37 +116,37 @@ 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 '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"976a4412eb9cb5d0caff87e1fb125a75d8557190\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/2617", "user_id": 2617}], - "http_etag": "\"ff75a8caf08c7fc6205bb7a4a8f1a41e03062b76\"", "start": 0, "total_size": + "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": 1}'} headers: - content-length: ['299'] - content-type: [application/json; charset=utf-8] + content-length: ['293'] + 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/2617 + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/1 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 852667a..b1de4f9 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_subscriptions_no_mailman_user.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_subscriptions_no_mailman_user.yaml @@ -1,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/86'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/users/1'] status: {code: 201, message: Created} - request: body: null @@ -63,7 +64,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 @@ -75,22 +76,10 @@ 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 - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/old-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: email=old-user%40example.com + body: !!python/unicode email=old-user%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -100,42 +89,43 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/87'] + 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/users/87 + uri: http://localhost:9001/3.0/users/2 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"9673f4ac6062927aff92caf7175e4dc946554ebe\"", "is_server_owner": false, - "password": "$6$rounds=712335$WUQ6J3kH7Beb54ST$yPJ3/EMqwu.fZLQuspg5DA5QZ1dOcCW1CO934bGCg/XiURACX2Awm00tx4Ge3Zwk0s7wXgLqrBRZU9lsUPiyx/", - "self_link": "http://localhost:9001/3.0/users/87", "user_id": 87}'} + "\"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}'} headers: - content-length: ['326'] - content-type: [application/json; charset=utf-8] + 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/87/addresses + uri: http://localhost:9001/3.0/users/2/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "old-user@example.com", - "http_etag": "\"82a2767c8af16328c709fe298b0578df85033307\"", "original_email": + "http_etag": "\"c0525c55f8389234b6835f13e2da185819e94507\"", "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/87"}], - "http_etag": "\"fe933ade9a299d8fcc8b1d28088f87528e21c335\"", "start": 0, "total_size": + "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": 1}'} headers: - content-length: ['400'] - content-type: [application/json; charset=utf-8] + content-length: ['399'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: subscriber=old-user%40example.com + body: !!python/unicode subscriber=old-user%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -146,7 +136,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 @@ -156,12 +146,12 @@ 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": - "\"9673f4ac6062927aff92caf7175e4dc946554ebe\"", "is_server_owner": false, - "password": "$6$rounds=712335$WUQ6J3kH7Beb54ST$yPJ3/EMqwu.fZLQuspg5DA5QZ1dOcCW1CO934bGCg/XiURACX2Awm00tx4Ge3Zwk0s7wXgLqrBRZU9lsUPiyx/", - "self_link": "http://localhost:9001/3.0/users/87", "user_id": 87}'} + "\"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}'} headers: - content-length: ['326'] - content-type: [application/json; charset=utf-8] + content-length: ['324'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -170,14 +160,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 @@ -198,24 +188,24 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"90a7775ce62cd94b3fe990f53ec4e3aa037d6e7c\"", "is_server_owner": - false, "password": "$6$rounds=669630$HRY4iepO3GcdHiis$17VVsa9cwTjb8fsofal7AaMdDssba.fs4cylj02EM/6c65xC8yt9UbCNQP4ujam.YcrA9Tx0EYDBVg75hh/Bf.", - "self_link": "http://localhost:9001/3.0/users/86", "user_id": 86}, {"created_on": - "2005-08-01T07:49:23", "http_etag": "\"9673f4ac6062927aff92caf7175e4dc946554ebe\"", - "is_server_owner": false, "password": "$6$rounds=712335$WUQ6J3kH7Beb54ST$yPJ3/EMqwu.fZLQuspg5DA5QZ1dOcCW1CO934bGCg/XiURACX2Awm00tx4Ge3Zwk0s7wXgLqrBRZU9lsUPiyx/", - "self_link": "http://localhost:9001/3.0/users/87", "user_id": 87}], "http_etag": - "\"5aa5297db906d67060025694a61286148857dd73\"", "start": 0, "total_size": + "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": 2}'} headers: - content-length: ['759'] - content-type: [application/json; charset=utf-8] + content-length: ['755'] + 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/86 + uri: http://localhost:9001/3.0/users/1 response: body: {string: !!python/unicode ''} headers: @@ -226,7 +216,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/87 + uri: http://localhost:9001/3.0/users/2 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_change_subscription_confirm.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_change_subscription_confirm.yaml index 9d73309..0f50f8d 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 @@ -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=open_list%40example.com + body: !!python/unicode fqdn_listname=open_list%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -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/open_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 @@ -71,26 +71,27 @@ "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": "open_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": - "monthly", "digests_enabled": true, "display_name": "Open_list", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", - "goodbye_message_uri": "", "http_etag": "\"3d16b6c6d1bb8fed130bd061c70a0894856a4ca8\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Open_list", "filter_content": false, + "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "open_list@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"87dbf6f784ce7fcba36c92ecc99006b8c1f878eb\"", "include_rfc2369_headers": true, "join_address": "open_list-join@example.com", "last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name": - "open_list", "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": - "noreply@example.com", "owner_address": "open_list-owner@example.com", "post_id": - 1, "posting_address": "open_list@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "open_list-request@example.com", "scheme": "http", "send_welcome_message": + "open_list", "mail_host": "example.com", "moderator_password": null, "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "open_list-owner@example.com", + "post_id": 1, "posting_address": "open_list@example.com", "posting_pipeline": + "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": + "", "request_address": "open_list-request@example.com", "send_welcome_message": true, "subject_prefix": "[Open_list] ", "subscription_policy": "confirm", - "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1790'] - content-type: [application/json; charset=utf-8] + content-length: ['1837'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: subscription_policy=open + body: !!python/unicode subscription_policy=open headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -102,7 +103,7 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: fqdn_listname=moderate_subs%40example.com + body: !!python/unicode fqdn_listname=moderate_subs%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -112,6 +113,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/moderate_subs.example.com'] status: {code: 201, message: Created} - request: @@ -128,7 +130,7 @@ "volume": 1}'} headers: content-length: ['344'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -145,27 +147,28 @@ "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": "moderate_subs-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": - "monthly", "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", - "goodbye_message_uri": "", "http_etag": "\"bbeb372001a49a25fa038477abd59e8b3c45a20d\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": + false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"de6cbad08d95ba3eeba449e9ea2b2eb130d74f97\"", "include_rfc2369_headers": true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, "leave_address": "moderate_subs-leave@example.com", - "list_name": "moderate_subs", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "moderate_subs-owner@example.com", - "post_id": 1, "posting_address": "moderate_subs@example.com", "posting_pipeline": - "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": - "", "request_address": "moderate_subs-request@example.com", "scheme": "http", - "send_welcome_message": true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": - "confirm", "volume": 1, "web_host": "example.com", "welcome_message_uri": - "mailman:///welcome.txt"}'} + "list_name": "moderate_subs", "mail_host": "example.com", "moderator_password": + null, "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": + "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "moderate_subs-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Moderate_subs] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1830'] - content-type: [application/json; charset=utf-8] + content-length: ['1877'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: subscription_policy=moderate + body: !!python/unicode subscription_policy=moderate headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -177,7 +180,7 @@ content-length: ['0'] status: {code: 204, message: No Content} - 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] @@ -187,10 +190,11 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/users/1'] status: {code: 201, message: Created} - request: - body: email=fritz%40example.org + body: !!python/unicode email=fritz%40example.org headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -200,6 +204,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/addresses/fritz@example.org'] status: {code: 201, message: Created} - request: @@ -210,12 +215,12 @@ uri: http://localhost:9001/3.0/users/1 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"63f8d56eaf2545a495a9b61acc47e2fa62697073\"", "is_server_owner": false, - "password": "$6$rounds=609031$uX4mXc7izwD/c7W.$TTI/uoqKq569Qi7qndf4JrjeVG.coAuyZy78NDZ/Qv4ZKWRGVHa/OVQghW8aJwAGmoKnbkrFcTd0LNkC9tJcG0", + "\"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}'} 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 @@ -234,7 +239,7 @@ "start": 0, "total_size": 2}'} headers: content-length: ['674'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -259,7 +264,7 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: fqdn_listname=confirm_list%40example.com + body: !!python/unicode fqdn_listname=confirm_list%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -269,6 +274,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/confirm_list.example.com'] status: {code: 201, message: Created} - request: @@ -285,7 +291,7 @@ "volume": 1}'} headers: content-length: ['339'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -302,24 +308,24 @@ "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": "confirm_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": "Confirm_list", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "confirm_list@example.com", - "goodbye_message_uri": "", "http_etag": "\"7cf2ddebec6fa45a26e2ba9abe83a8e8d2e36bb1\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Confirm_list", "filter_content": + false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "confirm_list@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"0beb9c33de3bff08553cab69155f7f9dda673ed3\"", "include_rfc2369_headers": true, "join_address": "confirm_list-join@example.com", "last_post_at": null, "leave_address": "confirm_list-leave@example.com", "list_name": - "confirm_list", "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": - "noreply@example.com", "owner_address": "confirm_list-owner@example.com", + "confirm_list", "mail_host": "example.com", "moderator_password": null, "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "confirm_list-owner@example.com", "post_id": 1, "posting_address": "confirm_list@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": - "", "request_address": "confirm_list-request@example.com", "scheme": "http", - "send_welcome_message": true, "subject_prefix": "[Confirm_list] ", "subscription_policy": - "confirm", "volume": 1, "web_host": "example.com", "welcome_message_uri": - "mailman:///welcome.txt"}'} + "", "request_address": "confirm_list-request@example.com", "send_welcome_message": + true, "subject_prefix": "[Confirm_list] ", "subscription_policy": "confirm", + "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1820'] - content-type: [application/json; charset=utf-8] + content-length: ['1867'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: !!python/unicode @@ -334,7 +340,7 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: display_name=None&list_id=confirm_list.example.com&pre_confirmed=True&subscriber=test%40example.com + body: !!python/unicode display_name=None&list_id=confirm_list.example.com&pre_confirmed=True&subscriber=test%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -344,6 +350,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/1'] status: {code: 201, message: Created} - request: @@ -354,14 +361,14 @@ 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": "\"82a667defcf1f397d8a12162596b1b791a0c260b\"", - "list_id": "confirm_list.example.com", "member_id": 1, "moderation_action": - "defer", "role": "member", "self_link": "http://localhost:9001/3.0/members/1", - "user": "http://localhost:9001/3.0/users/1"}], "http_etag": "\"686ae3138f0e50de15e75824cd4069e7245585af\"", - "start": 0, "total_size": 1}'} + "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": + 1}'} headers: - content-length: ['490'] - content-type: [application/json; charset=utf-8] + content-length: ['460'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -374,43 +381,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/test@example.com - response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"63f8d56eaf2545a495a9b61acc47e2fa62697073\"", "is_server_owner": false, - "password": "$6$rounds=609031$uX4mXc7izwD/c7W.$TTI/uoqKq569Qi7qndf4JrjeVG.coAuyZy78NDZ/Qv4ZKWRGVHa/OVQghW8aJwAGmoKnbkrFcTd0LNkC9tJcG0", - "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}'} - headers: - content-length: ['324'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/1/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"beba50816195251c83f486bbd257e29fd639385f\"", "original_email": "fritz@example.org", - "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/1", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"2af8b40afeda1132c4f948baad6cb4c1cdf4cde6\"", - "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", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"d3f526ca6a879a24e6cbe2502b8de27ec8110ba1\"", "start": 0, "total_size": - 2}'} - headers: - content-length: ['750'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -426,7 +397,7 @@ "volume": 1}'} headers: content-length: ['339'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -439,7 +410,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 @@ -452,23 +423,35 @@ "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/confirm_list.example.com/member/fritz@example.org + 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 + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET 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": "\"82a667defcf1f397d8a12162596b1b791a0c260b\"", - "list_id": "confirm_list.example.com", "member_id": 1, "moderation_action": - "defer", "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": "\"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"}'} headers: - content-length: ['385'] - content-type: [application/json; charset=utf-8] + content-length: ['355'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -482,7 +465,7 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: display_name=None&list_id=confirm_list.example.com&pre_confirmed=True&subscriber=fritz%40example.org + body: !!python/unicode display_name=None&list_id=confirm_list.example.com&pre_confirmed=True&subscriber=fritz%40example.org headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -492,6 +475,7 @@ 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: @@ -502,14 +486,14 @@ 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": "\"045190d9f0e8ac8de3235a2ed210b4f98cf0fcff\"", - "list_id": "confirm_list.example.com", "member_id": 2, "moderation_action": - "defer", "role": "member", "self_link": "http://localhost:9001/3.0/members/2", - "user": "http://localhost:9001/3.0/users/1"}], "http_etag": "\"08ecc66f3e4c1a046cd95959b2c2554297831e6f\"", - "start": 0, "total_size": 1}'} + "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": + 1}'} headers: - content-length: ['492'] - content-type: [application/json; charset=utf-8] + content-length: ['462'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -522,7 +506,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 @@ -532,49 +516,12 @@ 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": "\"045190d9f0e8ac8de3235a2ed210b4f98cf0fcff\"", - "list_id": "confirm_list.example.com", "member_id": 2, "moderation_action": - "defer", "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": "\"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"}'} headers: - content-length: ['387'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/test@example.com - response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"63f8d56eaf2545a495a9b61acc47e2fa62697073\"", "is_server_owner": false, - "password": "$6$rounds=609031$uX4mXc7izwD/c7W.$TTI/uoqKq569Qi7qndf4JrjeVG.coAuyZy78NDZ/Qv4ZKWRGVHa/OVQghW8aJwAGmoKnbkrFcTd0LNkC9tJcG0", - "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}'} - headers: - content-length: ['324'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/1/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"beba50816195251c83f486bbd257e29fd639385f\"", "original_email": "fritz@example.org", - "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/1", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"2af8b40afeda1132c4f948baad6cb4c1cdf4cde6\"", - "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", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"d3f526ca6a879a24e6cbe2502b8de27ec8110ba1\"", "start": 0, "total_size": - 2}'} - headers: - content-length: ['750'] - content-type: [application/json; charset=utf-8] + content-length: ['357'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -590,7 +537,7 @@ "volume": 1}'} headers: content-length: ['339'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -603,7 +550,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 @@ -616,35 +563,22 @@ "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/confirm_list.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/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": "\"045190d9f0e8ac8de3235a2ed210b4f98cf0fcff\"", - "list_id": "confirm_list.example.com", "member_id": 2, "moderation_action": - "defer", "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": "\"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"}'} headers: - content-length: ['387'] - content-type: [application/json; charset=utf-8] + content-length: ['357'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -661,24 +595,24 @@ "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": "confirm_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": "Confirm_list", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "confirm_list@example.com", - "goodbye_message_uri": "", "http_etag": "\"7cf2ddebec6fa45a26e2ba9abe83a8e8d2e36bb1\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Confirm_list", "filter_content": + false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "confirm_list@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"0beb9c33de3bff08553cab69155f7f9dda673ed3\"", "include_rfc2369_headers": true, "join_address": "confirm_list-join@example.com", "last_post_at": null, "leave_address": "confirm_list-leave@example.com", "list_name": - "confirm_list", "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": - "noreply@example.com", "owner_address": "confirm_list-owner@example.com", + "confirm_list", "mail_host": "example.com", "moderator_password": null, "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "confirm_list-owner@example.com", "post_id": 1, "posting_address": "confirm_list@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": - "", "request_address": "confirm_list-request@example.com", "scheme": "http", - "send_welcome_message": true, "subject_prefix": "[Confirm_list] ", "subscription_policy": - "confirm", "volume": 1, "web_host": "example.com", "welcome_message_uri": - "mailman:///welcome.txt"}'} + "", "request_address": "confirm_list-request@example.com", "send_welcome_message": + true, "subject_prefix": "[Confirm_list] ", "subscription_policy": "confirm", + "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1820'] - content-type: [application/json; charset=utf-8] + content-length: ['1867'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -691,7 +625,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 @@ -704,7 +638,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 @@ -713,14 +647,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 @@ -741,14 +675,14 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"63f8d56eaf2545a495a9b61acc47e2fa62697073\"", "is_server_owner": - false, "password": "$6$rounds=609031$uX4mXc7izwD/c7W.$TTI/uoqKq569Qi7qndf4JrjeVG.coAuyZy78NDZ/Qv4ZKWRGVHa/OVQghW8aJwAGmoKnbkrFcTd0LNkC9tJcG0", + "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": - "\"41b392c9fb2816b7d69fe8146be0832a87b941a1\"", "start": 0, "total_size": + "\"ad51831b70d76fb15add7376420319d45a3f2496\"", "start": 0, "total_size": 1}'} headers: content-length: ['429'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null 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 2c0ce0f..b28ab1a 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 @@ -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=open_list%40example.com + body: !!python/unicode fqdn_listname=open_list%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -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/open_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 @@ -71,26 +71,27 @@ "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": "open_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": - "monthly", "digests_enabled": true, "display_name": "Open_list", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", - "goodbye_message_uri": "", "http_etag": "\"3d16b6c6d1bb8fed130bd061c70a0894856a4ca8\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Open_list", "filter_content": false, + "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "open_list@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"87dbf6f784ce7fcba36c92ecc99006b8c1f878eb\"", "include_rfc2369_headers": true, "join_address": "open_list-join@example.com", "last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name": - "open_list", "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": - "noreply@example.com", "owner_address": "open_list-owner@example.com", "post_id": - 1, "posting_address": "open_list@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "open_list-request@example.com", "scheme": "http", "send_welcome_message": + "open_list", "mail_host": "example.com", "moderator_password": null, "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "open_list-owner@example.com", + "post_id": 1, "posting_address": "open_list@example.com", "posting_pipeline": + "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": + "", "request_address": "open_list-request@example.com", "send_welcome_message": true, "subject_prefix": "[Open_list] ", "subscription_policy": "confirm", - "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1790'] - content-type: [application/json; charset=utf-8] + content-length: ['1837'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: subscription_policy=open + body: !!python/unicode subscription_policy=open headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -102,7 +103,7 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: fqdn_listname=moderate_subs%40example.com + body: !!python/unicode fqdn_listname=moderate_subs%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -112,6 +113,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/moderate_subs.example.com'] status: {code: 201, message: Created} - request: @@ -128,7 +130,7 @@ "volume": 1}'} headers: content-length: ['344'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -145,27 +147,28 @@ "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": "moderate_subs-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": - "monthly", "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", - "goodbye_message_uri": "", "http_etag": "\"bbeb372001a49a25fa038477abd59e8b3c45a20d\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": + false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"de6cbad08d95ba3eeba449e9ea2b2eb130d74f97\"", "include_rfc2369_headers": true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, "leave_address": "moderate_subs-leave@example.com", - "list_name": "moderate_subs", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "moderate_subs-owner@example.com", - "post_id": 1, "posting_address": "moderate_subs@example.com", "posting_pipeline": - "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": - "", "request_address": "moderate_subs-request@example.com", "scheme": "http", - "send_welcome_message": true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": - "confirm", "volume": 1, "web_host": "example.com", "welcome_message_uri": - "mailman:///welcome.txt"}'} + "list_name": "moderate_subs", "mail_host": "example.com", "moderator_password": + null, "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": + "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "moderate_subs-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Moderate_subs] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1830'] - content-type: [application/json; charset=utf-8] + content-length: ['1877'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: subscription_policy=moderate + body: !!python/unicode subscription_policy=moderate headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -177,7 +180,7 @@ content-length: ['0'] status: {code: 204, message: No Content} - 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] @@ -187,10 +190,11 @@ 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: email=fritz%40example.org + body: !!python/unicode email=fritz%40example.org headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -200,6 +204,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/addresses/fritz@example.org'] status: {code: 201, message: Created} - request: @@ -210,12 +215,12 @@ uri: http://localhost:9001/3.0/users/2 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"87f1d9e94ec320f33da1b3afd861a03a41760fef\"", "is_server_owner": false, - "password": "$6$rounds=625736$zrGjcUczGu9z3mmn$VtzxbzLToRfxA64YTFOBe3eUBmiJVKz1TzNz/seQ9zGkjMVMI1PBGj3e5CH4eZNefnsJCk35NK.1niCEJ87El1", + "\"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}'} 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 @@ -234,7 +239,7 @@ "start": 0, "total_size": 2}'} headers: content-length: ['674'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -259,7 +264,7 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: display_name=None&list_id=open_list.example.com&subscriber=test%40example.com + body: !!python/unicode display_name=None&list_id=open_list.example.com&subscriber=test%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -269,6 +274,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/3'] status: {code: 201, message: Created} - request: @@ -279,14 +285,14 @@ 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": "\"476d4c8714b716ae8320fc4a9a927f33d0a07f7a\"", - "list_id": "open_list.example.com", "member_id": 3, "moderation_action": "defer", - "role": "member", "self_link": "http://localhost:9001/3.0/members/3", "user": - "http://localhost:9001/3.0/users/2"}], "http_etag": "\"021afa6aa4355016a2ae3f60a813e2faf6d16fd0\"", - "start": 0, "total_size": 1}'} + "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": + 1}'} headers: - content-length: ['487'] - 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 @@ -299,43 +305,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/test@example.com - response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"87f1d9e94ec320f33da1b3afd861a03a41760fef\"", "is_server_owner": false, - "password": "$6$rounds=625736$zrGjcUczGu9z3mmn$VtzxbzLToRfxA64YTFOBe3eUBmiJVKz1TzNz/seQ9zGkjMVMI1PBGj3e5CH4eZNefnsJCk35NK.1niCEJ87El1", - "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": "fritz@example.org", "http_etag": - "\"02f89f7abae6a83149f8c4a5cf9d7c468e022f49\"", "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", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"085ffbadea6785f7de600c67e7950064bb040334\"", - "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", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"301824ea931101a0141bd2423dda3aff89284144\"", "start": 0, "total_size": - 2}'} - headers: - content-length: ['750'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -351,7 +321,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 @@ -364,7 +334,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 @@ -377,23 +347,35 @@ "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/open_list.example.com/member/fritz@example.org + 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 + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com/member/test@example.com response: body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/test@example.com", - "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"476d4c8714b716ae8320fc4a9a927f33d0a07f7a\"", - "list_id": "open_list.example.com", "member_id": 3, "moderation_action": "defer", - "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": "\"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"}'} headers: - content-length: ['382'] - 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 @@ -407,7 +389,7 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: display_name=None&list_id=open_list.example.com&pre_confirmed=True&subscriber=fritz%40example.org + body: !!python/unicode display_name=None&list_id=open_list.example.com&pre_confirmed=True&subscriber=fritz%40example.org headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -417,6 +399,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/members/4'] status: {code: 201, message: Created} - request: @@ -427,14 +410,14 @@ 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": "\"35f074a3676253b609aff72ddc0b8d5a2d806165\"", - "list_id": "open_list.example.com", "member_id": 4, "moderation_action": "defer", - "role": "member", "self_link": "http://localhost:9001/3.0/members/4", "user": - "http://localhost:9001/3.0/users/2"}], "http_etag": "\"8e7eaaa9e56b62edecd22999859164584e7b58cb\"", - "start": 0, "total_size": 1}'} + "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": + 1}'} headers: - content-length: ['489'] - content-type: [application/json; charset=utf-8] + content-length: ['459'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -447,7 +430,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 @@ -457,49 +440,12 @@ uri: http://localhost:9001/3.0/lists/open_list.example.com/member/fritz@example.org response: body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/fritz@example.org", - "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"35f074a3676253b609aff72ddc0b8d5a2d806165\"", - "list_id": "open_list.example.com", "member_id": 4, "moderation_action": "defer", - "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": "\"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"}'} headers: - content-length: ['384'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/test@example.com - response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"87f1d9e94ec320f33da1b3afd861a03a41760fef\"", "is_server_owner": false, - "password": "$6$rounds=625736$zrGjcUczGu9z3mmn$VtzxbzLToRfxA64YTFOBe3eUBmiJVKz1TzNz/seQ9zGkjMVMI1PBGj3e5CH4eZNefnsJCk35NK.1niCEJ87El1", - "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": "fritz@example.org", "http_etag": - "\"02f89f7abae6a83149f8c4a5cf9d7c468e022f49\"", "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", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"085ffbadea6785f7de600c67e7950064bb040334\"", - "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", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"301824ea931101a0141bd2423dda3aff89284144\"", "start": 0, "total_size": - 2}'} - headers: - content-length: ['750'] - content-type: [application/json; charset=utf-8] + content-length: ['354'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -515,7 +461,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 @@ -528,7 +474,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 @@ -541,35 +487,22 @@ "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/open_list.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/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": "\"35f074a3676253b609aff72ddc0b8d5a2d806165\"", - "list_id": "open_list.example.com", "member_id": 4, "moderation_action": "defer", - "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": "\"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"}'} headers: - content-length: ['384'] - content-type: [application/json; charset=utf-8] + content-length: ['354'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -586,23 +519,24 @@ "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": "open_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": - "monthly", "digests_enabled": true, "display_name": "Open_list", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", - "goodbye_message_uri": "", "http_etag": "\"f5522fcc64a0848ce01fcad0b5f9ee42b9c02bd3\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Open_list", "filter_content": false, + "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "open_list@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"3832519e8672eb7c123e02757f46d3be1080d3fd\"", "include_rfc2369_headers": true, "join_address": "open_list-join@example.com", "last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name": - "open_list", "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": - "noreply@example.com", "owner_address": "open_list-owner@example.com", "post_id": - 1, "posting_address": "open_list@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "open_list-request@example.com", "scheme": "http", "send_welcome_message": + "open_list", "mail_host": "example.com", "moderator_password": null, "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "open_list-owner@example.com", + "post_id": 1, "posting_address": "open_list@example.com", "posting_pipeline": + "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": + "", "request_address": "open_list-request@example.com", "send_welcome_message": true, "subject_prefix": "[Open_list] ", "subscription_policy": "open", "volume": - 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + 1, "welcome_message_uri": ""}'} headers: - content-length: ['1787'] - content-type: [application/json; charset=utf-8] + content-length: ['1834'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -615,7 +549,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 @@ -628,7 +562,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 @@ -637,14 +571,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 @@ -665,14 +599,14 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"87f1d9e94ec320f33da1b3afd861a03a41760fef\"", "is_server_owner": - false, "password": "$6$rounds=625736$zrGjcUczGu9z3mmn$VtzxbzLToRfxA64YTFOBe3eUBmiJVKz1TzNz/seQ9zGkjMVMI1PBGj3e5CH4eZNefnsJCk35NK.1niCEJ87El1", + "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": - "\"b56bc3aed48a0b23a533223fbcbd05134633d17f\"", "start": 0, "total_size": + "\"f685b49a14a0bc34dd63504a4a32860004ae88d5\"", "start": 0, "total_size": 1}'} headers: content-length: ['429'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null 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 b7129b9..f654947 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 @@ -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=open_list%40example.com + body: !!python/unicode fqdn_listname=open_list%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -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/open_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 @@ -71,26 +71,27 @@ "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": "open_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": - "monthly", "digests_enabled": true, "display_name": "Open_list", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", - "goodbye_message_uri": "", "http_etag": "\"3d16b6c6d1bb8fed130bd061c70a0894856a4ca8\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Open_list", "filter_content": false, + "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "open_list@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"87dbf6f784ce7fcba36c92ecc99006b8c1f878eb\"", "include_rfc2369_headers": true, "join_address": "open_list-join@example.com", "last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name": - "open_list", "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": - "noreply@example.com", "owner_address": "open_list-owner@example.com", "post_id": - 1, "posting_address": "open_list@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "open_list-request@example.com", "scheme": "http", "send_welcome_message": + "open_list", "mail_host": "example.com", "moderator_password": null, "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "open_list-owner@example.com", + "post_id": 1, "posting_address": "open_list@example.com", "posting_pipeline": + "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": + "", "request_address": "open_list-request@example.com", "send_welcome_message": true, "subject_prefix": "[Open_list] ", "subscription_policy": "confirm", - "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1790'] - content-type: [application/json; charset=utf-8] + content-length: ['1837'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: subscription_policy=open + body: !!python/unicode subscription_policy=open headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -102,7 +103,7 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: fqdn_listname=moderate_subs%40example.com + body: !!python/unicode fqdn_listname=moderate_subs%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -112,6 +113,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/moderate_subs.example.com'] status: {code: 201, message: Created} - request: @@ -128,7 +130,7 @@ "volume": 1}'} headers: content-length: ['344'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -145,27 +147,28 @@ "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": "moderate_subs-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": - "monthly", "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", - "goodbye_message_uri": "", "http_etag": "\"bbeb372001a49a25fa038477abd59e8b3c45a20d\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": + false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"de6cbad08d95ba3eeba449e9ea2b2eb130d74f97\"", "include_rfc2369_headers": true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, "leave_address": "moderate_subs-leave@example.com", - "list_name": "moderate_subs", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "moderate_subs-owner@example.com", - "post_id": 1, "posting_address": "moderate_subs@example.com", "posting_pipeline": - "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": - "", "request_address": "moderate_subs-request@example.com", "scheme": "http", - "send_welcome_message": true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": - "confirm", "volume": 1, "web_host": "example.com", "welcome_message_uri": - "mailman:///welcome.txt"}'} + "list_name": "moderate_subs", "mail_host": "example.com", "moderator_password": + null, "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": + "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "moderate_subs-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Moderate_subs] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1830'] - content-type: [application/json; charset=utf-8] + content-length: ['1877'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: subscription_policy=moderate + body: !!python/unicode subscription_policy=moderate headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -177,7 +180,7 @@ content-length: ['0'] status: {code: 204, message: No Content} - 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] @@ -187,19 +190,21 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/7'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/users/3'] status: {code: 201, message: Created} - request: - body: email=fritz%40example.org + body: !!python/unicode email=fritz%40example.org headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] method: !!python/unicode POST - uri: http://localhost:9001/3.0/users/7/addresses + uri: http://localhost:9001/3.0/users/3/addresses response: body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/addresses/fritz@example.org'] status: {code: 201, message: Created} - request: @@ -207,34 +212,34 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/7 + uri: http://localhost:9001/3.0/users/3 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"6d1547199b1e24ceeada29d5846223466648e11a\"", "is_server_owner": false, - "password": "$6$rounds=719572$3abEW8q7vcDGW1V.$ER8LadISyD.z2TVPVrsLwvybCnzATMWjn4mXotm0699euEZnEWYBgX5U.ltxZTUBu5KCQEYSzemB3HOND647j1", - "self_link": "http://localhost:9001/3.0/users/7", "user_id": 7}'} + "\"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}'} 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 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/3/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"490365930d4f0666d685bb7ebf5611974f53e017\"", "original_email": "fritz@example.org", + "\"4acba92c10f9469faebaae91b3b918d8c4955fdc\"", "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/3"}, {"email": "test@example.com", + "http_etag": "\"bec867729ea260d4f901a156496a3122cea4c457\"", "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/3"}], "http_etag": "\"ddc541a92620b0aedffb9866ab3d7688fbaf29e9\"", "start": 0, "total_size": 2}'} headers: content-length: ['674'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -263,42 +268,6 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/test@example.com - response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"6d1547199b1e24ceeada29d5846223466648e11a\"", "is_server_owner": false, - "password": "$6$rounds=719572$3abEW8q7vcDGW1V.$ER8LadISyD.z2TVPVrsLwvybCnzATMWjn4mXotm0699euEZnEWYBgX5U.ltxZTUBu5KCQEYSzemB3HOND647j1", - "self_link": "http://localhost:9001/3.0/users/7", "user_id": 7}'} - 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/7/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"544d5d4924c00a67b82f8d7cddaa5d2ccfd25bb9\"", "original_email": "fritz@example.org", - "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/7", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"61b7b0e8ffc236d34de50c013b09c99eb7ee6f64\"", - "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", - "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/7", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"cd7965a44a60e1c43b736a4c2bf90265059a6283\"", "start": 0, "total_size": - 2}'} - headers: - content-length: ['750'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": @@ -308,7 +277,7 @@ "volume": 1}'} headers: content-length: ['344'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -321,7 +290,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 @@ -334,10 +303,10 @@ "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: display_name=None&list_id=moderate_subs.example.com&pre_confirmed=True&pre_verified=True&subscriber=fritz%40example.org + body: !!python/unicode display_name=None&list_id=moderate_subs.example.com&pre_confirmed=True&pre_verified=True&subscriber=fritz%40example.org headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -348,7 +317,7 @@ "token": "0000000000000000000000000000000000000001", "token_owner": "moderator"}'} headers: content-length: ['142'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 202, message: Accepted} - request: body: null @@ -361,7 +330,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 @@ -377,43 +346,7 @@ "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/users/test@example.com - response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"6d1547199b1e24ceeada29d5846223466648e11a\"", "is_server_owner": false, - "password": "$6$rounds=719572$3abEW8q7vcDGW1V.$ER8LadISyD.z2TVPVrsLwvybCnzATMWjn4mXotm0699euEZnEWYBgX5U.ltxZTUBu5KCQEYSzemB3HOND647j1", - "self_link": "http://localhost:9001/3.0/users/7", "user_id": 7}'} - 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/7/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"544d5d4924c00a67b82f8d7cddaa5d2ccfd25bb9\"", "original_email": "fritz@example.org", - "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/7", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"61b7b0e8ffc236d34de50c013b09c99eb7ee6f64\"", - "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", - "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/7", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"cd7965a44a60e1c43b736a4c2bf90265059a6283\"", "start": 0, "total_size": - 2}'} - headers: - content-length: ['750'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -429,7 +362,7 @@ "volume": 1}'} headers: content-length: ['344'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -442,7 +375,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 @@ -455,31 +388,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/moderate_subs.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/moderate_subs.example.com/member/fritz@example.org 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/moderate_subs.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 @@ -496,24 +431,25 @@ "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": "moderate_subs-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": - "monthly", "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", - "goodbye_message_uri": "", "http_etag": "\"96390e546d199b207310ec8e39040ce9dcd7ffa4\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": + false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"076149a4081adb9d7209d6de4b51600ee19b71b6\"", "include_rfc2369_headers": true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, "leave_address": "moderate_subs-leave@example.com", - "list_name": "moderate_subs", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "moderate_subs-owner@example.com", - "post_id": 1, "posting_address": "moderate_subs@example.com", "posting_pipeline": - "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": - "", "request_address": "moderate_subs-request@example.com", "scheme": "http", - "send_welcome_message": true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": - "moderate", "volume": 1, "web_host": "example.com", "welcome_message_uri": - "mailman:///welcome.txt"}'} + "list_name": "moderate_subs", "mail_host": "example.com", "moderator_password": + null, "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": + "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "moderate_subs-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Moderate_subs] ", "subscription_policy": "moderate", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1831'] - content-type: [application/json; charset=utf-8] + content-length: ['1878'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -526,7 +462,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 @@ -542,10 +478,10 @@ "start": 0, "total_size": 1}'} headers: content-length: ['392'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: action=discard + body: !!python/unicode action=discard headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -563,14 +499,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 @@ -591,21 +527,21 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"6d1547199b1e24ceeada29d5846223466648e11a\"", "is_server_owner": - false, "password": "$6$rounds=719572$3abEW8q7vcDGW1V.$ER8LadISyD.z2TVPVrsLwvybCnzATMWjn4mXotm0699euEZnEWYBgX5U.ltxZTUBu5KCQEYSzemB3HOND647j1", - "self_link": "http://localhost:9001/3.0/users/7", "user_id": 7}], "http_etag": - "\"0bcfd7677c57d77f5054524cebf4cdfebc540be7\"", "start": 0, "total_size": + "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": 1}'} headers: content-length: ['429'] - 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/7 + uri: http://localhost:9001/3.0/users/3 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 a6cb3cf..00026dc 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 @@ -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=open_list%40example.com + body: !!python/unicode fqdn_listname=open_list%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -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/open_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 @@ -71,26 +71,27 @@ "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": "open_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": - "monthly", "digests_enabled": true, "display_name": "Open_list", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", - "goodbye_message_uri": "", "http_etag": "\"3d16b6c6d1bb8fed130bd061c70a0894856a4ca8\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Open_list", "filter_content": false, + "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "open_list@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"87dbf6f784ce7fcba36c92ecc99006b8c1f878eb\"", "include_rfc2369_headers": true, "join_address": "open_list-join@example.com", "last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name": - "open_list", "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": - "noreply@example.com", "owner_address": "open_list-owner@example.com", "post_id": - 1, "posting_address": "open_list@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "open_list-request@example.com", "scheme": "http", "send_welcome_message": + "open_list", "mail_host": "example.com", "moderator_password": null, "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "open_list-owner@example.com", + "post_id": 1, "posting_address": "open_list@example.com", "posting_pipeline": + "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": + "", "request_address": "open_list-request@example.com", "send_welcome_message": true, "subject_prefix": "[Open_list] ", "subscription_policy": "confirm", - "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1790'] - content-type: [application/json; charset=utf-8] + content-length: ['1837'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: subscription_policy=open + body: !!python/unicode subscription_policy=open headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -102,7 +103,7 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: fqdn_listname=moderate_subs%40example.com + body: !!python/unicode fqdn_listname=moderate_subs%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -112,6 +113,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/moderate_subs.example.com'] status: {code: 201, message: Created} - request: @@ -128,7 +130,7 @@ "volume": 1}'} headers: content-length: ['344'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -145,27 +147,28 @@ "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": "moderate_subs-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": - "monthly", "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", - "goodbye_message_uri": "", "http_etag": "\"bbeb372001a49a25fa038477abd59e8b3c45a20d\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": + false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"de6cbad08d95ba3eeba449e9ea2b2eb130d74f97\"", "include_rfc2369_headers": true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, "leave_address": "moderate_subs-leave@example.com", - "list_name": "moderate_subs", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "moderate_subs-owner@example.com", - "post_id": 1, "posting_address": "moderate_subs@example.com", "posting_pipeline": - "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": - "", "request_address": "moderate_subs-request@example.com", "scheme": "http", - "send_welcome_message": true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": - "confirm", "volume": 1, "web_host": "example.com", "welcome_message_uri": - "mailman:///welcome.txt"}'} + "list_name": "moderate_subs", "mail_host": "example.com", "moderator_password": + null, "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": + "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "moderate_subs-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Moderate_subs] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1830'] - content-type: [application/json; charset=utf-8] + content-length: ['1877'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: subscription_policy=moderate + body: !!python/unicode subscription_policy=moderate headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -177,7 +180,7 @@ content-length: ['0'] status: {code: 204, message: No Content} - 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] @@ -187,19 +190,21 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/8'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/users/4'] status: {code: 201, message: Created} - request: - body: email=fritz%40example.org + body: !!python/unicode email=fritz%40example.org headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] method: !!python/unicode POST - uri: http://localhost:9001/3.0/users/8/addresses + uri: http://localhost:9001/3.0/users/4/addresses response: body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/addresses/fritz@example.org'] status: {code: 201, message: Created} - request: @@ -207,34 +212,34 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/8 + uri: http://localhost:9001/3.0/users/4 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"08f2542493d0aaaf751b60d97566fc444c747cd0\"", "is_server_owner": false, - "password": "$6$rounds=600893$NFsx42Q5cHXTSjHA$SonrSBbYGBjuS3J5pLQ4VLOvgFP8AyECkz/ZmyI9dmbiG9fL98/9wH6plsLMoiHZ1vdmN.kI.NUFO6ZUu.X2C1", - "self_link": "http://localhost:9001/3.0/users/8", "user_id": 8}'} + "\"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}'} 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 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/4/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"3118a56631f161e15b05f860e8ef37464c89d18e\"", "original_email": "fritz@example.org", + "\"219f97bb122d56bb0711dbef6a4bcf6be3ccae2d\"", "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/4"}, {"email": "test@example.com", + "http_etag": "\"451648801e4837c39e0b076da90ada82dbc8be36\"", "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/4"}], "http_etag": "\"c891718087b8495a35bca7e8b3f37784a30b4f7f\"", "start": 0, "total_size": 2}'} headers: content-length: ['674'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -263,42 +268,6 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/test@example.com - response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"08f2542493d0aaaf751b60d97566fc444c747cd0\"", "is_server_owner": false, - "password": "$6$rounds=600893$NFsx42Q5cHXTSjHA$SonrSBbYGBjuS3J5pLQ4VLOvgFP8AyECkz/ZmyI9dmbiG9fL98/9wH6plsLMoiHZ1vdmN.kI.NUFO6ZUu.X2C1", - "self_link": "http://localhost:9001/3.0/users/8", "user_id": 8}'} - 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/8/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"daa00b2c01031e3acab906927ca2edd5b5557399\"", "original_email": "fritz@example.org", - "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/8", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"9f73a0586e712ffb6e4a59c53090f38aba156bcb\"", - "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", - "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/8", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"0ef0000948f82250eb9d26b515749037d580cfca\"", "start": 0, "total_size": - 2}'} - headers: - content-length: ['750'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -308,7 +277,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 @@ -321,7 +290,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 @@ -334,10 +303,10 @@ "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: display_name=None&list_id=open_list.example.com&pre_confirmed=True&pre_verified=True&subscriber=fritz%40example.org + body: !!python/unicode display_name=None&list_id=open_list.example.com&pre_confirmed=True&pre_verified=True&subscriber=fritz%40example.org headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -347,7 +316,8 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/9'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/members/5'] status: {code: 201, message: Created} - request: body: null @@ -357,14 +327,14 @@ 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": "\"ed23be4a300928b2e4e39c7c6dc7e410d00f035f\"", - "list_id": "open_list.example.com", "member_id": 9, "moderation_action": "defer", - "role": "member", "self_link": "http://localhost:9001/3.0/members/9", "user": - "http://localhost:9001/3.0/users/8"}], "http_etag": "\"1e80fbe5a6f83dd6b4793f9923e612c5c4c29fba\"", - "start": 0, "total_size": 1}'} + "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": + 1}'} headers: - content-length: ['489'] - content-type: [application/json; charset=utf-8] + content-length: ['459'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -377,43 +347,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/test@example.com - response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"08f2542493d0aaaf751b60d97566fc444c747cd0\"", "is_server_owner": false, - "password": "$6$rounds=600893$NFsx42Q5cHXTSjHA$SonrSBbYGBjuS3J5pLQ4VLOvgFP8AyECkz/ZmyI9dmbiG9fL98/9wH6plsLMoiHZ1vdmN.kI.NUFO6ZUu.X2C1", - "self_link": "http://localhost:9001/3.0/users/8", "user_id": 8}'} - 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/8/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"daa00b2c01031e3acab906927ca2edd5b5557399\"", "original_email": "fritz@example.org", - "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/8", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"9f73a0586e712ffb6e4a59c53090f38aba156bcb\"", - "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", - "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/8", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"0ef0000948f82250eb9d26b515749037d580cfca\"", "start": 0, "total_size": - 2}'} - headers: - content-length: ['750'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -429,7 +363,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 @@ -442,7 +376,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 @@ -455,35 +389,22 @@ "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/open_list.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/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": "\"ed23be4a300928b2e4e39c7c6dc7e410d00f035f\"", - "list_id": "open_list.example.com", "member_id": 9, "moderation_action": "defer", - "role": "member", "self_link": "http://localhost:9001/3.0/members/9", "user": - "http://localhost:9001/3.0/users/8"}'} + "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"}'} headers: - content-length: ['384'] - content-type: [application/json; charset=utf-8] + content-length: ['354'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -500,23 +421,24 @@ "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": "open_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": - "monthly", "digests_enabled": true, "display_name": "Open_list", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", - "goodbye_message_uri": "", "http_etag": "\"f5522fcc64a0848ce01fcad0b5f9ee42b9c02bd3\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Open_list", "filter_content": false, + "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "open_list@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"3832519e8672eb7c123e02757f46d3be1080d3fd\"", "include_rfc2369_headers": true, "join_address": "open_list-join@example.com", "last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name": - "open_list", "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": - "noreply@example.com", "owner_address": "open_list-owner@example.com", "post_id": - 1, "posting_address": "open_list@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "open_list-request@example.com", "scheme": "http", "send_welcome_message": + "open_list", "mail_host": "example.com", "moderator_password": null, "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "open_list-owner@example.com", + "post_id": 1, "posting_address": "open_list@example.com", "posting_pipeline": + "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": + "", "request_address": "open_list-request@example.com", "send_welcome_message": true, "subject_prefix": "[Open_list] ", "subscription_policy": "open", "volume": - 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + 1, "welcome_message_uri": ""}'} headers: - content-length: ['1787'] - content-type: [application/json; charset=utf-8] + content-length: ['1834'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -529,7 +451,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 @@ -542,7 +464,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 @@ -551,14 +473,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 @@ -579,21 +501,21 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"08f2542493d0aaaf751b60d97566fc444c747cd0\"", "is_server_owner": - false, "password": "$6$rounds=600893$NFsx42Q5cHXTSjHA$SonrSBbYGBjuS3J5pLQ4VLOvgFP8AyECkz/ZmyI9dmbiG9fL98/9wH6plsLMoiHZ1vdmN.kI.NUFO6ZUu.X2C1", - "self_link": "http://localhost:9001/3.0/users/8", "user_id": 8}], "http_etag": - "\"a9c5e85f975242aac8c3e01c8a5af998e43db63c\"", "start": 0, "total_size": + "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": 1}'} headers: content-length: ['429'] - 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/8 + uri: http://localhost:9001/3.0/users/4 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 new file mode 100644 index 0000000..9710d90 --- /dev/null +++ b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_already_pending.yaml @@ -0,0 +1,531 @@ +interactions: +- request: + body: !!python/unicode mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/domains/example.com'] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + headers: + content-length: ['172'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: !!python/unicode fqdn_listname=open_list%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/lists/open_list.example.com'] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/open_list.example.com + response: + body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": + "open_list@example.com", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", + "list_id": "open_list.example.com", "list_name": "open_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", + "volume": 1}'} + headers: + content-length: ['324'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/open_list@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "open_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Open_list", "filter_content": false, + "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "open_list@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"87dbf6f784ce7fcba36c92ecc99006b8c1f878eb\"", + "include_rfc2369_headers": true, "join_address": "open_list-join@example.com", + "last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name": + "open_list", "mail_host": "example.com", "moderator_password": null, "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "open_list-owner@example.com", + "post_id": 1, "posting_address": "open_list@example.com", "posting_pipeline": + "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": + "", "request_address": "open_list-request@example.com", "send_welcome_message": + true, "subject_prefix": "[Open_list] ", "subscription_policy": "confirm", + "volume": 1, "welcome_message_uri": ""}'} + headers: + content-length: ['1837'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: !!python/unicode subscription_policy=open + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode PATCH + uri: http://localhost:9001/3.0/lists/open_list@example.com/config + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: !!python/unicode fqdn_listname=moderate_subs%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/lists/moderate_subs.example.com'] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/moderate_subs.example.com + response: + body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": + "moderate_subs@example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", + "list_id": "moderate_subs.example.com", "list_name": "moderate_subs", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", + "volume": 1}'} + headers: + content-length: ['344'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "moderate_subs-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": + false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"de6cbad08d95ba3eeba449e9ea2b2eb130d74f97\"", + "include_rfc2369_headers": true, "join_address": "moderate_subs-join@example.com", + "last_post_at": null, "leave_address": "moderate_subs-leave@example.com", + "list_name": "moderate_subs", "mail_host": "example.com", "moderator_password": + null, "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": + "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "moderate_subs-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Moderate_subs] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} + headers: + content-length: ['1877'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: !!python/unicode subscription_policy=moderate + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode PATCH + uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: !!python/unicode email=test%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/users + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/users/5'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode email=fritz%40example.org + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/users/5/addresses + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/addresses/fritz@example.org'] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/5 + 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}'} + 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/5/addresses + response: + body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": + "\"f3e11efc0e3e5f04f25f204cca56404675b9d160\"", "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": + "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\"", + "start": 0, "total_size": 2}'} + headers: + content-length: ['674'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/addresses/fritz@example.org/verify + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/addresses/test@example.com/verify + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/moderate_subs.example.com + response: + body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": + "moderate_subs@example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", + "list_id": "moderate_subs.example.com", "list_name": "moderate_subs", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", + "volume": 1}'} + headers: + content-length: ['344'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/owner + response: + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/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: !!python/unicode display_name=None&list_id=moderate_subs.example.com&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/members + response: + body: {string: !!python/unicode '{"http_etag": "\"fbcd5c8df6304a514d4bfa0b753b54857674d8dc\"", + "token": "0000000000000000000000000000000000000002", "token_owner": "moderator"}'} + headers: + content-length: ['142'] + content-type: [application/json; charset=UTF-8] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/moderate_subs@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/lists/moderate_subs@example.com/requests + response: + body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "test@example.com", + "http_etag": "\"ba9a1757c3532eef717cff3eb409185e5d041a85\"", "list_id": "moderate_subs.example.com", + "token": "0000000000000000000000000000000000000002", "token_owner": "moderator", + "type": "subscription", "when": "2005-08-01T07:49:23"}], "http_etag": "\"807af820973da5fcdb2f941b4ecc5ea7b035f533\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['391'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/moderate_subs.example.com + response: + body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": + "moderate_subs@example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", + "list_id": "moderate_subs.example.com", "list_name": "moderate_subs", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", + "volume": 1}'} + headers: + content-length: ['344'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/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/moderate_subs.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: !!python/unicode display_name=None&list_id=moderate_subs.example.com&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/members + response: + body: {string: !!python/unicode Subscription request already pending} + headers: + content-length: ['36'] + content-type: [application/json; charset=UTF-8] + status: {code: 409, message: Conflict} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/roster/member + response: + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests + response: + body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "test@example.com", + "http_etag": "\"ba9a1757c3532eef717cff3eb409185e5d041a85\"", "list_id": "moderate_subs.example.com", + "token": "0000000000000000000000000000000000000002", "token_owner": "moderator", + "type": "subscription", "when": "2005-08-01T07:49:23"}], "http_etag": "\"807af820973da5fcdb2f941b4ecc5ea7b035f533\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['391'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/open_list@example.com/requests + response: + body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "start": 0, "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests + response: + body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "test@example.com", + "http_etag": "\"ba9a1757c3532eef717cff3eb409185e5d041a85\"", "list_id": "moderate_subs.example.com", + "token": "0000000000000000000000000000000000000002", "token_owner": "moderator", + "type": "subscription", "when": "2005-08-01T07:49:23"}], "http_etag": "\"807af820973da5fcdb2f941b4ecc5ea7b035f533\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['391'] + content-type: [application/json; charset=UTF-8] + status: {code: 200, message: OK} +- request: + body: !!python/unicode action=discard + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/requests/0000000000000000000000000000000000000002 + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag": + "\"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": "\"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": + 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/5 + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_mod.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_mod.yaml index e3c5ba7..17297c8 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 @@ -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=open_list%40example.com + body: !!python/unicode fqdn_listname=open_list%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -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/open_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 @@ -71,26 +71,27 @@ "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": "open_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": - "monthly", "digests_enabled": true, "display_name": "Open_list", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", - "goodbye_message_uri": "", "http_etag": "\"3d16b6c6d1bb8fed130bd061c70a0894856a4ca8\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Open_list", "filter_content": false, + "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "open_list@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"87dbf6f784ce7fcba36c92ecc99006b8c1f878eb\"", "include_rfc2369_headers": true, "join_address": "open_list-join@example.com", "last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name": - "open_list", "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": - "noreply@example.com", "owner_address": "open_list-owner@example.com", "post_id": - 1, "posting_address": "open_list@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "open_list-request@example.com", "scheme": "http", "send_welcome_message": + "open_list", "mail_host": "example.com", "moderator_password": null, "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "open_list-owner@example.com", + "post_id": 1, "posting_address": "open_list@example.com", "posting_pipeline": + "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": + "", "request_address": "open_list-request@example.com", "send_welcome_message": true, "subject_prefix": "[Open_list] ", "subscription_policy": "confirm", - "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1790'] - content-type: [application/json; charset=utf-8] + content-length: ['1837'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: subscription_policy=open + body: !!python/unicode subscription_policy=open headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -102,7 +103,7 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: fqdn_listname=moderate_subs%40example.com + body: !!python/unicode fqdn_listname=moderate_subs%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -112,6 +113,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/moderate_subs.example.com'] status: {code: 201, message: Created} - request: @@ -128,7 +130,7 @@ "volume": 1}'} headers: content-length: ['344'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -145,27 +147,28 @@ "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": "moderate_subs-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": - "monthly", "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", - "goodbye_message_uri": "", "http_etag": "\"bbeb372001a49a25fa038477abd59e8b3c45a20d\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": + false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"de6cbad08d95ba3eeba449e9ea2b2eb130d74f97\"", "include_rfc2369_headers": true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, "leave_address": "moderate_subs-leave@example.com", - "list_name": "moderate_subs", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "moderate_subs-owner@example.com", - "post_id": 1, "posting_address": "moderate_subs@example.com", "posting_pipeline": - "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": - "", "request_address": "moderate_subs-request@example.com", "scheme": "http", - "send_welcome_message": true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": - "confirm", "volume": 1, "web_host": "example.com", "welcome_message_uri": - "mailman:///welcome.txt"}'} + "list_name": "moderate_subs", "mail_host": "example.com", "moderator_password": + null, "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": + "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "moderate_subs-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Moderate_subs] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1830'] - content-type: [application/json; charset=utf-8] + content-length: ['1877'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: subscription_policy=moderate + body: !!python/unicode subscription_policy=moderate headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -177,7 +180,7 @@ content-length: ['0'] status: {code: 204, message: No Content} - 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] @@ -187,19 +190,21 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/9'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/users/6'] status: {code: 201, message: Created} - request: - body: email=fritz%40example.org + body: !!python/unicode email=fritz%40example.org headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] method: !!python/unicode POST - uri: http://localhost:9001/3.0/users/9/addresses + uri: http://localhost:9001/3.0/users/6/addresses response: body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/addresses/fritz@example.org'] status: {code: 201, message: Created} - request: @@ -207,34 +212,34 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/9 + uri: http://localhost:9001/3.0/users/6 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"09178c340bccca10ce9be9d4b96b177bb3b232ea\"", "is_server_owner": false, - "password": "$6$rounds=661416$COecD24BRakoB2y.$HVF3XOwOuXrKs6VVcVJPaJSKZV9OfYrcNx9ao.TuBHH6nJb1b1/3MepRFp5NAdiBFJ/KU1TaihchVKjXbZcMn/", - "self_link": "http://localhost:9001/3.0/users/9", "user_id": 9}'} + "\"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}'} 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 headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/9/addresses + uri: http://localhost:9001/3.0/users/6/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"1d655761300c9a203a280f3a2be9e133eb802280\"", "original_email": "fritz@example.org", + "\"6a35ee2a725c9ccc14160cb95686a0286dfdd328\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/9"}, {"email": "test@example.com", - "http_etag": "\"83c6dfb813c2b4484f0c15eb434e104521bb2409\"", "original_email": + "user": "http://localhost:9001/3.0/users/6"}, {"email": "test@example.com", + "http_etag": "\"d5238d960c86cf84782d10c3459a0ac7c33de01f\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "user": "http://localhost:9001/3.0/users/9"}], "http_etag": "\"f14c73914079e826a370b6b434148753e7c21e65\"", + "user": "http://localhost:9001/3.0/users/6"}], "http_etag": "\"90f835379c29e41bd6247b1060cd81b0dc635254\"", "start": 0, "total_size": 2}'} headers: content-length: ['674'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -263,42 +268,6 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/test@example.com - response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"09178c340bccca10ce9be9d4b96b177bb3b232ea\"", "is_server_owner": false, - "password": "$6$rounds=661416$COecD24BRakoB2y.$HVF3XOwOuXrKs6VVcVJPaJSKZV9OfYrcNx9ao.TuBHH6nJb1b1/3MepRFp5NAdiBFJ/KU1TaihchVKjXbZcMn/", - "self_link": "http://localhost:9001/3.0/users/9", "user_id": 9}'} - 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/9/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"8d3a06e7ab49e4715967bd3b56099967748b6868\"", "original_email": "fritz@example.org", - "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/9", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"2afcbb8fefb40767dad968ef1e48b3878327fd41\"", - "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", - "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/9", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"fc174c7edd4b34be2708e9c2664de68b21006355\"", "start": 0, "total_size": - 2}'} - headers: - content-length: ['750'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": @@ -308,7 +277,7 @@ "volume": 1}'} headers: content-length: ['344'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -321,7 +290,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 @@ -334,21 +303,21 @@ "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: display_name=None&list_id=moderate_subs.example.com&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com + body: !!python/unicode display_name=None&list_id=moderate_subs.example.com&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] method: !!python/unicode POST uri: http://localhost:9001/3.0/members response: - body: {string: !!python/unicode '{"http_etag": "\"fbcd5c8df6304a514d4bfa0b753b54857674d8dc\"", - "token": "0000000000000000000000000000000000000002", "token_owner": "moderator"}'} + body: {string: !!python/unicode '{"http_etag": "\"c63c029e701c8257e2a249d1c41d50660434b11f\"", + "token": "0000000000000000000000000000000000000003", "token_owner": "moderator"}'} headers: content-length: ['142'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 202, message: Accepted} - request: body: null @@ -361,7 +330,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 @@ -371,49 +340,13 @@ uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "test@example.com", - "http_etag": "\"ba9a1757c3532eef717cff3eb409185e5d041a85\"", "list_id": "moderate_subs.example.com", - "token": "0000000000000000000000000000000000000002", "token_owner": "moderator", - "type": "subscription", "when": "2005-08-01T07:49:23"}], "http_etag": "\"807af820973da5fcdb2f941b4ecc5ea7b035f533\"", + "http_etag": "\"05789eac34b1a55d8e9c373407d5bb9de8f07d7c\"", "list_id": "moderate_subs.example.com", + "token": "0000000000000000000000000000000000000003", "token_owner": "moderator", + "type": "subscription", "when": "2005-08-01T07:49:23"}], "http_etag": "\"97ec7ec659a863253fb5b45bbb3e7a2ec9549f96\"", "start": 0, "total_size": 1}'} headers: content-length: ['391'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: 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": - "\"09178c340bccca10ce9be9d4b96b177bb3b232ea\"", "is_server_owner": false, - "password": "$6$rounds=661416$COecD24BRakoB2y.$HVF3XOwOuXrKs6VVcVJPaJSKZV9OfYrcNx9ao.TuBHH6nJb1b1/3MepRFp5NAdiBFJ/KU1TaihchVKjXbZcMn/", - "self_link": "http://localhost:9001/3.0/users/9", "user_id": 9}'} - 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/9/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"8d3a06e7ab49e4715967bd3b56099967748b6868\"", "original_email": "fritz@example.org", - "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/9", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"2afcbb8fefb40767dad968ef1e48b3878327fd41\"", - "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", - "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/9", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"fc174c7edd4b34be2708e9c2664de68b21006355\"", "start": 0, "total_size": - 2}'} - headers: - content-length: ['750'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -429,7 +362,7 @@ "volume": 1}'} headers: content-length: ['344'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -442,7 +375,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 @@ -455,31 +388,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/moderate_subs.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/moderate_subs.example.com/member/fritz@example.org 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/moderate_subs.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 @@ -496,24 +431,25 @@ "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": "moderate_subs-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": - "monthly", "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", - "goodbye_message_uri": "", "http_etag": "\"96390e546d199b207310ec8e39040ce9dcd7ffa4\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": + false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"076149a4081adb9d7209d6de4b51600ee19b71b6\"", "include_rfc2369_headers": true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, "leave_address": "moderate_subs-leave@example.com", - "list_name": "moderate_subs", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "moderate_subs-owner@example.com", - "post_id": 1, "posting_address": "moderate_subs@example.com", "posting_pipeline": - "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": - "", "request_address": "moderate_subs-request@example.com", "scheme": "http", - "send_welcome_message": true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": - "moderate", "volume": 1, "web_host": "example.com", "welcome_message_uri": - "mailman:///welcome.txt"}'} + "list_name": "moderate_subs", "mail_host": "example.com", "moderator_password": + null, "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": + "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "moderate_subs-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Moderate_subs] ", "subscription_policy": "moderate", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1831'] - content-type: [application/json; charset=utf-8] + content-length: ['1878'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -526,7 +462,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 @@ -536,21 +472,21 @@ uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "test@example.com", - "http_etag": "\"ba9a1757c3532eef717cff3eb409185e5d041a85\"", "list_id": "moderate_subs.example.com", - "token": "0000000000000000000000000000000000000002", "token_owner": "moderator", - "type": "subscription", "when": "2005-08-01T07:49:23"}], "http_etag": "\"807af820973da5fcdb2f941b4ecc5ea7b035f533\"", + "http_etag": "\"05789eac34b1a55d8e9c373407d5bb9de8f07d7c\"", "list_id": "moderate_subs.example.com", + "token": "0000000000000000000000000000000000000003", "token_owner": "moderator", + "type": "subscription", "when": "2005-08-01T07:49:23"}], "http_etag": "\"97ec7ec659a863253fb5b45bbb3e7a2ec9549f96\"", "start": 0, "total_size": 1}'} headers: content-length: ['391'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: action=discard + body: !!python/unicode action=discard headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] method: !!python/unicode POST - uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/requests/0000000000000000000000000000000000000002 + uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/requests/0000000000000000000000000000000000000003 response: body: {string: !!python/unicode ''} headers: @@ -563,14 +499,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 @@ -591,21 +527,21 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"09178c340bccca10ce9be9d4b96b177bb3b232ea\"", "is_server_owner": - false, "password": "$6$rounds=661416$COecD24BRakoB2y.$HVF3XOwOuXrKs6VVcVJPaJSKZV9OfYrcNx9ao.TuBHH6nJb1b1/3MepRFp5NAdiBFJ/KU1TaihchVKjXbZcMn/", - "self_link": "http://localhost:9001/3.0/users/9", "user_id": 9}], "http_etag": - "\"f294e8055631403e4d066b44cc5e560671f55c9b\"", "start": 0, "total_size": + "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": 1}'} headers: content-length: ['429'] - 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/9 + uri: http://localhost:9001/3.0/users/6 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_mod_then_open.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_mod_then_open.yaml deleted file mode 100644 index 728c0d4..0000000 --- a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_mod_then_open.yaml +++ /dev/null @@ -1,807 +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=open_list%40example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/lists/open_list.example.com'] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/open_list.example.com - response: - body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": - "open_list@example.com", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", - "list_id": "open_list.example.com", "list_name": "open_list", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", - "volume": 1}'} - headers: - content-length: ['324'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/open_list@example.com/config - response: - body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": - true, "admin_notify_mchanges": false, "administrivia": true, "advertised": - true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": - "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": - "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", - "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": - "open_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": - false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": - "monthly", "digests_enabled": true, "display_name": "Open_list", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", - "goodbye_message_uri": "", "http_etag": "\"3d16b6c6d1bb8fed130bd061c70a0894856a4ca8\"", - "include_rfc2369_headers": true, "join_address": "open_list-join@example.com", - "last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name": - "open_list", "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": - "noreply@example.com", "owner_address": "open_list-owner@example.com", "post_id": - 1, "posting_address": "open_list@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "open_list-request@example.com", "scheme": "http", "send_welcome_message": - true, "subject_prefix": "[Open_list] ", "subscription_policy": "confirm", - "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} - headers: - content-length: ['1790'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: subscription_policy=open - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PATCH - uri: http://localhost:9001/3.0/lists/open_list@example.com/config - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: fqdn_listname=moderate_subs%40example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/lists/moderate_subs.example.com'] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/moderate_subs.example.com - response: - body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": - "moderate_subs@example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", - "list_id": "moderate_subs.example.com", "list_name": "moderate_subs", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", - "volume": 1}'} - headers: - content-length: ['344'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config - response: - body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": - true, "admin_notify_mchanges": false, "administrivia": true, "advertised": - true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": - "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": - "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", - "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": - "moderate_subs-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": - false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": - "monthly", "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", - "goodbye_message_uri": "", "http_etag": "\"bbeb372001a49a25fa038477abd59e8b3c45a20d\"", - "include_rfc2369_headers": true, "join_address": "moderate_subs-join@example.com", - "last_post_at": null, "leave_address": "moderate_subs-leave@example.com", - "list_name": "moderate_subs", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "moderate_subs-owner@example.com", - "post_id": 1, "posting_address": "moderate_subs@example.com", "posting_pipeline": - "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": - "", "request_address": "moderate_subs-request@example.com", "scheme": "http", - "send_welcome_message": true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": - "confirm", "volume": 1, "web_host": "example.com", "welcome_message_uri": - "mailman:///welcome.txt"}'} - headers: - content-length: ['1830'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: subscription_policy=moderate - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PATCH - uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: email=test%40example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST - uri: http://localhost:9001/3.0/users - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/users/10'] - status: {code: 201, message: Created} -- request: - body: email=fritz%40example.org - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST - uri: http://localhost:9001/3.0/users/10/addresses - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/addresses/fritz@example.org'] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/10 - response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"daa1431a31ddb12e656c2ff5aba6ff14f9faf85f\"", "is_server_owner": false, - "password": "$6$rounds=672692$L/QZnC96jwiip2bF$aA7uynLReeaWZN/YJ6GmV6WcEk.DiiGGYmAgpgeHNtTO7Ck5uUGH0jeAbXJ.AB5Z9sJtz8d/NxMzWOQvF8nP91", - "self_link": "http://localhost:9001/3.0/users/10", "user_id": 10}'} - headers: - content-length: ['326'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/10/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"accae9afdb6505b1034b56e58a195d60488ace0e\"", "original_email": "fritz@example.org", - "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/10"}, {"email": "test@example.com", - "http_etag": "\"653c988d25ef432406061ef93716f4d0679d110c\"", "original_email": - "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "user": "http://localhost:9001/3.0/users/10"}], "http_etag": "\"ae98e42a83a42897babea6e73012645d29278827\"", - "start": 0, "total_size": 2}'} - headers: - content-length: ['676'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode POST - uri: http://localhost:9001/3.0/addresses/fritz@example.org/verify - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode POST - uri: http://localhost:9001/3.0/addresses/test@example.com/verify - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/test@example.com - response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"daa1431a31ddb12e656c2ff5aba6ff14f9faf85f\"", "is_server_owner": false, - "password": "$6$rounds=672692$L/QZnC96jwiip2bF$aA7uynLReeaWZN/YJ6GmV6WcEk.DiiGGYmAgpgeHNtTO7Ck5uUGH0jeAbXJ.AB5Z9sJtz8d/NxMzWOQvF8nP91", - "self_link": "http://localhost:9001/3.0/users/10", "user_id": 10}'} - headers: - content-length: ['326'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/10/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"df83de584130f7bf666f498f1ee86526580e1e5d\"", "original_email": "fritz@example.org", - "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/10", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"1a4e4fafa5f557004d12321255ecbe22b7bc4939\"", - "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", - "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/10", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"6786a8956fe1455ab474e278103e3a85f08e0896\"", "start": 0, "total_size": - 2}'} - headers: - content-length: ['752'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/moderate_subs.example.com - response: - body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": - "moderate_subs@example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", - "list_id": "moderate_subs.example.com", "list_name": "moderate_subs", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", - "volume": 1}'} - headers: - content-length: ['344'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/owner - response: - body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/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: display_name=None&list_id=moderate_subs.example.com&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST - uri: http://localhost:9001/3.0/members - response: - body: {string: !!python/unicode '{"http_etag": "\"c63c029e701c8257e2a249d1c41d50660434b11f\"", - "token": "0000000000000000000000000000000000000003", "token_owner": "moderator"}'} - headers: - content-length: ['142'] - content-type: [application/json; charset=utf-8] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/moderate_subs@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/lists/moderate_subs@example.com/requests - response: - body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "test@example.com", - "http_etag": "\"05789eac34b1a55d8e9c373407d5bb9de8f07d7c\"", "list_id": "moderate_subs.example.com", - "token": "0000000000000000000000000000000000000003", "token_owner": "moderator", - "type": "subscription", "when": "2005-08-01T07:49:23"}], "http_etag": "\"97ec7ec659a863253fb5b45bbb3e7a2ec9549f96\"", - "start": 0, "total_size": 1}'} - headers: - content-length: ['391'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config - response: - body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": - true, "admin_notify_mchanges": false, "administrivia": true, "advertised": - true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": - "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": - "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", - "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": - "moderate_subs-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": - false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": - "monthly", "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", - "goodbye_message_uri": "", "http_etag": "\"96390e546d199b207310ec8e39040ce9dcd7ffa4\"", - "include_rfc2369_headers": true, "join_address": "moderate_subs-join@example.com", - "last_post_at": null, "leave_address": "moderate_subs-leave@example.com", - "list_name": "moderate_subs", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "moderate_subs-owner@example.com", - "post_id": 1, "posting_address": "moderate_subs@example.com", "posting_pipeline": - "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": - "", "request_address": "moderate_subs-request@example.com", "scheme": "http", - "send_welcome_message": true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": - "moderate", "volume": 1, "web_host": "example.com", "welcome_message_uri": - "mailman:///welcome.txt"}'} - headers: - content-length: ['1831'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: subscription_policy=open - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PATCH - uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config - 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/moderate_subs@example.com/config - response: - body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": - true, "admin_notify_mchanges": false, "administrivia": true, "advertised": - true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": - "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": - "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", - "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": - "moderate_subs-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": - false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": - "monthly", "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", - "goodbye_message_uri": "", "http_etag": "\"6ddd37afe9fcf04afd9c3c2d422f79596f621882\"", - "include_rfc2369_headers": true, "join_address": "moderate_subs-join@example.com", - "last_post_at": null, "leave_address": "moderate_subs-leave@example.com", - "list_name": "moderate_subs", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "moderate_subs-owner@example.com", - "post_id": 1, "posting_address": "moderate_subs@example.com", "posting_pipeline": - "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": - "", "request_address": "moderate_subs-request@example.com", "scheme": "http", - "send_welcome_message": true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": - "open", "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} - headers: - content-length: ['1827'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: display_name=None&list_id=moderate_subs.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 ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/members/10'] - status: {code: 201, message: Created} -- request: - body: list_id=moderate_subs.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 - uri: http://localhost:9001/3.0/members - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/members/11'] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests - response: - body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "test@example.com", - "http_etag": "\"05789eac34b1a55d8e9c373407d5bb9de8f07d7c\"", "list_id": "moderate_subs.example.com", - "token": "0000000000000000000000000000000000000003", "token_owner": "moderator", - "type": "subscription", "when": "2005-08-01T07:49:23"}], "http_etag": "\"97ec7ec659a863253fb5b45bbb3e7a2ec9549f96\"", - "start": 0, "total_size": 1}'} - headers: - content-length: ['391'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: 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": - "\"4c816726023bb1daf76d48e82b250689df6a4694\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/11", "user_id": 11}'} - 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/11/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"e9959829dbaa9f08bd552966891c6297941b3e5a\"", "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/11"}], "http_etag": "\"15e3e5d87fdaaf4d8e762da1a0e4d6b90ef2150c\"", - "start": 0, "total_size": 1}'} - headers: - content-length: ['391'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/moderate_subs.example.com - response: - body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": - "moderate_subs@example.com", "http_etag": "\"a6393b93de923071ca7ff53a24659f3af9943b1a\"", - "list_id": "moderate_subs.example.com", "list_name": "moderate_subs", "mail_host": - "example.com", "member_count": 1, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", - "volume": 1}'} - headers: - content-length: ['344'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/owner - response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"2844b48cc10f8fa8e03e571bda9d7ee35be4299f\"", - "list_id": "moderate_subs.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/11"}], "http_etag": "\"d28a2ea1df070cd2b77a937646a632089c5a824c\"", - "start": 0, "total_size": 1}'} - headers: - content-length: ['496'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/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/moderate_subs.example.com - response: - body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": - "moderate_subs@example.com", "http_etag": "\"a6393b93de923071ca7ff53a24659f3af9943b1a\"", - "list_id": "moderate_subs.example.com", "list_name": "moderate_subs", "mail_host": - "example.com", "member_count": 1, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", - "volume": 1}'} - headers: - content-length: ['344'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: action=accept - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST - uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/requests/0000000000000000000000000000000000000003 - response: - body: {string: !!python/unicode Already subscribed} - headers: - content-length: ['18'] - content-type: [application/json; charset=utf-8] - status: {code: 409, message: Conflict} -- 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": - "\"4c816726023bb1daf76d48e82b250689df6a4694\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/11", "user_id": 11}'} - 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/11/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"e9959829dbaa9f08bd552966891c6297941b3e5a\"", "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/11"}], "http_etag": "\"15e3e5d87fdaaf4d8e762da1a0e4d6b90ef2150c\"", - "start": 0, "total_size": 1}'} - headers: - content-length: ['391'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/moderate_subs.example.com - response: - body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": - "moderate_subs@example.com", "http_etag": "\"a6393b93de923071ca7ff53a24659f3af9943b1a\"", - "list_id": "moderate_subs.example.com", "list_name": "moderate_subs", "mail_host": - "example.com", "member_count": 1, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", - "volume": 1}'} - headers: - content-length: ['344'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/owner - response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"2844b48cc10f8fa8e03e571bda9d7ee35be4299f\"", - "list_id": "moderate_subs.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/11"}], "http_etag": "\"d28a2ea1df070cd2b77a937646a632089c5a824c\"", - "start": 0, "total_size": 1}'} - headers: - content-length: ['496'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/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/moderate_subs.example.com - response: - body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": - "moderate_subs@example.com", "http_etag": "\"a6393b93de923071ca7ff53a24659f3af9943b1a\"", - "list_id": "moderate_subs.example.com", "list_name": "moderate_subs", "mail_host": - "example.com", "member_count": 1, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", - "volume": 1}'} - headers: - content-length: ['344'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests - response: - body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/open_list@example.com/requests - response: - body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests - response: - body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/domains - response: - body: {string: !!python/unicode '{"entries": [{"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", - "http_etag": "\"daa1431a31ddb12e656c2ff5aba6ff14f9faf85f\"", "is_server_owner": - false, "password": "$6$rounds=672692$L/QZnC96jwiip2bF$aA7uynLReeaWZN/YJ6GmV6WcEk.DiiGGYmAgpgeHNtTO7Ck5uUGH0jeAbXJ.AB5Z9sJtz8d/NxMzWOQvF8nP91", - "self_link": "http://localhost:9001/3.0/users/10", "user_id": 10}, {"created_on": - "2005-08-01T07:49:23", "http_etag": "\"4c816726023bb1daf76d48e82b250689df6a4694\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/11", - "user_id": 11}], "http_etag": "\"a930406d6db2c0495bf555b49bae014c3f147cdc\"", - "start": 0, "total_size": 2}'} - headers: - content-length: ['623'] - 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/10 - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/11 - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_open.yaml b/src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_open.yaml index fd5588c..0c5ec66 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 @@ -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=open_list%40example.com + body: !!python/unicode fqdn_listname=open_list%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -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/open_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 @@ -71,26 +71,27 @@ "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": "open_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": - "monthly", "digests_enabled": true, "display_name": "Open_list", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", - "goodbye_message_uri": "", "http_etag": "\"3d16b6c6d1bb8fed130bd061c70a0894856a4ca8\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Open_list", "filter_content": false, + "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "open_list@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"87dbf6f784ce7fcba36c92ecc99006b8c1f878eb\"", "include_rfc2369_headers": true, "join_address": "open_list-join@example.com", "last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name": - "open_list", "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": - "noreply@example.com", "owner_address": "open_list-owner@example.com", "post_id": - 1, "posting_address": "open_list@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "open_list-request@example.com", "scheme": "http", "send_welcome_message": + "open_list", "mail_host": "example.com", "moderator_password": null, "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "open_list-owner@example.com", + "post_id": 1, "posting_address": "open_list@example.com", "posting_pipeline": + "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": + "", "request_address": "open_list-request@example.com", "send_welcome_message": true, "subject_prefix": "[Open_list] ", "subscription_policy": "confirm", - "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1790'] - content-type: [application/json; charset=utf-8] + content-length: ['1837'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: subscription_policy=open + body: !!python/unicode subscription_policy=open headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -102,7 +103,7 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: fqdn_listname=moderate_subs%40example.com + body: !!python/unicode fqdn_listname=moderate_subs%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -112,6 +113,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/moderate_subs.example.com'] status: {code: 201, message: Created} - request: @@ -128,7 +130,7 @@ "volume": 1}'} headers: content-length: ['344'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -145,27 +147,28 @@ "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": "moderate_subs-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": - "monthly", "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", - "goodbye_message_uri": "", "http_etag": "\"bbeb372001a49a25fa038477abd59e8b3c45a20d\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": + false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"de6cbad08d95ba3eeba449e9ea2b2eb130d74f97\"", "include_rfc2369_headers": true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, "leave_address": "moderate_subs-leave@example.com", - "list_name": "moderate_subs", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "moderate_subs-owner@example.com", - "post_id": 1, "posting_address": "moderate_subs@example.com", "posting_pipeline": - "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": - "", "request_address": "moderate_subs-request@example.com", "scheme": "http", - "send_welcome_message": true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": - "confirm", "volume": 1, "web_host": "example.com", "welcome_message_uri": - "mailman:///welcome.txt"}'} + "list_name": "moderate_subs", "mail_host": "example.com", "moderator_password": + null, "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": + "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "moderate_subs-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Moderate_subs] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1830'] - content-type: [application/json; charset=utf-8] + content-length: ['1877'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: subscription_policy=moderate + body: !!python/unicode subscription_policy=moderate headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -177,7 +180,7 @@ content-length: ['0'] status: {code: 204, message: No Content} - 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] @@ -187,19 +190,21 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/12'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/users/7'] status: {code: 201, message: Created} - request: - body: email=fritz%40example.org + body: !!python/unicode email=fritz%40example.org headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] method: !!python/unicode POST - uri: http://localhost:9001/3.0/users/12/addresses + uri: http://localhost:9001/3.0/users/7/addresses response: body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/addresses/fritz@example.org'] status: {code: 201, message: Created} - request: @@ -207,34 +212,34 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/12 + uri: http://localhost:9001/3.0/users/7 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"bcb05b92aae1b5e4e6fda6bcb0c4a2ae1564256c\"", "is_server_owner": false, - "password": "$6$rounds=636343$OJ5rgDAJYh5cq6Aa$NF8WPzCTTCvVQ3zp9nQZXK99JqcVSlcX7bBgNMlA765AgZLkoUwwlWdoS3kRlJKsH55BeHXKF8J9Ults0YZ650", - "self_link": "http://localhost:9001/3.0/users/12", "user_id": 12}'} + "\"9dbce45ff99c60fe23ee7e63421149c29dee1006\"", "is_server_owner": false, + "password": "$6$rounds=640241$2kEjRD8l3JFL6wQD$DAPPiJUvxIh4VzWnJGFAqx7pXiIOSbRIxGePAL/YKIJbWxrc3BfU0mZwLeTQLbHs2JpMeTrM6DTJNnPxlW33f.", + "self_link": "http://localhost:9001/3.0/users/7", "user_id": 7}'} headers: - content-length: ['326'] - content-type: [application/json; charset=utf-8] + 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/12/addresses + uri: http://localhost:9001/3.0/users/7/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"de45f651ca0c2b01f31bd759ce7b963dae2b0c09\"", "original_email": "fritz@example.org", + "\"490365930d4f0666d685bb7ebf5611974f53e017\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/12"}, {"email": "test@example.com", - "http_etag": "\"7153fc9edd12dfb866876de2d6ff5b66fbd13574\"", "original_email": + "user": "http://localhost:9001/3.0/users/7"}, {"email": "test@example.com", + "http_etag": "\"deab7596aa4fed8d7db92cd9fc477a4e0fa412f6\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "user": "http://localhost:9001/3.0/users/12"}], "http_etag": "\"9622288daa6ceeeeb77d9a30775f90ee6fa47a4b\"", + "user": "http://localhost:9001/3.0/users/7"}], "http_etag": "\"3cef8e3cfe66593a7f6f0fa7d71387ef89fcf836\"", "start": 0, "total_size": 2}'} headers: - content-length: ['676'] - content-type: [application/json; charset=utf-8] + content-length: ['674'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -263,42 +268,6 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/test@example.com - response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"bcb05b92aae1b5e4e6fda6bcb0c4a2ae1564256c\"", "is_server_owner": false, - "password": "$6$rounds=636343$OJ5rgDAJYh5cq6Aa$NF8WPzCTTCvVQ3zp9nQZXK99JqcVSlcX7bBgNMlA765AgZLkoUwwlWdoS3kRlJKsH55BeHXKF8J9Ults0YZ650", - "self_link": "http://localhost:9001/3.0/users/12", "user_id": 12}'} - headers: - content-length: ['326'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/12/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"b065016c0b921dbe7ad96865d4ca04ca2f1b229e\"", "original_email": "fritz@example.org", - "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/12", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"c2691b74d4b74fae84b878c07a4f2735424b0935\"", - "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", - "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/12", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"d16886fcdaa2a7285db84d6b85527e1baedb5c3c\"", "start": 0, "total_size": - 2}'} - headers: - content-length: ['752'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -308,7 +277,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 @@ -321,7 +290,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 @@ -334,10 +303,10 @@ "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: display_name=None&list_id=open_list.example.com&pre_confirmed=True&pre_verified=True&subscriber=test%40example.com + body: !!python/unicode display_name=None&list_id=open_list.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] @@ -347,7 +316,8 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/12'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/members/6'] status: {code: 201, message: Created} - request: body: null @@ -357,14 +327,14 @@ 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": "\"2e605c4441264cdf637d0a6b02fd75b8d88c9693\"", - "list_id": "open_list.example.com", "member_id": 12, "moderation_action": - "defer", "role": "member", "self_link": "http://localhost:9001/3.0/members/12", - "user": "http://localhost:9001/3.0/users/12"}], "http_etag": "\"dd5f1a82dc16fc803ff7c55823d6e3b964631476\"", - "start": 0, "total_size": 1}'} + "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": + 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 @@ -377,43 +347,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/test@example.com - response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"bcb05b92aae1b5e4e6fda6bcb0c4a2ae1564256c\"", "is_server_owner": false, - "password": "$6$rounds=636343$OJ5rgDAJYh5cq6Aa$NF8WPzCTTCvVQ3zp9nQZXK99JqcVSlcX7bBgNMlA765AgZLkoUwwlWdoS3kRlJKsH55BeHXKF8J9Ults0YZ650", - "self_link": "http://localhost:9001/3.0/users/12", "user_id": 12}'} - headers: - content-length: ['326'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/12/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"b065016c0b921dbe7ad96865d4ca04ca2f1b229e\"", "original_email": "fritz@example.org", - "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/12", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"c2691b74d4b74fae84b878c07a4f2735424b0935\"", - "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", - "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/12", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"d16886fcdaa2a7285db84d6b85527e1baedb5c3c\"", "start": 0, "total_size": - 2}'} - headers: - content-length: ['752'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -429,7 +363,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 @@ -442,7 +376,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 @@ -455,23 +389,35 @@ "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/open_list.example.com/member/fritz@example.org + 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 + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com/member/test@example.com response: body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/test@example.com", - "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"2e605c4441264cdf637d0a6b02fd75b8d88c9693\"", - "list_id": "open_list.example.com", "member_id": 12, "moderation_action": - "defer", "role": "member", "self_link": "http://localhost:9001/3.0/members/12", - "user": "http://localhost:9001/3.0/users/12"}'} + "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"}'} headers: - content-length: ['385'] - 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 @@ -488,23 +434,24 @@ "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": "open_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": - "monthly", "digests_enabled": true, "display_name": "Open_list", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", - "goodbye_message_uri": "", "http_etag": "\"f5522fcc64a0848ce01fcad0b5f9ee42b9c02bd3\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Open_list", "filter_content": false, + "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "open_list@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"3832519e8672eb7c123e02757f46d3be1080d3fd\"", "include_rfc2369_headers": true, "join_address": "open_list-join@example.com", "last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name": - "open_list", "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": - "noreply@example.com", "owner_address": "open_list-owner@example.com", "post_id": - 1, "posting_address": "open_list@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "open_list-request@example.com", "scheme": "http", "send_welcome_message": + "open_list", "mail_host": "example.com", "moderator_password": null, "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "open_list-owner@example.com", + "post_id": 1, "posting_address": "open_list@example.com", "posting_pipeline": + "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": + "", "request_address": "open_list-request@example.com", "send_welcome_message": true, "subject_prefix": "[Open_list] ", "subscription_policy": "open", "volume": - 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + 1, "welcome_message_uri": ""}'} headers: - content-length: ['1787'] - content-type: [application/json; charset=utf-8] + content-length: ['1834'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -517,7 +464,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 @@ -530,7 +477,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 @@ -539,14 +486,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 @@ -567,21 +514,21 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"bcb05b92aae1b5e4e6fda6bcb0c4a2ae1564256c\"", "is_server_owner": - false, "password": "$6$rounds=636343$OJ5rgDAJYh5cq6Aa$NF8WPzCTTCvVQ3zp9nQZXK99JqcVSlcX7bBgNMlA765AgZLkoUwwlWdoS3kRlJKsH55BeHXKF8J9Ults0YZ650", - "self_link": "http://localhost:9001/3.0/users/12", "user_id": 12}], "http_etag": - "\"63b01b03122cf5b8f9ee30e16fd299c9b6a50547\"", "start": 0, "total_size": + "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": 1}'} headers: - content-length: ['431'] - content-type: [application/json; charset=utf-8] + 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/12 + uri: http://localhost:9001/3.0/users/7 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 b1707d2..9b91b34 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 @@ -1,10 +1,10 @@ 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 ''} @@ -17,23 +17,21 @@ 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-length: ['172'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: fqdn_listname=open_list%40example.com + body: !!python/unicode fqdn_listname=open_list%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!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 ''} @@ -46,7 +44,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -62,7 +60,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -73,30 +71,31 @@ "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": "open_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": - "monthly", "digests_enabled": true, "display_name": "Open_list", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", - "goodbye_message_uri": "", "http_etag": "\"3d16b6c6d1bb8fed130bd061c70a0894856a4ca8\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Open_list", "filter_content": false, + "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "open_list@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"87dbf6f784ce7fcba36c92ecc99006b8c1f878eb\"", "include_rfc2369_headers": true, "join_address": "open_list-join@example.com", "last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name": - "open_list", "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": - "noreply@example.com", "owner_address": "open_list-owner@example.com", "post_id": - 1, "posting_address": "open_list@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "open_list-request@example.com", "scheme": "http", "send_welcome_message": + "open_list", "mail_host": "example.com", "moderator_password": null, "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "open_list-owner@example.com", + "post_id": 1, "posting_address": "open_list@example.com", "posting_pipeline": + "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": + "", "request_address": "open_list-request@example.com", "send_welcome_message": true, "subject_prefix": "[Open_list] ", "subscription_policy": "confirm", - "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1790'] + content-length: ['1837'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: subscription_policy=open + body: !!python/unicode subscription_policy=open headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'PATCH' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode PATCH uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: body: {string: !!python/unicode ''} @@ -104,11 +103,11 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: fqdn_listname=moderate_subs%40example.com + body: !!python/unicode fqdn_listname=moderate_subs%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!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 ''} @@ -121,7 +120,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": @@ -137,7 +136,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": @@ -148,31 +147,32 @@ "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": "moderate_subs-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": - "monthly", "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", - "goodbye_message_uri": "", "http_etag": "\"bbeb372001a49a25fa038477abd59e8b3c45a20d\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": + false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"de6cbad08d95ba3eeba449e9ea2b2eb130d74f97\"", "include_rfc2369_headers": true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, "leave_address": "moderate_subs-leave@example.com", - "list_name": "moderate_subs", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "moderate_subs-owner@example.com", - "post_id": 1, "posting_address": "moderate_subs@example.com", "posting_pipeline": - "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": - "", "request_address": "moderate_subs-request@example.com", "scheme": "http", - "send_welcome_message": true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": - "confirm", "volume": 1, "web_host": "example.com", "welcome_message_uri": - "mailman:///welcome.txt"}'} + "list_name": "moderate_subs", "mail_host": "example.com", "moderator_password": + null, "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": + "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "moderate_subs-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Moderate_subs] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1830'] + content-length: ['1877'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: subscription_policy=moderate + body: !!python/unicode subscription_policy=moderate headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'PATCH' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode PATCH uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: body: {string: !!python/unicode ''} @@ -180,26 +180,26 @@ content-length: ['0'] status: {code: 204, message: No Content} - 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'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/users/1135'] + location: ['http://localhost:9001/3.0/users/8'] status: {code: 201, message: Created} - request: - body: email=fritz%40example.org + body: !!python/unicode email=fritz%40example.org headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/users/1135/addresses + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/users/8/addresses response: body: {string: !!python/unicode ''} headers: @@ -211,41 +211,41 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/users/1135 + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/8 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"1fd6bcf6c854a9672a51906e5faf04da2b9f62ba\"", "is_server_owner": false, - "password": "$6$rounds=692162$JeCRXLwguOBOq/FF$ni/WhttNLAbAOC1h0g9APP0hUirQ9ujicZ2TTR93XgMx23KVXe45YQzjh.seki7CoTadrUoSas/RRxwa6Zp3h/", - "self_link": "http://localhost:9001/3.0/users/1135", "user_id": 1135}'} + "\"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}'} headers: - content-length: ['330'] + 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/1135/addresses + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/8/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"9e7f88212a33c761823be56dacfead1be414c2c8\"", "original_email": "fritz@example.org", + "\"3118a56631f161e15b05f860e8ef37464c89d18e\"", "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/1135"}, {"email": "test@example.com", - "http_etag": "\"5e940681b85972becdbe7a6e7ab116bf3801b726\"", "original_email": + "user": "http://localhost:9001/3.0/users/8"}, {"email": "test@example.com", + "http_etag": "\"ddda9833ea38cea61dbf611f3cf46fd118cba777\"", "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/1135"}], "http_etag": "\"1f2f911d36040c61c55c59c19a780dfc3050ad73\"", + "user": "http://localhost:9001/3.0/users/8"}], "http_etag": "\"074af7e8657324171ae04b869b162467811b317b\"", "start": 0, "total_size": 2}'} headers: - content-length: ['680'] + content-length: ['674'] 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/fritz@example.org/verify response: body: {string: !!python/unicode ''} @@ -256,7 +256,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'POST' + method: !!python/unicode POST uri: http://localhost:9001/3.0/addresses/test@example.com/verify response: body: {string: !!python/unicode ''} @@ -264,54 +264,24 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: list_id=open_list.example.com&role=owner&subscriber=owner%40example.com + body: !!python/unicode list_id=open_list.example.com&role=owner&subscriber=owner%40example.com headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/2126'] + location: ['http://localhost:9001/3.0/members/7'] 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": - "\"8712800f913254df879bd8721bb0c5d1f86850c5\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/1136", "user_id": 1136}'} - 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/1136/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"ba9155b7cc2dd041098f131fda4155024c2ebf87\"", "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/1136"}], "http_etag": "\"364752883528d6af8d07437d302cfe7994c020d7\"", - "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/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -327,24 +297,24 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/owner response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"6045eaa197195694a048afbb115a184b2c51917f\"", - "list_id": "open_list.example.com", "member_id": 2126, "moderation_action": - "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/2126", - "user": "http://localhost:9001/3.0/users/1136"}], "http_etag": "\"74d02c86712706250d022880b00384ee55b93710\"", + "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\"", "start": 0, "total_size": 1}'} headers: - content-length: ['498'] + content-length: ['489'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -357,7 +327,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -370,266 +340,266 @@ content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: display_name=First+Person&list_id=open_list.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test-1%40example.org + body: !!python/unicode display_name=First+Person&list_id=open_list.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test-1%40example.org headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/2127'] + location: ['http://localhost:9001/3.0/members/8'] status: {code: 201, message: Created} - request: - body: display_name=Second+Person&list_id=open_list.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test-2%40example.org + 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 headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/2128'] + location: ['http://localhost:9001/3.0/members/9'] status: {code: 201, message: Created} - request: - body: display_name=Third+Person&list_id=open_list.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test-3%40example.org + 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 headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/2129'] + location: ['http://localhost:9001/3.0/members/10'] status: {code: 201, message: Created} - request: - body: list_id=open_list.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test-4%40example.org + body: !!python/unicode list_id=open_list.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test-4%40example.org headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/2130'] + location: ['http://localhost:9001/3.0/members/11'] status: {code: 201, message: Created} - request: - body: list_id=open_list.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test-5%40example.org + body: !!python/unicode list_id=open_list.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=test-5%40example.org headers: accept-encoding: ['gzip, deflate'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - method: !!python/unicode 'POST' + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST uri: http://localhost:9001/3.0/members response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json; charset=UTF-8] - location: ['http://localhost:9001/3.0/members/2131'] + 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' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@example.com/roster/member response: body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/test-1@example.org", - "delivery_mode": "regular", "email": "test-1@example.org", "http_etag": "\"5d31c42af083c10c2077747b92b981650e8bec35\"", - "list_id": "open_list.example.com", "member_id": 2127, "role": "member", "self_link": - "http://localhost:9001/3.0/members/2127", "user": "http://localhost:9001/3.0/users/1137"}, + "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"}, {"address": "http://localhost:9001/3.0/addresses/test-2@example.org", "delivery_mode": - "regular", "email": "test-2@example.org", "http_etag": "\"3208675ba10eebe3bab74c1b154174aba8244999\"", - "list_id": "open_list.example.com", "member_id": 2128, "role": "member", "self_link": - "http://localhost:9001/3.0/members/2128", "user": "http://localhost:9001/3.0/users/1138"}, + "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"}, {"address": "http://localhost:9001/3.0/addresses/test-3@example.org", "delivery_mode": - "regular", "email": "test-3@example.org", "http_etag": "\"27c960699b5539b583df7c6ff74cd2cf9ed7d247\"", - "list_id": "open_list.example.com", "member_id": 2129, "role": "member", "self_link": - "http://localhost:9001/3.0/members/2129", "user": "http://localhost:9001/3.0/users/1139"}, + "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"}, {"address": "http://localhost:9001/3.0/addresses/test-4@example.org", "delivery_mode": - "regular", "email": "test-4@example.org", "http_etag": "\"ec06a9c097ba6348dffc9e42e293d3c071f206ee\"", - "list_id": "open_list.example.com", "member_id": 2130, "role": "member", "self_link": - "http://localhost:9001/3.0/members/2130", "user": "http://localhost:9001/3.0/users/1140"}, + "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"}, {"address": "http://localhost:9001/3.0/addresses/test-5@example.org", "delivery_mode": - "regular", "email": "test-5@example.org", "http_etag": "\"8595256474d4d4206184387ff952375b3373575e\"", - "list_id": "open_list.example.com", "member_id": 2131, "role": "member", "self_link": - "http://localhost:9001/3.0/members/2131", "user": "http://localhost:9001/3.0/users/1141"}], - "http_etag": "\"47e32aabc874298c123d1388a54036da4c019e2a\"", "start": 0, "total_size": + "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": 5}'} headers: - content-length: ['1938'] + content-length: ['1904'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com/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": "\"5d31c42af083c10c2077747b92b981650e8bec35\"", - "list_id": "open_list.example.com", "member_id": 2127, "role": "member", "self_link": - "http://localhost:9001/3.0/members/2127", "user": "http://localhost:9001/3.0/users/1137"}'} + "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"}'} headers: - content-length: ['365'] + content-length: ['357'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET 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": "\"3208675ba10eebe3bab74c1b154174aba8244999\"", - "list_id": "open_list.example.com", "member_id": 2128, "role": "member", "self_link": - "http://localhost:9001/3.0/members/2128", "user": "http://localhost:9001/3.0/users/1138"}'} + "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"}'} headers: - content-length: ['365'] + content-length: ['357'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET 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": "\"27c960699b5539b583df7c6ff74cd2cf9ed7d247\"", - "list_id": "open_list.example.com", "member_id": 2129, "role": "member", "self_link": - "http://localhost:9001/3.0/members/2129", "user": "http://localhost:9001/3.0/users/1139"}'} + "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"}'} headers: - content-length: ['365'] + 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' + method: !!python/unicode GET 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": "\"ec06a9c097ba6348dffc9e42e293d3c071f206ee\"", - "list_id": "open_list.example.com", "member_id": 2130, "role": "member", "self_link": - "http://localhost:9001/3.0/members/2130", "user": "http://localhost:9001/3.0/users/1140"}'} + "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"}'} headers: - content-length: ['365'] + 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' + method: !!python/unicode GET 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": "\"8595256474d4d4206184387ff952375b3373575e\"", - "list_id": "open_list.example.com", "member_id": 2131, "role": "member", "self_link": - "http://localhost:9001/3.0/members/2131", "user": "http://localhost:9001/3.0/users/1141"}'} + "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"}'} headers: - content-length: ['365'] + 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' + method: !!python/unicode GET 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": "\"83c730522364551d0c8df43e9e62280cbcc63e69\"", "original_email": + "http_etag": "\"87153f640a9e48898cc77f367e65f73f6d5e2b39\"", "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/1137", + "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: ['361'] + 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' + 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": "\"bd0ca81514dcfe346a8e51ffcc3e7cdd31cd4028\"", "original_email": + "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/1138", + "http://localhost:9001/3.0/addresses/test-2@example.org", "user": "http://localhost:9001/3.0/users/11", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['362'] + content-length: ['360'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/test-3@example.org response: body: {string: !!python/unicode '{"display_name": "Third Person", "email": "test-3@example.org", - "http_etag": "\"1df4f6c8a78c411a4c039f21cc040a37f8322eca\"", "original_email": + "http_etag": "\"2559799e0dc5bd6a54550783d00e68db5e8741b0\"", "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/1139", + "http://localhost:9001/3.0/addresses/test-3@example.org", "user": "http://localhost:9001/3.0/users/12", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['361'] + 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' + method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/test-4@example.org response: body: {string: !!python/unicode '{"email": "test-4@example.org", "http_etag": - "\"0e31d7292c1931d82b450316ac6212896bda1f57\"", "original_email": "test-4@example.org", + "\"debf3e6a5cbbc64c03dd23f818ff27d35ab95f4d\"", "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/1140", "verified_on": "2005-08-01T07:49:23"}'} + "user": "http://localhost:9001/3.0/users/13", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['329'] + content-length: ['327'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/test-5@example.org response: body: {string: !!python/unicode '{"email": "test-5@example.org", "http_etag": - "\"12f52a9dd84ae462f621bdaa53ed73eb6421f0e0\"", "original_email": "test-5@example.org", + "\"41975422b038a26eba498d94c66fdd0300b899ce\"", "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/1141", "verified_on": "2005-08-01T07:49:23"}'} + "user": "http://localhost:9001/3.0/users/14", "verified_on": "2005-08-01T07:49:23"}'} headers: - content-length: ['329'] + content-length: ['327'] content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -642,7 +612,7 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'GET' + method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", @@ -655,23 +625,23 @@ 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-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 ''} @@ -682,39 +652,39 @@ 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": "\"1fd6bcf6c854a9672a51906e5faf04da2b9f62ba\"", "is_server_owner": - false, "password": "$6$rounds=692162$JeCRXLwguOBOq/FF$ni/WhttNLAbAOC1h0g9APP0hUirQ9ujicZ2TTR93XgMx23KVXe45YQzjh.seki7CoTadrUoSas/RRxwa6Zp3h/", - "self_link": "http://localhost:9001/3.0/users/1135", "user_id": 1135}, {"created_on": - "2005-08-01T07:49:23", "http_etag": "\"8712800f913254df879bd8721bb0c5d1f86850c5\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/1136", - "user_id": 1136}, {"created_on": "2005-08-01T07:49:23", "display_name": "First - Person", "http_etag": "\"8ac5e3c9c7f49fb08ab42716f5223f16a20a6532\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/1137", "user_id": 1137}, + "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}, {"created_on": "2005-08-01T07:49:23", "display_name": "Second Person", "http_etag": - "\"6d610dd3c29485e5e3a4e1464bbf0f0fd8cf3854\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/1138", "user_id": 1138}, {"created_on": - "2005-08-01T07:49:23", "display_name": "Third Person", "http_etag": "\"703597e32e931f48ffd4e20fb6b740db845d9b48\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/1139", - "user_id": 1139}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"adebabac5df41d9daa718f777e70b761449a2ee6\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/1140", - "user_id": 1140}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"72b48bbc5c991532f9562ef4d7c6c07117f432c5\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/1141", - "user_id": 1141}], "http_etag": "\"97d04a17871e516a5993a76a40c7ddeaf7cbfa7f\"", + "\"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\"", "start": 0, "total_size": 7}'} headers: - content-length: ['1708'] + content-length: ['1676'] 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/1135 + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/10 response: body: {string: !!python/unicode ''} headers: @@ -724,8 +694,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/1136 + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/11 response: body: {string: !!python/unicode ''} headers: @@ -735,8 +705,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/1137 + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/12 response: body: {string: !!python/unicode ''} headers: @@ -746,8 +716,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/1138 + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/13 response: body: {string: !!python/unicode ''} headers: @@ -757,8 +727,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/1139 + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/14 response: body: {string: !!python/unicode ''} headers: @@ -768,8 +738,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/1140 + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/8 response: body: {string: !!python/unicode ''} headers: @@ -779,8 +749,8 @@ body: null headers: accept-encoding: ['gzip, deflate'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/users/1141 + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/9 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 0d735eb..6bb68f4 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 @@ -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=open_list%40example.com + body: !!python/unicode fqdn_listname=open_list%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -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/open_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 @@ -71,26 +71,27 @@ "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": "open_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": - "monthly", "digests_enabled": true, "display_name": "Open_list", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", - "goodbye_message_uri": "", "http_etag": "\"3d16b6c6d1bb8fed130bd061c70a0894856a4ca8\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Open_list", "filter_content": false, + "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "open_list@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"87dbf6f784ce7fcba36c92ecc99006b8c1f878eb\"", "include_rfc2369_headers": true, "join_address": "open_list-join@example.com", "last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name": - "open_list", "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": - "noreply@example.com", "owner_address": "open_list-owner@example.com", "post_id": - 1, "posting_address": "open_list@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "open_list-request@example.com", "scheme": "http", "send_welcome_message": + "open_list", "mail_host": "example.com", "moderator_password": null, "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "open_list-owner@example.com", + "post_id": 1, "posting_address": "open_list@example.com", "posting_pipeline": + "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": + "", "request_address": "open_list-request@example.com", "send_welcome_message": true, "subject_prefix": "[Open_list] ", "subscription_policy": "confirm", - "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + "volume": 1, "welcome_message_uri": ""}'} headers: - content-length: ['1790'] - content-type: [application/json; charset=utf-8] + content-length: ['1837'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: subscription_policy=open + body: !!python/unicode subscription_policy=open headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -102,7 +103,7 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: - body: fqdn_listname=moderate_subs%40example.com + body: !!python/unicode fqdn_listname=moderate_subs%40example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -112,6 +113,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/lists/moderate_subs.example.com'] status: {code: 201, message: Created} - request: @@ -128,7 +130,7 @@ "volume": 1}'} headers: content-length: ['344'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -145,27 +147,28 @@ "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": "moderate_subs-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": - "monthly", "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", - "goodbye_message_uri": "", "http_etag": "\"bbeb372001a49a25fa038477abd59e8b3c45a20d\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": + false, "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "moderate_subs@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"de6cbad08d95ba3eeba449e9ea2b2eb130d74f97\"", "include_rfc2369_headers": true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, "leave_address": "moderate_subs-leave@example.com", - "list_name": "moderate_subs", "mail_host": "example.com", "next_digest_number": - 1, "no_reply_address": "noreply@example.com", "owner_address": "moderate_subs-owner@example.com", - "post_id": 1, "posting_address": "moderate_subs@example.com", "posting_pipeline": - "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": - "", "request_address": "moderate_subs-request@example.com", "scheme": "http", - "send_welcome_message": true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": - "confirm", "volume": 1, "web_host": "example.com", "welcome_message_uri": - "mailman:///welcome.txt"}'} + "list_name": "moderate_subs", "mail_host": "example.com", "moderator_password": + null, "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": + "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "moderate_subs-request@example.com", "send_welcome_message": true, "subject_prefix": + "[Moderate_subs] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri": + ""}'} headers: - content-length: ['1830'] - content-type: [application/json; charset=utf-8] + content-length: ['1877'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: - body: subscription_policy=moderate + body: !!python/unicode subscription_policy=moderate headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -177,7 +180,7 @@ content-length: ['0'] status: {code: 204, message: No Content} - 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] @@ -187,19 +190,21 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/13'] + content-type: [application/json; charset=UTF-8] + location: ['http://localhost:9001/3.0/users/15'] status: {code: 201, message: Created} - request: - body: email=fritz%40example.org + body: !!python/unicode email=fritz%40example.org headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] method: !!python/unicode POST - uri: http://localhost:9001/3.0/users/13/addresses + uri: http://localhost:9001/3.0/users/15/addresses response: body: {string: !!python/unicode ''} headers: content-length: ['0'] + content-type: [application/json; charset=UTF-8] location: ['http://localhost:9001/3.0/addresses/fritz@example.org'] status: {code: 201, message: Created} - request: @@ -207,34 +212,34 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/13 + uri: http://localhost:9001/3.0/users/15 response: body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"bf161ba253272bc9457d4407e8fb8c4e6ccb156d\"", "is_server_owner": false, - "password": "$6$rounds=693420$watqTPLMR7cjO/HK$NoOP1wvWS91bUOHhbxRvGLMQrK6q0/ebeKL/00YWuVdUlGcyGGejewV/DGFLd3AuJXC1L9KhNfF6MBs2Lj0LT/", - "self_link": "http://localhost:9001/3.0/users/13", "user_id": 13}'} + "\"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}'} 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/13/addresses + uri: http://localhost:9001/3.0/users/15/addresses response: body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"10e6832981d616ede4ff738c3dc7e69ae060b0c6\"", "original_email": "fritz@example.org", + "\"f5e7dce17a939b6cd74400155bc8208939e35913\"", "original_email": "fritz@example.org", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/13"}, {"email": "test@example.com", - "http_etag": "\"183bd2070dec2c1087e072dede15f46d64ad4c23\"", "original_email": + "user": "http://localhost:9001/3.0/users/15"}, {"email": "test@example.com", + "http_etag": "\"7e89118330bb8d4cfca6242e4023e3685cfe802f\"", "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", - "user": "http://localhost:9001/3.0/users/13"}], "http_etag": "\"c815381d58c4e1fb008e9a6b167a5ca14d6e57f4\"", + "user": "http://localhost:9001/3.0/users/15"}], "http_etag": "\"022eb06e8ccdd9d0317e80895bcf7fe7341666d6\"", "start": 0, "total_size": 2}'} headers: content-length: ['676'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -263,42 +268,6 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/test@example.com - response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"bf161ba253272bc9457d4407e8fb8c4e6ccb156d\"", "is_server_owner": false, - "password": "$6$rounds=693420$watqTPLMR7cjO/HK$NoOP1wvWS91bUOHhbxRvGLMQrK6q0/ebeKL/00YWuVdUlGcyGGejewV/DGFLd3AuJXC1L9KhNfF6MBs2Lj0LT/", - "self_link": "http://localhost:9001/3.0/users/13", "user_id": 13}'} - 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/13/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"43ecf4911970b7ba8e5412ad1cbaa0dd26c7f828\"", "original_email": "fritz@example.org", - "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/13", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"e0d8de52cd37343bdb52e4416d1bc9d962056121\"", - "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", - "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/13", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"071216e1bacc56bd10619409175c5fd2bc18f6e6\"", "start": 0, "total_size": - 2}'} - headers: - content-length: ['752'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com response: body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": @@ -308,7 +277,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 @@ -321,7 +290,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 @@ -334,7 +303,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 @@ -347,7 +316,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 @@ -360,43 +329,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/test@example.com - response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"bf161ba253272bc9457d4407e8fb8c4e6ccb156d\"", "is_server_owner": false, - "password": "$6$rounds=693420$watqTPLMR7cjO/HK$NoOP1wvWS91bUOHhbxRvGLMQrK6q0/ebeKL/00YWuVdUlGcyGGejewV/DGFLd3AuJXC1L9KhNfF6MBs2Lj0LT/", - "self_link": "http://localhost:9001/3.0/users/13", "user_id": 13}'} - 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/13/addresses - response: - body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"43ecf4911970b7ba8e5412ad1cbaa0dd26c7f828\"", "original_email": "fritz@example.org", - "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", - "user": "http://localhost:9001/3.0/users/13", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"e0d8de52cd37343bdb52e4416d1bc9d962056121\"", - "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", - "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": - "http://localhost:9001/3.0/users/13", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"071216e1bacc56bd10619409175c5fd2bc18f6e6\"", "start": 0, "total_size": - 2}'} - headers: - content-length: ['752'] - content-type: [application/json; charset=utf-8] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -412,7 +345,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 @@ -425,7 +358,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 @@ -438,31 +371,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/open_list.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/open_list.example.com/member/fritz@example.org 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/open_list.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 @@ -479,23 +414,24 @@ "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": "open_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", - "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": - null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": - "monthly", "digests_enabled": true, "display_name": "Open_list", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", - "goodbye_message_uri": "", "http_etag": "\"f5522fcc64a0848ce01fcad0b5f9ee42b9c02bd3\"", + "default_nonmember_action": "hold", "description": "", "digest_footer_uri": + "", "digest_header_uri": "", "digest_last_sent_at": null, "digest_send_periodic": + true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly", + "digests_enabled": true, "display_name": "Open_list", "filter_content": false, + "first_strip_reply_to": false, "footer_uri": "", "fqdn_listname": "open_list@example.com", + "goodbye_message_uri": "", "header_uri": "", "http_etag": "\"3832519e8672eb7c123e02757f46d3be1080d3fd\"", "include_rfc2369_headers": true, "join_address": "open_list-join@example.com", "last_post_at": null, "leave_address": "open_list-leave@example.com", "list_name": - "open_list", "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": - "noreply@example.com", "owner_address": "open_list-owner@example.com", "post_id": - 1, "posting_address": "open_list@example.com", "posting_pipeline": "default-posting-pipeline", - "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": - "open_list-request@example.com", "scheme": "http", "send_welcome_message": + "open_list", "mail_host": "example.com", "moderator_password": null, "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "open_list-owner@example.com", + "post_id": 1, "posting_address": "open_list@example.com", "posting_pipeline": + "default-posting-pipeline", "reply_goes_to_list": "no_munging", "reply_to_address": + "", "request_address": "open_list-request@example.com", "send_welcome_message": true, "subject_prefix": "[Open_list] ", "subscription_policy": "open", "volume": - 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + 1, "welcome_message_uri": ""}'} headers: - content-length: ['1787'] - content-type: [application/json; charset=utf-8] + content-length: ['1834'] + content-type: [application/json; charset=UTF-8] status: {code: 200, message: OK} - request: body: null @@ -508,7 +444,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 @@ -521,7 +457,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 @@ -530,14 +466,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 @@ -558,21 +494,21 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"bf161ba253272bc9457d4407e8fb8c4e6ccb156d\"", "is_server_owner": - false, "password": "$6$rounds=693420$watqTPLMR7cjO/HK$NoOP1wvWS91bUOHhbxRvGLMQrK6q0/ebeKL/00YWuVdUlGcyGGejewV/DGFLd3AuJXC1L9KhNfF6MBs2Lj0LT/", - "self_link": "http://localhost:9001/3.0/users/13", "user_id": 13}], "http_etag": - "\"4a1ebeb4f7f5eac15a2b7c4be415b8d7d5377cc4\"", "start": 0, "total_size": + "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": 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/13 + uri: http://localhost:9001/3.0/users/15 response: body: {string: !!python/unicode ''} headers: