diff --git a/testing/fixtures/vcr_cassettes/list_members_access.yaml b/testing/fixtures/vcr_cassettes/list_members_access.yaml deleted file mode 100644 index bf86c9b..0000000 --- a/testing/fixtures/vcr_cassettes/list_members_access.yaml +++ /dev/null @@ -1,2018 +0,0 @@ -{ - "version": 1, - "interactions": [ - { - "request": { - "body": "mail_host=example.com", - "headers": { - "content-type": [ - "application/x-www-form-urlencoded" - ], - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "POST", - "uri": "http://localhost:9001/3.0/domains" - }, - "response": { - "status": { - "message": "Bad Request", - "code": 400 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:31 GMT" - ], - "content-length": [ - "13" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "Domain exists" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/domains/example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:31 GMT" - ], - "content-length": [ - "278" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"http_etag\": \"\\\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\\\"\", \"base_url\": \"http://example.com\", \"contact_address\": \"postmaster@example.com\", \"url_host\": \"example.com\", \"mail_host\": \"example.com\", \"self_link\": \"http://localhost:9001/3.0/domains/example.com\", \"description\": null}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/domains/example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:31 GMT" - ], - "content-length": [ - "278" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"http_etag\": \"\\\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\\\"\", \"base_url\": \"http://example.com\", \"contact_address\": \"postmaster@example.com\", \"url_host\": \"example.com\", \"mail_host\": \"example.com\", \"self_link\": \"http://localhost:9001/3.0/domains/example.com\", \"description\": null}" - } - } - }, - { - "request": { - "body": "fqdn_listname=foo%40example.com", - "headers": { - "content-type": [ - "application/x-www-form-urlencoded" - ], - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "POST", - "uri": "http://localhost:9001/3.0/lists" - }, - "response": { - "status": { - "message": "Created", - "code": 201 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:31 GMT" - ], - "content-length": [ - "0" - ], - "location": [ - "http://localhost:9001/3.0/lists/foo.example.com" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo.example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:31 GMT" - ], - "content-length": [ - "294" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"self_link\": \"http://localhost:9001/3.0/lists/foo.example.com\", \"fqdn_listname\": \"foo@example.com\", \"volume\": 1, \"mail_host\": \"example.com\", \"http_etag\": \"\\\"698a819bbb6b902096a8c5543cc7fac2328960d5\\\"\", \"member_count\": 0, \"list_name\": \"foo\", \"display_name\": \"Foo\", \"list_id\": \"foo.example.com\"}" - } - } - }, - { - "request": { - "body": "subscriber=owner%40example.com&role=owner&list_id=foo.example.com", - "headers": { - "content-type": [ - "application/x-www-form-urlencoded" - ], - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "POST", - "uri": "http://localhost:9001/3.0/members" - }, - "response": { - "status": { - "message": "Created", - "code": 201 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:32 GMT" - ], - "content-length": [ - "0" - ], - "location": [ - "http://localhost:9001/3.0/members/123585249075835731428389495947596435700" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - }, - { - "request": { - "body": "subscriber=moderator%40example.com&role=moderator&list_id=foo.example.com", - "headers": { - "content-type": [ - "application/x-www-form-urlencoded" - ], - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "POST", - "uri": "http://localhost:9001/3.0/members" - }, - "response": { - "status": { - "message": "Created", - "code": 201 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:32 GMT" - ], - "content-length": [ - "0" - ], - "location": [ - "http://localhost:9001/3.0/members/32502339775210491680319526557605964294" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "DELETE", - "uri": "http://localhost:9001/3.0/lists/foo@example.com" - }, - "response": { - "status": { - "message": "No Content", - "code": 204 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:32 GMT" - ], - "content-length": [ - "0" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - }, - { - "request": { - "body": "mail_host=example.com", - "headers": { - "content-type": [ - "application/x-www-form-urlencoded" - ], - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "POST", - "uri": "http://localhost:9001/3.0/domains" - }, - "response": { - "status": { - "message": "Bad Request", - "code": 400 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:32 GMT" - ], - "content-length": [ - "13" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "Domain exists" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/domains/example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:32 GMT" - ], - "content-length": [ - "278" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"http_etag\": \"\\\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\\\"\", \"base_url\": \"http://example.com\", \"contact_address\": \"postmaster@example.com\", \"url_host\": \"example.com\", \"mail_host\": \"example.com\", \"self_link\": \"http://localhost:9001/3.0/domains/example.com\", \"description\": null}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/domains/example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:32 GMT" - ], - "content-length": [ - "278" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"http_etag\": \"\\\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\\\"\", \"base_url\": \"http://example.com\", \"contact_address\": \"postmaster@example.com\", \"url_host\": \"example.com\", \"mail_host\": \"example.com\", \"self_link\": \"http://localhost:9001/3.0/domains/example.com\", \"description\": null}" - } - } - }, - { - "request": { - "body": "fqdn_listname=foo%40example.com", - "headers": { - "content-type": [ - "application/x-www-form-urlencoded" - ], - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "POST", - "uri": "http://localhost:9001/3.0/lists" - }, - "response": { - "status": { - "message": "Created", - "code": 201 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:32 GMT" - ], - "content-length": [ - "0" - ], - "location": [ - "http://localhost:9001/3.0/lists/foo.example.com" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo.example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:32 GMT" - ], - "content-length": [ - "294" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"self_link\": \"http://localhost:9001/3.0/lists/foo.example.com\", \"fqdn_listname\": \"foo@example.com\", \"volume\": 1, \"mail_host\": \"example.com\", \"http_etag\": \"\\\"698a819bbb6b902096a8c5543cc7fac2328960d5\\\"\", \"member_count\": 0, \"list_name\": \"foo\", \"display_name\": \"Foo\", \"list_id\": \"foo.example.com\"}" - } - } - }, - { - "request": { - "body": "subscriber=owner%40example.com&role=owner&list_id=foo.example.com", - "headers": { - "content-type": [ - "application/x-www-form-urlencoded" - ], - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "POST", - "uri": "http://localhost:9001/3.0/members" - }, - "response": { - "status": { - "message": "Created", - "code": 201 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:32 GMT" - ], - "content-length": [ - "0" - ], - "location": [ - "http://localhost:9001/3.0/members/151471169288183877277024599908199818140" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - }, - { - "request": { - "body": "subscriber=moderator%40example.com&role=moderator&list_id=foo.example.com", - "headers": { - "content-type": [ - "application/x-www-form-urlencoded" - ], - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "POST", - "uri": "http://localhost:9001/3.0/members" - }, - "response": { - "status": { - "message": "Created", - "code": 201 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:32 GMT" - ], - "content-length": [ - "0" - ], - "location": [ - "http://localhost:9001/3.0/members/26372226836145567517839439079403865390" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "DELETE", - "uri": "http://localhost:9001/3.0/lists/foo@example.com" - }, - "response": { - "status": { - "message": "No Content", - "code": 204 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:33 GMT" - ], - "content-length": [ - "0" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - }, - { - "request": { - "body": "mail_host=example.com", - "headers": { - "content-type": [ - "application/x-www-form-urlencoded" - ], - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "POST", - "uri": "http://localhost:9001/3.0/domains" - }, - "response": { - "status": { - "message": "Bad Request", - "code": 400 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:33 GMT" - ], - "content-length": [ - "13" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "Domain exists" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/domains/example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:33 GMT" - ], - "content-length": [ - "278" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"http_etag\": \"\\\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\\\"\", \"base_url\": \"http://example.com\", \"contact_address\": \"postmaster@example.com\", \"url_host\": \"example.com\", \"mail_host\": \"example.com\", \"self_link\": \"http://localhost:9001/3.0/domains/example.com\", \"description\": null}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/domains/example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:33 GMT" - ], - "content-length": [ - "278" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"http_etag\": \"\\\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\\\"\", \"base_url\": \"http://example.com\", \"contact_address\": \"postmaster@example.com\", \"url_host\": \"example.com\", \"mail_host\": \"example.com\", \"self_link\": \"http://localhost:9001/3.0/domains/example.com\", \"description\": null}" - } - } - }, - { - "request": { - "body": "fqdn_listname=foo%40example.com", - "headers": { - "content-type": [ - "application/x-www-form-urlencoded" - ], - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "POST", - "uri": "http://localhost:9001/3.0/lists" - }, - "response": { - "status": { - "message": "Created", - "code": 201 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:33 GMT" - ], - "content-length": [ - "0" - ], - "location": [ - "http://localhost:9001/3.0/lists/foo.example.com" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo.example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:33 GMT" - ], - "content-length": [ - "294" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"self_link\": \"http://localhost:9001/3.0/lists/foo.example.com\", \"fqdn_listname\": \"foo@example.com\", \"volume\": 1, \"mail_host\": \"example.com\", \"http_etag\": \"\\\"698a819bbb6b902096a8c5543cc7fac2328960d5\\\"\", \"member_count\": 0, \"list_name\": \"foo\", \"display_name\": \"Foo\", \"list_id\": \"foo.example.com\"}" - } - } - }, - { - "request": { - "body": "subscriber=owner%40example.com&role=owner&list_id=foo.example.com", - "headers": { - "content-type": [ - "application/x-www-form-urlencoded" - ], - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "POST", - "uri": "http://localhost:9001/3.0/members" - }, - "response": { - "status": { - "message": "Created", - "code": 201 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:33 GMT" - ], - "content-length": [ - "0" - ], - "location": [ - "http://localhost:9001/3.0/members/132763266197365266689997447538260432385" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - }, - { - "request": { - "body": "subscriber=moderator%40example.com&role=moderator&list_id=foo.example.com", - "headers": { - "content-type": [ - "application/x-www-form-urlencoded" - ], - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "POST", - "uri": "http://localhost:9001/3.0/members" - }, - "response": { - "status": { - "message": "Created", - "code": 201 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:33 GMT" - ], - "content-length": [ - "0" - ], - "location": [ - "http://localhost:9001/3.0/members/8409072350447944978514998380781320925" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "DELETE", - "uri": "http://localhost:9001/3.0/lists/foo@example.com" - }, - "response": { - "status": { - "message": "No Content", - "code": 204 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:33 GMT" - ], - "content-length": [ - "0" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - }, - { - "request": { - "body": "mail_host=example.com", - "headers": { - "content-type": [ - "application/x-www-form-urlencoded" - ], - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "POST", - "uri": "http://localhost:9001/3.0/domains" - }, - "response": { - "status": { - "message": "Bad Request", - "code": 400 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:33 GMT" - ], - "content-length": [ - "13" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "Domain exists" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/domains/example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:34 GMT" - ], - "content-length": [ - "278" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"http_etag\": \"\\\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\\\"\", \"base_url\": \"http://example.com\", \"contact_address\": \"postmaster@example.com\", \"url_host\": \"example.com\", \"mail_host\": \"example.com\", \"self_link\": \"http://localhost:9001/3.0/domains/example.com\", \"description\": null}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/domains/example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:34 GMT" - ], - "content-length": [ - "278" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"http_etag\": \"\\\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\\\"\", \"base_url\": \"http://example.com\", \"contact_address\": \"postmaster@example.com\", \"url_host\": \"example.com\", \"mail_host\": \"example.com\", \"self_link\": \"http://localhost:9001/3.0/domains/example.com\", \"description\": null}" - } - } - }, - { - "request": { - "body": "fqdn_listname=foo%40example.com", - "headers": { - "content-type": [ - "application/x-www-form-urlencoded" - ], - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "POST", - "uri": "http://localhost:9001/3.0/lists" - }, - "response": { - "status": { - "message": "Created", - "code": 201 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:34 GMT" - ], - "content-length": [ - "0" - ], - "location": [ - "http://localhost:9001/3.0/lists/foo.example.com" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo.example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:34 GMT" - ], - "content-length": [ - "294" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"self_link\": \"http://localhost:9001/3.0/lists/foo.example.com\", \"fqdn_listname\": \"foo@example.com\", \"volume\": 1, \"mail_host\": \"example.com\", \"http_etag\": \"\\\"698a819bbb6b902096a8c5543cc7fac2328960d5\\\"\", \"member_count\": 0, \"list_name\": \"foo\", \"display_name\": \"Foo\", \"list_id\": \"foo.example.com\"}" - } - } - }, - { - "request": { - "body": "subscriber=owner%40example.com&role=owner&list_id=foo.example.com", - "headers": { - "content-type": [ - "application/x-www-form-urlencoded" - ], - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "POST", - "uri": "http://localhost:9001/3.0/members" - }, - "response": { - "status": { - "message": "Created", - "code": 201 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:34 GMT" - ], - "content-length": [ - "0" - ], - "location": [ - "http://localhost:9001/3.0/members/224522391207690880616248866598090586375" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - }, - { - "request": { - "body": "subscriber=moderator%40example.com&role=moderator&list_id=foo.example.com", - "headers": { - "content-type": [ - "application/x-www-form-urlencoded" - ], - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "POST", - "uri": "http://localhost:9001/3.0/members" - }, - "response": { - "status": { - "message": "Created", - "code": 201 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:34 GMT" - ], - "content-length": [ - "0" - ], - "location": [ - "http://localhost:9001/3.0/members/314153091812930326411879831597008310574" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo@example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:34 GMT" - ], - "content-length": [ - "294" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"self_link\": \"http://localhost:9001/3.0/lists/foo.example.com\", \"fqdn_listname\": \"foo@example.com\", \"volume\": 1, \"mail_host\": \"example.com\", \"http_etag\": \"\\\"698a819bbb6b902096a8c5543cc7fac2328960d5\\\"\", \"member_count\": 0, \"list_name\": \"foo\", \"display_name\": \"Foo\", \"list_id\": \"foo.example.com\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=25&page=1" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:34 GMT" - ], - "content-length": [ - "90" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 0, \"start\": 0, \"http_etag\": \"\\\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\\\"\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo.example.com/roster/owner" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:34 GMT" - ], - "content-length": [ - "512" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 1, \"entries\": [{\"address\": \"http://localhost:9001/3.0/addresses/owner@example.com\", \"role\": \"owner\", \"self_link\": \"http://localhost:9001/3.0/members/224522391207690880616248866598090586375\", \"user\": \"http://localhost:9001/3.0/users/109011471419690310842107289812022048641\", \"email\": \"owner@example.com\", \"list_id\": \"foo.example.com\", \"delivery_mode\": \"regular\", \"http_etag\": \"\\\"4b7d4995a4e2742b6591b7a5abc2b8f6fd6981b3\\\"\"}], \"start\": 0, \"http_etag\": \"\\\"147f6d9360f80aefbacb78194b7a5dd2705eb901\\\"\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo.example.com/roster/moderator" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:34 GMT" - ], - "content-length": [ - "523" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 1, \"entries\": [{\"address\": \"http://localhost:9001/3.0/addresses/moderator@example.com\", \"role\": \"moderator\", \"self_link\": \"http://localhost:9001/3.0/members/314153091812930326411879831597008310574\", \"user\": \"http://localhost:9001/3.0/users/16565898431885471640724918770551558513\", \"email\": \"moderator@example.com\", \"list_id\": \"foo.example.com\", \"delivery_mode\": \"regular\", \"http_etag\": \"\\\"df7b822391e53ba658b1e4f2046a318f14ef67ba\\\"\"}], \"start\": 0, \"http_etag\": \"\\\"619c37fa2b6fa872efdcef7a7e2c4c10048f31ba\\\"\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo@example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:34 GMT" - ], - "content-length": [ - "294" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"self_link\": \"http://localhost:9001/3.0/lists/foo.example.com\", \"fqdn_listname\": \"foo@example.com\", \"volume\": 1, \"mail_host\": \"example.com\", \"http_etag\": \"\\\"698a819bbb6b902096a8c5543cc7fac2328960d5\\\"\", \"member_count\": 0, \"list_name\": \"foo\", \"display_name\": \"Foo\", \"list_id\": \"foo.example.com\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo.example.com/roster/owner" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:34 GMT" - ], - "content-length": [ - "512" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 1, \"entries\": [{\"address\": \"http://localhost:9001/3.0/addresses/owner@example.com\", \"role\": \"owner\", \"self_link\": \"http://localhost:9001/3.0/members/224522391207690880616248866598090586375\", \"user\": \"http://localhost:9001/3.0/users/109011471419690310842107289812022048641\", \"email\": \"owner@example.com\", \"list_id\": \"foo.example.com\", \"delivery_mode\": \"regular\", \"http_etag\": \"\\\"4b7d4995a4e2742b6591b7a5abc2b8f6fd6981b3\\\"\"}], \"start\": 0, \"http_etag\": \"\\\"147f6d9360f80aefbacb78194b7a5dd2705eb901\\\"\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "DELETE", - "uri": "http://localhost:9001/3.0/lists/foo@example.com" - }, - "response": { - "status": { - "message": "No Content", - "code": 204 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:34 GMT" - ], - "content-length": [ - "0" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - }, - { - "request": { - "body": "mail_host=example.com", - "headers": { - "content-type": [ - "application/x-www-form-urlencoded" - ], - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "POST", - "uri": "http://localhost:9001/3.0/domains" - }, - "response": { - "status": { - "message": "Bad Request", - "code": 400 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:34 GMT" - ], - "content-length": [ - "13" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "Domain exists" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/domains/example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:34 GMT" - ], - "content-length": [ - "278" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"http_etag\": \"\\\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\\\"\", \"base_url\": \"http://example.com\", \"contact_address\": \"postmaster@example.com\", \"url_host\": \"example.com\", \"mail_host\": \"example.com\", \"self_link\": \"http://localhost:9001/3.0/domains/example.com\", \"description\": null}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/domains/example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:34 GMT" - ], - "content-length": [ - "278" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"http_etag\": \"\\\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\\\"\", \"base_url\": \"http://example.com\", \"contact_address\": \"postmaster@example.com\", \"url_host\": \"example.com\", \"mail_host\": \"example.com\", \"self_link\": \"http://localhost:9001/3.0/domains/example.com\", \"description\": null}" - } - } - }, - { - "request": { - "body": "fqdn_listname=foo%40example.com", - "headers": { - "content-type": [ - "application/x-www-form-urlencoded" - ], - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "POST", - "uri": "http://localhost:9001/3.0/lists" - }, - "response": { - "status": { - "message": "Created", - "code": 201 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:34 GMT" - ], - "content-length": [ - "0" - ], - "location": [ - "http://localhost:9001/3.0/lists/foo.example.com" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo.example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:34 GMT" - ], - "content-length": [ - "294" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"self_link\": \"http://localhost:9001/3.0/lists/foo.example.com\", \"fqdn_listname\": \"foo@example.com\", \"volume\": 1, \"mail_host\": \"example.com\", \"http_etag\": \"\\\"698a819bbb6b902096a8c5543cc7fac2328960d5\\\"\", \"member_count\": 0, \"list_name\": \"foo\", \"display_name\": \"Foo\", \"list_id\": \"foo.example.com\"}" - } - } - }, - { - "request": { - "body": "subscriber=owner%40example.com&role=owner&list_id=foo.example.com", - "headers": { - "content-type": [ - "application/x-www-form-urlencoded" - ], - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "POST", - "uri": "http://localhost:9001/3.0/members" - }, - "response": { - "status": { - "message": "Created", - "code": 201 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:35 GMT" - ], - "content-length": [ - "0" - ], - "location": [ - "http://localhost:9001/3.0/members/204044941486712230127194776511360614115" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - }, - { - "request": { - "body": "subscriber=moderator%40example.com&role=moderator&list_id=foo.example.com", - "headers": { - "content-type": [ - "application/x-www-form-urlencoded" - ], - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "POST", - "uri": "http://localhost:9001/3.0/members" - }, - "response": { - "status": { - "message": "Created", - "code": 201 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:35 GMT" - ], - "content-length": [ - "0" - ], - "location": [ - "http://localhost:9001/3.0/members/91047135545737029145396335805810473958" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo@example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:35 GMT" - ], - "content-length": [ - "294" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"self_link\": \"http://localhost:9001/3.0/lists/foo.example.com\", \"fqdn_listname\": \"foo@example.com\", \"volume\": 1, \"mail_host\": \"example.com\", \"http_etag\": \"\\\"698a819bbb6b902096a8c5543cc7fac2328960d5\\\"\", \"member_count\": 0, \"list_name\": \"foo\", \"display_name\": \"Foo\", \"list_id\": \"foo.example.com\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=25&page=1" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:35 GMT" - ], - "content-length": [ - "90" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 0, \"start\": 0, \"http_etag\": \"\\\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\\\"\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "DELETE", - "uri": "http://localhost:9001/3.0/lists/foo@example.com" - }, - "response": { - "status": { - "message": "No Content", - "code": 204 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:35 GMT" - ], - "content-length": [ - "0" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - } - ] -} \ No newline at end of file diff --git a/testing/fixtures/vcr_cassettes/list_members_page.yaml b/testing/fixtures/vcr_cassettes/list_members_page.yaml deleted file mode 100644 index 55d40f6..0000000 --- a/testing/fixtures/vcr_cassettes/list_members_page.yaml +++ /dev/null @@ -1,743 +0,0 @@ -{ - "version": 1, - "interactions": [ - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo@example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:32 GMT" - ], - "content-length": [ - "294" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"self_link\": \"http://localhost:9001/3.0/lists/foo.example.com\", \"fqdn_listname\": \"foo@example.com\", \"volume\": 1, \"mail_host\": \"example.com\", \"http_etag\": \"\\\"698a819bbb6b902096a8c5543cc7fac2328960d5\\\"\", \"member_count\": 0, \"list_name\": \"foo\", \"display_name\": \"Foo\", \"list_id\": \"foo.example.com\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=25&page=1" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:32 GMT" - ], - "content-length": [ - "90" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 0, \"start\": 0, \"http_etag\": \"\\\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\\\"\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo.example.com/roster/owner" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:32 GMT" - ], - "content-length": [ - "512" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 1, \"entries\": [{\"address\": \"http://localhost:9001/3.0/addresses/owner@example.com\", \"role\": \"owner\", \"self_link\": \"http://localhost:9001/3.0/members/123585249075835731428389495947596435700\", \"user\": \"http://localhost:9001/3.0/users/109011471419690310842107289812022048641\", \"email\": \"owner@example.com\", \"list_id\": \"foo.example.com\", \"delivery_mode\": \"regular\", \"http_etag\": \"\\\"648844c2e58cc164c8f0856062bb52a1e9527559\\\"\"}], \"start\": 0, \"http_etag\": \"\\\"0a1dfe9d6b11809139886be6ac807b8611e28615\\\"\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo.example.com/roster/moderator" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:32 GMT" - ], - "content-length": [ - "522" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 1, \"entries\": [{\"address\": \"http://localhost:9001/3.0/addresses/moderator@example.com\", \"role\": \"moderator\", \"self_link\": \"http://localhost:9001/3.0/members/32502339775210491680319526557605964294\", \"user\": \"http://localhost:9001/3.0/users/16565898431885471640724918770551558513\", \"email\": \"moderator@example.com\", \"list_id\": \"foo.example.com\", \"delivery_mode\": \"regular\", \"http_etag\": \"\\\"4646c52df575a8f6897f3c3c6c6fac7f10655846\\\"\"}], \"start\": 0, \"http_etag\": \"\\\"2a46086c6d25fa90e2ee492019cc84c9f18a0d1b\\\"\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo@example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:32 GMT" - ], - "content-length": [ - "294" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"self_link\": \"http://localhost:9001/3.0/lists/foo.example.com\", \"fqdn_listname\": \"foo@example.com\", \"volume\": 1, \"mail_host\": \"example.com\", \"http_etag\": \"\\\"698a819bbb6b902096a8c5543cc7fac2328960d5\\\"\", \"member_count\": 0, \"list_name\": \"foo\", \"display_name\": \"Foo\", \"list_id\": \"foo.example.com\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo.example.com/roster/owner" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:32 GMT" - ], - "content-length": [ - "512" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 1, \"entries\": [{\"address\": \"http://localhost:9001/3.0/addresses/owner@example.com\", \"role\": \"owner\", \"self_link\": \"http://localhost:9001/3.0/members/123585249075835731428389495947596435700\", \"user\": \"http://localhost:9001/3.0/users/109011471419690310842107289812022048641\", \"email\": \"owner@example.com\", \"list_id\": \"foo.example.com\", \"delivery_mode\": \"regular\", \"http_etag\": \"\\\"648844c2e58cc164c8f0856062bb52a1e9527559\\\"\"}], \"start\": 0, \"http_etag\": \"\\\"0a1dfe9d6b11809139886be6ac807b8611e28615\\\"\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo@example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:33 GMT" - ], - "content-length": [ - "294" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"self_link\": \"http://localhost:9001/3.0/lists/foo.example.com\", \"fqdn_listname\": \"foo@example.com\", \"volume\": 1, \"mail_host\": \"example.com\", \"http_etag\": \"\\\"698a819bbb6b902096a8c5543cc7fac2328960d5\\\"\", \"member_count\": 0, \"list_name\": \"foo\", \"display_name\": \"Foo\", \"list_id\": \"foo.example.com\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=25&page=1" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:33 GMT" - ], - "content-length": [ - "90" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 0, \"start\": 0, \"http_etag\": \"\\\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\\\"\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo.example.com/roster/owner" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:33 GMT" - ], - "content-length": [ - "512" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 1, \"entries\": [{\"address\": \"http://localhost:9001/3.0/addresses/owner@example.com\", \"role\": \"owner\", \"self_link\": \"http://localhost:9001/3.0/members/151471169288183877277024599908199818140\", \"user\": \"http://localhost:9001/3.0/users/109011471419690310842107289812022048641\", \"email\": \"owner@example.com\", \"list_id\": \"foo.example.com\", \"delivery_mode\": \"regular\", \"http_etag\": \"\\\"d61382bd732a93115368674e54f6b41a606570a8\\\"\"}], \"start\": 0, \"http_etag\": \"\\\"ea32d01647d10053c4dbcba95fac84787ea1a65a\\\"\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo.example.com/roster/moderator" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:33 GMT" - ], - "content-length": [ - "522" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 1, \"entries\": [{\"address\": \"http://localhost:9001/3.0/addresses/moderator@example.com\", \"role\": \"moderator\", \"self_link\": \"http://localhost:9001/3.0/members/26372226836145567517839439079403865390\", \"user\": \"http://localhost:9001/3.0/users/16565898431885471640724918770551558513\", \"email\": \"moderator@example.com\", \"list_id\": \"foo.example.com\", \"delivery_mode\": \"regular\", \"http_etag\": \"\\\"4fa39dfde86bc1e78e1af0cbe61a2a5505b29562\\\"\"}], \"start\": 0, \"http_etag\": \"\\\"9619e7d542a49493130c31f8fe7d6230d8b06793\\\"\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo.example.com/roster/owner" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:33 GMT" - ], - "content-length": [ - "512" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 1, \"entries\": [{\"address\": \"http://localhost:9001/3.0/addresses/owner@example.com\", \"role\": \"owner\", \"self_link\": \"http://localhost:9001/3.0/members/151471169288183877277024599908199818140\", \"user\": \"http://localhost:9001/3.0/users/109011471419690310842107289812022048641\", \"email\": \"owner@example.com\", \"list_id\": \"foo.example.com\", \"delivery_mode\": \"regular\", \"http_etag\": \"\\\"d61382bd732a93115368674e54f6b41a606570a8\\\"\"}], \"start\": 0, \"http_etag\": \"\\\"ea32d01647d10053c4dbcba95fac84787ea1a65a\\\"\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo.example.com/roster/moderator" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:33 GMT" - ], - "content-length": [ - "522" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 1, \"entries\": [{\"address\": \"http://localhost:9001/3.0/addresses/moderator@example.com\", \"role\": \"moderator\", \"self_link\": \"http://localhost:9001/3.0/members/26372226836145567517839439079403865390\", \"user\": \"http://localhost:9001/3.0/users/16565898431885471640724918770551558513\", \"email\": \"moderator@example.com\", \"list_id\": \"foo.example.com\", \"delivery_mode\": \"regular\", \"http_etag\": \"\\\"4fa39dfde86bc1e78e1af0cbe61a2a5505b29562\\\"\"}], \"start\": 0, \"http_etag\": \"\\\"9619e7d542a49493130c31f8fe7d6230d8b06793\\\"\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo@example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:33 GMT" - ], - "content-length": [ - "294" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"self_link\": \"http://localhost:9001/3.0/lists/foo.example.com\", \"fqdn_listname\": \"foo@example.com\", \"volume\": 1, \"mail_host\": \"example.com\", \"http_etag\": \"\\\"698a819bbb6b902096a8c5543cc7fac2328960d5\\\"\", \"member_count\": 0, \"list_name\": \"foo\", \"display_name\": \"Foo\", \"list_id\": \"foo.example.com\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=25&page=1" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:33 GMT" - ], - "content-length": [ - "90" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 0, \"start\": 0, \"http_etag\": \"\\\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\\\"\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo.example.com/roster/owner" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:33 GMT" - ], - "content-length": [ - "512" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 1, \"entries\": [{\"address\": \"http://localhost:9001/3.0/addresses/owner@example.com\", \"role\": \"owner\", \"self_link\": \"http://localhost:9001/3.0/members/132763266197365266689997447538260432385\", \"user\": \"http://localhost:9001/3.0/users/109011471419690310842107289812022048641\", \"email\": \"owner@example.com\", \"list_id\": \"foo.example.com\", \"delivery_mode\": \"regular\", \"http_etag\": \"\\\"8cc55f29d7ecb65d0bacef2eca6089b60897b82f\\\"\"}], \"start\": 0, \"http_etag\": \"\\\"b84b363bcff01d980660299b2d41c231f42c6da0\\\"\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo.example.com/roster/moderator" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:33 GMT" - ], - "content-length": [ - "521" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 1, \"entries\": [{\"address\": \"http://localhost:9001/3.0/addresses/moderator@example.com\", \"role\": \"moderator\", \"self_link\": \"http://localhost:9001/3.0/members/8409072350447944978514998380781320925\", \"user\": \"http://localhost:9001/3.0/users/16565898431885471640724918770551558513\", \"email\": \"moderator@example.com\", \"list_id\": \"foo.example.com\", \"delivery_mode\": \"regular\", \"http_etag\": \"\\\"cb44c151d13f0c1d33673aeba9ad6a8f8fa84bcb\\\"\"}], \"start\": 0, \"http_etag\": \"\\\"8496e70004fd41fa96e83bfa4808391bb049918e\\\"\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo.example.com/roster/owner" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:33 GMT" - ], - "content-length": [ - "512" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 1, \"entries\": [{\"address\": \"http://localhost:9001/3.0/addresses/owner@example.com\", \"role\": \"owner\", \"self_link\": \"http://localhost:9001/3.0/members/132763266197365266689997447538260432385\", \"user\": \"http://localhost:9001/3.0/users/109011471419690310842107289812022048641\", \"email\": \"owner@example.com\", \"list_id\": \"foo.example.com\", \"delivery_mode\": \"regular\", \"http_etag\": \"\\\"8cc55f29d7ecb65d0bacef2eca6089b60897b82f\\\"\"}], \"start\": 0, \"http_etag\": \"\\\"b84b363bcff01d980660299b2d41c231f42c6da0\\\"\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo.example.com/roster/moderator" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:33 GMT" - ], - "content-length": [ - "521" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 1, \"entries\": [{\"address\": \"http://localhost:9001/3.0/addresses/moderator@example.com\", \"role\": \"moderator\", \"self_link\": \"http://localhost:9001/3.0/members/8409072350447944978514998380781320925\", \"user\": \"http://localhost:9001/3.0/users/16565898431885471640724918770551558513\", \"email\": \"moderator@example.com\", \"list_id\": \"foo.example.com\", \"delivery_mode\": \"regular\", \"http_etag\": \"\\\"cb44c151d13f0c1d33673aeba9ad6a8f8fa84bcb\\\"\"}], \"start\": 0, \"http_etag\": \"\\\"8496e70004fd41fa96e83bfa4808391bb049918e\\\"\"}" - } - } - } - ] -} \ No newline at end of file diff --git a/testing/fixtures/vcr_cassettes/test_list_index/list_index_page/list_index_contains_one_list.yaml b/testing/fixtures/vcr_cassettes/test_list_index/list_index_page/list_index_contains_one_list.yaml deleted file mode 100644 index 61cdc30..0000000 --- a/testing/fixtures/vcr_cassettes/test_list_index/list_index_page/list_index_contains_one_list.yaml +++ /dev/null @@ -1,251 +0,0 @@ -{ - "version": 1, - "interactions": [ - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:30 GMT" - ], - "content-length": [ - "399" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 1, \"entries\": [{\"self_link\": \"http://localhost:9001/3.0/lists/foo.example.com\", \"fqdn_listname\": \"foo@example.com\", \"volume\": 1, \"mail_host\": \"example.com\", \"http_etag\": \"\\\"698a819bbb6b902096a8c5543cc7fac2328960d5\\\"\", \"member_count\": 0, \"list_name\": \"foo\", \"display_name\": \"Foo\", \"list_id\": \"foo.example.com\"}], \"start\": 0, \"http_etag\": \"\\\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\\\"\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo.example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:30 GMT" - ], - "content-length": [ - "294" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"self_link\": \"http://localhost:9001/3.0/lists/foo.example.com\", \"fqdn_listname\": \"foo@example.com\", \"volume\": 1, \"mail_host\": \"example.com\", \"http_etag\": \"\\\"698a819bbb6b902096a8c5543cc7fac2328960d5\\\"\", \"member_count\": 0, \"list_name\": \"foo\", \"display_name\": \"Foo\", \"list_id\": \"foo.example.com\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo@example.com/config" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:31 GMT" - ], - "content-length": [ - "1583" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"post_id\": 1, \"autoresponse_postings_text\": \"\", \"autorespond_owner\": \"none\", \"administrivia\": true, \"owner_address\": \"foo-owner@example.com\", \"created_at\": \"2015-01-26T08:25:30.769287\", \"admin_notify_mchanges\": false, \"convert_html_to_plaintext\": false, \"admin_immed_notify\": true, \"autoresponse_grace_period\": \"90d\", \"autorespond_requests\": \"none\", \"send_welcome_message\": true, \"scheme\": \"http\", \"first_strip_reply_to\": false, \"display_name\": \"Foo\", \"digest_size_threshold\": 30.0, \"acceptable_aliases\": [], \"next_digest_number\": 1, \"leave_address\": \"foo-leave@example.com\", \"web_host\": \"example.com\", \"reply_goes_to_list\": \"no_munging\", \"http_etag\": \"\\\"4e38e2da722dbecc783a7fdca2c322be447168c0\\\"\", \"posting_address\": \"foo@example.com\", \"anonymous_list\": false, \"collapse_alternatives\": true, \"join_address\": \"foo-join@example.com\", \"default_nonmember_action\": \"hold\", \"allow_list_posts\": true, \"reply_to_address\": \"\", \"default_member_action\": \"defer\", \"posting_pipeline\": \"default-posting-pipeline\", \"autoresponse_request_text\": \"\", \"include_rfc2369_headers\": true, \"archive_policy\": \"public\", \"no_reply_address\": \"noreply@example.com\", \"request_address\": \"foo-request@example.com\", \"last_post_at\": null, \"subject_prefix\": \"[Foo] \", \"advertised\": true, \"volume\": 1, \"fqdn_listname\": \"foo@example.com\", \"filter_content\": false, \"autorespond_postings\": \"none\", \"mail_host\": \"example.com\", \"bounces_address\": \"foo-bounces@example.com\", \"description\": \"\", \"autoresponse_owner_text\": \"\", \"digest_last_sent_at\": null, \"list_name\": \"foo\", \"welcome_message_uri\": \"mailman:///welcome.txt\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/domains" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:31 GMT" - ], - "content-length": [ - "383" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 1, \"entries\": [{\"http_etag\": \"\\\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\\\"\", \"base_url\": \"http://example.com\", \"contact_address\": \"postmaster@example.com\", \"url_host\": \"example.com\", \"mail_host\": \"example.com\", \"self_link\": \"http://localhost:9001/3.0/domains/example.com\", \"description\": null}], \"start\": 0, \"http_etag\": \"\\\"b4ea7109190ac24defea706a8fc8807090dabba4\\\"\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/domains/example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:31 GMT" - ], - "content-length": [ - "278" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"http_etag\": \"\\\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\\\"\", \"base_url\": \"http://example.com\", \"contact_address\": \"postmaster@example.com\", \"url_host\": \"example.com\", \"mail_host\": \"example.com\", \"self_link\": \"http://localhost:9001/3.0/domains/example.com\", \"description\": null}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo@example.com/config" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:31 GMT" - ], - "content-length": [ - "1583" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"post_id\": 1, \"autoresponse_postings_text\": \"\", \"autorespond_owner\": \"none\", \"administrivia\": true, \"owner_address\": \"foo-owner@example.com\", \"created_at\": \"2015-01-26T08:25:30.769287\", \"admin_notify_mchanges\": false, \"convert_html_to_plaintext\": false, \"admin_immed_notify\": true, \"autoresponse_grace_period\": \"90d\", \"autorespond_requests\": \"none\", \"send_welcome_message\": true, \"scheme\": \"http\", \"first_strip_reply_to\": false, \"display_name\": \"Foo\", \"digest_size_threshold\": 30.0, \"acceptable_aliases\": [], \"next_digest_number\": 1, \"leave_address\": \"foo-leave@example.com\", \"web_host\": \"example.com\", \"reply_goes_to_list\": \"no_munging\", \"http_etag\": \"\\\"4e38e2da722dbecc783a7fdca2c322be447168c0\\\"\", \"posting_address\": \"foo@example.com\", \"anonymous_list\": false, \"collapse_alternatives\": true, \"join_address\": \"foo-join@example.com\", \"default_nonmember_action\": \"hold\", \"allow_list_posts\": true, \"reply_to_address\": \"\", \"default_member_action\": \"defer\", \"posting_pipeline\": \"default-posting-pipeline\", \"autoresponse_request_text\": \"\", \"include_rfc2369_headers\": true, \"archive_policy\": \"public\", \"no_reply_address\": \"noreply@example.com\", \"request_address\": \"foo-request@example.com\", \"last_post_at\": null, \"subject_prefix\": \"[Foo] \", \"advertised\": true, \"volume\": 1, \"fqdn_listname\": \"foo@example.com\", \"filter_content\": false, \"autorespond_postings\": \"none\", \"mail_host\": \"example.com\", \"bounces_address\": \"foo-bounces@example.com\", \"description\": \"\", \"autoresponse_owner_text\": \"\", \"digest_last_sent_at\": null, \"list_name\": \"foo\", \"welcome_message_uri\": \"mailman:///welcome.txt\"}" - } - } - } - ] -} \ No newline at end of file diff --git a/testing/fixtures/vcr_cassettes/test_list_index/list_index_page/setup.yaml b/testing/fixtures/vcr_cassettes/test_list_index/list_index_page/setup.yaml deleted file mode 100644 index f97ac35..0000000 --- a/testing/fixtures/vcr_cassettes/test_list_index/list_index_page/setup.yaml +++ /dev/null @@ -1,134 +0,0 @@ -{ - "version": 1, - "interactions": [ - { - "request": { - "body": "mail_host=example.com", - "headers": { - "content-type": [ - "application/x-www-form-urlencoded" - ], - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "POST", - "uri": "http://localhost:9001/3.0/domains" - }, - "response": { - "status": { - "message": "Created", - "code": 201 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:30 GMT" - ], - "content-length": [ - "0" - ], - "location": [ - "http://localhost:9001/3.0/domains/example.com" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/domains/example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:30 GMT" - ], - "content-length": [ - "278" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"http_etag\": \"\\\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\\\"\", \"base_url\": \"http://example.com\", \"contact_address\": \"postmaster@example.com\", \"url_host\": \"example.com\", \"mail_host\": \"example.com\", \"self_link\": \"http://localhost:9001/3.0/domains/example.com\", \"description\": null}" - } - } - }, - { - "request": { - "body": "fqdn_listname=foo%40example.com", - "headers": { - "content-type": [ - "application/x-www-form-urlencoded" - ], - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "POST", - "uri": "http://localhost:9001/3.0/lists" - }, - "response": { - "status": { - "message": "Created", - "code": 201 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:30 GMT" - ], - "content-length": [ - "0" - ], - "location": [ - "http://localhost:9001/3.0/lists/foo.example.com" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - } - ] -} \ No newline at end of file diff --git a/testing/fixtures/vcr_cassettes/test_list_index/list_index_page/teardown.yaml b/testing/fixtures/vcr_cassettes/test_list_index/list_index_page/teardown.yaml deleted file mode 100644 index 93e9272..0000000 --- a/testing/fixtures/vcr_cassettes/test_list_index/list_index_page/teardown.yaml +++ /dev/null @@ -1,125 +0,0 @@ -{ - "version": 1, - "interactions": [ - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:31 GMT" - ], - "content-length": [ - "399" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 1, \"entries\": [{\"self_link\": \"http://localhost:9001/3.0/lists/foo.example.com\", \"fqdn_listname\": \"foo@example.com\", \"volume\": 1, \"mail_host\": \"example.com\", \"http_etag\": \"\\\"698a819bbb6b902096a8c5543cc7fac2328960d5\\\"\", \"member_count\": 0, \"list_name\": \"foo\", \"display_name\": \"Foo\", \"list_id\": \"foo.example.com\"}], \"start\": 0, \"http_etag\": \"\\\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\\\"\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo.example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:31 GMT" - ], - "content-length": [ - "294" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"self_link\": \"http://localhost:9001/3.0/lists/foo.example.com\", \"fqdn_listname\": \"foo@example.com\", \"volume\": 1, \"mail_host\": \"example.com\", \"http_etag\": \"\\\"698a819bbb6b902096a8c5543cc7fac2328960d5\\\"\", \"member_count\": 0, \"list_name\": \"foo\", \"display_name\": \"Foo\", \"list_id\": \"foo.example.com\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "DELETE", - "uri": "http://localhost:9001/3.0/lists/foo@example.com" - }, - "response": { - "status": { - "message": "No Content", - "code": 204 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:31 GMT" - ], - "content-length": [ - "0" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - } - ] -} \ No newline at end of file diff --git a/testing/fixtures/vcr_cassettes/test_list_members/add_moderator_setup.yaml b/testing/fixtures/vcr_cassettes/test_list_members/add_moderator_setup.yaml deleted file mode 100644 index 367720e..0000000 --- a/testing/fixtures/vcr_cassettes/test_list_members/add_moderator_setup.yaml +++ /dev/null @@ -1,465 +0,0 @@ -{ - "version": 1, - "interactions": [ - { - "request": { - "body": "mail_host=example.com", - "headers": { - "content-type": [ - "application/x-www-form-urlencoded" - ], - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "POST", - "uri": "http://localhost:9001/3.0/domains" - }, - "response": { - "status": { - "message": "Bad Request", - "code": 400 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:31 GMT" - ], - "content-length": [ - "13" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "Domain exists" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/domains/example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:31 GMT" - ], - "content-length": [ - "278" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"http_etag\": \"\\\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\\\"\", \"base_url\": \"http://example.com\", \"contact_address\": \"postmaster@example.com\", \"url_host\": \"example.com\", \"mail_host\": \"example.com\", \"self_link\": \"http://localhost:9001/3.0/domains/example.com\", \"description\": null}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/domains/example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:31 GMT" - ], - "content-length": [ - "278" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"http_etag\": \"\\\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\\\"\", \"base_url\": \"http://example.com\", \"contact_address\": \"postmaster@example.com\", \"url_host\": \"example.com\", \"mail_host\": \"example.com\", \"self_link\": \"http://localhost:9001/3.0/domains/example.com\", \"description\": null}" - } - } - }, - { - "request": { - "body": "fqdn_listname=foo%40example.com", - "headers": { - "content-type": [ - "application/x-www-form-urlencoded" - ], - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "POST", - "uri": "http://localhost:9001/3.0/lists" - }, - "response": { - "status": { - "message": "Created", - "code": 201 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:31 GMT" - ], - "content-length": [ - "0" - ], - "location": [ - "http://localhost:9001/3.0/lists/foo.example.com" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo@example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:31 GMT" - ], - "content-length": [ - "294" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"self_link\": \"http://localhost:9001/3.0/lists/foo.example.com\", \"fqdn_listname\": \"foo@example.com\", \"volume\": 1, \"mail_host\": \"example.com\", \"http_etag\": \"\\\"698a819bbb6b902096a8c5543cc7fac2328960d5\\\"\", \"member_count\": 0, \"list_name\": \"foo\", \"display_name\": \"Foo\", \"list_id\": \"foo.example.com\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=25&page=1" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:31 GMT" - ], - "content-length": [ - "90" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 0, \"start\": 0, \"http_etag\": \"\\\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\\\"\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo.example.com/roster/owner" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:31 GMT" - ], - "content-length": [ - "90" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 0, \"start\": 0, \"http_etag\": \"\\\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\\\"\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo.example.com/roster/moderator" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:31 GMT" - ], - "content-length": [ - "90" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 0, \"start\": 0, \"http_etag\": \"\\\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\\\"\"}" - } - } - }, - { - "request": { - "body": "subscriber=newmod%40example.com&role=moderator&list_id=foo.example.com", - "headers": { - "content-type": [ - "application/x-www-form-urlencoded" - ], - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "POST", - "uri": "http://localhost:9001/3.0/members" - }, - "response": { - "status": { - "message": "Created", - "code": 201 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:31 GMT" - ], - "content-length": [ - "0" - ], - "location": [ - "http://localhost:9001/3.0/members/315756937425945116465287447364399887375" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo.example.com/roster/owner" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:31 GMT" - ], - "content-length": [ - "90" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 0, \"start\": 0, \"http_etag\": \"\\\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\\\"\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo.example.com/roster/moderator" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:31 GMT" - ], - "content-length": [ - "517" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 1, \"entries\": [{\"address\": \"http://localhost:9001/3.0/addresses/newmod@example.com\", \"role\": \"moderator\", \"self_link\": \"http://localhost:9001/3.0/members/315756937425945116465287447364399887375\", \"user\": \"http://localhost:9001/3.0/users/16696964522011058967978427006495656346\", \"email\": \"newmod@example.com\", \"list_id\": \"foo.example.com\", \"delivery_mode\": \"regular\", \"http_etag\": \"\\\"b8f4e31c2680c7ed5bb3026111e9d3e4393dc658\\\"\"}], \"start\": 0, \"http_etag\": \"\\\"1c4fb4ee1e0e166dca89a40aafcb6703530e2ab9\\\"\"}" - } - } - } - ] -} \ No newline at end of file diff --git a/testing/fixtures/vcr_cassettes/test_list_members/add_moderator_teardown.yaml b/testing/fixtures/vcr_cassettes/test_list_members/add_moderator_teardown.yaml deleted file mode 100644 index 50e931a..0000000 --- a/testing/fixtures/vcr_cassettes/test_list_members/add_moderator_teardown.yaml +++ /dev/null @@ -1,84 +0,0 @@ -{ - "version": 1, - "interactions": [ - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo.example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:31 GMT" - ], - "content-length": [ - "294" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"self_link\": \"http://localhost:9001/3.0/lists/foo.example.com\", \"fqdn_listname\": \"foo@example.com\", \"volume\": 1, \"mail_host\": \"example.com\", \"http_etag\": \"\\\"698a819bbb6b902096a8c5543cc7fac2328960d5\\\"\", \"member_count\": 0, \"list_name\": \"foo\", \"display_name\": \"Foo\", \"list_id\": \"foo.example.com\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "DELETE", - "uri": "http://localhost:9001/3.0/lists/foo@example.com" - }, - "response": { - "status": { - "message": "No Content", - "code": 204 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:31 GMT" - ], - "content-length": [ - "0" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - } - ] -} \ No newline at end of file diff --git a/testing/fixtures/vcr_cassettes/test_list_members/new_moderator_added.yaml b/testing/fixtures/vcr_cassettes/test_list_members/new_moderator_added.yaml deleted file mode 100644 index e7e8588..0000000 --- a/testing/fixtures/vcr_cassettes/test_list_members/new_moderator_added.yaml +++ /dev/null @@ -1,46 +0,0 @@ -{ - "version": 1, - "interactions": [ - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo.example.com/roster/moderator" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:31 GMT" - ], - "content-length": [ - "517" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 1, \"entries\": [{\"address\": \"http://localhost:9001/3.0/addresses/newmod@example.com\", \"role\": \"moderator\", \"self_link\": \"http://localhost:9001/3.0/members/315756937425945116465287447364399887375\", \"user\": \"http://localhost:9001/3.0/users/16696964522011058967978427006495656346\", \"email\": \"newmod@example.com\", \"list_id\": \"foo.example.com\", \"delivery_mode\": \"regular\", \"http_etag\": \"\\\"b8f4e31c2680c7ed5bb3026111e9d3e4393dc658\\\"\"}], \"start\": 0, \"http_etag\": \"\\\"1c4fb4ee1e0e166dca89a40aafcb6703530e2ab9\\\"\"}" - } - } - } - ] -} \ No newline at end of file diff --git a/testing/fixtures/vcr_cassettes/test_list_metrics/list_metrics.yaml b/testing/fixtures/vcr_cassettes/test_list_metrics/list_metrics.yaml deleted file mode 100644 index 36e5185..0000000 --- a/testing/fixtures/vcr_cassettes/test_list_metrics/list_metrics.yaml +++ /dev/null @@ -1,825 +0,0 @@ -{ - "version": 1, - "interactions": [ - { - "request": { - "body": "mail_host=example.org", - "headers": { - "content-type": [ - "application/x-www-form-urlencoded" - ], - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "POST", - "uri": "http://localhost:9001/3.0/domains" - }, - "response": { - "status": { - "message": "Created", - "code": 201 - }, - "headers": { - "date": [ - "Sun, 08 Feb 2015 08:42:22 GMT" - ], - "content-length": [ - "0" - ], - "location": [ - "http://localhost:9001/3.0/domains/example.org" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/domains/example.org" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Sun, 08 Feb 2015 08:42:22 GMT" - ], - "content-length": [ - "278" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"http_etag\": \"\\\"730f23a7a90aecfe1248f952d15bcfe97ce9e51f\\\"\", \"self_link\": \"http://localhost:9001/3.0/domains/example.org\", \"url_host\": \"example.org\", \"contact_address\": \"postmaster@example.org\", \"mail_host\": \"example.org\", \"base_url\": \"http://example.org\", \"description\": null}" - } - } - }, - { - "request": { - "body": "fqdn_listname=test%40example.org", - "headers": { - "content-type": [ - "application/x-www-form-urlencoded" - ], - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "POST", - "uri": "http://localhost:9001/3.0/lists" - }, - "response": { - "status": { - "message": "Created", - "code": 201 - }, - "headers": { - "date": [ - "Sun, 08 Feb 2015 08:42:22 GMT" - ], - "content-length": [ - "0" - ], - "location": [ - "http://localhost:9001/3.0/lists/test.example.org" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/test@example.org" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Sun, 08 Feb 2015 08:42:22 GMT" - ], - "content-length": [ - "299" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"volume\": 1, \"member_count\": 0, \"self_link\": \"http://localhost:9001/3.0/lists/test.example.org\", \"fqdn_listname\": \"test@example.org\", \"mail_host\": \"example.org\", \"list_id\": \"test.example.org\", \"list_name\": \"test\", \"http_etag\": \"\\\"bdbe0068d985e63808436177de1063200d586b0d\\\"\", \"display_name\": \"Test\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/test@example.org" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Sun, 08 Feb 2015 08:42:23 GMT" - ], - "content-length": [ - "299" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"volume\": 1, \"member_count\": 0, \"self_link\": \"http://localhost:9001/3.0/lists/test.example.org\", \"fqdn_listname\": \"test@example.org\", \"mail_host\": \"example.org\", \"list_id\": \"test.example.org\", \"list_name\": \"test\", \"http_etag\": \"\\\"bdbe0068d985e63808436177de1063200d586b0d\\\"\", \"display_name\": \"Test\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/test.example.org/roster/owner" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Sun, 08 Feb 2015 08:42:23 GMT" - ], - "content-length": [ - "90" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 0, \"start\": 0, \"http_etag\": \"\\\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\\\"\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/test.example.org/roster/moderator" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Sun, 08 Feb 2015 08:42:23 GMT" - ], - "content-length": [ - "90" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 0, \"start\": 0, \"http_etag\": \"\\\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\\\"\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/test@example.org/config" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Sun, 08 Feb 2015 08:42:23 GMT" - ], - "content-length": [ - "1593" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"autorespond_owner\": \"none\", \"archive_policy\": \"public\", \"reply_goes_to_list\": \"no_munging\", \"scheme\": \"http\", \"next_digest_number\": 1, \"subject_prefix\": \"[Test] \", \"first_strip_reply_to\": false, \"digest_size_threshold\": 30.0, \"autoresponse_request_text\": \"\", \"http_etag\": \"\\\"b3b8d8ab2977865effd4fa746a2d02522342076e\\\"\", \"bounces_address\": \"test-bounces@example.org\", \"autoresponse_postings_text\": \"\", \"anonymous_list\": false, \"description\": \"\", \"join_address\": \"test-join@example.org\", \"default_member_action\": \"defer\", \"allow_list_posts\": true, \"collapse_alternatives\": true, \"created_at\": \"2015-02-08T08:42:22.739054\", \"autoresponse_owner_text\": \"\", \"no_reply_address\": \"noreply@example.org\", \"filter_content\": false, \"owner_address\": \"test-owner@example.org\", \"post_id\": 1, \"administrivia\": true, \"posting_address\": \"test@example.org\", \"last_post_at\": null, \"request_address\": \"test-request@example.org\", \"display_name\": \"Test\", \"autoresponse_grace_period\": \"90d\", \"acceptable_aliases\": [], \"admin_notify_mchanges\": false, \"mail_host\": \"example.org\", \"default_nonmember_action\": \"hold\", \"posting_pipeline\": \"default-posting-pipeline\", \"admin_immed_notify\": true, \"welcome_message_uri\": \"mailman:///welcome.txt\", \"autorespond_requests\": \"none\", \"autorespond_postings\": \"none\", \"convert_html_to_plaintext\": false, \"volume\": 1, \"advertised\": true, \"list_name\": \"test\", \"fqdn_listname\": \"test@example.org\", \"reply_to_address\": \"\", \"digest_last_sent_at\": null, \"include_rfc2369_headers\": true, \"leave_address\": \"test-leave@example.org\", \"send_welcome_message\": true, \"web_host\": \"example.org\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/test@example.org/config" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Sun, 08 Feb 2015 08:42:23 GMT" - ], - "content-length": [ - "1593" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"autorespond_owner\": \"none\", \"archive_policy\": \"public\", \"reply_goes_to_list\": \"no_munging\", \"scheme\": \"http\", \"next_digest_number\": 1, \"subject_prefix\": \"[Test] \", \"first_strip_reply_to\": false, \"digest_size_threshold\": 30.0, \"autoresponse_request_text\": \"\", \"http_etag\": \"\\\"b3b8d8ab2977865effd4fa746a2d02522342076e\\\"\", \"bounces_address\": \"test-bounces@example.org\", \"autoresponse_postings_text\": \"\", \"anonymous_list\": false, \"description\": \"\", \"join_address\": \"test-join@example.org\", \"default_member_action\": \"defer\", \"allow_list_posts\": true, \"collapse_alternatives\": true, \"created_at\": \"2015-02-08T08:42:22.739054\", \"autoresponse_owner_text\": \"\", \"no_reply_address\": \"noreply@example.org\", \"filter_content\": false, \"owner_address\": \"test-owner@example.org\", \"post_id\": 1, \"administrivia\": true, \"posting_address\": \"test@example.org\", \"last_post_at\": null, \"request_address\": \"test-request@example.org\", \"display_name\": \"Test\", \"autoresponse_grace_period\": \"90d\", \"acceptable_aliases\": [], \"admin_notify_mchanges\": false, \"mail_host\": \"example.org\", \"default_nonmember_action\": \"hold\", \"posting_pipeline\": \"default-posting-pipeline\", \"admin_immed_notify\": true, \"welcome_message_uri\": \"mailman:///welcome.txt\", \"autorespond_requests\": \"none\", \"autorespond_postings\": \"none\", \"convert_html_to_plaintext\": false, \"volume\": 1, \"advertised\": true, \"list_name\": \"test\", \"fqdn_listname\": \"test@example.org\", \"reply_to_address\": \"\", \"digest_last_sent_at\": null, \"include_rfc2369_headers\": true, \"leave_address\": \"test-leave@example.org\", \"send_welcome_message\": true, \"web_host\": \"example.org\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/test@example.org/config" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Sun, 08 Feb 2015 08:42:23 GMT" - ], - "content-length": [ - "1593" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"autorespond_owner\": \"none\", \"archive_policy\": \"public\", \"reply_goes_to_list\": \"no_munging\", \"scheme\": \"http\", \"next_digest_number\": 1, \"subject_prefix\": \"[Test] \", \"first_strip_reply_to\": false, \"digest_size_threshold\": 30.0, \"autoresponse_request_text\": \"\", \"http_etag\": \"\\\"b3b8d8ab2977865effd4fa746a2d02522342076e\\\"\", \"bounces_address\": \"test-bounces@example.org\", \"autoresponse_postings_text\": \"\", \"anonymous_list\": false, \"description\": \"\", \"join_address\": \"test-join@example.org\", \"default_member_action\": \"defer\", \"allow_list_posts\": true, \"collapse_alternatives\": true, \"created_at\": \"2015-02-08T08:42:22.739054\", \"autoresponse_owner_text\": \"\", \"no_reply_address\": \"noreply@example.org\", \"filter_content\": false, \"owner_address\": \"test-owner@example.org\", \"post_id\": 1, \"administrivia\": true, \"posting_address\": \"test@example.org\", \"last_post_at\": null, \"request_address\": \"test-request@example.org\", \"display_name\": \"Test\", \"autoresponse_grace_period\": \"90d\", \"acceptable_aliases\": [], \"admin_notify_mchanges\": false, \"mail_host\": \"example.org\", \"default_nonmember_action\": \"hold\", \"posting_pipeline\": \"default-posting-pipeline\", \"admin_immed_notify\": true, \"welcome_message_uri\": \"mailman:///welcome.txt\", \"autorespond_requests\": \"none\", \"autorespond_postings\": \"none\", \"convert_html_to_plaintext\": false, \"volume\": 1, \"advertised\": true, \"list_name\": \"test\", \"fqdn_listname\": \"test@example.org\", \"reply_to_address\": \"\", \"digest_last_sent_at\": null, \"include_rfc2369_headers\": true, \"leave_address\": \"test-leave@example.org\", \"send_welcome_message\": true, \"web_host\": \"example.org\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/test@example.org/config" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Sun, 08 Feb 2015 08:42:23 GMT" - ], - "content-length": [ - "1593" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"autorespond_owner\": \"none\", \"archive_policy\": \"public\", \"reply_goes_to_list\": \"no_munging\", \"scheme\": \"http\", \"next_digest_number\": 1, \"subject_prefix\": \"[Test] \", \"first_strip_reply_to\": false, \"digest_size_threshold\": 30.0, \"autoresponse_request_text\": \"\", \"http_etag\": \"\\\"b3b8d8ab2977865effd4fa746a2d02522342076e\\\"\", \"bounces_address\": \"test-bounces@example.org\", \"autoresponse_postings_text\": \"\", \"anonymous_list\": false, \"description\": \"\", \"join_address\": \"test-join@example.org\", \"default_member_action\": \"defer\", \"allow_list_posts\": true, \"collapse_alternatives\": true, \"created_at\": \"2015-02-08T08:42:22.739054\", \"autoresponse_owner_text\": \"\", \"no_reply_address\": \"noreply@example.org\", \"filter_content\": false, \"owner_address\": \"test-owner@example.org\", \"post_id\": 1, \"administrivia\": true, \"posting_address\": \"test@example.org\", \"last_post_at\": null, \"request_address\": \"test-request@example.org\", \"display_name\": \"Test\", \"autoresponse_grace_period\": \"90d\", \"acceptable_aliases\": [], \"admin_notify_mchanges\": false, \"mail_host\": \"example.org\", \"default_nonmember_action\": \"hold\", \"posting_pipeline\": \"default-posting-pipeline\", \"admin_immed_notify\": true, \"welcome_message_uri\": \"mailman:///welcome.txt\", \"autorespond_requests\": \"none\", \"autorespond_postings\": \"none\", \"convert_html_to_plaintext\": false, \"volume\": 1, \"advertised\": true, \"list_name\": \"test\", \"fqdn_listname\": \"test@example.org\", \"reply_to_address\": \"\", \"digest_last_sent_at\": null, \"include_rfc2369_headers\": true, \"leave_address\": \"test-leave@example.org\", \"send_welcome_message\": true, \"web_host\": \"example.org\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "DELETE", - "uri": "http://localhost:9001/3.0/lists/test@example.org" - }, - "response": { - "status": { - "message": "No Content", - "code": 204 - }, - "headers": { - "date": [ - "Sun, 08 Feb 2015 08:42:23 GMT" - ], - "content-length": [ - "0" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "DELETE", - "uri": "http://localhost:9001/3.0/domains/example.org" - }, - "response": { - "status": { - "message": "No Content", - "code": 204 - }, - "headers": { - "date": [ - "Sun, 08 Feb 2015 08:42:23 GMT" - ], - "content-length": [ - "0" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - }, - { - "request": { - "body": "mail_host=example.org", - "headers": { - "content-type": [ - "application/x-www-form-urlencoded" - ], - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "POST", - "uri": "http://localhost:9001/3.0/domains" - }, - "response": { - "status": { - "message": "Created", - "code": 201 - }, - "headers": { - "date": [ - "Sun, 08 Feb 2015 08:42:23 GMT" - ], - "content-length": [ - "0" - ], - "location": [ - "http://localhost:9001/3.0/domains/example.org" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/domains/example.org" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Sun, 08 Feb 2015 08:42:23 GMT" - ], - "content-length": [ - "278" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"http_etag\": \"\\\"730f23a7a90aecfe1248f952d15bcfe97ce9e51f\\\"\", \"self_link\": \"http://localhost:9001/3.0/domains/example.org\", \"url_host\": \"example.org\", \"contact_address\": \"postmaster@example.org\", \"mail_host\": \"example.org\", \"base_url\": \"http://example.org\", \"description\": null}" - } - } - }, - { - "request": { - "body": "fqdn_listname=test%40example.org", - "headers": { - "content-type": [ - "application/x-www-form-urlencoded" - ], - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "POST", - "uri": "http://localhost:9001/3.0/lists" - }, - "response": { - "status": { - "message": "Created", - "code": 201 - }, - "headers": { - "date": [ - "Sun, 08 Feb 2015 08:42:23 GMT" - ], - "content-length": [ - "0" - ], - "location": [ - "http://localhost:9001/3.0/lists/test.example.org" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/test@example.org" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Sun, 08 Feb 2015 08:42:23 GMT" - ], - "content-length": [ - "299" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"volume\": 1, \"member_count\": 0, \"self_link\": \"http://localhost:9001/3.0/lists/test.example.org\", \"fqdn_listname\": \"test@example.org\", \"mail_host\": \"example.org\", \"list_id\": \"test.example.org\", \"list_name\": \"test\", \"http_etag\": \"\\\"bdbe0068d985e63808436177de1063200d586b0d\\\"\", \"display_name\": \"Test\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/test@example.org" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Sun, 08 Feb 2015 08:42:23 GMT" - ], - "content-length": [ - "299" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"volume\": 1, \"member_count\": 0, \"self_link\": \"http://localhost:9001/3.0/lists/test.example.org\", \"fqdn_listname\": \"test@example.org\", \"mail_host\": \"example.org\", \"list_id\": \"test.example.org\", \"list_name\": \"test\", \"http_etag\": \"\\\"bdbe0068d985e63808436177de1063200d586b0d\\\"\", \"display_name\": \"Test\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "DELETE", - "uri": "http://localhost:9001/3.0/lists/test@example.org" - }, - "response": { - "status": { - "message": "No Content", - "code": 204 - }, - "headers": { - "date": [ - "Sun, 08 Feb 2015 08:42:23 GMT" - ], - "content-length": [ - "0" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "DELETE", - "uri": "http://localhost:9001/3.0/domains/example.org" - }, - "response": { - "status": { - "message": "No Content", - "code": 204 - }, - "headers": { - "date": [ - "Sun, 08 Feb 2015 08:42:23 GMT" - ], - "content-length": [ - "0" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - } - ] -} \ No newline at end of file diff --git a/testing/fixtures/vcr_cassettes/test_list_new/list_creation/new_list_created_with_owner.yaml b/testing/fixtures/vcr_cassettes/test_list_new/list_creation/new_list_created_with_owner.yaml deleted file mode 100644 index 487eed3..0000000 --- a/testing/fixtures/vcr_cassettes/test_list_new/list_creation/new_list_created_with_owner.yaml +++ /dev/null @@ -1,462 +0,0 @@ -{ - "version": 1, - "interactions": [ - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/domains" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:35 GMT" - ], - "content-length": [ - "383" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 1, \"entries\": [{\"http_etag\": \"\\\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\\\"\", \"base_url\": \"http://example.com\", \"contact_address\": \"postmaster@example.com\", \"url_host\": \"example.com\", \"mail_host\": \"example.com\", \"self_link\": \"http://localhost:9001/3.0/domains/example.com\", \"description\": null}], \"start\": 0, \"http_etag\": \"\\\"b4ea7109190ac24defea706a8fc8807090dabba4\\\"\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/domains/example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:35 GMT" - ], - "content-length": [ - "278" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"http_etag\": \"\\\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\\\"\", \"base_url\": \"http://example.com\", \"contact_address\": \"postmaster@example.com\", \"url_host\": \"example.com\", \"mail_host\": \"example.com\", \"self_link\": \"http://localhost:9001/3.0/domains/example.com\", \"description\": null}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/domains/example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:35 GMT" - ], - "content-length": [ - "278" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"http_etag\": \"\\\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\\\"\", \"base_url\": \"http://example.com\", \"contact_address\": \"postmaster@example.com\", \"url_host\": \"example.com\", \"mail_host\": \"example.com\", \"self_link\": \"http://localhost:9001/3.0/domains/example.com\", \"description\": null}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/domains/example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:35 GMT" - ], - "content-length": [ - "278" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"http_etag\": \"\\\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\\\"\", \"base_url\": \"http://example.com\", \"contact_address\": \"postmaster@example.com\", \"url_host\": \"example.com\", \"mail_host\": \"example.com\", \"self_link\": \"http://localhost:9001/3.0/domains/example.com\", \"description\": null}" - } - } - }, - { - "request": { - "body": "fqdn_listname=a_new_list%40example.com", - "headers": { - "content-type": [ - "application/x-www-form-urlencoded" - ], - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "POST", - "uri": "http://localhost:9001/3.0/lists" - }, - "response": { - "status": { - "message": "Created", - "code": 201 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:35 GMT" - ], - "content-length": [ - "0" - ], - "location": [ - "http://localhost:9001/3.0/lists/a_new_list.example.com" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/a_new_list.example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:35 GMT" - ], - "content-length": [ - "329" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"self_link\": \"http://localhost:9001/3.0/lists/a_new_list.example.com\", \"fqdn_listname\": \"a_new_list@example.com\", \"volume\": 1, \"mail_host\": \"example.com\", \"http_etag\": \"\\\"447e005af2b208bfea01f6425b786356f0a374de\\\"\", \"member_count\": 0, \"list_name\": \"a_new_list\", \"display_name\": \"A_new_list\", \"list_id\": \"a_new_list.example.com\"}" - } - } - }, - { - "request": { - "body": "subscriber=owner%40example.com&role=owner&list_id=a_new_list.example.com", - "headers": { - "content-type": [ - "application/x-www-form-urlencoded" - ], - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "POST", - "uri": "http://localhost:9001/3.0/members" - }, - "response": { - "status": { - "message": "Created", - "code": 201 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:35 GMT" - ], - "content-length": [ - "0" - ], - "location": [ - "http://localhost:9001/3.0/members/288493333369309519831004492815866386400" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/a_new_list@example.com/config" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:35 GMT" - ], - "content-length": [ - "1653" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"post_id\": 1, \"autoresponse_postings_text\": \"\", \"autorespond_owner\": \"none\", \"administrivia\": true, \"owner_address\": \"a_new_list-owner@example.com\", \"created_at\": \"2015-01-26T08:25:35.458128\", \"admin_notify_mchanges\": false, \"convert_html_to_plaintext\": false, \"admin_immed_notify\": true, \"autoresponse_grace_period\": \"90d\", \"autorespond_requests\": \"none\", \"send_welcome_message\": true, \"scheme\": \"http\", \"first_strip_reply_to\": false, \"display_name\": \"A_new_list\", \"digest_size_threshold\": 30.0, \"acceptable_aliases\": [], \"next_digest_number\": 1, \"leave_address\": \"a_new_list-leave@example.com\", \"web_host\": \"example.com\", \"reply_goes_to_list\": \"no_munging\", \"http_etag\": \"\\\"454b3714f2aaaf4824e756e9f3578d7e44585d6b\\\"\", \"posting_address\": \"a_new_list@example.com\", \"anonymous_list\": false, \"collapse_alternatives\": true, \"join_address\": \"a_new_list-join@example.com\", \"default_nonmember_action\": \"hold\", \"allow_list_posts\": true, \"reply_to_address\": \"\", \"default_member_action\": \"defer\", \"posting_pipeline\": \"default-posting-pipeline\", \"autoresponse_request_text\": \"\", \"include_rfc2369_headers\": true, \"archive_policy\": \"public\", \"no_reply_address\": \"noreply@example.com\", \"request_address\": \"a_new_list-request@example.com\", \"last_post_at\": null, \"subject_prefix\": \"[A_new_list] \", \"advertised\": true, \"volume\": 1, \"fqdn_listname\": \"a_new_list@example.com\", \"filter_content\": false, \"autorespond_postings\": \"none\", \"mail_host\": \"example.com\", \"bounces_address\": \"a_new_list-bounces@example.com\", \"description\": \"\", \"autoresponse_owner_text\": \"\", \"digest_last_sent_at\": null, \"list_name\": \"a_new_list\", \"welcome_message_uri\": \"mailman:///welcome.txt\"}" - } - } - }, - { - "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": { - "content-type": [ - "application/x-www-form-urlencoded" - ], - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "PATCH", - "uri": "http://localhost:9001/3.0/lists/a_new_list@example.com/config" - }, - "response": { - "status": { - "message": "No Content", - "code": 204 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:35 GMT" - ], - "content-length": [ - "0" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/a_new_list@example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:35 GMT" - ], - "content-length": [ - "329" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"self_link\": \"http://localhost:9001/3.0/lists/a_new_list.example.com\", \"fqdn_listname\": \"a_new_list@example.com\", \"volume\": 1, \"mail_host\": \"example.com\", \"http_etag\": \"\\\"447e005af2b208bfea01f6425b786356f0a374de\\\"\", \"member_count\": 0, \"list_name\": \"a_new_list\", \"display_name\": \"A_new_list\", \"list_id\": \"a_new_list.example.com\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/a_new_list.example.com/roster/owner" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:35 GMT" - ], - "content-length": [ - "519" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 1, \"entries\": [{\"address\": \"http://localhost:9001/3.0/addresses/owner@example.com\", \"role\": \"owner\", \"self_link\": \"http://localhost:9001/3.0/members/288493333369309519831004492815866386400\", \"user\": \"http://localhost:9001/3.0/users/109011471419690310842107289812022048641\", \"email\": \"owner@example.com\", \"list_id\": \"a_new_list.example.com\", \"delivery_mode\": \"regular\", \"http_etag\": \"\\\"3f7ae2b750fa25dbcbd2ece2efeb0e628c5d90f1\\\"\"}], \"start\": 0, \"http_etag\": \"\\\"ec9375eab5a7b4d890c5e3a07c16ca67795207ef\\\"\"}" - } - } - } - ] -} \ No newline at end of file diff --git a/testing/fixtures/vcr_cassettes/test_list_new/list_creation/setup.yaml b/testing/fixtures/vcr_cassettes/test_list_new/list_creation/setup.yaml deleted file mode 100644 index 0bc46d3..0000000 --- a/testing/fixtures/vcr_cassettes/test_list_new/list_creation/setup.yaml +++ /dev/null @@ -1,175 +0,0 @@ -{ - "version": 1, - "interactions": [ - { - "request": { - "body": "mail_host=example.com", - "headers": { - "content-type": [ - "application/x-www-form-urlencoded" - ], - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "POST", - "uri": "http://localhost:9001/3.0/domains" - }, - "response": { - "status": { - "message": "Bad Request", - "code": 400 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:35 GMT" - ], - "content-length": [ - "13" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "Domain exists" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/domains/example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:35 GMT" - ], - "content-length": [ - "278" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"http_etag\": \"\\\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\\\"\", \"base_url\": \"http://example.com\", \"contact_address\": \"postmaster@example.com\", \"url_host\": \"example.com\", \"mail_host\": \"example.com\", \"self_link\": \"http://localhost:9001/3.0/domains/example.com\", \"description\": null}" - } - } - }, - { - "request": { - "body": "mail_host=example.com", - "headers": { - "content-type": [ - "application/x-www-form-urlencoded" - ], - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "POST", - "uri": "http://localhost:9001/3.0/domains" - }, - "response": { - "status": { - "message": "Bad Request", - "code": 400 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:35 GMT" - ], - "content-length": [ - "13" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "Domain exists" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/domains/example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:35 GMT" - ], - "content-length": [ - "278" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"http_etag\": \"\\\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\\\"\", \"base_url\": \"http://example.com\", \"contact_address\": \"postmaster@example.com\", \"url_host\": \"example.com\", \"mail_host\": \"example.com\", \"self_link\": \"http://localhost:9001/3.0/domains/example.com\", \"description\": null}" - } - } - } - ] -} \ No newline at end of file diff --git a/testing/fixtures/vcr_cassettes/test_list_new/list_creation/teardown.yaml b/testing/fixtures/vcr_cassettes/test_list_new/list_creation/teardown.yaml deleted file mode 100644 index 0e536c4..0000000 --- a/testing/fixtures/vcr_cassettes/test_list_new/list_creation/teardown.yaml +++ /dev/null @@ -1,166 +0,0 @@ -{ - "version": 1, - "interactions": [ - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:35 GMT" - ], - "content-length": [ - "434" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 1, \"entries\": [{\"self_link\": \"http://localhost:9001/3.0/lists/a_new_list.example.com\", \"fqdn_listname\": \"a_new_list@example.com\", \"volume\": 1, \"mail_host\": \"example.com\", \"http_etag\": \"\\\"447e005af2b208bfea01f6425b786356f0a374de\\\"\", \"member_count\": 0, \"list_name\": \"a_new_list\", \"display_name\": \"A_new_list\", \"list_id\": \"a_new_list.example.com\"}], \"start\": 0, \"http_etag\": \"\\\"dee96dcb9d3f736cc6fa170baeea8f879d7db6f0\\\"\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/a_new_list.example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:35 GMT" - ], - "content-length": [ - "329" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"self_link\": \"http://localhost:9001/3.0/lists/a_new_list.example.com\", \"fqdn_listname\": \"a_new_list@example.com\", \"volume\": 1, \"mail_host\": \"example.com\", \"http_etag\": \"\\\"447e005af2b208bfea01f6425b786356f0a374de\\\"\", \"member_count\": 0, \"list_name\": \"a_new_list\", \"display_name\": \"A_new_list\", \"list_id\": \"a_new_list.example.com\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "DELETE", - "uri": "http://localhost:9001/3.0/lists/a_new_list@example.com" - }, - "response": { - "status": { - "message": "No Content", - "code": 204 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:35 GMT" - ], - "content-length": [ - "0" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:35 GMT" - ], - "content-length": [ - "90" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 0, \"start\": 0, \"http_etag\": \"\\\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\\\"\"}" - } - } - } - ] -} \ No newline at end of file diff --git a/testing/fixtures/vcr_cassettes/test_list_summary/list_summary_page/list_summary_logged_in.yaml b/testing/fixtures/vcr_cassettes/test_list_summary/list_summary_page/list_summary_logged_in.yaml deleted file mode 100644 index bd70783..0000000 --- a/testing/fixtures/vcr_cassettes/test_list_summary/list_summary_page/list_summary_logged_in.yaml +++ /dev/null @@ -1,210 +0,0 @@ -{ - "version": 1, - "interactions": [ - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo@example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:36 GMT" - ], - "content-length": [ - "294" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"self_link\": \"http://localhost:9001/3.0/lists/foo.example.com\", \"fqdn_listname\": \"foo@example.com\", \"volume\": 1, \"mail_host\": \"example.com\", \"http_etag\": \"\\\"698a819bbb6b902096a8c5543cc7fac2328960d5\\\"\", \"member_count\": 0, \"list_name\": \"foo\", \"display_name\": \"Foo\", \"list_id\": \"foo.example.com\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo.example.com/roster/owner" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:36 GMT" - ], - "content-length": [ - "90" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 0, \"start\": 0, \"http_etag\": \"\\\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\\\"\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo.example.com/roster/moderator" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:36 GMT" - ], - "content-length": [ - "90" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 0, \"start\": 0, \"http_etag\": \"\\\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\\\"\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo@example.com/roster/member" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:36 GMT" - ], - "content-length": [ - "90" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 0, \"start\": 0, \"http_etag\": \"\\\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\\\"\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo@example.com/config" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:36 GMT" - ], - "content-length": [ - "1583" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"post_id\": 1, \"autoresponse_postings_text\": \"\", \"autorespond_owner\": \"none\", \"administrivia\": true, \"owner_address\": \"foo-owner@example.com\", \"created_at\": \"2015-01-26T08:25:36.029238\", \"admin_notify_mchanges\": false, \"convert_html_to_plaintext\": false, \"admin_immed_notify\": true, \"autoresponse_grace_period\": \"90d\", \"autorespond_requests\": \"none\", \"send_welcome_message\": true, \"scheme\": \"http\", \"first_strip_reply_to\": false, \"display_name\": \"Foo\", \"digest_size_threshold\": 30.0, \"acceptable_aliases\": [], \"next_digest_number\": 1, \"leave_address\": \"foo-leave@example.com\", \"web_host\": \"example.com\", \"reply_goes_to_list\": \"no_munging\", \"http_etag\": \"\\\"7aa5e4f9a81e3368808f8b83173049cd9426274a\\\"\", \"posting_address\": \"foo@example.com\", \"anonymous_list\": false, \"collapse_alternatives\": true, \"join_address\": \"foo-join@example.com\", \"default_nonmember_action\": \"hold\", \"allow_list_posts\": true, \"reply_to_address\": \"\", \"default_member_action\": \"defer\", \"posting_pipeline\": \"default-posting-pipeline\", \"autoresponse_request_text\": \"\", \"include_rfc2369_headers\": true, \"archive_policy\": \"public\", \"no_reply_address\": \"noreply@example.com\", \"request_address\": \"foo-request@example.com\", \"last_post_at\": null, \"subject_prefix\": \"[Foo] \", \"advertised\": true, \"volume\": 1, \"fqdn_listname\": \"foo@example.com\", \"filter_content\": false, \"autorespond_postings\": \"none\", \"mail_host\": \"example.com\", \"bounces_address\": \"foo-bounces@example.com\", \"description\": \"\", \"autoresponse_owner_text\": \"\", \"digest_last_sent_at\": null, \"list_name\": \"foo\", \"welcome_message_uri\": \"mailman:///welcome.txt\"}" - } - } - } - ] -} \ No newline at end of file diff --git a/testing/fixtures/vcr_cassettes/test_list_summary/list_summary_page/list_summary_logged_out.yaml b/testing/fixtures/vcr_cassettes/test_list_summary/list_summary_page/list_summary_logged_out.yaml deleted file mode 100644 index 92ce707..0000000 --- a/testing/fixtures/vcr_cassettes/test_list_summary/list_summary_page/list_summary_logged_out.yaml +++ /dev/null @@ -1,128 +0,0 @@ -{ - "version": 1, - "interactions": [ - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo@example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:36 GMT" - ], - "content-length": [ - "294" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"self_link\": \"http://localhost:9001/3.0/lists/foo.example.com\", \"fqdn_listname\": \"foo@example.com\", \"volume\": 1, \"mail_host\": \"example.com\", \"http_etag\": \"\\\"698a819bbb6b902096a8c5543cc7fac2328960d5\\\"\", \"member_count\": 0, \"list_name\": \"foo\", \"display_name\": \"Foo\", \"list_id\": \"foo.example.com\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo@example.com/roster/member" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:36 GMT" - ], - "content-length": [ - "90" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 0, \"start\": 0, \"http_etag\": \"\\\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\\\"\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo@example.com/config" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:36 GMT" - ], - "content-length": [ - "1583" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"post_id\": 1, \"autoresponse_postings_text\": \"\", \"autorespond_owner\": \"none\", \"administrivia\": true, \"owner_address\": \"foo-owner@example.com\", \"created_at\": \"2015-01-26T08:25:36.395748\", \"admin_notify_mchanges\": false, \"convert_html_to_plaintext\": false, \"admin_immed_notify\": true, \"autoresponse_grace_period\": \"90d\", \"autorespond_requests\": \"none\", \"send_welcome_message\": true, \"scheme\": \"http\", \"first_strip_reply_to\": false, \"display_name\": \"Foo\", \"digest_size_threshold\": 30.0, \"acceptable_aliases\": [], \"next_digest_number\": 1, \"leave_address\": \"foo-leave@example.com\", \"web_host\": \"example.com\", \"reply_goes_to_list\": \"no_munging\", \"http_etag\": \"\\\"c6fda2d804349f890f788d4251861c499b72f814\\\"\", \"posting_address\": \"foo@example.com\", \"anonymous_list\": false, \"collapse_alternatives\": true, \"join_address\": \"foo-join@example.com\", \"default_nonmember_action\": \"hold\", \"allow_list_posts\": true, \"reply_to_address\": \"\", \"default_member_action\": \"defer\", \"posting_pipeline\": \"default-posting-pipeline\", \"autoresponse_request_text\": \"\", \"include_rfc2369_headers\": true, \"archive_policy\": \"public\", \"no_reply_address\": \"noreply@example.com\", \"request_address\": \"foo-request@example.com\", \"last_post_at\": null, \"subject_prefix\": \"[Foo] \", \"advertised\": true, \"volume\": 1, \"fqdn_listname\": \"foo@example.com\", \"filter_content\": false, \"autorespond_postings\": \"none\", \"mail_host\": \"example.com\", \"bounces_address\": \"foo-bounces@example.com\", \"description\": \"\", \"autoresponse_owner_text\": \"\", \"digest_last_sent_at\": null, \"list_name\": \"foo\", \"welcome_message_uri\": \"mailman:///welcome.txt\"}" - } - } - } - ] -} \ No newline at end of file diff --git a/testing/fixtures/vcr_cassettes/test_list_summary/list_summary_page/setup.yaml b/testing/fixtures/vcr_cassettes/test_list_summary/list_summary_page/setup.yaml deleted file mode 100644 index 6f1c0c8..0000000 --- a/testing/fixtures/vcr_cassettes/test_list_summary/list_summary_page/setup.yaml +++ /dev/null @@ -1,345 +0,0 @@ -{ - "version": 1, - "interactions": [ - { - "request": { - "body": "mail_host=example.com", - "headers": { - "content-type": [ - "application/x-www-form-urlencoded" - ], - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "POST", - "uri": "http://localhost:9001/3.0/domains" - }, - "response": { - "status": { - "message": "Bad Request", - "code": 400 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:35 GMT" - ], - "content-length": [ - "13" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "Domain exists" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/domains/example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:36 GMT" - ], - "content-length": [ - "278" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"http_etag\": \"\\\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\\\"\", \"base_url\": \"http://example.com\", \"contact_address\": \"postmaster@example.com\", \"url_host\": \"example.com\", \"mail_host\": \"example.com\", \"self_link\": \"http://localhost:9001/3.0/domains/example.com\", \"description\": null}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/domains/example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:36 GMT" - ], - "content-length": [ - "278" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"http_etag\": \"\\\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\\\"\", \"base_url\": \"http://example.com\", \"contact_address\": \"postmaster@example.com\", \"url_host\": \"example.com\", \"mail_host\": \"example.com\", \"self_link\": \"http://localhost:9001/3.0/domains/example.com\", \"description\": null}" - } - } - }, - { - "request": { - "body": "fqdn_listname=foo%40example.com", - "headers": { - "content-type": [ - "application/x-www-form-urlencoded" - ], - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "POST", - "uri": "http://localhost:9001/3.0/lists" - }, - "response": { - "status": { - "message": "Created", - "code": 201 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:36 GMT" - ], - "content-length": [ - "0" - ], - "location": [ - "http://localhost:9001/3.0/lists/foo.example.com" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - }, - { - "request": { - "body": "mail_host=example.com", - "headers": { - "content-type": [ - "application/x-www-form-urlencoded" - ], - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "POST", - "uri": "http://localhost:9001/3.0/domains" - }, - "response": { - "status": { - "message": "Bad Request", - "code": 400 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:36 GMT" - ], - "content-length": [ - "13" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "Domain exists" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/domains/example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:36 GMT" - ], - "content-length": [ - "278" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"http_etag\": \"\\\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\\\"\", \"base_url\": \"http://example.com\", \"contact_address\": \"postmaster@example.com\", \"url_host\": \"example.com\", \"mail_host\": \"example.com\", \"self_link\": \"http://localhost:9001/3.0/domains/example.com\", \"description\": null}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/domains/example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:36 GMT" - ], - "content-length": [ - "278" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"http_etag\": \"\\\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\\\"\", \"base_url\": \"http://example.com\", \"contact_address\": \"postmaster@example.com\", \"url_host\": \"example.com\", \"mail_host\": \"example.com\", \"self_link\": \"http://localhost:9001/3.0/domains/example.com\", \"description\": null}" - } - } - }, - { - "request": { - "body": "fqdn_listname=foo%40example.com", - "headers": { - "content-type": [ - "application/x-www-form-urlencoded" - ], - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "POST", - "uri": "http://localhost:9001/3.0/lists" - }, - "response": { - "status": { - "message": "Created", - "code": 201 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:36 GMT" - ], - "content-length": [ - "0" - ], - "location": [ - "http://localhost:9001/3.0/lists/foo.example.com" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - } - ] -} \ No newline at end of file diff --git a/testing/fixtures/vcr_cassettes/test_list_summary/list_summary_page/teardown.yaml b/testing/fixtures/vcr_cassettes/test_list_summary/list_summary_page/teardown.yaml deleted file mode 100644 index 6087668..0000000 --- a/testing/fixtures/vcr_cassettes/test_list_summary/list_summary_page/teardown.yaml +++ /dev/null @@ -1,245 +0,0 @@ -{ - "version": 1, - "interactions": [ - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:36 GMT" - ], - "content-length": [ - "399" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 1, \"entries\": [{\"self_link\": \"http://localhost:9001/3.0/lists/foo.example.com\", \"fqdn_listname\": \"foo@example.com\", \"volume\": 1, \"mail_host\": \"example.com\", \"http_etag\": \"\\\"698a819bbb6b902096a8c5543cc7fac2328960d5\\\"\", \"member_count\": 0, \"list_name\": \"foo\", \"display_name\": \"Foo\", \"list_id\": \"foo.example.com\"}], \"start\": 0, \"http_etag\": \"\\\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\\\"\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo.example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:36 GMT" - ], - "content-length": [ - "294" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"self_link\": \"http://localhost:9001/3.0/lists/foo.example.com\", \"fqdn_listname\": \"foo@example.com\", \"volume\": 1, \"mail_host\": \"example.com\", \"http_etag\": \"\\\"698a819bbb6b902096a8c5543cc7fac2328960d5\\\"\", \"member_count\": 0, \"list_name\": \"foo\", \"display_name\": \"Foo\", \"list_id\": \"foo.example.com\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "DELETE", - "uri": "http://localhost:9001/3.0/lists/foo@example.com" - }, - "response": { - "status": { - "message": "No Content", - "code": 204 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:36 GMT" - ], - "content-length": [ - "0" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:36 GMT" - ], - "content-length": [ - "399" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"total_size\": 1, \"entries\": [{\"self_link\": \"http://localhost:9001/3.0/lists/foo.example.com\", \"fqdn_listname\": \"foo@example.com\", \"volume\": 1, \"mail_host\": \"example.com\", \"http_etag\": \"\\\"698a819bbb6b902096a8c5543cc7fac2328960d5\\\"\", \"member_count\": 0, \"list_name\": \"foo\", \"display_name\": \"Foo\", \"list_id\": \"foo.example.com\"}], \"start\": 0, \"http_etag\": \"\\\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\\\"\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "GET", - "uri": "http://localhost:9001/3.0/lists/foo.example.com" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:36 GMT" - ], - "content-length": [ - "294" - ], - "content-type": [ - "application/json; charset=utf-8" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "{\"self_link\": \"http://localhost:9001/3.0/lists/foo.example.com\", \"fqdn_listname\": \"foo@example.com\", \"volume\": 1, \"mail_host\": \"example.com\", \"http_etag\": \"\\\"698a819bbb6b902096a8c5543cc7fac2328960d5\\\"\", \"member_count\": 0, \"list_name\": \"foo\", \"display_name\": \"Foo\", \"list_id\": \"foo.example.com\"}" - } - } - }, - { - "request": { - "body": null, - "headers": { - "accept-encoding": [ - "gzip, deflate" - ], - "authorization": [ - "Basic cmVzdGFkbWluOnJlc3RwYXNz" - ], - "user-agent": [ - "GNU Mailman REST client v1.0.0b1" - ] - }, - "method": "DELETE", - "uri": "http://localhost:9001/3.0/lists/foo@example.com" - }, - "response": { - "status": { - "message": "No Content", - "code": 204 - }, - "headers": { - "date": [ - "Mon, 26 Jan 2015 08:25:36 GMT" - ], - "content-length": [ - "0" - ], - "server": [ - "WSGIServer/0.2 CPython/3.4.2" - ] - }, - "body": { - "string": "" - } - } - } - ] -} \ No newline at end of file