diff --git a/src/postorius/tests/fixtures/vcr_cassettes/list_members_access.yaml b/src/postorius/tests/fixtures/vcr_cassettes/list_members_access.yaml index 7b3430f..89b87c3 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/list_members_access.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/list_members_access.yaml @@ -13,7 +13,7 @@ headers: content-length: ['13'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:03 GMT'] + date: ['Mon, 09 Feb 2015 22:14:42 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 400, message: Bad Request} - request: @@ -25,14 +25,14 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "mail_host": + "example.com", "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\"", + "contact_address": "postmaster@example.com", "description": null, "url_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: content-length: ['278'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:03 GMT'] + date: ['Mon, 09 Feb 2015 22:14:42 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -44,14 +44,14 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "mail_host": + "example.com", "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\"", + "contact_address": "postmaster@example.com", "description": null, "url_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: content-length: ['278'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:03 GMT'] + date: ['Mon, 09 Feb 2015 22:14:42 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -67,7 +67,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:39:03 GMT'] + date: ['Mon, 09 Feb 2015 22:14:43 GMT'] location: ['http://localhost:9001/3.0/lists/foo.example.com'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 201, message: Created} @@ -80,18 +80,18 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "display_name": + "Foo", "member_count": 0, "list_id": "foo.example.com", "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": - 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": - 0, "mail_host": "example.com", "list_name": "foo"}'} + 1, "list_name": "foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:03 GMT'] + date: ['Mon, 09 Feb 2015 22:14:43 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: - body: subscriber=owner%40example.com&role=owner&list_id=foo.example.com + body: role=owner&subscriber=owner%40example.com&list_id=foo.example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] @@ -103,12 +103,12 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:39:03 GMT'] - location: ['http://localhost:9001/3.0/members/177648799332121681565366744219184794528'] + date: ['Mon, 09 Feb 2015 22:14:43 GMT'] + location: ['http://localhost:9001/3.0/members/51131740294581548284355020148792105068'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 201, message: Created} - request: - body: subscriber=moderator%40example.com&role=moderator&list_id=foo.example.com + body: role=moderator&subscriber=moderator%40example.com&list_id=foo.example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] @@ -120,133 +120,8 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:39:03 GMT'] - location: ['http://localhost:9001/3.0/members/329995626499505693893066661664512313632'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 201, message: Created} -- request: - body: mail_host=example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/domains - response: - body: {string: !!python/unicode 'Domain exists'} - headers: - content-length: ['13'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:04 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 400, message: Bad Request} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} - headers: - content-length: ['278'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:04 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} - headers: - content-length: ['278'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:04 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: fqdn_listname=foo%40example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:05 GMT'] - location: ['http://localhost:9001/3.0/lists/foo.example.com'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": - 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": - 0, "mail_host": "example.com", "list_name": "foo"}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:05 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: subscriber=owner%40example.com&role=owner&list_id=foo.example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/members - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:05 GMT'] - location: ['http://localhost:9001/3.0/members/329096182403103727726929795501203340845'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 201, message: Created} -- request: - body: subscriber=moderator%40example.com&role=moderator&list_id=foo.example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/members - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:05 GMT'] - location: ['http://localhost:9001/3.0/members/71811019820274498196637280482778629303'] + date: ['Mon, 09 Feb 2015 22:14:43 GMT'] + location: ['http://localhost:9001/3.0/members/315404612538100455510291362215943819827'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 201, message: Created} - request: @@ -261,7 +136,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:05 GMT'] + date: ['Mon, 09 Feb 2015 22:14:43 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -278,7 +153,7 @@ headers: content-length: ['13'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:06 GMT'] + date: ['Mon, 09 Feb 2015 22:14:43 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 400, message: Bad Request} - request: @@ -290,14 +165,14 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "mail_host": + "example.com", "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\"", + "contact_address": "postmaster@example.com", "description": null, "url_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: content-length: ['278'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:06 GMT'] + date: ['Mon, 09 Feb 2015 22:14:43 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -309,14 +184,14 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "mail_host": + "example.com", "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\"", + "contact_address": "postmaster@example.com", "description": null, "url_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: content-length: ['278'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:06 GMT'] + date: ['Mon, 09 Feb 2015 22:14:43 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -332,7 +207,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:06 GMT'] + date: ['Mon, 09 Feb 2015 22:14:43 GMT'] location: ['http://localhost:9001/3.0/lists/foo.example.com'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 201, message: Created} @@ -345,18 +220,18 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "display_name": + "Foo", "member_count": 0, "list_id": "foo.example.com", "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": - 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": - 0, "mail_host": "example.com", "list_name": "foo"}'} + 1, "list_name": "foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:06 GMT'] + date: ['Mon, 09 Feb 2015 22:14:44 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: - body: subscriber=owner%40example.com&role=owner&list_id=foo.example.com + body: role=owner&subscriber=owner%40example.com&list_id=foo.example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] @@ -368,12 +243,12 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:06 GMT'] - location: ['http://localhost:9001/3.0/members/217000428022394232304016046848504271195'] + date: ['Mon, 09 Feb 2015 22:14:44 GMT'] + location: ['http://localhost:9001/3.0/members/211877927659145775206600140988891673117'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 201, message: Created} - request: - body: subscriber=moderator%40example.com&role=moderator&list_id=foo.example.com + body: role=moderator&subscriber=moderator%40example.com&list_id=foo.example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] @@ -385,8 +260,8 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:06 GMT'] - location: ['http://localhost:9001/3.0/members/245381608243424917069593530211617477882'] + date: ['Mon, 09 Feb 2015 22:14:44 GMT'] + location: ['http://localhost:9001/3.0/members/74561224102330491648556315669152982006'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 201, message: Created} - request: @@ -401,7 +276,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:07 GMT'] + date: ['Mon, 09 Feb 2015 22:14:44 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -418,7 +293,7 @@ headers: content-length: ['13'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:07 GMT'] + date: ['Mon, 09 Feb 2015 22:14:44 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 400, message: Bad Request} - request: @@ -430,14 +305,14 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "mail_host": + "example.com", "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\"", + "contact_address": "postmaster@example.com", "description": null, "url_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: content-length: ['278'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:07 GMT'] + date: ['Mon, 09 Feb 2015 22:14:44 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -449,14 +324,14 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "mail_host": + "example.com", "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\"", + "contact_address": "postmaster@example.com", "description": null, "url_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: content-length: ['278'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:07 GMT'] + date: ['Mon, 09 Feb 2015 22:14:44 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -472,7 +347,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:07 GMT'] + date: ['Mon, 09 Feb 2015 22:14:45 GMT'] location: ['http://localhost:9001/3.0/lists/foo.example.com'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 201, message: Created} @@ -485,18 +360,18 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "display_name": + "Foo", "member_count": 0, "list_id": "foo.example.com", "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": - 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": - 0, "mail_host": "example.com", "list_name": "foo"}'} + 1, "list_name": "foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:07 GMT'] + date: ['Mon, 09 Feb 2015 22:14:45 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: - body: subscriber=owner%40example.com&role=owner&list_id=foo.example.com + body: role=owner&subscriber=owner%40example.com&list_id=foo.example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] @@ -508,12 +383,12 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:07 GMT'] - location: ['http://localhost:9001/3.0/members/67773378313803747898917364362928812772'] + date: ['Mon, 09 Feb 2015 22:14:45 GMT'] + location: ['http://localhost:9001/3.0/members/189690441823108454574062063218711796982'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 201, message: Created} - request: - body: subscriber=moderator%40example.com&role=moderator&list_id=foo.example.com + body: role=moderator&subscriber=moderator%40example.com&list_id=foo.example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] @@ -525,8 +400,8 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:07 GMT'] - location: ['http://localhost:9001/3.0/members/255578922070443897256905353368228136207'] + date: ['Mon, 09 Feb 2015 22:14:45 GMT'] + location: ['http://localhost:9001/3.0/members/81343349406634969036125684320138449398'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 201, message: Created} - request: @@ -541,7 +416,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:08 GMT'] + date: ['Mon, 09 Feb 2015 22:14:46 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -558,7 +433,7 @@ headers: content-length: ['13'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:09 GMT'] + date: ['Mon, 09 Feb 2015 22:14:46 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 400, message: Bad Request} - request: @@ -570,14 +445,14 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "mail_host": + "example.com", "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\"", + "contact_address": "postmaster@example.com", "description": null, "url_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: content-length: ['278'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:09 GMT'] + date: ['Mon, 09 Feb 2015 22:14:46 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -589,14 +464,14 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "mail_host": + "example.com", "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\"", + "contact_address": "postmaster@example.com", "description": null, "url_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: content-length: ['278'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:09 GMT'] + date: ['Mon, 09 Feb 2015 22:14:46 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -612,7 +487,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:09 GMT'] + date: ['Mon, 09 Feb 2015 22:14:46 GMT'] location: ['http://localhost:9001/3.0/lists/foo.example.com'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 201, message: Created} @@ -625,18 +500,18 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "display_name": + "Foo", "member_count": 0, "list_id": "foo.example.com", "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": - 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": - 0, "mail_host": "example.com", "list_name": "foo"}'} + 1, "list_name": "foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:09 GMT'] + date: ['Mon, 09 Feb 2015 22:14:46 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: - body: subscriber=owner%40example.com&role=owner&list_id=foo.example.com + body: role=owner&subscriber=owner%40example.com&list_id=foo.example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] @@ -648,12 +523,12 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:09 GMT'] - location: ['http://localhost:9001/3.0/members/176491632844981988673081716323513071510'] + date: ['Mon, 09 Feb 2015 22:14:46 GMT'] + location: ['http://localhost:9001/3.0/members/302114124225989209497433745109755591667'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 201, message: Created} - request: - body: subscriber=moderator%40example.com&role=moderator&list_id=foo.example.com + body: role=moderator&subscriber=moderator%40example.com&list_id=foo.example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] @@ -665,8 +540,8 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:09 GMT'] - location: ['http://localhost:9001/3.0/members/70280717948072590618438835956185041113'] + date: ['Mon, 09 Feb 2015 22:14:46 GMT'] + location: ['http://localhost:9001/3.0/members/27026617856252199823778113907118398408'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 201, message: Created} - request: @@ -678,14 +553,14 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "display_name": + "Foo", "member_count": 0, "list_id": "foo.example.com", "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": - 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": - 0, "mail_host": "example.com", "list_name": "foo"}'} + 1, "list_name": "foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:09 GMT'] + date: ['Mon, 09 Feb 2015 22:14:47 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -702,7 +577,7 @@ headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:09 GMT'] + date: ['Mon, 09 Feb 2015 22:14:47 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -714,15 +589,17 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"be0e4529b6112b55941cb223be2f5ca3af4f39e3\"", - "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "list_id": "foo.example.com", "http_etag": "\"6f732087bcd8d17b7f4060db5924ada5a3ff9dbc\"", - "delivery_mode": "regular", "email": "owner@example.com", "self_link": "http://localhost:9001/3.0/members/176491632844981988673081716323513071510", - "role": "owner", "user": "http://localhost:9001/3.0/users/33053400552422307362609732601039123688"}]}'} + body: {string: !!python/unicode '{"entries": [{"user": "http://localhost:9001/3.0/users/96573909988922970304746006243506406498", + "http_etag": "\"bc31014e4efa51162da6e4705913d4ade2e03e5e\"", "role": "owner", + "email": "owner@example.com", "delivery_mode": "regular", "list_id": "foo.example.com", + "address": "http://localhost:9001/3.0/addresses/owner@example.com", "self_link": + "http://localhost:9001/3.0/members/302114124225989209497433745109755591667"}], + "start": 0, "http_etag": "\"3bd61206a3bff34f471e9d142aa6598b1a515228\"", "total_size": + 1}'} headers: content-length: ['511'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:09 GMT'] + date: ['Mon, 09 Feb 2015 22:14:47 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -734,16 +611,17 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"5cc335736c19adee911346c8e670f17508d7efc4\"", - "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", - "list_id": "foo.example.com", "http_etag": "\"2f71b9bd67bd0895919cc92dd551d250318b0071\"", - "delivery_mode": "regular", "email": "moderator@example.com", "self_link": - "http://localhost:9001/3.0/members/70280717948072590618438835956185041113", - "role": "moderator", "user": "http://localhost:9001/3.0/users/215240810222150342870624384608044322976"}]}'} + body: {string: !!python/unicode '{"entries": [{"user": "http://localhost:9001/3.0/users/72657208221403324359163601797012164031", + "http_etag": "\"d2b4fd919c7938c9f6839b202b1ec8b958149c1b\"", "role": "moderator", + "email": "moderator@example.com", "delivery_mode": "regular", "list_id": "foo.example.com", + "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "self_link": + "http://localhost:9001/3.0/members/27026617856252199823778113907118398408"}], + "start": 0, "http_etag": "\"999cb0f88e95a2f60eaf9f2a52bdf621bcbabadc\"", "total_size": + 1}'} headers: - content-length: ['523'] + content-length: ['522'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:10 GMT'] + date: ['Mon, 09 Feb 2015 22:14:47 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -755,14 +633,14 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "display_name": + "Foo", "member_count": 0, "list_id": "foo.example.com", "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": - 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": - 0, "mail_host": "example.com", "list_name": "foo"}'} + 1, "list_name": "foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:10 GMT'] + date: ['Mon, 09 Feb 2015 22:14:47 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -774,15 +652,17 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"be0e4529b6112b55941cb223be2f5ca3af4f39e3\"", - "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "list_id": "foo.example.com", "http_etag": "\"6f732087bcd8d17b7f4060db5924ada5a3ff9dbc\"", - "delivery_mode": "regular", "email": "owner@example.com", "self_link": "http://localhost:9001/3.0/members/176491632844981988673081716323513071510", - "role": "owner", "user": "http://localhost:9001/3.0/users/33053400552422307362609732601039123688"}]}'} + body: {string: !!python/unicode '{"entries": [{"user": "http://localhost:9001/3.0/users/96573909988922970304746006243506406498", + "http_etag": "\"bc31014e4efa51162da6e4705913d4ade2e03e5e\"", "role": "owner", + "email": "owner@example.com", "delivery_mode": "regular", "list_id": "foo.example.com", + "address": "http://localhost:9001/3.0/addresses/owner@example.com", "self_link": + "http://localhost:9001/3.0/members/302114124225989209497433745109755591667"}], + "start": 0, "http_etag": "\"3bd61206a3bff34f471e9d142aa6598b1a515228\"", "total_size": + 1}'} headers: content-length: ['511'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:10 GMT'] + date: ['Mon, 09 Feb 2015 22:14:47 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -797,7 +677,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:10 GMT'] + date: ['Mon, 09 Feb 2015 22:14:47 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} - request: @@ -814,7 +694,7 @@ headers: content-length: ['13'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:11 GMT'] + date: ['Mon, 09 Feb 2015 22:14:48 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 400, message: Bad Request} - request: @@ -826,14 +706,14 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "mail_host": + "example.com", "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\"", + "contact_address": "postmaster@example.com", "description": null, "url_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: content-length: ['278'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:11 GMT'] + date: ['Mon, 09 Feb 2015 22:14:48 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -845,14 +725,14 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + body: {string: !!python/unicode '{"base_url": "http://example.com", "mail_host": + "example.com", "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\"", + "contact_address": "postmaster@example.com", "description": null, "url_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} headers: content-length: ['278'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:11 GMT'] + date: ['Mon, 09 Feb 2015 22:14:48 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -868,7 +748,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:11 GMT'] + date: ['Mon, 09 Feb 2015 22:14:48 GMT'] location: ['http://localhost:9001/3.0/lists/foo.example.com'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 201, message: Created} @@ -881,18 +761,18 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "display_name": + "Foo", "member_count": 0, "list_id": "foo.example.com", "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": - 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": - 0, "mail_host": "example.com", "list_name": "foo"}'} + 1, "list_name": "foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:11 GMT'] + date: ['Mon, 09 Feb 2015 22:14:48 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: - body: subscriber=owner%40example.com&role=owner&list_id=foo.example.com + body: role=owner&subscriber=owner%40example.com&list_id=foo.example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] @@ -904,12 +784,12 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:11 GMT'] - location: ['http://localhost:9001/3.0/members/236739572539880485887392513726727350946'] + date: ['Mon, 09 Feb 2015 22:14:48 GMT'] + location: ['http://localhost:9001/3.0/members/197378444629261385623957419949363207651'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 201, message: Created} - request: - body: subscriber=moderator%40example.com&role=moderator&list_id=foo.example.com + body: role=moderator&subscriber=moderator%40example.com&list_id=foo.example.com headers: accept-encoding: ['gzip, deflate'] !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] @@ -921,8 +801,8 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:11 GMT'] - location: ['http://localhost:9001/3.0/members/59359066584506822945901420880964777332'] + date: ['Mon, 09 Feb 2015 22:14:48 GMT'] + location: ['http://localhost:9001/3.0/members/166464712322506303863131637790195933040'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 201, message: Created} - request: @@ -934,14 +814,14 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "display_name": + "Foo", "member_count": 0, "list_id": "foo.example.com", "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": - 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": - 0, "mail_host": "example.com", "list_name": "foo"}'} + 1, "list_name": "foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:12 GMT'] + date: ['Mon, 09 Feb 2015 22:14:48 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -958,7 +838,7 @@ headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:12 GMT'] + date: ['Mon, 09 Feb 2015 22:14:48 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -973,7 +853,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:12 GMT'] + date: ['Mon, 09 Feb 2015 22:14:49 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 204, message: No Content} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/list_members_page.yaml b/src/postorius/tests/fixtures/vcr_cassettes/list_members_page.yaml index c2e16c3..755c5b7 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/list_members_page.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/list_members_page.yaml @@ -8,14 +8,14 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "display_name": + "Foo", "member_count": 0, "list_id": "foo.example.com", "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": - 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": - 0, "mail_host": "example.com", "list_name": "foo"}'} + 1, "list_name": "foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:03 GMT'] + date: ['Mon, 09 Feb 2015 22:14:43 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -32,7 +32,7 @@ headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:03 GMT'] + date: ['Mon, 09 Feb 2015 22:14:43 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -44,15 +44,17 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"370cc3da65a1f141a2382a77685d691a032762df\"", - "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "list_id": "foo.example.com", "http_etag": "\"d5aa109cbbb8808072becfcb45a4920381f4c10e\"", - "delivery_mode": "regular", "email": "owner@example.com", "self_link": "http://localhost:9001/3.0/members/177648799332121681565366744219184794528", - "role": "owner", "user": "http://localhost:9001/3.0/users/33053400552422307362609732601039123688"}]}'} + body: {string: !!python/unicode '{"entries": [{"user": "http://localhost:9001/3.0/users/96573909988922970304746006243506406498", + "http_etag": "\"df3f058a5062b09bd34fdd1309c4770fc23bf6af\"", "role": "owner", + "email": "owner@example.com", "delivery_mode": "regular", "list_id": "foo.example.com", + "address": "http://localhost:9001/3.0/addresses/owner@example.com", "self_link": + "http://localhost:9001/3.0/members/51131740294581548284355020148792105068"}], + "start": 0, "http_etag": "\"6f3c9d743da982877ec96a4091cda67548ae7841\"", "total_size": + 1}'} headers: - content-length: ['511'] + content-length: ['510'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:03 GMT'] + date: ['Mon, 09 Feb 2015 22:14:43 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -64,132 +66,17 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"f8279fc39584e18dbde8e7b945f9f39ee7cb9a8a\"", - "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", - "list_id": "foo.example.com", "http_etag": "\"4b7aa1a598cfb7f1dcc71a69804667571788615f\"", - "delivery_mode": "regular", "email": "moderator@example.com", "self_link": - "http://localhost:9001/3.0/members/329995626499505693893066661664512313632", - "role": "moderator", "user": "http://localhost:9001/3.0/users/215240810222150342870624384608044322976"}]}'} - headers: - content-length: ['524'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:03 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo@example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": - 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": - 0, "mail_host": "example.com", "list_name": "foo"}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:03 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"370cc3da65a1f141a2382a77685d691a032762df\"", - "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "list_id": "foo.example.com", "http_etag": "\"d5aa109cbbb8808072becfcb45a4920381f4c10e\"", - "delivery_mode": "regular", "email": "owner@example.com", "self_link": "http://localhost:9001/3.0/members/177648799332121681565366744219184794528", - "role": "owner", "user": "http://localhost:9001/3.0/users/33053400552422307362609732601039123688"}]}'} - headers: - content-length: ['511'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:03 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo@example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": - 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": - 0, "mail_host": "example.com", "list_name": "foo"}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:05 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=25&page=1 - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:05 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"1ffb40c35858c87901e267bda6cc4485a0a777b3\"", - "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "list_id": "foo.example.com", "http_etag": "\"f77861185b05d7fb0b89675ada191ebeade284a0\"", - "delivery_mode": "regular", "email": "owner@example.com", "self_link": "http://localhost:9001/3.0/members/329096182403103727726929795501203340845", - "role": "owner", "user": "http://localhost:9001/3.0/users/33053400552422307362609732601039123688"}]}'} - headers: - content-length: ['511'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:05 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"3b12571ce0907a26981707ff09e864b7c5ea412e\"", - "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", - "list_id": "foo.example.com", "http_etag": "\"a1b133b08915baa45f4bbf86e288619ee0626756\"", - "delivery_mode": "regular", "email": "moderator@example.com", "self_link": - "http://localhost:9001/3.0/members/71811019820274498196637280482778629303", - "role": "moderator", "user": "http://localhost:9001/3.0/users/215240810222150342870624384608044322976"}]}'} + body: {string: !!python/unicode '{"entries": [{"user": "http://localhost:9001/3.0/users/72657208221403324359163601797012164031", + "http_etag": "\"ca001134c429845c04545a511e1e36724c9466b1\"", "role": "moderator", + "email": "moderator@example.com", "delivery_mode": "regular", "list_id": "foo.example.com", + "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "self_link": + "http://localhost:9001/3.0/members/315404612538100455510291362215943819827"}], + "start": 0, "http_etag": "\"b1eaa605086c82b40cad6f9cec32e6905bdaae5a\"", "total_size": + 1}'} headers: content-length: ['523'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:05 GMT'] + date: ['Mon, 09 Feb 2015 22:14:43 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -201,14 +88,14 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "display_name": + "Foo", "member_count": 0, "list_id": "foo.example.com", "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": - 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": - 0, "mail_host": "example.com", "list_name": "foo"}'} + 1, "list_name": "foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:05 GMT'] + date: ['Mon, 09 Feb 2015 22:14:43 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -220,15 +107,17 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"1ffb40c35858c87901e267bda6cc4485a0a777b3\"", - "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "list_id": "foo.example.com", "http_etag": "\"f77861185b05d7fb0b89675ada191ebeade284a0\"", - "delivery_mode": "regular", "email": "owner@example.com", "self_link": "http://localhost:9001/3.0/members/329096182403103727726929795501203340845", - "role": "owner", "user": "http://localhost:9001/3.0/users/33053400552422307362609732601039123688"}]}'} + body: {string: !!python/unicode '{"entries": [{"user": "http://localhost:9001/3.0/users/96573909988922970304746006243506406498", + "http_etag": "\"df3f058a5062b09bd34fdd1309c4770fc23bf6af\"", "role": "owner", + "email": "owner@example.com", "delivery_mode": "regular", "list_id": "foo.example.com", + "address": "http://localhost:9001/3.0/addresses/owner@example.com", "self_link": + "http://localhost:9001/3.0/members/51131740294581548284355020148792105068"}], + "start": 0, "http_etag": "\"6f3c9d743da982877ec96a4091cda67548ae7841\"", "total_size": + 1}'} headers: - content-length: ['511'] + content-length: ['510'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:05 GMT'] + date: ['Mon, 09 Feb 2015 22:14:43 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -240,14 +129,14 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "display_name": + "Foo", "member_count": 0, "list_id": "foo.example.com", "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": - 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": - 0, "mail_host": "example.com", "list_name": "foo"}'} + 1, "list_name": "foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:06 GMT'] + date: ['Mon, 09 Feb 2015 22:14:44 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -264,7 +153,7 @@ headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:06 GMT'] + date: ['Mon, 09 Feb 2015 22:14:44 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -276,15 +165,17 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"afa4fd6faf7612af66ca8908ebc18c0b91b07317\"", - "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "list_id": "foo.example.com", "http_etag": "\"bc415aba86bdb73ed4f783cdf2420ba13998f39d\"", - "delivery_mode": "regular", "email": "owner@example.com", "self_link": "http://localhost:9001/3.0/members/217000428022394232304016046848504271195", - "role": "owner", "user": "http://localhost:9001/3.0/users/33053400552422307362609732601039123688"}]}'} + body: {string: !!python/unicode '{"entries": [{"user": "http://localhost:9001/3.0/users/96573909988922970304746006243506406498", + "http_etag": "\"a01bc1e1ad719a7fd0246fe5d8b168e4a4e83318\"", "role": "owner", + "email": "owner@example.com", "delivery_mode": "regular", "list_id": "foo.example.com", + "address": "http://localhost:9001/3.0/addresses/owner@example.com", "self_link": + "http://localhost:9001/3.0/members/211877927659145775206600140988891673117"}], + "start": 0, "http_etag": "\"3a6c60a7c5f07210b22bc50bf788a7448b2757cd\"", "total_size": + 1}'} headers: content-length: ['511'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:06 GMT'] + date: ['Mon, 09 Feb 2015 22:14:44 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -296,16 +187,17 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"2921c3695dc9f0dae17f09f6039d7fc881e2190e\"", - "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", - "list_id": "foo.example.com", "http_etag": "\"a27aad7ed6e7d1cd182cd94dca3e4045fe62b058\"", - "delivery_mode": "regular", "email": "moderator@example.com", "self_link": - "http://localhost:9001/3.0/members/245381608243424917069593530211617477882", - "role": "moderator", "user": "http://localhost:9001/3.0/users/215240810222150342870624384608044322976"}]}'} + body: {string: !!python/unicode '{"entries": [{"user": "http://localhost:9001/3.0/users/72657208221403324359163601797012164031", + "http_etag": "\"8d5e623a09a9cb6795b8af58b9156add349aa98c\"", "role": "moderator", + "email": "moderator@example.com", "delivery_mode": "regular", "list_id": "foo.example.com", + "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "self_link": + "http://localhost:9001/3.0/members/74561224102330491648556315669152982006"}], + "start": 0, "http_etag": "\"d5fd56d9e0cc891cc55f9651a75dcc98a65d3808\"", "total_size": + 1}'} headers: - content-length: ['524'] + content-length: ['522'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:06 GMT'] + date: ['Mon, 09 Feb 2015 22:14:44 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -317,15 +209,17 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"afa4fd6faf7612af66ca8908ebc18c0b91b07317\"", - "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "list_id": "foo.example.com", "http_etag": "\"bc415aba86bdb73ed4f783cdf2420ba13998f39d\"", - "delivery_mode": "regular", "email": "owner@example.com", "self_link": "http://localhost:9001/3.0/members/217000428022394232304016046848504271195", - "role": "owner", "user": "http://localhost:9001/3.0/users/33053400552422307362609732601039123688"}]}'} + body: {string: !!python/unicode '{"entries": [{"user": "http://localhost:9001/3.0/users/96573909988922970304746006243506406498", + "http_etag": "\"a01bc1e1ad719a7fd0246fe5d8b168e4a4e83318\"", "role": "owner", + "email": "owner@example.com", "delivery_mode": "regular", "list_id": "foo.example.com", + "address": "http://localhost:9001/3.0/addresses/owner@example.com", "self_link": + "http://localhost:9001/3.0/members/211877927659145775206600140988891673117"}], + "start": 0, "http_etag": "\"3a6c60a7c5f07210b22bc50bf788a7448b2757cd\"", "total_size": + 1}'} headers: content-length: ['511'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:06 GMT'] + date: ['Mon, 09 Feb 2015 22:14:44 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -337,16 +231,17 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"2921c3695dc9f0dae17f09f6039d7fc881e2190e\"", - "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", - "list_id": "foo.example.com", "http_etag": "\"a27aad7ed6e7d1cd182cd94dca3e4045fe62b058\"", - "delivery_mode": "regular", "email": "moderator@example.com", "self_link": - "http://localhost:9001/3.0/members/245381608243424917069593530211617477882", - "role": "moderator", "user": "http://localhost:9001/3.0/users/215240810222150342870624384608044322976"}]}'} + body: {string: !!python/unicode '{"entries": [{"user": "http://localhost:9001/3.0/users/72657208221403324359163601797012164031", + "http_etag": "\"8d5e623a09a9cb6795b8af58b9156add349aa98c\"", "role": "moderator", + "email": "moderator@example.com", "delivery_mode": "regular", "list_id": "foo.example.com", + "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "self_link": + "http://localhost:9001/3.0/members/74561224102330491648556315669152982006"}], + "start": 0, "http_etag": "\"d5fd56d9e0cc891cc55f9651a75dcc98a65d3808\"", "total_size": + 1}'} headers: - content-length: ['524'] + content-length: ['522'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:06 GMT'] + date: ['Mon, 09 Feb 2015 22:14:44 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -358,14 +253,14 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "display_name": + "Foo", "member_count": 0, "list_id": "foo.example.com", "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": - 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": - 0, "mail_host": "example.com", "list_name": "foo"}'} + 1, "list_name": "foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:08 GMT'] + date: ['Mon, 09 Feb 2015 22:14:45 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -382,7 +277,7 @@ headers: content-length: ['90'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:08 GMT'] + date: ['Mon, 09 Feb 2015 22:14:45 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -394,15 +289,17 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"8a8824e047832d03e7bdb3c51621330519330557\"", - "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "list_id": "foo.example.com", "http_etag": "\"2e2477f83fa4867189488f4b7d1d9b1d315f20f4\"", - "delivery_mode": "regular", "email": "owner@example.com", "self_link": "http://localhost:9001/3.0/members/67773378313803747898917364362928812772", - "role": "owner", "user": "http://localhost:9001/3.0/users/33053400552422307362609732601039123688"}]}'} + body: {string: !!python/unicode '{"entries": [{"user": "http://localhost:9001/3.0/users/96573909988922970304746006243506406498", + "http_etag": "\"e94829a7f9e6a8f7bc75dc68bfb484b527a63204\"", "role": "owner", + "email": "owner@example.com", "delivery_mode": "regular", "list_id": "foo.example.com", + "address": "http://localhost:9001/3.0/addresses/owner@example.com", "self_link": + "http://localhost:9001/3.0/members/189690441823108454574062063218711796982"}], + "start": 0, "http_etag": "\"6e899141f26da6e91823e84652e2c58c1740db3d\"", "total_size": + 1}'} headers: - content-length: ['510'] + content-length: ['511'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:08 GMT'] + date: ['Mon, 09 Feb 2015 22:14:45 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -414,16 +311,17 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"ac81269a5766924e88cd550d4278db46cc8f671b\"", - "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", - "list_id": "foo.example.com", "http_etag": "\"49a1e24878389367a692c66e3eba972dc94307b4\"", - "delivery_mode": "regular", "email": "moderator@example.com", "self_link": - "http://localhost:9001/3.0/members/255578922070443897256905353368228136207", - "role": "moderator", "user": "http://localhost:9001/3.0/users/215240810222150342870624384608044322976"}]}'} + body: {string: !!python/unicode '{"entries": [{"user": "http://localhost:9001/3.0/users/72657208221403324359163601797012164031", + "http_etag": "\"dee160dd996a7982519e9db4a6d7c2b59664bc8b\"", "role": "moderator", + "email": "moderator@example.com", "delivery_mode": "regular", "list_id": "foo.example.com", + "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "self_link": + "http://localhost:9001/3.0/members/81343349406634969036125684320138449398"}], + "start": 0, "http_etag": "\"3c9c9917602e64986458d3db099199efb36585bf\"", "total_size": + 1}'} headers: - content-length: ['524'] + content-length: ['522'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:08 GMT'] + date: ['Mon, 09 Feb 2015 22:14:45 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -435,15 +333,17 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"8a8824e047832d03e7bdb3c51621330519330557\"", - "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "list_id": "foo.example.com", "http_etag": "\"2e2477f83fa4867189488f4b7d1d9b1d315f20f4\"", - "delivery_mode": "regular", "email": "owner@example.com", "self_link": "http://localhost:9001/3.0/members/67773378313803747898917364362928812772", - "role": "owner", "user": "http://localhost:9001/3.0/users/33053400552422307362609732601039123688"}]}'} + body: {string: !!python/unicode '{"entries": [{"user": "http://localhost:9001/3.0/users/96573909988922970304746006243506406498", + "http_etag": "\"e94829a7f9e6a8f7bc75dc68bfb484b527a63204\"", "role": "owner", + "email": "owner@example.com", "delivery_mode": "regular", "list_id": "foo.example.com", + "address": "http://localhost:9001/3.0/addresses/owner@example.com", "self_link": + "http://localhost:9001/3.0/members/189690441823108454574062063218711796982"}], + "start": 0, "http_etag": "\"6e899141f26da6e91823e84652e2c58c1740db3d\"", "total_size": + 1}'} headers: - content-length: ['510'] + content-length: ['511'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:08 GMT'] + date: ['Mon, 09 Feb 2015 22:14:45 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} - request: @@ -455,16 +355,17 @@ method: !!python/unicode 'GET' uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"ac81269a5766924e88cd550d4278db46cc8f671b\"", - "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", - "list_id": "foo.example.com", "http_etag": "\"49a1e24878389367a692c66e3eba972dc94307b4\"", - "delivery_mode": "regular", "email": "moderator@example.com", "self_link": - "http://localhost:9001/3.0/members/255578922070443897256905353368228136207", - "role": "moderator", "user": "http://localhost:9001/3.0/users/215240810222150342870624384608044322976"}]}'} + body: {string: !!python/unicode '{"entries": [{"user": "http://localhost:9001/3.0/users/72657208221403324359163601797012164031", + "http_etag": "\"dee160dd996a7982519e9db4a6d7c2b59664bc8b\"", "role": "moderator", + "email": "moderator@example.com", "delivery_mode": "regular", "list_id": "foo.example.com", + "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "self_link": + "http://localhost:9001/3.0/members/81343349406634969036125684320138449398"}], + "start": 0, "http_etag": "\"3c9c9917602e64986458d3db099199efb36585bf\"", "total_size": + 1}'} headers: - content-length: ['524'] + content-length: ['522'] content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:08 GMT'] + date: ['Mon, 09 Feb 2015 22:14:45 GMT'] server: [WSGIServer/0.2 CPython/3.4.2] status: {code: 200, message: OK} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_creation.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_creation.yaml new file mode 100644 index 0000000..510acfe --- /dev/null +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_creation.yaml @@ -0,0 +1,369 @@ +interactions: +- request: + body: mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode 'Domain exists'} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:51 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "mail_host": + "example.com", "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\"", + "contact_address": "postmaster@example.com", "description": null, "url_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:51 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", + "mail_host": "example.com", "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\"", + "contact_address": "postmaster@example.com", "description": null, "url_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}], + "start": 0, "http_etag": "\"b4ea7109190ac24defea706a8fc8807090dabba4\"", "total_size": + 1}'} + headers: + content-length: ['383'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:51 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "mail_host": + "example.com", "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\"", + "contact_address": "postmaster@example.com", "description": null, "url_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:51 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "mail_host": + "example.com", "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\"", + "contact_address": "postmaster@example.com", "description": null, "url_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:51 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "mail_host": + "example.com", "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\"", + "contact_address": "postmaster@example.com", "description": null, "url_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:51 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=a_new_list%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 22:14:51 GMT'] + location: ['http://localhost:9001/3.0/lists/a_new_list.example.com'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/a_new_list.example.com + response: + body: {string: !!python/unicode '{"fqdn_listname": "a_new_list@example.com", "display_name": + "A_new_list", "member_count": 0, "list_id": "a_new_list.example.com", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", + "volume": 1, "list_name": "a_new_list", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\""}'} + headers: + content-length: ['329'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:51 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: role=owner&subscriber=owner%40example.com&list_id=a_new_list.example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/members + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 22:14:51 GMT'] + location: ['http://localhost:9001/3.0/members/201301032712111293964645665073540073466'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/a_new_list@example.com/config + response: + body: {string: !!python/unicode '{"autoresponse_owner_text": "", "include_rfc2369_headers": + true, "join_address": "a_new_list-join@example.com", "scheme": "http", "last_post_at": + null, "admin_notify_mchanges": false, "autorespond_postings": "none", "owner_address": + "a_new_list-owner@example.com", "archive_policy": "public", "mail_host": "example.com", + "no_reply_address": "noreply@example.com", "created_at": "2015-02-09T22:14:51.714036", + "posting_pipeline": "default-posting-pipeline", "display_name": "A_new_list", + "leave_address": "a_new_list-leave@example.com", "fqdn_listname": "a_new_list@example.com", + "autoresponse_request_text": "", "volume": 1, "web_host": "example.com", "bounces_address": + "a_new_list-bounces@example.com", "send_welcome_message": true, "http_etag": + "\"5c317ba46d03974ed3dab2656d0bb5fea8562959\"", "description": "", "welcome_message_uri": + "mailman:///welcome.txt", "posting_address": "a_new_list@example.com", "acceptable_aliases": + [], "next_digest_number": 1, "autoresponse_postings_text": "", "default_member_action": + "defer", "default_nonmember_action": "hold", "reply_to_address": "", "convert_html_to_plaintext": + false, "list_name": "a_new_list", "autorespond_requests": "none", "advertised": + true, "post_id": 1, "anonymous_list": false, "reply_goes_to_list": "no_munging", + "digest_last_sent_at": null, "digest_size_threshold": 30.0, "request_address": + "a_new_list-request@example.com", "filter_content": false, "subject_prefix": + "[A_new_list] ", "collapse_alternatives": true, "autoresponse_grace_period": + "90d", "admin_immed_notify": true, "first_strip_reply_to": false, "administrivia": + true, "allow_list_posts": true, "autorespond_owner": "none"}'} + headers: + content-length: ['1653'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:51 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&allow_list_posts=True&autoresponse_owner_text=&default_member_action=defer&archive_policy=public&filter_content=False&default_nonmember_action=hold&anonymous_list=False&subject_prefix=%5BA_new_list%5D+&display_name=A_new_list&include_rfc2369_headers=True&reply_to_address=&digest_size_threshold=30.0&advertised=True&autoresponse_grace_period=90d&collapse_alternatives=True&autorespond_postings=none&convert_html_to_plaintext=False&administrivia=True&autorespond_requests=none&send_welcome_message=True&reply_goes_to_list=no_munging&posting_pipeline=default-posting-pipeline&admin_notify_mchanges=False&autorespond_owner=none&description=A+new+list.&admin_immed_notify=True&autoresponse_postings_text=&first_strip_reply_to=False&autoresponse_request_text= + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'PATCH' + uri: http://localhost:9001/3.0/lists/a_new_list@example.com/config + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 22:14:51 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/a_new_list@example.com + response: + body: {string: !!python/unicode '{"fqdn_listname": "a_new_list@example.com", "display_name": + "A_new_list", "member_count": 0, "list_id": "a_new_list.example.com", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", + "volume": 1, "list_name": "a_new_list", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\""}'} + headers: + content-length: ['329'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:51 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/a_new_list.example.com/roster/owner + response: + body: {string: !!python/unicode '{"entries": [{"user": "http://localhost:9001/3.0/users/96573909988922970304746006243506406498", + "http_etag": "\"e2263065a3d09fdd5e65d7eb5d16decb359151b0\"", "role": "owner", + "email": "owner@example.com", "delivery_mode": "regular", "list_id": "a_new_list.example.com", + "address": "http://localhost:9001/3.0/addresses/owner@example.com", "self_link": + "http://localhost:9001/3.0/members/201301032712111293964645665073540073466"}], + "start": 0, "http_etag": "\"91bc9108fa92332e76a08e415db23af9c5fd1bfd\"", "total_size": + 1}'} + headers: + content-length: ['518'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:51 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode '{"entries": [{"fqdn_listname": "a_new_list@example.com", + "display_name": "A_new_list", "member_count": 0, "list_id": "a_new_list.example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", + "volume": 1, "list_name": "a_new_list", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\""}], + "start": 0, "http_etag": "\"dee96dcb9d3f736cc6fa170baeea8f879d7db6f0\"", "total_size": + 1}'} + headers: + content-length: ['434'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:52 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/a_new_list.example.com + response: + body: {string: !!python/unicode '{"fqdn_listname": "a_new_list@example.com", "display_name": + "A_new_list", "member_count": 0, "list_id": "a_new_list.example.com", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", + "volume": 1, "list_name": "a_new_list", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\""}'} + headers: + content-length: ['329'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:52 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/lists/a_new_list@example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 22:14:52 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 204, message: No Content} +- request: + body: mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode 'Domain exists'} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:52 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "mail_host": + "example.com", "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\"", + "contact_address": "postmaster@example.com", "description": null, "url_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:52 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:52 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_index.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_index.yaml new file mode 100644 index 0000000..1b8e477 --- /dev/null +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_index.yaml @@ -0,0 +1,277 @@ +interactions: +- request: + body: mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode 'Domain exists'} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:40 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "mail_host": + "example.com", "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\"", + "contact_address": "postmaster@example.com", "description": null, "url_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:40 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "mail_host": + "example.com", "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\"", + "contact_address": "postmaster@example.com", "description": null, "url_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:40 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=foo%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 22:14:40 GMT'] + location: ['http://localhost:9001/3.0/lists/foo.example.com'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode '{"entries": [{"fqdn_listname": "foo@example.com", + "display_name": "Foo", "member_count": 0, "list_id": "foo.example.com", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1, "list_name": "foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}], + "start": 0, "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", "total_size": + 1}'} + headers: + content-length: ['399'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:41 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "display_name": + "Foo", "member_count": 0, "list_id": "foo.example.com", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "list_name": "foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:41 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"autoresponse_owner_text": "", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "scheme": "http", "last_post_at": + null, "admin_notify_mchanges": false, "autorespond_postings": "none", "owner_address": + "foo-owner@example.com", "archive_policy": "public", "mail_host": "example.com", + "no_reply_address": "noreply@example.com", "created_at": "2015-02-09T22:14:40.942414", + "posting_pipeline": "default-posting-pipeline", "display_name": "Foo", "leave_address": + "foo-leave@example.com", "fqdn_listname": "foo@example.com", "autoresponse_request_text": + "", "volume": 1, "web_host": "example.com", "bounces_address": "foo-bounces@example.com", + "send_welcome_message": true, "http_etag": "\"263d909736126c6ee838554c111f8399e6cad8c6\"", + "description": "", "welcome_message_uri": "mailman:///welcome.txt", "posting_address": + "foo@example.com", "acceptable_aliases": [], "next_digest_number": 1, "autoresponse_postings_text": + "", "default_member_action": "defer", "default_nonmember_action": "hold", + "reply_to_address": "", "convert_html_to_plaintext": false, "list_name": "foo", + "autorespond_requests": "none", "advertised": true, "post_id": 1, "anonymous_list": + false, "reply_goes_to_list": "no_munging", "digest_last_sent_at": null, "digest_size_threshold": + 30.0, "request_address": "foo-request@example.com", "filter_content": false, + "subject_prefix": "[Foo] ", "collapse_alternatives": true, "autoresponse_grace_period": + "90d", "admin_immed_notify": true, "first_strip_reply_to": false, "administrivia": + true, "allow_list_posts": true, "autorespond_owner": "none"}'} + headers: + content-length: ['1583'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:41 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", + "mail_host": "example.com", "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\"", + "contact_address": "postmaster@example.com", "description": null, "url_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}], + "start": 0, "http_etag": "\"b4ea7109190ac24defea706a8fc8807090dabba4\"", "total_size": + 1}'} + headers: + content-length: ['383'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:41 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "mail_host": + "example.com", "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\"", + "contact_address": "postmaster@example.com", "description": null, "url_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:41 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"autoresponse_owner_text": "", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "scheme": "http", "last_post_at": + null, "admin_notify_mchanges": false, "autorespond_postings": "none", "owner_address": + "foo-owner@example.com", "archive_policy": "public", "mail_host": "example.com", + "no_reply_address": "noreply@example.com", "created_at": "2015-02-09T22:14:40.942414", + "posting_pipeline": "default-posting-pipeline", "display_name": "Foo", "leave_address": + "foo-leave@example.com", "fqdn_listname": "foo@example.com", "autoresponse_request_text": + "", "volume": 1, "web_host": "example.com", "bounces_address": "foo-bounces@example.com", + "send_welcome_message": true, "http_etag": "\"263d909736126c6ee838554c111f8399e6cad8c6\"", + "description": "", "welcome_message_uri": "mailman:///welcome.txt", "posting_address": + "foo@example.com", "acceptable_aliases": [], "next_digest_number": 1, "autoresponse_postings_text": + "", "default_member_action": "defer", "default_nonmember_action": "hold", + "reply_to_address": "", "convert_html_to_plaintext": false, "list_name": "foo", + "autorespond_requests": "none", "advertised": true, "post_id": 1, "anonymous_list": + false, "reply_goes_to_list": "no_munging", "digest_last_sent_at": null, "digest_size_threshold": + 30.0, "request_address": "foo-request@example.com", "filter_content": false, + "subject_prefix": "[Foo] ", "collapse_alternatives": true, "autoresponse_grace_period": + "90d", "admin_immed_notify": true, "first_strip_reply_to": false, "administrivia": + true, "allow_list_posts": true, "autorespond_owner": "none"}'} + headers: + content-length: ['1583'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:41 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode '{"entries": [{"fqdn_listname": "foo@example.com", + "display_name": "Foo", "member_count": 0, "list_id": "foo.example.com", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1, "list_name": "foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}], + "start": 0, "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", "total_size": + 1}'} + headers: + content-length: ['399'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:41 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "display_name": + "Foo", "member_count": 0, "list_id": "foo.example.com", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "list_name": "foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:41 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 22:14:41 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 204, message: No Content} +version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_index/list_index_page/list_index_contains_one_list.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_index/list_index_page/list_index_contains_one_list.yaml deleted file mode 100644 index e16f7bb..0000000 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_index/list_index_page/list_index_contains_one_list.yaml +++ /dev/null @@ -1,342 +0,0 @@ -interactions: -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", - "total_size": 1, "entries": [{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": - 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": - 0, "mail_host": "example.com", "list_name": "foo"}]}'} - headers: - content-length: ['399'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:02 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": - 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": - 0, "mail_host": "example.com", "list_name": "foo"}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:02 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo@example.com/config - response: - body: {string: !!python/unicode '{"digest_last_sent_at": null, "scheme": "http", - "next_digest_number": 1, "first_strip_reply_to": false, "reply_to_address": - "", "convert_html_to_plaintext": false, "administrivia": true, "owner_address": - "foo-owner@example.com", "admin_notify_mchanges": false, "display_name": "Foo", - "created_at": "2015-02-09T21:39:02.359194", "posting_address": "foo@example.com", - "http_etag": "\"b2d9021c9ef73235a56e396db72c0443b8ac28fd\"", "default_member_action": - "defer", "fqdn_listname": "foo@example.com", "archive_policy": "public", "list_name": - "foo", "filter_content": false, "welcome_message_uri": "mailman:///welcome.txt", - "no_reply_address": "noreply@example.com", "autoresponse_request_text": "", - "digest_size_threshold": 30.0, "acceptable_aliases": [], "anonymous_list": - false, "default_nonmember_action": "hold", "autoresponse_grace_period": "90d", - "advertised": true, "autorespond_owner": "none", "volume": 1, "include_rfc2369_headers": - true, "posting_pipeline": "default-posting-pipeline", "send_welcome_message": - true, "request_address": "foo-request@example.com", "subject_prefix": "[Foo] - ", "bounces_address": "foo-bounces@example.com", "description": "", "web_host": - "example.com", "autoresponse_postings_text": "", "last_post_at": null, "autorespond_requests": - "none", "allow_list_posts": true, "join_address": "foo-join@example.com", - "autoresponse_owner_text": "", "autorespond_postings": "none", "reply_goes_to_list": - "no_munging", "post_id": 1, "collapse_alternatives": true, "admin_immed_notify": - true, "mail_host": "example.com", "leave_address": "foo-leave@example.com"}'} - headers: - content-length: ['1583'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:02 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"ada6297bd60e6fc8b625d4f706d34d3925737a14\"", - "total_size": 2, "entries": [{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}, {"description": - null, "url_host": "example.org", "base_url": "http://example.org", "contact_address": - "postmaster@example.org", "mail_host": "example.org", "self_link": "http://localhost:9001/3.0/domains/example.org", - "http_etag": "\"730f23a7a90aecfe1248f952d15bcfe97ce9e51f\""}]}'} - headers: - content-length: ['663'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:02 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} - headers: - content-length: ['278'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:02 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.org - response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.org", - "base_url": "http://example.org", "contact_address": "postmaster@example.org", - "mail_host": "example.org", "self_link": "http://localhost:9001/3.0/domains/example.org", - "http_etag": "\"730f23a7a90aecfe1248f952d15bcfe97ce9e51f\""}'} - headers: - content-length: ['278'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:02 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo@example.com/config - response: - body: {string: !!python/unicode '{"digest_last_sent_at": null, "scheme": "http", - "next_digest_number": 1, "first_strip_reply_to": false, "reply_to_address": - "", "convert_html_to_plaintext": false, "administrivia": true, "owner_address": - "foo-owner@example.com", "admin_notify_mchanges": false, "display_name": "Foo", - "created_at": "2015-02-09T21:39:02.359194", "posting_address": "foo@example.com", - "http_etag": "\"b2d9021c9ef73235a56e396db72c0443b8ac28fd\"", "default_member_action": - "defer", "fqdn_listname": "foo@example.com", "archive_policy": "public", "list_name": - "foo", "filter_content": false, "welcome_message_uri": "mailman:///welcome.txt", - "no_reply_address": "noreply@example.com", "autoresponse_request_text": "", - "digest_size_threshold": 30.0, "acceptable_aliases": [], "anonymous_list": - false, "default_nonmember_action": "hold", "autoresponse_grace_period": "90d", - "advertised": true, "autorespond_owner": "none", "volume": 1, "include_rfc2369_headers": - true, "posting_pipeline": "default-posting-pipeline", "send_welcome_message": - true, "request_address": "foo-request@example.com", "subject_prefix": "[Foo] - ", "bounces_address": "foo-bounces@example.com", "description": "", "web_host": - "example.com", "autoresponse_postings_text": "", "last_post_at": null, "autorespond_requests": - "none", "allow_list_posts": true, "join_address": "foo-join@example.com", - "autoresponse_owner_text": "", "autorespond_postings": "none", "reply_goes_to_list": - "no_munging", "post_id": 1, "collapse_alternatives": true, "admin_immed_notify": - true, "mail_host": "example.com", "leave_address": "foo-leave@example.com"}'} - headers: - content-length: ['1583'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:02 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", - "total_size": 1, "entries": [{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": - 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": - 0, "mail_host": "example.com", "list_name": "foo"}]}'} - headers: - content-length: ['399'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:03 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": - 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": - 0, "mail_host": "example.com", "list_name": "foo"}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:03 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo@example.com/config - response: - body: {string: !!python/unicode '{"digest_last_sent_at": null, "scheme": "http", - "next_digest_number": 1, "first_strip_reply_to": false, "reply_to_address": - "", "convert_html_to_plaintext": false, "administrivia": true, "owner_address": - "foo-owner@example.com", "admin_notify_mchanges": false, "display_name": "Foo", - "created_at": "2015-02-09T21:41:03.642356", "posting_address": "foo@example.com", - "http_etag": "\"52df79043d36d282bf79e4898552a9c4d6941912\"", "default_member_action": - "defer", "fqdn_listname": "foo@example.com", "archive_policy": "public", "list_name": - "foo", "filter_content": false, "welcome_message_uri": "mailman:///welcome.txt", - "no_reply_address": "noreply@example.com", "autoresponse_request_text": "", - "digest_size_threshold": 30.0, "acceptable_aliases": [], "anonymous_list": - false, "default_nonmember_action": "hold", "autoresponse_grace_period": "90d", - "advertised": true, "autorespond_owner": "none", "volume": 1, "include_rfc2369_headers": - true, "posting_pipeline": "default-posting-pipeline", "send_welcome_message": - true, "request_address": "foo-request@example.com", "subject_prefix": "[Foo] - ", "bounces_address": "foo-bounces@example.com", "description": "", "web_host": - "example.com", "autoresponse_postings_text": "", "last_post_at": null, "autorespond_requests": - "none", "allow_list_posts": true, "join_address": "foo-join@example.com", - "autoresponse_owner_text": "", "autorespond_postings": "none", "reply_goes_to_list": - "no_munging", "post_id": 1, "collapse_alternatives": true, "admin_immed_notify": - true, "mail_host": "example.com", "leave_address": "foo-leave@example.com"}'} - headers: - content-length: ['1583'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:03 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"ada6297bd60e6fc8b625d4f706d34d3925737a14\"", - "total_size": 2, "entries": [{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}, {"description": - null, "url_host": "example.org", "base_url": "http://example.org", "contact_address": - "postmaster@example.org", "mail_host": "example.org", "self_link": "http://localhost:9001/3.0/domains/example.org", - "http_etag": "\"730f23a7a90aecfe1248f952d15bcfe97ce9e51f\""}]}'} - headers: - content-length: ['663'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:03 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} - headers: - content-length: ['278'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:03 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.org - response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.org", - "base_url": "http://example.org", "contact_address": "postmaster@example.org", - "mail_host": "example.org", "self_link": "http://localhost:9001/3.0/domains/example.org", - "http_etag": "\"730f23a7a90aecfe1248f952d15bcfe97ce9e51f\""}'} - headers: - content-length: ['278'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:03 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo@example.com/config - response: - body: {string: !!python/unicode '{"digest_last_sent_at": null, "scheme": "http", - "next_digest_number": 1, "first_strip_reply_to": false, "reply_to_address": - "", "convert_html_to_plaintext": false, "administrivia": true, "owner_address": - "foo-owner@example.com", "admin_notify_mchanges": false, "display_name": "Foo", - "created_at": "2015-02-09T21:41:03.642356", "posting_address": "foo@example.com", - "http_etag": "\"52df79043d36d282bf79e4898552a9c4d6941912\"", "default_member_action": - "defer", "fqdn_listname": "foo@example.com", "archive_policy": "public", "list_name": - "foo", "filter_content": false, "welcome_message_uri": "mailman:///welcome.txt", - "no_reply_address": "noreply@example.com", "autoresponse_request_text": "", - "digest_size_threshold": 30.0, "acceptable_aliases": [], "anonymous_list": - false, "default_nonmember_action": "hold", "autoresponse_grace_period": "90d", - "advertised": true, "autorespond_owner": "none", "volume": 1, "include_rfc2369_headers": - true, "posting_pipeline": "default-posting-pipeline", "send_welcome_message": - true, "request_address": "foo-request@example.com", "subject_prefix": "[Foo] - ", "bounces_address": "foo-bounces@example.com", "description": "", "web_host": - "example.com", "autoresponse_postings_text": "", "last_post_at": null, "autorespond_requests": - "none", "allow_list_posts": true, "join_address": "foo-join@example.com", - "autoresponse_owner_text": "", "autorespond_postings": "none", "reply_goes_to_list": - "no_munging", "post_id": 1, "collapse_alternatives": true, "admin_immed_notify": - true, "mail_host": "example.com", "leave_address": "foo-leave@example.com"}'} - headers: - content-length: ['1583'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:03 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_index/list_index_page/setup.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_index/list_index_page/setup.yaml deleted file mode 100644 index 72a5fc1..0000000 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_index/list_index_page/setup.yaml +++ /dev/null @@ -1,146 +0,0 @@ -interactions: -- request: - body: mail_host=example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/domains - response: - body: {string: !!python/unicode 'Domain exists'} - headers: - content-length: ['13'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:02 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 400, message: Bad Request} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} - headers: - content-length: ['278'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:02 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} - headers: - content-length: ['278'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:02 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: fqdn_listname=foo%40example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:39:02 GMT'] - location: ['http://localhost:9001/3.0/lists/foo.example.com'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 201, message: Created} -- request: - body: mail_host=example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/domains - response: - body: {string: !!python/unicode 'Domain exists'} - headers: - content-length: ['13'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:03 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 400, message: Bad Request} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} - headers: - content-length: ['278'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:03 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} - headers: - content-length: ['278'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:03 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: fqdn_listname=foo%40example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:03 GMT'] - location: ['http://localhost:9001/3.0/lists/foo.example.com'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 201, message: Created} -version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_index/list_index_page/teardown.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_index/list_index_page/teardown.yaml deleted file mode 100644 index dd7d7aa..0000000 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_index/list_index_page/teardown.yaml +++ /dev/null @@ -1,110 +0,0 @@ -interactions: -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", - "total_size": 1, "entries": [{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": - 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": - 0, "mail_host": "example.com", "list_name": "foo"}]}'} - headers: - content-length: ['399'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:02 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": - 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": - 0, "mail_host": "example.com", "list_name": "foo"}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:02 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/lists/foo@example.com - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:39:02 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", - "total_size": 1, "entries": [{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": - 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": - 0, "mail_host": "example.com", "list_name": "foo"}]}'} - headers: - content-length: ['399'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:04 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": - 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": - 0, "mail_host": "example.com", "list_name": "foo"}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:04 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/lists/foo@example.com - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:04 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 204, message: No Content} -version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members/add_moderator_setup.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members/add_moderator_setup.yaml deleted file mode 100644 index c767c68..0000000 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members/add_moderator_setup.yaml +++ /dev/null @@ -1,394 +0,0 @@ -interactions: -- request: - body: mail_host=example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/domains - response: - body: {string: !!python/unicode 'Domain exists'} - headers: - content-length: ['13'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:02 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 400, message: Bad Request} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} - headers: - content-length: ['278'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:02 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} - headers: - content-length: ['278'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:02 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: fqdn_listname=foo%40example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:39:02 GMT'] - location: ['http://localhost:9001/3.0/lists/foo.example.com'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo@example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": - 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": - 0, "mail_host": "example.com", "list_name": "foo"}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:03 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=25&page=1 - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:03 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:03 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:03 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: subscriber=newmod%40example.com&role=moderator&list_id=foo.example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/members - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:39:03 GMT'] - location: ['http://localhost:9001/3.0/members/199324285054835647433873267170287937248'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:03 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"5dc6aa6830d9bde962b6459452c6bea19ecd9b28\"", - "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/newmod@example.com", - "list_id": "foo.example.com", "http_etag": "\"99cbd443005c7ccc550446c454f28d2facea9ff0\"", - "delivery_mode": "regular", "email": "newmod@example.com", "self_link": "http://localhost:9001/3.0/members/199324285054835647433873267170287937248", - "role": "moderator", "user": "http://localhost:9001/3.0/users/219548507436655030397270575671136077291"}]}'} - headers: - content-length: ['518'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:03 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: mail_host=example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/domains - response: - body: {string: !!python/unicode 'Domain exists'} - headers: - content-length: ['13'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:04 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 400, message: Bad Request} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} - headers: - content-length: ['278'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:04 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} - headers: - content-length: ['278'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:04 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: fqdn_listname=foo%40example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:04 GMT'] - location: ['http://localhost:9001/3.0/lists/foo.example.com'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo@example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": - 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": - 0, "mail_host": "example.com", "list_name": "foo"}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:04 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=25&page=1 - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:04 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:04 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:04 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: subscriber=newmod%40example.com&role=moderator&list_id=foo.example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/members - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:04 GMT'] - location: ['http://localhost:9001/3.0/members/325690135860390078965733464571147603169'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:04 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"eaaf84bcb954f185e66d6bdd3f31291b7a58fecf\"", - "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/newmod@example.com", - "list_id": "foo.example.com", "http_etag": "\"14db5ab1b3821b866642b1f9849bd3bc8bdd6c3e\"", - "delivery_mode": "regular", "email": "newmod@example.com", "self_link": "http://localhost:9001/3.0/members/325690135860390078965733464571147603169", - "role": "moderator", "user": "http://localhost:9001/3.0/users/219548507436655030397270575671136077291"}]}'} - headers: - content-length: ['518'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:04 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members/add_moderator_teardown.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members/add_moderator_teardown.yaml deleted file mode 100644 index fd29956..0000000 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members/add_moderator_teardown.yaml +++ /dev/null @@ -1,70 +0,0 @@ -interactions: -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": - 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": - 0, "mail_host": "example.com", "list_name": "foo"}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:03 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/lists/foo@example.com - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:39:03 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": - 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": - 0, "mail_host": "example.com", "list_name": "foo"}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:04 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/lists/foo@example.com - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:04 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 204, message: No Content} -version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members/new_moderator_added.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members/new_moderator_added.yaml deleted file mode 100644 index b9e1250..0000000 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members/new_moderator_added.yaml +++ /dev/null @@ -1,42 +0,0 @@ -interactions: -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"5dc6aa6830d9bde962b6459452c6bea19ecd9b28\"", - "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/newmod@example.com", - "list_id": "foo.example.com", "http_etag": "\"99cbd443005c7ccc550446c454f28d2facea9ff0\"", - "delivery_mode": "regular", "email": "newmod@example.com", "self_link": "http://localhost:9001/3.0/members/199324285054835647433873267170287937248", - "role": "moderator", "user": "http://localhost:9001/3.0/users/219548507436655030397270575671136077291"}]}'} - headers: - content-length: ['518'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:03 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"eaaf84bcb954f185e66d6bdd3f31291b7a58fecf\"", - "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/newmod@example.com", - "list_id": "foo.example.com", "http_etag": "\"14db5ab1b3821b866642b1f9849bd3bc8bdd6c3e\"", - "delivery_mode": "regular", "email": "newmod@example.com", "self_link": "http://localhost:9001/3.0/members/325690135860390078965733464571147603169", - "role": "moderator", "user": "http://localhost:9001/3.0/users/219548507436655030397270575671136077291"}]}'} - headers: - content-length: ['518'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:04 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_add_moderator.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_add_moderator.yaml new file mode 100644 index 0000000..175fae8 --- /dev/null +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_add_moderator.yaml @@ -0,0 +1,256 @@ +interactions: +- request: + body: mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode 'Domain exists'} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:41 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "mail_host": + "example.com", "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\"", + "contact_address": "postmaster@example.com", "description": null, "url_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:41 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "mail_host": + "example.com", "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\"", + "contact_address": "postmaster@example.com", "description": null, "url_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:41 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=foo%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 22:14:41 GMT'] + location: ['http://localhost:9001/3.0/lists/foo.example.com'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "display_name": + "Foo", "member_count": 0, "list_id": "foo.example.com", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "list_name": "foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:41 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=25&page=1 + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:41 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:41 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:41 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: role=moderator&subscriber=newmod%40example.com&list_id=foo.example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/members + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 22:14:41 GMT'] + location: ['http://localhost:9001/3.0/members/751438638793541747994579529807846416'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:41 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"entries": [{"user": "http://localhost:9001/3.0/users/119841611237508711407725388596844209506", + "http_etag": "\"e36337be00e19d69928cd36a0c157f15ec088681\"", "role": "moderator", + "email": "newmod@example.com", "delivery_mode": "regular", "list_id": "foo.example.com", + "address": "http://localhost:9001/3.0/addresses/newmod@example.com", "self_link": + "http://localhost:9001/3.0/members/751438638793541747994579529807846416"}], + "start": 0, "http_etag": "\"7832c6b042b036fcddb53de933b99aae44a37946\"", "total_size": + 1}'} + headers: + content-length: ['515'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:41 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"entries": [{"user": "http://localhost:9001/3.0/users/119841611237508711407725388596844209506", + "http_etag": "\"e36337be00e19d69928cd36a0c157f15ec088681\"", "role": "moderator", + "email": "newmod@example.com", "delivery_mode": "regular", "list_id": "foo.example.com", + "address": "http://localhost:9001/3.0/addresses/newmod@example.com", "self_link": + "http://localhost:9001/3.0/members/751438638793541747994579529807846416"}], + "start": 0, "http_etag": "\"7832c6b042b036fcddb53de933b99aae44a37946\"", "total_size": + 1}'} + headers: + content-length: ['515'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:41 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "display_name": + "Foo", "member_count": 0, "list_id": "foo.example.com", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "list_name": "foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:42 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 22:14:42 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 204, message: No Content} +version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_add_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_add_owner.yaml new file mode 100644 index 0000000..9df4684 --- /dev/null +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_add_owner.yaml @@ -0,0 +1,256 @@ +interactions: +- request: + body: mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode 'Domain exists'} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:42 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "mail_host": + "example.com", "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\"", + "contact_address": "postmaster@example.com", "description": null, "url_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:42 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "mail_host": + "example.com", "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\"", + "contact_address": "postmaster@example.com", "description": null, "url_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:42 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=foo%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 22:14:42 GMT'] + location: ['http://localhost:9001/3.0/lists/foo.example.com'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "display_name": + "Foo", "member_count": 0, "list_id": "foo.example.com", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "list_name": "foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:42 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=25&page=1 + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:42 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:42 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:42 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: role=owner&subscriber=newowner%40example.com&list_id=foo.example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/members + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 22:14:42 GMT'] + location: ['http://localhost:9001/3.0/members/267920195804341479595887151335923694476'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"entries": [{"user": "http://localhost:9001/3.0/users/133031822885082332796307253938036371304", + "http_etag": "\"66a1d315af633b2da10b8bc3991534ca60c1d697\"", "role": "owner", + "email": "newowner@example.com", "delivery_mode": "regular", "list_id": "foo.example.com", + "address": "http://localhost:9001/3.0/addresses/newowner@example.com", "self_link": + "http://localhost:9001/3.0/members/267920195804341479595887151335923694476"}], + "start": 0, "http_etag": "\"d8d824807c3758b3628cb90b39281980cb7f6c50\"", "total_size": + 1}'} + headers: + content-length: ['518'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:42 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:42 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"entries": [{"user": "http://localhost:9001/3.0/users/133031822885082332796307253938036371304", + "http_etag": "\"66a1d315af633b2da10b8bc3991534ca60c1d697\"", "role": "owner", + "email": "newowner@example.com", "delivery_mode": "regular", "list_id": "foo.example.com", + "address": "http://localhost:9001/3.0/addresses/newowner@example.com", "self_link": + "http://localhost:9001/3.0/members/267920195804341479595887151335923694476"}], + "start": 0, "http_etag": "\"d8d824807c3758b3628cb90b39281980cb7f6c50\"", "total_size": + 1}'} + headers: + content-length: ['518'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:42 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "display_name": + "Foo", "member_count": 0, "list_id": "foo.example.com", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "list_name": "foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:42 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 22:14:42 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 204, message: No Content} +version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_add_owner_new_owner_added.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_add_owner_new_owner_added.yaml new file mode 100644 index 0000000..f6403a0 --- /dev/null +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_add_owner_new_owner_added.yaml @@ -0,0 +1,24 @@ +interactions: +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"entries": [{"user": "http://localhost:9001/3.0/users/133031822885082332796307253938036371304", + "http_etag": "\"66a1d315af633b2da10b8bc3991534ca60c1d697\"", "role": "owner", + "email": "newowner@example.com", "delivery_mode": "regular", "list_id": "foo.example.com", + "address": "http://localhost:9001/3.0/addresses/newowner@example.com", "self_link": + "http://localhost:9001/3.0/members/267920195804341479595887151335923694476"}], + "start": 0, "http_etag": "\"d8d824807c3758b3628cb90b39281980cb7f6c50\"", "total_size": + 1}'} + headers: + content-length: ['518'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:42 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_new_moderator_added.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_new_moderator_added.yaml new file mode 100644 index 0000000..3eec335 --- /dev/null +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_new_moderator_added.yaml @@ -0,0 +1,24 @@ +interactions: +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"entries": [{"user": "http://localhost:9001/3.0/users/119841611237508711407725388596844209506", + "http_etag": "\"e36337be00e19d69928cd36a0c157f15ec088681\"", "role": "moderator", + "email": "newmod@example.com", "delivery_mode": "regular", "list_id": "foo.example.com", + "address": "http://localhost:9001/3.0/addresses/newmod@example.com", "self_link": + "http://localhost:9001/3.0/members/751438638793541747994579529807846416"}], + "start": 0, "http_etag": "\"7832c6b042b036fcddb53de933b99aae44a37946\"", "total_size": + 1}'} + headers: + content-length: ['515'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:41 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_metrics.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_metrics.yaml new file mode 100644 index 0000000..2d094db --- /dev/null +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_metrics.yaml @@ -0,0 +1,414 @@ +interactions: +- request: + body: mail_host=example.org + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 22:14:49 GMT'] + location: ['http://localhost:9001/3.0/domains/example.org'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.org + response: + body: {string: !!python/unicode '{"base_url": "http://example.org", "mail_host": + "example.org", "http_etag": "\"730f23a7a90aecfe1248f952d15bcfe97ce9e51f\"", + "contact_address": "postmaster@example.org", "description": null, "url_host": + "example.org", "self_link": "http://localhost:9001/3.0/domains/example.org"}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:49 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=test%40example.org + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 22:14:49 GMT'] + location: ['http://localhost:9001/3.0/lists/test.example.org'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/test@example.org + response: + body: {string: !!python/unicode '{"fqdn_listname": "test@example.org", "display_name": + "Test", "member_count": 0, "list_id": "test.example.org", "mail_host": "example.org", + "self_link": "http://localhost:9001/3.0/lists/test.example.org", "volume": + 1, "list_name": "test", "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\""}'} + headers: + content-length: ['299'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:49 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/test@example.org + response: + body: {string: !!python/unicode '{"fqdn_listname": "test@example.org", "display_name": + "Test", "member_count": 0, "list_id": "test.example.org", "mail_host": "example.org", + "self_link": "http://localhost:9001/3.0/lists/test.example.org", "volume": + 1, "list_name": "test", "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\""}'} + headers: + content-length: ['299'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:50 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/test.example.org/roster/owner + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:50 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/test.example.org/roster/moderator + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:50 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/test@example.org/config + response: + body: {string: !!python/unicode '{"autoresponse_owner_text": "", "include_rfc2369_headers": + true, "join_address": "test-join@example.org", "scheme": "http", "last_post_at": + null, "admin_notify_mchanges": false, "autorespond_postings": "none", "owner_address": + "test-owner@example.org", "archive_policy": "public", "mail_host": "example.org", + "no_reply_address": "noreply@example.org", "created_at": "2015-02-09T22:14:49.876475", + "posting_pipeline": "default-posting-pipeline", "display_name": "Test", "leave_address": + "test-leave@example.org", "fqdn_listname": "test@example.org", "autoresponse_request_text": + "", "volume": 1, "web_host": "example.org", "bounces_address": "test-bounces@example.org", + "send_welcome_message": true, "http_etag": "\"9cf34b32814407604ed8f6bfa08d8e40777cddea\"", + "description": "", "welcome_message_uri": "mailman:///welcome.txt", "posting_address": + "test@example.org", "acceptable_aliases": [], "next_digest_number": 1, "autoresponse_postings_text": + "", "default_member_action": "defer", "default_nonmember_action": "hold", + "reply_to_address": "", "convert_html_to_plaintext": false, "list_name": "test", + "autorespond_requests": "none", "advertised": true, "post_id": 1, "anonymous_list": + false, "reply_goes_to_list": "no_munging", "digest_last_sent_at": null, "digest_size_threshold": + 30.0, "request_address": "test-request@example.org", "filter_content": false, + "subject_prefix": "[Test] ", "collapse_alternatives": true, "autoresponse_grace_period": + "90d", "admin_immed_notify": true, "first_strip_reply_to": false, "administrivia": + true, "allow_list_posts": true, "autorespond_owner": "none"}'} + headers: + content-length: ['1593'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:50 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/test@example.org/config + response: + body: {string: !!python/unicode '{"autoresponse_owner_text": "", "include_rfc2369_headers": + true, "join_address": "test-join@example.org", "scheme": "http", "last_post_at": + null, "admin_notify_mchanges": false, "autorespond_postings": "none", "owner_address": + "test-owner@example.org", "archive_policy": "public", "mail_host": "example.org", + "no_reply_address": "noreply@example.org", "created_at": "2015-02-09T22:14:49.876475", + "posting_pipeline": "default-posting-pipeline", "display_name": "Test", "leave_address": + "test-leave@example.org", "fqdn_listname": "test@example.org", "autoresponse_request_text": + "", "volume": 1, "web_host": "example.org", "bounces_address": "test-bounces@example.org", + "send_welcome_message": true, "http_etag": "\"9cf34b32814407604ed8f6bfa08d8e40777cddea\"", + "description": "", "welcome_message_uri": "mailman:///welcome.txt", "posting_address": + "test@example.org", "acceptable_aliases": [], "next_digest_number": 1, "autoresponse_postings_text": + "", "default_member_action": "defer", "default_nonmember_action": "hold", + "reply_to_address": "", "convert_html_to_plaintext": false, "list_name": "test", + "autorespond_requests": "none", "advertised": true, "post_id": 1, "anonymous_list": + false, "reply_goes_to_list": "no_munging", "digest_last_sent_at": null, "digest_size_threshold": + 30.0, "request_address": "test-request@example.org", "filter_content": false, + "subject_prefix": "[Test] ", "collapse_alternatives": true, "autoresponse_grace_period": + "90d", "admin_immed_notify": true, "first_strip_reply_to": false, "administrivia": + true, "allow_list_posts": true, "autorespond_owner": "none"}'} + headers: + content-length: ['1593'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:50 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/test@example.org/config + response: + body: {string: !!python/unicode '{"autoresponse_owner_text": "", "include_rfc2369_headers": + true, "join_address": "test-join@example.org", "scheme": "http", "last_post_at": + null, "admin_notify_mchanges": false, "autorespond_postings": "none", "owner_address": + "test-owner@example.org", "archive_policy": "public", "mail_host": "example.org", + "no_reply_address": "noreply@example.org", "created_at": "2015-02-09T22:14:49.876475", + "posting_pipeline": "default-posting-pipeline", "display_name": "Test", "leave_address": + "test-leave@example.org", "fqdn_listname": "test@example.org", "autoresponse_request_text": + "", "volume": 1, "web_host": "example.org", "bounces_address": "test-bounces@example.org", + "send_welcome_message": true, "http_etag": "\"9cf34b32814407604ed8f6bfa08d8e40777cddea\"", + "description": "", "welcome_message_uri": "mailman:///welcome.txt", "posting_address": + "test@example.org", "acceptable_aliases": [], "next_digest_number": 1, "autoresponse_postings_text": + "", "default_member_action": "defer", "default_nonmember_action": "hold", + "reply_to_address": "", "convert_html_to_plaintext": false, "list_name": "test", + "autorespond_requests": "none", "advertised": true, "post_id": 1, "anonymous_list": + false, "reply_goes_to_list": "no_munging", "digest_last_sent_at": null, "digest_size_threshold": + 30.0, "request_address": "test-request@example.org", "filter_content": false, + "subject_prefix": "[Test] ", "collapse_alternatives": true, "autoresponse_grace_period": + "90d", "admin_immed_notify": true, "first_strip_reply_to": false, "administrivia": + true, "allow_list_posts": true, "autorespond_owner": "none"}'} + headers: + content-length: ['1593'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:50 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/test@example.org/config + response: + body: {string: !!python/unicode '{"autoresponse_owner_text": "", "include_rfc2369_headers": + true, "join_address": "test-join@example.org", "scheme": "http", "last_post_at": + null, "admin_notify_mchanges": false, "autorespond_postings": "none", "owner_address": + "test-owner@example.org", "archive_policy": "public", "mail_host": "example.org", + "no_reply_address": "noreply@example.org", "created_at": "2015-02-09T22:14:49.876475", + "posting_pipeline": "default-posting-pipeline", "display_name": "Test", "leave_address": + "test-leave@example.org", "fqdn_listname": "test@example.org", "autoresponse_request_text": + "", "volume": 1, "web_host": "example.org", "bounces_address": "test-bounces@example.org", + "send_welcome_message": true, "http_etag": "\"9cf34b32814407604ed8f6bfa08d8e40777cddea\"", + "description": "", "welcome_message_uri": "mailman:///welcome.txt", "posting_address": + "test@example.org", "acceptable_aliases": [], "next_digest_number": 1, "autoresponse_postings_text": + "", "default_member_action": "defer", "default_nonmember_action": "hold", + "reply_to_address": "", "convert_html_to_plaintext": false, "list_name": "test", + "autorespond_requests": "none", "advertised": true, "post_id": 1, "anonymous_list": + false, "reply_goes_to_list": "no_munging", "digest_last_sent_at": null, "digest_size_threshold": + 30.0, "request_address": "test-request@example.org", "filter_content": false, + "subject_prefix": "[Test] ", "collapse_alternatives": true, "autoresponse_grace_period": + "90d", "admin_immed_notify": true, "first_strip_reply_to": false, "administrivia": + true, "allow_list_posts": true, "autorespond_owner": "none"}'} + headers: + content-length: ['1593'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:50 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/lists/test@example.org + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 22:14:50 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/domains/example.org + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 22:14:50 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 204, message: No Content} +- request: + body: mail_host=example.org + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 22:14:50 GMT'] + location: ['http://localhost:9001/3.0/domains/example.org'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.org + response: + body: {string: !!python/unicode '{"base_url": "http://example.org", "mail_host": + "example.org", "http_etag": "\"730f23a7a90aecfe1248f952d15bcfe97ce9e51f\"", + "contact_address": "postmaster@example.org", "description": null, "url_host": + "example.org", "self_link": "http://localhost:9001/3.0/domains/example.org"}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:50 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=test%40example.org + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 22:14:50 GMT'] + location: ['http://localhost:9001/3.0/lists/test.example.org'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/test@example.org + response: + body: {string: !!python/unicode '{"fqdn_listname": "test@example.org", "display_name": + "Test", "member_count": 0, "list_id": "test.example.org", "mail_host": "example.org", + "self_link": "http://localhost:9001/3.0/lists/test.example.org", "volume": + 1, "list_name": "test", "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\""}'} + headers: + content-length: ['299'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:50 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/test@example.org + response: + body: {string: !!python/unicode '{"fqdn_listname": "test@example.org", "display_name": + "Test", "member_count": 0, "list_id": "test.example.org", "mail_host": "example.org", + "self_link": "http://localhost:9001/3.0/lists/test.example.org", "volume": + 1, "list_name": "test", "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\""}'} + headers: + content-length: ['299'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:51 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/lists/test@example.org + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 22:14:51 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/domains/example.org + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 22:14:51 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 204, message: No Content} +version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_metrics/list_metrics.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_metrics/list_metrics.yaml deleted file mode 100644 index 75bb115..0000000 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_metrics/list_metrics.yaml +++ /dev/null @@ -1,528 +0,0 @@ -interactions: -- request: - body: mail_host=example.org - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/domains - response: - body: {string: !!python/unicode 'Domain exists'} - headers: - content-length: ['13'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:04 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 400, message: Bad Request} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.org - response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.org", - "base_url": "http://example.org", "contact_address": "postmaster@example.org", - "mail_host": "example.org", "self_link": "http://localhost:9001/3.0/domains/example.org", - "http_etag": "\"730f23a7a90aecfe1248f952d15bcfe97ce9e51f\""}'} - headers: - content-length: ['278'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:04 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.org - response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.org", - "base_url": "http://example.org", "contact_address": "postmaster@example.org", - "mail_host": "example.org", "self_link": "http://localhost:9001/3.0/domains/example.org", - "http_etag": "\"730f23a7a90aecfe1248f952d15bcfe97ce9e51f\""}'} - headers: - content-length: ['278'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:04 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: fqdn_listname=test%40example.org - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:39:04 GMT'] - location: ['http://localhost:9001/3.0/lists/test.example.org'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/test@example.org - response: - body: {string: !!python/unicode '{"display_name": "Test", "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\"", - "self_link": "http://localhost:9001/3.0/lists/test.example.org", "volume": - 1, "fqdn_listname": "test@example.org", "list_id": "test.example.org", "member_count": - 0, "mail_host": "example.org", "list_name": "test"}'} - headers: - content-length: ['299'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:04 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: mail_host=example.org - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/domains - response: - body: {string: !!python/unicode 'Domain exists'} - headers: - content-length: ['13'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:13 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 400, message: Bad Request} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.org - response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.org", - "base_url": "http://example.org", "contact_address": "postmaster@example.org", - "mail_host": "example.org", "self_link": "http://localhost:9001/3.0/domains/example.org", - "http_etag": "\"730f23a7a90aecfe1248f952d15bcfe97ce9e51f\""}'} - headers: - content-length: ['278'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:13 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.org - response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.org", - "base_url": "http://example.org", "contact_address": "postmaster@example.org", - "mail_host": "example.org", "self_link": "http://localhost:9001/3.0/domains/example.org", - "http_etag": "\"730f23a7a90aecfe1248f952d15bcfe97ce9e51f\""}'} - headers: - content-length: ['278'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:13 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: fqdn_listname=test%40example.org - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:13 GMT'] - location: ['http://localhost:9001/3.0/lists/test.example.org'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/test@example.org - response: - body: {string: !!python/unicode '{"display_name": "Test", "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\"", - "self_link": "http://localhost:9001/3.0/lists/test.example.org", "volume": - 1, "fqdn_listname": "test@example.org", "list_id": "test.example.org", "member_count": - 0, "mail_host": "example.org", "list_name": "test"}'} - headers: - content-length: ['299'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:13 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/test@example.org - response: - body: {string: !!python/unicode '{"display_name": "Test", "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\"", - "self_link": "http://localhost:9001/3.0/lists/test.example.org", "volume": - 1, "fqdn_listname": "test@example.org", "list_id": "test.example.org", "member_count": - 0, "mail_host": "example.org", "list_name": "test"}'} - headers: - content-length: ['299'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:13 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/test.example.org/roster/owner - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:13 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/test.example.org/roster/moderator - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:13 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/test@example.org/config - response: - body: {string: !!python/unicode '{"digest_last_sent_at": null, "scheme": "http", - "next_digest_number": 1, "first_strip_reply_to": false, "reply_to_address": - "", "convert_html_to_plaintext": false, "administrivia": true, "owner_address": - "test-owner@example.org", "admin_notify_mchanges": false, "display_name": - "Test", "created_at": "2015-02-09T21:41:13.137844", "posting_address": "test@example.org", - "http_etag": "\"c7b29b9aaeb5c2e69a488fe75511276978208dd6\"", "default_member_action": - "defer", "fqdn_listname": "test@example.org", "archive_policy": "public", - "list_name": "test", "filter_content": false, "welcome_message_uri": "mailman:///welcome.txt", - "no_reply_address": "noreply@example.org", "autoresponse_request_text": "", - "digest_size_threshold": 30.0, "acceptable_aliases": [], "anonymous_list": - false, "default_nonmember_action": "hold", "autoresponse_grace_period": "90d", - "advertised": true, "autorespond_owner": "none", "volume": 1, "include_rfc2369_headers": - true, "posting_pipeline": "default-posting-pipeline", "send_welcome_message": - true, "request_address": "test-request@example.org", "subject_prefix": "[Test] - ", "bounces_address": "test-bounces@example.org", "description": "", "web_host": - "example.org", "autoresponse_postings_text": "", "last_post_at": null, "autorespond_requests": - "none", "allow_list_posts": true, "join_address": "test-join@example.org", - "autoresponse_owner_text": "", "autorespond_postings": "none", "reply_goes_to_list": - "no_munging", "post_id": 1, "collapse_alternatives": true, "admin_immed_notify": - true, "mail_host": "example.org", "leave_address": "test-leave@example.org"}'} - headers: - content-length: ['1593'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:13 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/test@example.org/config - response: - body: {string: !!python/unicode '{"digest_last_sent_at": null, "scheme": "http", - "next_digest_number": 1, "first_strip_reply_to": false, "reply_to_address": - "", "convert_html_to_plaintext": false, "administrivia": true, "owner_address": - "test-owner@example.org", "admin_notify_mchanges": false, "display_name": - "Test", "created_at": "2015-02-09T21:41:13.137844", "posting_address": "test@example.org", - "http_etag": "\"c7b29b9aaeb5c2e69a488fe75511276978208dd6\"", "default_member_action": - "defer", "fqdn_listname": "test@example.org", "archive_policy": "public", - "list_name": "test", "filter_content": false, "welcome_message_uri": "mailman:///welcome.txt", - "no_reply_address": "noreply@example.org", "autoresponse_request_text": "", - "digest_size_threshold": 30.0, "acceptable_aliases": [], "anonymous_list": - false, "default_nonmember_action": "hold", "autoresponse_grace_period": "90d", - "advertised": true, "autorespond_owner": "none", "volume": 1, "include_rfc2369_headers": - true, "posting_pipeline": "default-posting-pipeline", "send_welcome_message": - true, "request_address": "test-request@example.org", "subject_prefix": "[Test] - ", "bounces_address": "test-bounces@example.org", "description": "", "web_host": - "example.org", "autoresponse_postings_text": "", "last_post_at": null, "autorespond_requests": - "none", "allow_list_posts": true, "join_address": "test-join@example.org", - "autoresponse_owner_text": "", "autorespond_postings": "none", "reply_goes_to_list": - "no_munging", "post_id": 1, "collapse_alternatives": true, "admin_immed_notify": - true, "mail_host": "example.org", "leave_address": "test-leave@example.org"}'} - headers: - content-length: ['1593'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:13 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/test@example.org/config - response: - body: {string: !!python/unicode '{"digest_last_sent_at": null, "scheme": "http", - "next_digest_number": 1, "first_strip_reply_to": false, "reply_to_address": - "", "convert_html_to_plaintext": false, "administrivia": true, "owner_address": - "test-owner@example.org", "admin_notify_mchanges": false, "display_name": - "Test", "created_at": "2015-02-09T21:41:13.137844", "posting_address": "test@example.org", - "http_etag": "\"c7b29b9aaeb5c2e69a488fe75511276978208dd6\"", "default_member_action": - "defer", "fqdn_listname": "test@example.org", "archive_policy": "public", - "list_name": "test", "filter_content": false, "welcome_message_uri": "mailman:///welcome.txt", - "no_reply_address": "noreply@example.org", "autoresponse_request_text": "", - "digest_size_threshold": 30.0, "acceptable_aliases": [], "anonymous_list": - false, "default_nonmember_action": "hold", "autoresponse_grace_period": "90d", - "advertised": true, "autorespond_owner": "none", "volume": 1, "include_rfc2369_headers": - true, "posting_pipeline": "default-posting-pipeline", "send_welcome_message": - true, "request_address": "test-request@example.org", "subject_prefix": "[Test] - ", "bounces_address": "test-bounces@example.org", "description": "", "web_host": - "example.org", "autoresponse_postings_text": "", "last_post_at": null, "autorespond_requests": - "none", "allow_list_posts": true, "join_address": "test-join@example.org", - "autoresponse_owner_text": "", "autorespond_postings": "none", "reply_goes_to_list": - "no_munging", "post_id": 1, "collapse_alternatives": true, "admin_immed_notify": - true, "mail_host": "example.org", "leave_address": "test-leave@example.org"}'} - headers: - content-length: ['1593'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:13 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/test@example.org/config - response: - body: {string: !!python/unicode '{"digest_last_sent_at": null, "scheme": "http", - "next_digest_number": 1, "first_strip_reply_to": false, "reply_to_address": - "", "convert_html_to_plaintext": false, "administrivia": true, "owner_address": - "test-owner@example.org", "admin_notify_mchanges": false, "display_name": - "Test", "created_at": "2015-02-09T21:41:13.137844", "posting_address": "test@example.org", - "http_etag": "\"c7b29b9aaeb5c2e69a488fe75511276978208dd6\"", "default_member_action": - "defer", "fqdn_listname": "test@example.org", "archive_policy": "public", - "list_name": "test", "filter_content": false, "welcome_message_uri": "mailman:///welcome.txt", - "no_reply_address": "noreply@example.org", "autoresponse_request_text": "", - "digest_size_threshold": 30.0, "acceptable_aliases": [], "anonymous_list": - false, "default_nonmember_action": "hold", "autoresponse_grace_period": "90d", - "advertised": true, "autorespond_owner": "none", "volume": 1, "include_rfc2369_headers": - true, "posting_pipeline": "default-posting-pipeline", "send_welcome_message": - true, "request_address": "test-request@example.org", "subject_prefix": "[Test] - ", "bounces_address": "test-bounces@example.org", "description": "", "web_host": - "example.org", "autoresponse_postings_text": "", "last_post_at": null, "autorespond_requests": - "none", "allow_list_posts": true, "join_address": "test-join@example.org", - "autoresponse_owner_text": "", "autorespond_postings": "none", "reply_goes_to_list": - "no_munging", "post_id": 1, "collapse_alternatives": true, "admin_immed_notify": - true, "mail_host": "example.org", "leave_address": "test-leave@example.org"}'} - headers: - content-length: ['1593'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:13 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/lists/test@example.org - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:13 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/domains/example.org - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:13 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 204, message: No Content} -- request: - body: mail_host=example.org - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/domains - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:14 GMT'] - location: ['http://localhost:9001/3.0/domains/example.org'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.org - response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.org", - "base_url": "http://example.org", "contact_address": "postmaster@example.org", - "mail_host": "example.org", "self_link": "http://localhost:9001/3.0/domains/example.org", - "http_etag": "\"730f23a7a90aecfe1248f952d15bcfe97ce9e51f\""}'} - headers: - content-length: ['278'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:14 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: fqdn_listname=test%40example.org - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:14 GMT'] - location: ['http://localhost:9001/3.0/lists/test.example.org'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/test@example.org - response: - body: {string: !!python/unicode '{"display_name": "Test", "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\"", - "self_link": "http://localhost:9001/3.0/lists/test.example.org", "volume": - 1, "fqdn_listname": "test@example.org", "list_id": "test.example.org", "member_count": - 0, "mail_host": "example.org", "list_name": "test"}'} - headers: - content-length: ['299'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:14 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/test@example.org - response: - body: {string: !!python/unicode '{"display_name": "Test", "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\"", - "self_link": "http://localhost:9001/3.0/lists/test.example.org", "volume": - 1, "fqdn_listname": "test@example.org", "list_id": "test.example.org", "member_count": - 0, "mail_host": "example.org", "list_name": "test"}'} - headers: - content-length: ['299'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:14 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/lists/test@example.org - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:14 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/domains/example.org - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:15 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 204, message: No Content} -version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_new/list_creation/new_list_created_with_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_new/list_creation/new_list_created_with_owner.yaml deleted file mode 100644 index f62cd2e..0000000 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_new/list_creation/new_list_created_with_owner.yaml +++ /dev/null @@ -1,466 +0,0 @@ -interactions: -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"ada6297bd60e6fc8b625d4f706d34d3925737a14\"", - "total_size": 2, "entries": [{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}, {"description": - null, "url_host": "example.org", "base_url": "http://example.org", "contact_address": - "postmaster@example.org", "mail_host": "example.org", "self_link": "http://localhost:9001/3.0/domains/example.org", - "http_etag": "\"730f23a7a90aecfe1248f952d15bcfe97ce9e51f\""}]}'} - headers: - content-length: ['663'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:05 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} - headers: - content-length: ['278'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:05 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.org - response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.org", - "base_url": "http://example.org", "contact_address": "postmaster@example.org", - "mail_host": "example.org", "self_link": "http://localhost:9001/3.0/domains/example.org", - "http_etag": "\"730f23a7a90aecfe1248f952d15bcfe97ce9e51f\""}'} - headers: - content-length: ['278'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:05 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} - headers: - content-length: ['278'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:05 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} - headers: - content-length: ['278'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:05 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: fqdn_listname=a_new_list%40example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:39:05 GMT'] - location: ['http://localhost:9001/3.0/lists/a_new_list.example.com'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/a_new_list.example.com - response: - body: {string: !!python/unicode '{"display_name": "A_new_list", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"", - "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", "volume": - 1, "fqdn_listname": "a_new_list@example.com", "list_id": "a_new_list.example.com", - "member_count": 0, "mail_host": "example.com", "list_name": "a_new_list"}'} - headers: - content-length: ['329'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:05 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: subscriber=owner%40example.com&role=owner&list_id=a_new_list.example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/members - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:39:05 GMT'] - location: ['http://localhost:9001/3.0/members/226977873750478148374189760046844001083'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/a_new_list@example.com/config - response: - body: {string: !!python/unicode '{"digest_last_sent_at": null, "scheme": "http", - "next_digest_number": 1, "first_strip_reply_to": false, "reply_to_address": - "", "convert_html_to_plaintext": false, "administrivia": true, "owner_address": - "a_new_list-owner@example.com", "admin_notify_mchanges": false, "display_name": - "A_new_list", "created_at": "2015-02-09T21:39:05.258432", "posting_address": - "a_new_list@example.com", "http_etag": "\"71227cfcd333cb14a68d11638c97ebcb8c0b5f39\"", - "default_member_action": "defer", "fqdn_listname": "a_new_list@example.com", - "archive_policy": "public", "list_name": "a_new_list", "filter_content": false, - "welcome_message_uri": "mailman:///welcome.txt", "no_reply_address": "noreply@example.com", - "autoresponse_request_text": "", "digest_size_threshold": 30.0, "acceptable_aliases": - [], "anonymous_list": false, "default_nonmember_action": "hold", "autoresponse_grace_period": - "90d", "advertised": true, "autorespond_owner": "none", "volume": 1, "include_rfc2369_headers": - true, "posting_pipeline": "default-posting-pipeline", "send_welcome_message": - true, "request_address": "a_new_list-request@example.com", "subject_prefix": - "[A_new_list] ", "bounces_address": "a_new_list-bounces@example.com", "description": - "", "web_host": "example.com", "autoresponse_postings_text": "", "last_post_at": - null, "autorespond_requests": "none", "allow_list_posts": true, "join_address": - "a_new_list-join@example.com", "autoresponse_owner_text": "", "autorespond_postings": - "none", "reply_goes_to_list": "no_munging", "post_id": 1, "collapse_alternatives": - true, "admin_immed_notify": true, "mail_host": "example.com", "leave_address": - "a_new_list-leave@example.com"}'} - headers: - content-length: ['1653'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:05 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: default_nonmember_action=hold&default_member_action=defer&admin_notify_mchanges=False&send_welcome_message=True&allow_list_posts=True&posting_pipeline=default-posting-pipeline&administrivia=True&filter_content=False&autorespond_owner=none&display_name=A_new_list&advertised=True&first_strip_reply_to=False&autoresponse_request_text=&description=A+new+list.&reply_to_address=&autoresponse_owner_text=&subject_prefix=%5BA_new_list%5D+&include_rfc2369_headers=True&convert_html_to_plaintext=False&anonymous_list=False&archive_policy=public&autorespond_postings=none&digest_size_threshold=30.0&autoresponse_grace_period=90d&reply_goes_to_list=no_munging&autorespond_requests=none&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&admin_immed_notify=True&autoresponse_postings_text=&collapse_alternatives=True - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'PATCH' - uri: http://localhost:9001/3.0/lists/a_new_list@example.com/config - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:39:05 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/a_new_list@example.com - response: - body: {string: !!python/unicode '{"display_name": "A_new_list", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"", - "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", "volume": - 1, "fqdn_listname": "a_new_list@example.com", "list_id": "a_new_list.example.com", - "member_count": 0, "mail_host": "example.com", "list_name": "a_new_list"}'} - headers: - content-length: ['329'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:05 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/a_new_list.example.com/roster/owner - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"a7012f722631e3104ce2ad391dfd090400674514\"", - "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "list_id": "a_new_list.example.com", "http_etag": "\"d86d3b285e7fde804e0959e276b5984b0ce17f9f\"", - "delivery_mode": "regular", "email": "owner@example.com", "self_link": "http://localhost:9001/3.0/members/226977873750478148374189760046844001083", - "role": "owner", "user": "http://localhost:9001/3.0/users/33053400552422307362609732601039123688"}]}'} - headers: - content-length: ['518'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:05 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"b4ea7109190ac24defea706a8fc8807090dabba4\"", - "total_size": 1, "entries": [{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}]}'} - headers: - content-length: ['383'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:15 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} - headers: - content-length: ['278'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:15 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} - headers: - content-length: ['278'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:15 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} - headers: - content-length: ['278'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:15 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: fqdn_listname=a_new_list%40example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:15 GMT'] - location: ['http://localhost:9001/3.0/lists/a_new_list.example.com'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/a_new_list.example.com - response: - body: {string: !!python/unicode '{"display_name": "A_new_list", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"", - "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", "volume": - 1, "fqdn_listname": "a_new_list@example.com", "list_id": "a_new_list.example.com", - "member_count": 0, "mail_host": "example.com", "list_name": "a_new_list"}'} - headers: - content-length: ['329'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:15 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: subscriber=owner%40example.com&role=owner&list_id=a_new_list.example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/members - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:15 GMT'] - location: ['http://localhost:9001/3.0/members/28143965406037438169986764436672054161'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/a_new_list@example.com/config - response: - body: {string: !!python/unicode '{"digest_last_sent_at": null, "scheme": "http", - "next_digest_number": 1, "first_strip_reply_to": false, "reply_to_address": - "", "convert_html_to_plaintext": false, "administrivia": true, "owner_address": - "a_new_list-owner@example.com", "admin_notify_mchanges": false, "display_name": - "A_new_list", "created_at": "2015-02-09T21:41:15.515665", "posting_address": - "a_new_list@example.com", "http_etag": "\"986ccfbd4402fe9ce735e7379b2767aaea233bb4\"", - "default_member_action": "defer", "fqdn_listname": "a_new_list@example.com", - "archive_policy": "public", "list_name": "a_new_list", "filter_content": false, - "welcome_message_uri": "mailman:///welcome.txt", "no_reply_address": "noreply@example.com", - "autoresponse_request_text": "", "digest_size_threshold": 30.0, "acceptable_aliases": - [], "anonymous_list": false, "default_nonmember_action": "hold", "autoresponse_grace_period": - "90d", "advertised": true, "autorespond_owner": "none", "volume": 1, "include_rfc2369_headers": - true, "posting_pipeline": "default-posting-pipeline", "send_welcome_message": - true, "request_address": "a_new_list-request@example.com", "subject_prefix": - "[A_new_list] ", "bounces_address": "a_new_list-bounces@example.com", "description": - "", "web_host": "example.com", "autoresponse_postings_text": "", "last_post_at": - null, "autorespond_requests": "none", "allow_list_posts": true, "join_address": - "a_new_list-join@example.com", "autoresponse_owner_text": "", "autorespond_postings": - "none", "reply_goes_to_list": "no_munging", "post_id": 1, "collapse_alternatives": - true, "admin_immed_notify": true, "mail_host": "example.com", "leave_address": - "a_new_list-leave@example.com"}'} - headers: - content-length: ['1653'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:15 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: default_nonmember_action=hold&default_member_action=defer&admin_notify_mchanges=False&send_welcome_message=True&allow_list_posts=True&posting_pipeline=default-posting-pipeline&administrivia=True&filter_content=False&autorespond_owner=none&display_name=A_new_list&advertised=True&first_strip_reply_to=False&autoresponse_request_text=&description=A+new+list.&reply_to_address=&autoresponse_owner_text=&subject_prefix=%5BA_new_list%5D+&include_rfc2369_headers=True&convert_html_to_plaintext=False&anonymous_list=False&archive_policy=public&autorespond_postings=none&digest_size_threshold=30.0&autoresponse_grace_period=90d&reply_goes_to_list=no_munging&autorespond_requests=none&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&admin_immed_notify=True&autoresponse_postings_text=&collapse_alternatives=True - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'PATCH' - uri: http://localhost:9001/3.0/lists/a_new_list@example.com/config - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:15 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/a_new_list@example.com - response: - body: {string: !!python/unicode '{"display_name": "A_new_list", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"", - "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", "volume": - 1, "fqdn_listname": "a_new_list@example.com", "list_id": "a_new_list.example.com", - "member_count": 0, "mail_host": "example.com", "list_name": "a_new_list"}'} - headers: - content-length: ['329'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:15 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/a_new_list.example.com/roster/owner - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"2c769db0cf027118e7c042c8f95f8f1176d46585\"", - "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "list_id": "a_new_list.example.com", "http_etag": "\"5ddeb767312916f130cf00de70143799e0ca3a7b\"", - "delivery_mode": "regular", "email": "owner@example.com", "self_link": "http://localhost:9001/3.0/members/28143965406037438169986764436672054161", - "role": "owner", "user": "http://localhost:9001/3.0/users/33053400552422307362609732601039123688"}]}'} - headers: - content-length: ['517'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:15 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_new/list_creation/setup.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_new/list_creation/setup.yaml deleted file mode 100644 index c8967d9..0000000 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_new/list_creation/setup.yaml +++ /dev/null @@ -1,110 +0,0 @@ -interactions: -- request: - body: mail_host=example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/domains - response: - body: {string: !!python/unicode 'Domain exists'} - headers: - content-length: ['13'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:05 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 400, message: Bad Request} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} - headers: - content-length: ['278'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:05 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: mail_host=example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/domains - response: - body: {string: !!python/unicode 'Domain exists'} - headers: - content-length: ['13'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:15 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 400, message: Bad Request} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} - headers: - content-length: ['278'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:15 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: mail_host=example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/domains - response: - body: {string: !!python/unicode 'Domain exists'} - headers: - content-length: ['13'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:16 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 400, message: Bad Request} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} - headers: - content-length: ['278'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:16 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_new/list_creation/teardown.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_new/list_creation/teardown.yaml deleted file mode 100644 index 69cfaf6..0000000 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_new/list_creation/teardown.yaml +++ /dev/null @@ -1,202 +0,0 @@ -interactions: -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"f2900681c0a780134b5a7d3eb6299eae6205c266\"", - "total_size": 3, "entries": [{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": - 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": - 0, "mail_host": "example.com", "list_name": "foo"}, {"display_name": "Test", - "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\"", "self_link": - "http://localhost:9001/3.0/lists/test.example.org", "volume": 1, "fqdn_listname": - "test@example.org", "list_id": "test.example.org", "member_count": 0, "mail_host": - "example.org", "list_name": "test"}, {"display_name": "A_new_list", "http_etag": - "\"447e005af2b208bfea01f6425b786356f0a374de\"", "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", - "volume": 1, "fqdn_listname": "a_new_list@example.com", "list_id": "a_new_list.example.com", - "member_count": 0, "mail_host": "example.com", "list_name": "a_new_list"}]}'} - headers: - content-length: ['1031'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:05 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": - 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": - 0, "mail_host": "example.com", "list_name": "foo"}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:05 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/lists/foo@example.com - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:39:05 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/test.example.org - response: - body: {string: !!python/unicode '{"display_name": "Test", "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\"", - "self_link": "http://localhost:9001/3.0/lists/test.example.org", "volume": - 1, "fqdn_listname": "test@example.org", "list_id": "test.example.org", "member_count": - 0, "mail_host": "example.org", "list_name": "test"}'} - headers: - content-length: ['299'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:05 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/lists/test@example.org - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:39:05 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/a_new_list.example.com - response: - body: {string: !!python/unicode '{"display_name": "A_new_list", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"", - "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", "volume": - 1, "fqdn_listname": "a_new_list@example.com", "list_id": "a_new_list.example.com", - "member_count": 0, "mail_host": "example.com", "list_name": "a_new_list"}'} - headers: - content-length: ['329'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:05 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/lists/a_new_list@example.com - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:39:05 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"dee96dcb9d3f736cc6fa170baeea8f879d7db6f0\"", - "total_size": 1, "entries": [{"display_name": "A_new_list", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"", - "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", "volume": - 1, "fqdn_listname": "a_new_list@example.com", "list_id": "a_new_list.example.com", - "member_count": 0, "mail_host": "example.com", "list_name": "a_new_list"}]}'} - headers: - content-length: ['434'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:15 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/a_new_list.example.com - response: - body: {string: !!python/unicode '{"display_name": "A_new_list", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"", - "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", "volume": - 1, "fqdn_listname": "a_new_list@example.com", "list_id": "a_new_list.example.com", - "member_count": 0, "mail_host": "example.com", "list_name": "a_new_list"}'} - headers: - content-length: ['329'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:15 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/lists/a_new_list@example.com - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:16 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:16 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary.yaml new file mode 100644 index 0000000..f1e1a4a --- /dev/null +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary.yaml @@ -0,0 +1,430 @@ +interactions: +- request: + body: mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode 'Domain exists'} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:52 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "mail_host": + "example.com", "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\"", + "contact_address": "postmaster@example.com", "description": null, "url_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:52 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "mail_host": + "example.com", "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\"", + "contact_address": "postmaster@example.com", "description": null, "url_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:52 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=foo%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 22:14:52 GMT'] + location: ['http://localhost:9001/3.0/lists/foo.example.com'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "display_name": + "Foo", "member_count": 0, "list_id": "foo.example.com", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "list_name": "foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:53 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:53 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:53 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:53 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"autoresponse_owner_text": "", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "scheme": "http", "last_post_at": + null, "admin_notify_mchanges": false, "autorespond_postings": "none", "owner_address": + "foo-owner@example.com", "archive_policy": "public", "mail_host": "example.com", + "no_reply_address": "noreply@example.com", "created_at": "2015-02-09T22:14:52.876612", + "posting_pipeline": "default-posting-pipeline", "display_name": "Foo", "leave_address": + "foo-leave@example.com", "fqdn_listname": "foo@example.com", "autoresponse_request_text": + "", "volume": 1, "web_host": "example.com", "bounces_address": "foo-bounces@example.com", + "send_welcome_message": true, "http_etag": "\"7f235168db59bcec32893df87db49c7de748e804\"", + "description": "", "welcome_message_uri": "mailman:///welcome.txt", "posting_address": + "foo@example.com", "acceptable_aliases": [], "next_digest_number": 1, "autoresponse_postings_text": + "", "default_member_action": "defer", "default_nonmember_action": "hold", + "reply_to_address": "", "convert_html_to_plaintext": false, "list_name": "foo", + "autorespond_requests": "none", "advertised": true, "post_id": 1, "anonymous_list": + false, "reply_goes_to_list": "no_munging", "digest_last_sent_at": null, "digest_size_threshold": + 30.0, "request_address": "foo-request@example.com", "filter_content": false, + "subject_prefix": "[Foo] ", "collapse_alternatives": true, "autoresponse_grace_period": + "90d", "admin_immed_notify": true, "first_strip_reply_to": false, "administrivia": + true, "allow_list_posts": true, "autorespond_owner": "none"}'} + headers: + content-length: ['1583'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:53 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode '{"entries": [{"fqdn_listname": "foo@example.com", + "display_name": "Foo", "member_count": 0, "list_id": "foo.example.com", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1, "list_name": "foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}], + "start": 0, "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", "total_size": + 1}'} + headers: + content-length: ['399'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:53 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "display_name": + "Foo", "member_count": 0, "list_id": "foo.example.com", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "list_name": "foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:53 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 22:14:53 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 204, message: No Content} +- request: + body: mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode 'Domain exists'} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:53 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "mail_host": + "example.com", "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\"", + "contact_address": "postmaster@example.com", "description": null, "url_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:53 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "mail_host": + "example.com", "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\"", + "contact_address": "postmaster@example.com", "description": null, "url_host": + "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:53 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=foo%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 22:14:53 GMT'] + location: ['http://localhost:9001/3.0/lists/foo.example.com'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "display_name": + "Foo", "member_count": 0, "list_id": "foo.example.com", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "list_name": "foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:53 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:53 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"autoresponse_owner_text": "", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "scheme": "http", "last_post_at": + null, "admin_notify_mchanges": false, "autorespond_postings": "none", "owner_address": + "foo-owner@example.com", "archive_policy": "public", "mail_host": "example.com", + "no_reply_address": "noreply@example.com", "created_at": "2015-02-09T22:14:53.518869", + "posting_pipeline": "default-posting-pipeline", "display_name": "Foo", "leave_address": + "foo-leave@example.com", "fqdn_listname": "foo@example.com", "autoresponse_request_text": + "", "volume": 1, "web_host": "example.com", "bounces_address": "foo-bounces@example.com", + "send_welcome_message": true, "http_etag": "\"40b456d5c5176df983fa91eff5f7bad744d92963\"", + "description": "", "welcome_message_uri": "mailman:///welcome.txt", "posting_address": + "foo@example.com", "acceptable_aliases": [], "next_digest_number": 1, "autoresponse_postings_text": + "", "default_member_action": "defer", "default_nonmember_action": "hold", + "reply_to_address": "", "convert_html_to_plaintext": false, "list_name": "foo", + "autorespond_requests": "none", "advertised": true, "post_id": 1, "anonymous_list": + false, "reply_goes_to_list": "no_munging", "digest_last_sent_at": null, "digest_size_threshold": + 30.0, "request_address": "foo-request@example.com", "filter_content": false, + "subject_prefix": "[Foo] ", "collapse_alternatives": true, "autoresponse_grace_period": + "90d", "admin_immed_notify": true, "first_strip_reply_to": false, "administrivia": + true, "allow_list_posts": true, "autorespond_owner": "none"}'} + headers: + content-length: ['1583'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:53 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode '{"entries": [{"fqdn_listname": "foo@example.com", + "display_name": "Foo", "member_count": 0, "list_id": "foo.example.com", "mail_host": + "example.com", "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1, "list_name": "foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}], + "start": 0, "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", "total_size": + 1}'} + headers: + content-length: ['399'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:54 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"fqdn_listname": "foo@example.com", "display_name": + "Foo", "member_count": 0, "list_id": "foo.example.com", "mail_host": "example.com", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "list_name": "foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 22:14:54 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 22:14:54 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 204, message: No Content} +version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary/list_summary_page/list_summary_logged_in.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary/list_summary_page/list_summary_logged_in.yaml deleted file mode 100644 index e49fa2c..0000000 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary/list_summary_page/list_summary_logged_in.yaml +++ /dev/null @@ -1,107 +0,0 @@ -interactions: -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo@example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": - 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": - 0, "mail_host": "example.com", "list_name": "foo"}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:16 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:16 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:16 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:16 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo@example.com/config - response: - body: {string: !!python/unicode '{"digest_last_sent_at": null, "scheme": "http", - "next_digest_number": 1, "first_strip_reply_to": false, "reply_to_address": - "", "convert_html_to_plaintext": false, "administrivia": true, "owner_address": - "foo-owner@example.com", "admin_notify_mchanges": false, "display_name": "Foo", - "created_at": "2015-02-09T21:41:16.500827", "posting_address": "foo@example.com", - "http_etag": "\"4c5b2d9f84a19e580aacd8f750049850ea5e6055\"", "default_member_action": - "defer", "fqdn_listname": "foo@example.com", "archive_policy": "public", "list_name": - "foo", "filter_content": false, "welcome_message_uri": "mailman:///welcome.txt", - "no_reply_address": "noreply@example.com", "autoresponse_request_text": "", - "digest_size_threshold": 30.0, "acceptable_aliases": [], "anonymous_list": - false, "default_nonmember_action": "hold", "autoresponse_grace_period": "90d", - "advertised": true, "autorespond_owner": "none", "volume": 1, "include_rfc2369_headers": - true, "posting_pipeline": "default-posting-pipeline", "send_welcome_message": - true, "request_address": "foo-request@example.com", "subject_prefix": "[Foo] - ", "bounces_address": "foo-bounces@example.com", "description": "", "web_host": - "example.com", "autoresponse_postings_text": "", "last_post_at": null, "autorespond_requests": - "none", "allow_list_posts": true, "join_address": "foo-join@example.com", - "autoresponse_owner_text": "", "autorespond_postings": "none", "reply_goes_to_list": - "no_munging", "post_id": 1, "collapse_alternatives": true, "admin_immed_notify": - true, "mail_host": "example.com", "leave_address": "foo-leave@example.com"}'} - headers: - content-length: ['1583'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:16 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary/list_summary_page/list_summary_logged_out.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary/list_summary_page/list_summary_logged_out.yaml deleted file mode 100644 index 37f6e1c..0000000 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary/list_summary_page/list_summary_logged_out.yaml +++ /dev/null @@ -1,89 +0,0 @@ -interactions: -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo@example.com - response: - body: {string: !!python/unicode '404 Not Found'} - headers: - content-length: ['13'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:06 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo@example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": - 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": - 0, "mail_host": "example.com", "list_name": "foo"}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:17 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0}'} - headers: - content-length: ['90'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:17 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo@example.com/config - response: - body: {string: !!python/unicode '{"digest_last_sent_at": null, "scheme": "http", - "next_digest_number": 1, "first_strip_reply_to": false, "reply_to_address": - "", "convert_html_to_plaintext": false, "administrivia": true, "owner_address": - "foo-owner@example.com", "admin_notify_mchanges": false, "display_name": "Foo", - "created_at": "2015-02-09T21:41:17.012481", "posting_address": "foo@example.com", - "http_etag": "\"45c0486c361152f6706cad89e2c2bc4b5a5571d8\"", "default_member_action": - "defer", "fqdn_listname": "foo@example.com", "archive_policy": "public", "list_name": - "foo", "filter_content": false, "welcome_message_uri": "mailman:///welcome.txt", - "no_reply_address": "noreply@example.com", "autoresponse_request_text": "", - "digest_size_threshold": 30.0, "acceptable_aliases": [], "anonymous_list": - false, "default_nonmember_action": "hold", "autoresponse_grace_period": "90d", - "advertised": true, "autorespond_owner": "none", "volume": 1, "include_rfc2369_headers": - true, "posting_pipeline": "default-posting-pipeline", "send_welcome_message": - true, "request_address": "foo-request@example.com", "subject_prefix": "[Foo] - ", "bounces_address": "foo-bounces@example.com", "description": "", "web_host": - "example.com", "autoresponse_postings_text": "", "last_post_at": null, "autorespond_requests": - "none", "allow_list_posts": true, "join_address": "foo-join@example.com", - "autoresponse_owner_text": "", "autorespond_postings": "none", "reply_goes_to_list": - "no_munging", "post_id": 1, "collapse_alternatives": true, "admin_immed_notify": - true, "mail_host": "example.com", "leave_address": "foo-leave@example.com"}'} - headers: - content-length: ['1583'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:17 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary/list_summary_page/setup.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary/list_summary_page/setup.yaml deleted file mode 100644 index edc1615..0000000 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary/list_summary_page/setup.yaml +++ /dev/null @@ -1,218 +0,0 @@ -interactions: -- request: - body: mail_host=example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/domains - response: - body: {string: !!python/unicode 'Domain exists'} - headers: - content-length: ['13'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:06 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 400, message: Bad Request} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} - headers: - content-length: ['278'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:06 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} - headers: - content-length: ['278'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:06 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: fqdn_listname=foo%40example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:39:06 GMT'] - location: ['http://localhost:9001/3.0/lists/foo.example.com'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 201, message: Created} -- request: - body: mail_host=example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/domains - response: - body: {string: !!python/unicode 'Domain exists'} - headers: - content-length: ['13'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:16 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 400, message: Bad Request} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} - headers: - content-length: ['278'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:16 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} - headers: - content-length: ['278'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:16 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: fqdn_listname=foo%40example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:16 GMT'] - location: ['http://localhost:9001/3.0/lists/foo.example.com'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 201, message: Created} -- request: - body: mail_host=example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/domains - response: - body: {string: !!python/unicode 'Domain exists'} - headers: - content-length: ['13'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:16 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 400, message: Bad Request} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} - headers: - content-length: ['278'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:16 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"description": null, "url_host": "example.com", - "base_url": "http://example.com", "contact_address": "postmaster@example.com", - "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} - headers: - content-length: ['278'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:17 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: fqdn_listname=foo%40example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'POST' - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:17 GMT'] - location: ['http://localhost:9001/3.0/lists/foo.example.com'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 201, message: Created} -version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary/list_summary_page/teardown.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary/list_summary_page/teardown.yaml deleted file mode 100644 index 97b91c1..0000000 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary/list_summary_page/teardown.yaml +++ /dev/null @@ -1,164 +0,0 @@ -interactions: -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", - "total_size": 1, "entries": [{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": - 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": - 0, "mail_host": "example.com", "list_name": "foo"}]}'} - headers: - content-length: ['399'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:06 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": - 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": - 0, "mail_host": "example.com", "list_name": "foo"}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:39:06 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/lists/foo@example.com - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:39:06 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", - "total_size": 1, "entries": [{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": - 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": - 0, "mail_host": "example.com", "list_name": "foo"}]}'} - headers: - content-length: ['399'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:16 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": - 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": - 0, "mail_host": "example.com", "list_name": "foo"}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:16 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/lists/foo@example.com - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:16 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode '{"start": 0, "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", - "total_size": 1, "entries": [{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": - 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": - 0, "mail_host": "example.com", "list_name": "foo"}]}'} - headers: - content-length: ['399'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:17 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'GET' - uri: http://localhost:9001/3.0/lists/foo.example.com - response: - body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", - "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": - 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": - 0, "mail_host": "example.com", "list_name": "foo"}'} - headers: - content-length: ['294'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 09 Feb 2015 21:41:17 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] - !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] - method: !!python/unicode 'DELETE' - uri: http://localhost:9001/3.0/lists/foo@example.com - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - date: ['Mon, 09 Feb 2015 21:41:17 GMT'] - server: [WSGIServer/0.2 CPython/3.4.2] - status: {code: 204, message: No Content} -version: 1 diff --git a/src/postorius/tests/mailman_api_tests/test_list_index.py b/src/postorius/tests/mailman_api_tests/test_list_index.py index dc87fac..ce86115 100644 --- a/src/postorius/tests/mailman_api_tests/test_list_index.py +++ b/src/postorius/tests/mailman_api_tests/test_list_index.py @@ -40,7 +40,7 @@ class ListIndexPageTest(SimpleTestCase): """Tests for the list index page.""" - @MM_VCR.use_cassette('test_list_index/list_index_page/setup.yaml') + @MM_VCR.use_cassette('test_list_index.yaml') def setUp(self): self.client = Client() try: @@ -49,13 +49,12 @@ self.domain = get_client().get_domain('example.com') self.foo_list = self.domain.create_list('foo') - @MM_VCR.use_cassette('test_list_index/list_index_page/teardown.yaml') + @MM_VCR.use_cassette('test_list_index.yaml') def tearDown(self): for mlist in get_client().lists: mlist.delete() - @MM_VCR.use_cassette('test_list_index/list_index_page/' - 'list_index_contains_one_list.yaml') + @MM_VCR.use_cassette('test_list_index.yaml') def test_list_index_contains_one_list(self): # The list index page should contain the response = self.client.get(reverse('list_index')) diff --git a/src/postorius/tests/mailman_api_tests/test_list_members.py b/src/postorius/tests/mailman_api_tests/test_list_members.py index e5a064b..9bb7984 100644 --- a/src/postorius/tests/mailman_api_tests/test_list_members.py +++ b/src/postorius/tests/mailman_api_tests/test_list_members.py @@ -115,7 +115,7 @@ Tests creation of list owners. """ - @MM_VCR.use_cassette('test_list_members/add_owner_setup.yaml') + @MM_VCR.use_cassette('test_list_members_add_owner.yaml') def setUp(self): self.client = Client() try: @@ -130,25 +130,26 @@ self.client.post( reverse('list_members', args=('foo@example.com', )), {'owner_email': 'newowner@example.com'}) + owners = self.foo_list.owners - @MM_VCR.use_cassette('test_list_members/add_owner_teardown.yaml') + @MM_VCR.use_cassette('test_list_members_add_owner.yaml') def tearDown(self): self.foo_list.delete() self.su.delete() - @MM_VCR.use_cassette('test_list_members/new_owner_added.yaml') + @MM_VCR.use_cassette('test_list_members_add_owner_new_owner_added.yaml') def test_new_owner_added(self): self.assertTrue(u'newowner@example.com' in self.foo_list.owners) @override_settings(**API_CREDENTIALS) -class AddOwnerTest(SimpleTestCase): +class AddModeratorTest(SimpleTestCase): """Tests for the list members page. Tests creation of moderators. """ - @MM_VCR.use_cassette('test_list_members/add_moderator_setup.yaml') + @MM_VCR.use_cassette('test_list_members_add_moderator.yaml') def setUp(self): self.client = Client() try: @@ -163,12 +164,13 @@ self.client.post( reverse('list_members', args=('foo@example.com', )), {'moderator_email': 'newmod@example.com'}) + moderators = self.foo_list.moderators - @MM_VCR.use_cassette('test_list_members/add_moderator_teardown.yaml') + @MM_VCR.use_cassette('test_list_members_add_moderator.yaml') def tearDown(self): self.foo_list.delete() self.su.delete() - @MM_VCR.use_cassette('test_list_members/new_moderator_added.yaml') + @MM_VCR.use_cassette('test_list_members_new_moderator_added.yaml') def test_new_moderator_added(self): self.assertTrue(u'newmod@example.com' in self.foo_list.moderators) diff --git a/src/postorius/tests/mailman_api_tests/test_list_metrics.py b/src/postorius/tests/mailman_api_tests/test_list_metrics.py index 388fb80..7ad0c98 100644 --- a/src/postorius/tests/mailman_api_tests/test_list_metrics.py +++ b/src/postorius/tests/mailman_api_tests/test_list_metrics.py @@ -29,7 +29,7 @@ @override_settings(**TEST_API_CREDENTIALS) class TestListMetrics(SimpleTestCase): - @MM_VCR.use_cassette('test_list_metrics/list_metrics.yaml') + @MM_VCR.use_cassette('test_list_metrics.yaml') def setUp(self): self.mm_client = get_client() self.client = Client() @@ -43,18 +43,18 @@ self.superuser = User.objects.create_superuser( 'su', 'su@example.com', 'pwd') - @MM_VCR.use_cassette('test_list_metrics/list_metrics.yaml') + @MM_VCR.use_cassette('test_list_metrics.yaml') def test_metrics_page_not_accessible_to_anonymous(self): response = self.client.get(reverse('list_metrics', args=['test@example.org'])) self.assertEqual(response.status_code, 403) - @MM_VCR.use_cassette('test_list_metrics/list_metrics.yaml') + @MM_VCR.use_cassette('test_list_metrics.yaml') def test_metrics_page_contains_metrics(self): self.client.login(username='su', password='pwd') response = self.client.get(reverse('list_metrics', args=['test@example.org'])) self.assertEqual(response.status_code, 200) - @MM_VCR.use_cassette('test_list_metrics/list_metrics.yaml') + @MM_VCR.use_cassette('test_list_metrics.yaml') def tearDown(self): self.superuser.delete() self.test_list.delete() diff --git a/src/postorius/tests/mailman_api_tests/test_list_new.py b/src/postorius/tests/mailman_api_tests/test_list_new.py index 202c422..49e6224 100644 --- a/src/postorius/tests/mailman_api_tests/test_list_new.py +++ b/src/postorius/tests/mailman_api_tests/test_list_new.py @@ -41,7 +41,7 @@ class ListCreationTest(SimpleTestCase): """Tests for the new list page.""" - @MM_VCR.use_cassette('test_list_new/list_creation/setup.yaml') + @MM_VCR.use_cassette('test_list_creation.yaml') def setUp(self): self.client = Client() self.user = User.objects.create_user('user', 'user@example.com', 'pwd') @@ -52,7 +52,7 @@ except HTTPError: self.domain = get_client().get_domain('example.com') - @MM_VCR.use_cassette('test_list_new/list_creation/teardown.yaml') + @MM_VCR.use_cassette('test_list_creation.yaml') def tearDown(self): self.user.delete() self.superuser.delete() @@ -66,8 +66,7 @@ response['location'], 'http://testserver/postorius/accounts/login/?next=/lists/new/') - @MM_VCR.use_cassette('test_list_new/list_creation/' - 'new_list_created_with_owner.yaml') + @MM_VCR.use_cassette('test_list_creation.yaml') def test_new_list_created_with_owner(self): self.client.login(username='su', password='pwd') post_data = {'listname': 'a_new_list', diff --git a/src/postorius/tests/mailman_api_tests/test_list_summary.py b/src/postorius/tests/mailman_api_tests/test_list_summary.py index 3a71ee3..7cb3c75 100644 --- a/src/postorius/tests/mailman_api_tests/test_list_summary.py +++ b/src/postorius/tests/mailman_api_tests/test_list_summary.py @@ -44,7 +44,7 @@ login status. """ - @MM_VCR.use_cassette('test_list_summary/list_summary_page/setup.yaml') + @MM_VCR.use_cassette('test_list_summary.yaml') def setUp(self): self.client = Client() try: @@ -53,13 +53,12 @@ domain = get_client().get_domain('example.com') self.foo_list = domain.create_list('foo') - @MM_VCR.use_cassette('test_list_summary/list_summary_page/teardown.yaml') + @MM_VCR.use_cassette('test_list_summary.yaml') def tearDown(self): for mlist in get_client().lists: mlist.delete() - @MM_VCR.use_cassette('test_list_summary/list_summary_page/' - 'list_summary_logged_out.yaml') + @MM_VCR.use_cassette('test_list_summary.yaml') def test_list_summary_logged_out(self): # Response must contain list obj but not the form. response = self.client.get(reverse('list_summary', @@ -70,8 +69,7 @@ self.assertTrue('