diff --git a/src/postorius/doc/development.rst b/src/postorius/doc/development.rst index 2fd8e4d..23932bc 100644 --- a/src/postorius/doc/development.rst +++ b/src/postorius/doc/development.rst @@ -49,14 +49,26 @@ A lot of Postorius' code involves calls to Mailman's REST API (through the mailman.client library). Running these tests against a real instance -of Mailman would be bad practice and slow, so ``vcrpy`` fixtures are +of Mailman would be bad practice and slow, so ``vcrpy`` *cassettes* are used instead. See the `vcrpy Documentation`_ for details. .. _`vcrpy Documentation`: https://github.com/kevin1024/vcrpy If you write new tests, it's advisable to add a separate fixture file for each test case, so the cached responses don't interfere with other -tests. +tests. The cassette files are stored in the +``tests/fixtures/vcr_cassettes`` directory. + + +Re-Recording all vcrpy cassettes +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +- Remove all cassette files +- Start Mailman with a clean db in devmode with the API port set to 9001 + in mailman.cfg +- Set ``VCR_RECORD_MODE`` to 'all' in ``testing/test_settings.py`` +- Run ``tox`` +- Set ``VCR_RECORD_MODE`` to 'once' in ``testing/test_settings.py`` View Auth diff --git a/src/postorius/tests/__init__.py b/src/postorius/tests/__init__.py index 273ad15..5e822fb 100644 --- a/src/postorius/tests/__init__.py +++ b/src/postorius/tests/__init__.py @@ -25,6 +25,5 @@ FIXTURES_DIR = os.path.join(TEST_DIR, 'fixtures', 'vcr_cassettes') -MM_VCR = vcr.VCR(serializer='json', - cassette_library_dir=FIXTURES_DIR, - match_on=['uri', 'method']) +MM_VCR = vcr.VCR(cassette_library_dir=FIXTURES_DIR, + record_mode=getattr(settings, 'VCR_RECORD_MODE', 'once')) diff --git a/src/postorius/tests/fixtures/vcr_cassettes/list_members_access.yaml b/src/postorius/tests/fixtures/vcr_cassettes/list_members_access.yaml index bf86c9b..7b3430f 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/list_members_access.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/list_members_access.yaml @@ -1,2018 +1,979 @@ -{ - "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 +interactions: +- request: + body: mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode 'Domain exists'} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:03 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:03 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:03 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=foo%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:39:03 GMT'] + location: ['http://localhost:9001/3.0/lists/foo.example.com'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": + 0, "mail_host": "example.com", "list_name": "foo"}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:03 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: subscriber=owner%40example.com&role=owner&list_id=foo.example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/members + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:39:03 GMT'] + location: ['http://localhost:9001/3.0/members/177648799332121681565366744219184794528'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: subscriber=moderator%40example.com&role=moderator&list_id=foo.example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/members + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:39:03 GMT'] + location: ['http://localhost:9001/3.0/members/329995626499505693893066661664512313632'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode 'Domain exists'} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:04 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:04 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:04 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=foo%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:05 GMT'] + location: ['http://localhost:9001/3.0/lists/foo.example.com'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": + 0, "mail_host": "example.com", "list_name": "foo"}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:05 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: subscriber=owner%40example.com&role=owner&list_id=foo.example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/members + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:05 GMT'] + location: ['http://localhost:9001/3.0/members/329096182403103727726929795501203340845'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: subscriber=moderator%40example.com&role=moderator&list_id=foo.example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/members + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:05 GMT'] + location: ['http://localhost:9001/3.0/members/71811019820274498196637280482778629303'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:05 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 204, message: No Content} +- request: + body: mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode 'Domain exists'} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:06 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:06 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:06 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=foo%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:06 GMT'] + location: ['http://localhost:9001/3.0/lists/foo.example.com'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": + 0, "mail_host": "example.com", "list_name": "foo"}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:06 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: subscriber=owner%40example.com&role=owner&list_id=foo.example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/members + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:06 GMT'] + location: ['http://localhost:9001/3.0/members/217000428022394232304016046848504271195'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: subscriber=moderator%40example.com&role=moderator&list_id=foo.example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/members + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:06 GMT'] + location: ['http://localhost:9001/3.0/members/245381608243424917069593530211617477882'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:07 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 204, message: No Content} +- request: + body: mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode 'Domain exists'} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:07 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:07 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:07 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=foo%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:07 GMT'] + location: ['http://localhost:9001/3.0/lists/foo.example.com'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": + 0, "mail_host": "example.com", "list_name": "foo"}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:07 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: subscriber=owner%40example.com&role=owner&list_id=foo.example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/members + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:07 GMT'] + location: ['http://localhost:9001/3.0/members/67773378313803747898917364362928812772'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: subscriber=moderator%40example.com&role=moderator&list_id=foo.example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/members + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:07 GMT'] + location: ['http://localhost:9001/3.0/members/255578922070443897256905353368228136207'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:08 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 204, message: No Content} +- request: + body: mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode 'Domain exists'} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:09 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:09 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:09 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=foo%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:09 GMT'] + location: ['http://localhost:9001/3.0/lists/foo.example.com'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": + 0, "mail_host": "example.com", "list_name": "foo"}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:09 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: subscriber=owner%40example.com&role=owner&list_id=foo.example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/members + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:09 GMT'] + location: ['http://localhost:9001/3.0/members/176491632844981988673081716323513071510'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: subscriber=moderator%40example.com&role=moderator&list_id=foo.example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/members + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:09 GMT'] + location: ['http://localhost:9001/3.0/members/70280717948072590618438835956185041113'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": + 0, "mail_host": "example.com", "list_name": "foo"}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:09 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=25&page=1 + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:09 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"be0e4529b6112b55941cb223be2f5ca3af4f39e3\"", + "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "list_id": "foo.example.com", "http_etag": "\"6f732087bcd8d17b7f4060db5924ada5a3ff9dbc\"", + "delivery_mode": "regular", "email": "owner@example.com", "self_link": "http://localhost:9001/3.0/members/176491632844981988673081716323513071510", + "role": "owner", "user": "http://localhost:9001/3.0/users/33053400552422307362609732601039123688"}]}'} + headers: + content-length: ['511'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:09 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"5cc335736c19adee911346c8e670f17508d7efc4\"", + "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "list_id": "foo.example.com", "http_etag": "\"2f71b9bd67bd0895919cc92dd551d250318b0071\"", + "delivery_mode": "regular", "email": "moderator@example.com", "self_link": + "http://localhost:9001/3.0/members/70280717948072590618438835956185041113", + "role": "moderator", "user": "http://localhost:9001/3.0/users/215240810222150342870624384608044322976"}]}'} + headers: + content-length: ['523'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:10 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": + 0, "mail_host": "example.com", "list_name": "foo"}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:10 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"be0e4529b6112b55941cb223be2f5ca3af4f39e3\"", + "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "list_id": "foo.example.com", "http_etag": "\"6f732087bcd8d17b7f4060db5924ada5a3ff9dbc\"", + "delivery_mode": "regular", "email": "owner@example.com", "self_link": "http://localhost:9001/3.0/members/176491632844981988673081716323513071510", + "role": "owner", "user": "http://localhost:9001/3.0/users/33053400552422307362609732601039123688"}]}'} + headers: + content-length: ['511'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:10 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:10 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 204, message: No Content} +- request: + body: mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode 'Domain exists'} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:11 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:11 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:11 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=foo%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:11 GMT'] + location: ['http://localhost:9001/3.0/lists/foo.example.com'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": + 0, "mail_host": "example.com", "list_name": "foo"}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:11 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: subscriber=owner%40example.com&role=owner&list_id=foo.example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/members + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:11 GMT'] + location: ['http://localhost:9001/3.0/members/236739572539880485887392513726727350946'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: subscriber=moderator%40example.com&role=moderator&list_id=foo.example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/members + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:11 GMT'] + location: ['http://localhost:9001/3.0/members/59359066584506822945901420880964777332'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": + 0, "mail_host": "example.com", "list_name": "foo"}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:12 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=25&page=1 + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:12 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:12 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 204, message: No Content} +version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/list_members_page.yaml b/src/postorius/tests/fixtures/vcr_cassettes/list_members_page.yaml index 55d40f6..c2e16c3 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/list_members_page.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/list_members_page.yaml @@ -1,743 +1,470 @@ -{ - "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 +interactions: +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": + 0, "mail_host": "example.com", "list_name": "foo"}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:03 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=25&page=1 + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:03 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"370cc3da65a1f141a2382a77685d691a032762df\"", + "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "list_id": "foo.example.com", "http_etag": "\"d5aa109cbbb8808072becfcb45a4920381f4c10e\"", + "delivery_mode": "regular", "email": "owner@example.com", "self_link": "http://localhost:9001/3.0/members/177648799332121681565366744219184794528", + "role": "owner", "user": "http://localhost:9001/3.0/users/33053400552422307362609732601039123688"}]}'} + headers: + content-length: ['511'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:03 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"f8279fc39584e18dbde8e7b945f9f39ee7cb9a8a\"", + "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "list_id": "foo.example.com", "http_etag": "\"4b7aa1a598cfb7f1dcc71a69804667571788615f\"", + "delivery_mode": "regular", "email": "moderator@example.com", "self_link": + "http://localhost:9001/3.0/members/329995626499505693893066661664512313632", + "role": "moderator", "user": "http://localhost:9001/3.0/users/215240810222150342870624384608044322976"}]}'} + headers: + content-length: ['524'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:03 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": + 0, "mail_host": "example.com", "list_name": "foo"}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:03 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"370cc3da65a1f141a2382a77685d691a032762df\"", + "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "list_id": "foo.example.com", "http_etag": "\"d5aa109cbbb8808072becfcb45a4920381f4c10e\"", + "delivery_mode": "regular", "email": "owner@example.com", "self_link": "http://localhost:9001/3.0/members/177648799332121681565366744219184794528", + "role": "owner", "user": "http://localhost:9001/3.0/users/33053400552422307362609732601039123688"}]}'} + headers: + content-length: ['511'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:03 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": + 0, "mail_host": "example.com", "list_name": "foo"}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:05 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=25&page=1 + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:05 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"1ffb40c35858c87901e267bda6cc4485a0a777b3\"", + "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "list_id": "foo.example.com", "http_etag": "\"f77861185b05d7fb0b89675ada191ebeade284a0\"", + "delivery_mode": "regular", "email": "owner@example.com", "self_link": "http://localhost:9001/3.0/members/329096182403103727726929795501203340845", + "role": "owner", "user": "http://localhost:9001/3.0/users/33053400552422307362609732601039123688"}]}'} + headers: + content-length: ['511'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:05 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"3b12571ce0907a26981707ff09e864b7c5ea412e\"", + "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "list_id": "foo.example.com", "http_etag": "\"a1b133b08915baa45f4bbf86e288619ee0626756\"", + "delivery_mode": "regular", "email": "moderator@example.com", "self_link": + "http://localhost:9001/3.0/members/71811019820274498196637280482778629303", + "role": "moderator", "user": "http://localhost:9001/3.0/users/215240810222150342870624384608044322976"}]}'} + headers: + content-length: ['523'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:05 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": + 0, "mail_host": "example.com", "list_name": "foo"}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:05 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"1ffb40c35858c87901e267bda6cc4485a0a777b3\"", + "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "list_id": "foo.example.com", "http_etag": "\"f77861185b05d7fb0b89675ada191ebeade284a0\"", + "delivery_mode": "regular", "email": "owner@example.com", "self_link": "http://localhost:9001/3.0/members/329096182403103727726929795501203340845", + "role": "owner", "user": "http://localhost:9001/3.0/users/33053400552422307362609732601039123688"}]}'} + headers: + content-length: ['511'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:05 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": + 0, "mail_host": "example.com", "list_name": "foo"}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:06 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=25&page=1 + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:06 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"afa4fd6faf7612af66ca8908ebc18c0b91b07317\"", + "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "list_id": "foo.example.com", "http_etag": "\"bc415aba86bdb73ed4f783cdf2420ba13998f39d\"", + "delivery_mode": "regular", "email": "owner@example.com", "self_link": "http://localhost:9001/3.0/members/217000428022394232304016046848504271195", + "role": "owner", "user": "http://localhost:9001/3.0/users/33053400552422307362609732601039123688"}]}'} + headers: + content-length: ['511'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:06 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"2921c3695dc9f0dae17f09f6039d7fc881e2190e\"", + "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "list_id": "foo.example.com", "http_etag": "\"a27aad7ed6e7d1cd182cd94dca3e4045fe62b058\"", + "delivery_mode": "regular", "email": "moderator@example.com", "self_link": + "http://localhost:9001/3.0/members/245381608243424917069593530211617477882", + "role": "moderator", "user": "http://localhost:9001/3.0/users/215240810222150342870624384608044322976"}]}'} + headers: + content-length: ['524'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:06 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"afa4fd6faf7612af66ca8908ebc18c0b91b07317\"", + "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "list_id": "foo.example.com", "http_etag": "\"bc415aba86bdb73ed4f783cdf2420ba13998f39d\"", + "delivery_mode": "regular", "email": "owner@example.com", "self_link": "http://localhost:9001/3.0/members/217000428022394232304016046848504271195", + "role": "owner", "user": "http://localhost:9001/3.0/users/33053400552422307362609732601039123688"}]}'} + headers: + content-length: ['511'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:06 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"2921c3695dc9f0dae17f09f6039d7fc881e2190e\"", + "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "list_id": "foo.example.com", "http_etag": "\"a27aad7ed6e7d1cd182cd94dca3e4045fe62b058\"", + "delivery_mode": "regular", "email": "moderator@example.com", "self_link": + "http://localhost:9001/3.0/members/245381608243424917069593530211617477882", + "role": "moderator", "user": "http://localhost:9001/3.0/users/215240810222150342870624384608044322976"}]}'} + headers: + content-length: ['524'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:06 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": + 0, "mail_host": "example.com", "list_name": "foo"}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:08 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=25&page=1 + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:08 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"8a8824e047832d03e7bdb3c51621330519330557\"", + "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "list_id": "foo.example.com", "http_etag": "\"2e2477f83fa4867189488f4b7d1d9b1d315f20f4\"", + "delivery_mode": "regular", "email": "owner@example.com", "self_link": "http://localhost:9001/3.0/members/67773378313803747898917364362928812772", + "role": "owner", "user": "http://localhost:9001/3.0/users/33053400552422307362609732601039123688"}]}'} + headers: + content-length: ['510'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:08 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"ac81269a5766924e88cd550d4278db46cc8f671b\"", + "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "list_id": "foo.example.com", "http_etag": "\"49a1e24878389367a692c66e3eba972dc94307b4\"", + "delivery_mode": "regular", "email": "moderator@example.com", "self_link": + "http://localhost:9001/3.0/members/255578922070443897256905353368228136207", + "role": "moderator", "user": "http://localhost:9001/3.0/users/215240810222150342870624384608044322976"}]}'} + headers: + content-length: ['524'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:08 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"8a8824e047832d03e7bdb3c51621330519330557\"", + "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "list_id": "foo.example.com", "http_etag": "\"2e2477f83fa4867189488f4b7d1d9b1d315f20f4\"", + "delivery_mode": "regular", "email": "owner@example.com", "self_link": "http://localhost:9001/3.0/members/67773378313803747898917364362928812772", + "role": "owner", "user": "http://localhost:9001/3.0/users/33053400552422307362609732601039123688"}]}'} + headers: + content-length: ['510'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:08 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"ac81269a5766924e88cd550d4278db46cc8f671b\"", + "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "list_id": "foo.example.com", "http_etag": "\"49a1e24878389367a692c66e3eba972dc94307b4\"", + "delivery_mode": "regular", "email": "moderator@example.com", "self_link": + "http://localhost:9001/3.0/members/255578922070443897256905353368228136207", + "role": "moderator", "user": "http://localhost:9001/3.0/users/215240810222150342870624384608044322976"}]}'} + headers: + content-length: ['524'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:08 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_index/list_index_page/list_index_contains_one_list.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_index/list_index_page/list_index_contains_one_list.yaml index 61cdc30..e16f7bb 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_index/list_index_page/list_index_contains_one_list.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_index/list_index_page/list_index_contains_one_list.yaml @@ -1,251 +1,342 @@ -{ - "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 +interactions: +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "total_size": 1, "entries": [{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": + 0, "mail_host": "example.com", "list_name": "foo"}]}'} + headers: + content-length: ['399'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:02 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": + 0, "mail_host": "example.com", "list_name": "foo"}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:02 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"digest_last_sent_at": null, "scheme": "http", + "next_digest_number": 1, "first_strip_reply_to": false, "reply_to_address": + "", "convert_html_to_plaintext": false, "administrivia": true, "owner_address": + "foo-owner@example.com", "admin_notify_mchanges": false, "display_name": "Foo", + "created_at": "2015-02-09T21:39:02.359194", "posting_address": "foo@example.com", + "http_etag": "\"b2d9021c9ef73235a56e396db72c0443b8ac28fd\"", "default_member_action": + "defer", "fqdn_listname": "foo@example.com", "archive_policy": "public", "list_name": + "foo", "filter_content": false, "welcome_message_uri": "mailman:///welcome.txt", + "no_reply_address": "noreply@example.com", "autoresponse_request_text": "", + "digest_size_threshold": 30.0, "acceptable_aliases": [], "anonymous_list": + false, "default_nonmember_action": "hold", "autoresponse_grace_period": "90d", + "advertised": true, "autorespond_owner": "none", "volume": 1, "include_rfc2369_headers": + true, "posting_pipeline": "default-posting-pipeline", "send_welcome_message": + true, "request_address": "foo-request@example.com", "subject_prefix": "[Foo] + ", "bounces_address": "foo-bounces@example.com", "description": "", "web_host": + "example.com", "autoresponse_postings_text": "", "last_post_at": null, "autorespond_requests": + "none", "allow_list_posts": true, "join_address": "foo-join@example.com", + "autoresponse_owner_text": "", "autorespond_postings": "none", "reply_goes_to_list": + "no_munging", "post_id": 1, "collapse_alternatives": true, "admin_immed_notify": + true, "mail_host": "example.com", "leave_address": "foo-leave@example.com"}'} + headers: + content-length: ['1583'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:02 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"ada6297bd60e6fc8b625d4f706d34d3925737a14\"", + "total_size": 2, "entries": [{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}, {"description": + null, "url_host": "example.org", "base_url": "http://example.org", "contact_address": + "postmaster@example.org", "mail_host": "example.org", "self_link": "http://localhost:9001/3.0/domains/example.org", + "http_etag": "\"730f23a7a90aecfe1248f952d15bcfe97ce9e51f\""}]}'} + headers: + content-length: ['663'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:02 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:02 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.org + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.org", + "base_url": "http://example.org", "contact_address": "postmaster@example.org", + "mail_host": "example.org", "self_link": "http://localhost:9001/3.0/domains/example.org", + "http_etag": "\"730f23a7a90aecfe1248f952d15bcfe97ce9e51f\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:02 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"digest_last_sent_at": null, "scheme": "http", + "next_digest_number": 1, "first_strip_reply_to": false, "reply_to_address": + "", "convert_html_to_plaintext": false, "administrivia": true, "owner_address": + "foo-owner@example.com", "admin_notify_mchanges": false, "display_name": "Foo", + "created_at": "2015-02-09T21:39:02.359194", "posting_address": "foo@example.com", + "http_etag": "\"b2d9021c9ef73235a56e396db72c0443b8ac28fd\"", "default_member_action": + "defer", "fqdn_listname": "foo@example.com", "archive_policy": "public", "list_name": + "foo", "filter_content": false, "welcome_message_uri": "mailman:///welcome.txt", + "no_reply_address": "noreply@example.com", "autoresponse_request_text": "", + "digest_size_threshold": 30.0, "acceptable_aliases": [], "anonymous_list": + false, "default_nonmember_action": "hold", "autoresponse_grace_period": "90d", + "advertised": true, "autorespond_owner": "none", "volume": 1, "include_rfc2369_headers": + true, "posting_pipeline": "default-posting-pipeline", "send_welcome_message": + true, "request_address": "foo-request@example.com", "subject_prefix": "[Foo] + ", "bounces_address": "foo-bounces@example.com", "description": "", "web_host": + "example.com", "autoresponse_postings_text": "", "last_post_at": null, "autorespond_requests": + "none", "allow_list_posts": true, "join_address": "foo-join@example.com", + "autoresponse_owner_text": "", "autorespond_postings": "none", "reply_goes_to_list": + "no_munging", "post_id": 1, "collapse_alternatives": true, "admin_immed_notify": + true, "mail_host": "example.com", "leave_address": "foo-leave@example.com"}'} + headers: + content-length: ['1583'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:02 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "total_size": 1, "entries": [{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": + 0, "mail_host": "example.com", "list_name": "foo"}]}'} + headers: + content-length: ['399'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:03 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": + 0, "mail_host": "example.com", "list_name": "foo"}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:03 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"digest_last_sent_at": null, "scheme": "http", + "next_digest_number": 1, "first_strip_reply_to": false, "reply_to_address": + "", "convert_html_to_plaintext": false, "administrivia": true, "owner_address": + "foo-owner@example.com", "admin_notify_mchanges": false, "display_name": "Foo", + "created_at": "2015-02-09T21:41:03.642356", "posting_address": "foo@example.com", + "http_etag": "\"52df79043d36d282bf79e4898552a9c4d6941912\"", "default_member_action": + "defer", "fqdn_listname": "foo@example.com", "archive_policy": "public", "list_name": + "foo", "filter_content": false, "welcome_message_uri": "mailman:///welcome.txt", + "no_reply_address": "noreply@example.com", "autoresponse_request_text": "", + "digest_size_threshold": 30.0, "acceptable_aliases": [], "anonymous_list": + false, "default_nonmember_action": "hold", "autoresponse_grace_period": "90d", + "advertised": true, "autorespond_owner": "none", "volume": 1, "include_rfc2369_headers": + true, "posting_pipeline": "default-posting-pipeline", "send_welcome_message": + true, "request_address": "foo-request@example.com", "subject_prefix": "[Foo] + ", "bounces_address": "foo-bounces@example.com", "description": "", "web_host": + "example.com", "autoresponse_postings_text": "", "last_post_at": null, "autorespond_requests": + "none", "allow_list_posts": true, "join_address": "foo-join@example.com", + "autoresponse_owner_text": "", "autorespond_postings": "none", "reply_goes_to_list": + "no_munging", "post_id": 1, "collapse_alternatives": true, "admin_immed_notify": + true, "mail_host": "example.com", "leave_address": "foo-leave@example.com"}'} + headers: + content-length: ['1583'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:03 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"ada6297bd60e6fc8b625d4f706d34d3925737a14\"", + "total_size": 2, "entries": [{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}, {"description": + null, "url_host": "example.org", "base_url": "http://example.org", "contact_address": + "postmaster@example.org", "mail_host": "example.org", "self_link": "http://localhost:9001/3.0/domains/example.org", + "http_etag": "\"730f23a7a90aecfe1248f952d15bcfe97ce9e51f\""}]}'} + headers: + content-length: ['663'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:03 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:03 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.org + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.org", + "base_url": "http://example.org", "contact_address": "postmaster@example.org", + "mail_host": "example.org", "self_link": "http://localhost:9001/3.0/domains/example.org", + "http_etag": "\"730f23a7a90aecfe1248f952d15bcfe97ce9e51f\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:03 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"digest_last_sent_at": null, "scheme": "http", + "next_digest_number": 1, "first_strip_reply_to": false, "reply_to_address": + "", "convert_html_to_plaintext": false, "administrivia": true, "owner_address": + "foo-owner@example.com", "admin_notify_mchanges": false, "display_name": "Foo", + "created_at": "2015-02-09T21:41:03.642356", "posting_address": "foo@example.com", + "http_etag": "\"52df79043d36d282bf79e4898552a9c4d6941912\"", "default_member_action": + "defer", "fqdn_listname": "foo@example.com", "archive_policy": "public", "list_name": + "foo", "filter_content": false, "welcome_message_uri": "mailman:///welcome.txt", + "no_reply_address": "noreply@example.com", "autoresponse_request_text": "", + "digest_size_threshold": 30.0, "acceptable_aliases": [], "anonymous_list": + false, "default_nonmember_action": "hold", "autoresponse_grace_period": "90d", + "advertised": true, "autorespond_owner": "none", "volume": 1, "include_rfc2369_headers": + true, "posting_pipeline": "default-posting-pipeline", "send_welcome_message": + true, "request_address": "foo-request@example.com", "subject_prefix": "[Foo] + ", "bounces_address": "foo-bounces@example.com", "description": "", "web_host": + "example.com", "autoresponse_postings_text": "", "last_post_at": null, "autorespond_requests": + "none", "allow_list_posts": true, "join_address": "foo-join@example.com", + "autoresponse_owner_text": "", "autorespond_postings": "none", "reply_goes_to_list": + "no_munging", "post_id": 1, "collapse_alternatives": true, "admin_immed_notify": + true, "mail_host": "example.com", "leave_address": "foo-leave@example.com"}'} + headers: + content-length: ['1583'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:03 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_index/list_index_page/setup.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_index/list_index_page/setup.yaml index f97ac35..72a5fc1 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_index/list_index_page/setup.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_index/list_index_page/setup.yaml @@ -1,134 +1,146 @@ -{ - "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 +interactions: +- request: + body: mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode 'Domain exists'} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:02 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:02 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:02 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=foo%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:39:02 GMT'] + location: ['http://localhost:9001/3.0/lists/foo.example.com'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode 'Domain exists'} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:03 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:03 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:03 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=foo%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:03 GMT'] + location: ['http://localhost:9001/3.0/lists/foo.example.com'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_index/list_index_page/teardown.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_index/list_index_page/teardown.yaml index 93e9272..dd7d7aa 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_index/list_index_page/teardown.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_index/list_index_page/teardown.yaml @@ -1,125 +1,110 @@ -{ - "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 +interactions: +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "total_size": 1, "entries": [{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": + 0, "mail_host": "example.com", "list_name": "foo"}]}'} + headers: + content-length: ['399'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:02 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": + 0, "mail_host": "example.com", "list_name": "foo"}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:02 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:39:02 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "total_size": 1, "entries": [{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": + 0, "mail_host": "example.com", "list_name": "foo"}]}'} + headers: + content-length: ['399'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:04 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": + 0, "mail_host": "example.com", "list_name": "foo"}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:04 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:04 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 204, message: No Content} +version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members/add_moderator_setup.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members/add_moderator_setup.yaml index 367720e..c767c68 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members/add_moderator_setup.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members/add_moderator_setup.yaml @@ -1,465 +1,394 @@ -{ - "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 +interactions: +- request: + body: mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode 'Domain exists'} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:02 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:02 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:02 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=foo%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:39:02 GMT'] + location: ['http://localhost:9001/3.0/lists/foo.example.com'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": + 0, "mail_host": "example.com", "list_name": "foo"}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:03 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=25&page=1 + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:03 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:03 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:03 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: subscriber=newmod%40example.com&role=moderator&list_id=foo.example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/members + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:39:03 GMT'] + location: ['http://localhost:9001/3.0/members/199324285054835647433873267170287937248'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:03 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"5dc6aa6830d9bde962b6459452c6bea19ecd9b28\"", + "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/newmod@example.com", + "list_id": "foo.example.com", "http_etag": "\"99cbd443005c7ccc550446c454f28d2facea9ff0\"", + "delivery_mode": "regular", "email": "newmod@example.com", "self_link": "http://localhost:9001/3.0/members/199324285054835647433873267170287937248", + "role": "moderator", "user": "http://localhost:9001/3.0/users/219548507436655030397270575671136077291"}]}'} + headers: + content-length: ['518'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:03 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode 'Domain exists'} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:04 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:04 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:04 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=foo%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:04 GMT'] + location: ['http://localhost:9001/3.0/lists/foo.example.com'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": + 0, "mail_host": "example.com", "list_name": "foo"}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:04 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=25&page=1 + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:04 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:04 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:04 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: subscriber=newmod%40example.com&role=moderator&list_id=foo.example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/members + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:04 GMT'] + location: ['http://localhost:9001/3.0/members/325690135860390078965733464571147603169'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:04 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"eaaf84bcb954f185e66d6bdd3f31291b7a58fecf\"", + "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/newmod@example.com", + "list_id": "foo.example.com", "http_etag": "\"14db5ab1b3821b866642b1f9849bd3bc8bdd6c3e\"", + "delivery_mode": "regular", "email": "newmod@example.com", "self_link": "http://localhost:9001/3.0/members/325690135860390078965733464571147603169", + "role": "moderator", "user": "http://localhost:9001/3.0/users/219548507436655030397270575671136077291"}]}'} + headers: + content-length: ['518'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:04 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members/add_moderator_teardown.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members/add_moderator_teardown.yaml index 50e931a..fd29956 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members/add_moderator_teardown.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members/add_moderator_teardown.yaml @@ -1,84 +1,70 @@ -{ - "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 +interactions: +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": + 0, "mail_host": "example.com", "list_name": "foo"}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:03 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:39:03 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": + 0, "mail_host": "example.com", "list_name": "foo"}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:04 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:04 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 204, message: No Content} +version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members/new_moderator_added.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members/new_moderator_added.yaml index e7e8588..b9e1250 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members/new_moderator_added.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members/new_moderator_added.yaml @@ -1,46 +1,42 @@ -{ - "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 +interactions: +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"5dc6aa6830d9bde962b6459452c6bea19ecd9b28\"", + "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/newmod@example.com", + "list_id": "foo.example.com", "http_etag": "\"99cbd443005c7ccc550446c454f28d2facea9ff0\"", + "delivery_mode": "regular", "email": "newmod@example.com", "self_link": "http://localhost:9001/3.0/members/199324285054835647433873267170287937248", + "role": "moderator", "user": "http://localhost:9001/3.0/users/219548507436655030397270575671136077291"}]}'} + headers: + content-length: ['518'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:03 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"eaaf84bcb954f185e66d6bdd3f31291b7a58fecf\"", + "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/newmod@example.com", + "list_id": "foo.example.com", "http_etag": "\"14db5ab1b3821b866642b1f9849bd3bc8bdd6c3e\"", + "delivery_mode": "regular", "email": "newmod@example.com", "self_link": "http://localhost:9001/3.0/members/325690135860390078965733464571147603169", + "role": "moderator", "user": "http://localhost:9001/3.0/users/219548507436655030397270575671136077291"}]}'} + headers: + content-length: ['518'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:04 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_metrics/list_metrics.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_metrics/list_metrics.yaml index 36e5185..75bb115 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_metrics/list_metrics.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_metrics/list_metrics.yaml @@ -1,825 +1,528 @@ -{ - "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 +interactions: +- request: + body: mail_host=example.org + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode 'Domain exists'} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:04 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.org + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.org", + "base_url": "http://example.org", "contact_address": "postmaster@example.org", + "mail_host": "example.org", "self_link": "http://localhost:9001/3.0/domains/example.org", + "http_etag": "\"730f23a7a90aecfe1248f952d15bcfe97ce9e51f\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:04 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.org + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.org", + "base_url": "http://example.org", "contact_address": "postmaster@example.org", + "mail_host": "example.org", "self_link": "http://localhost:9001/3.0/domains/example.org", + "http_etag": "\"730f23a7a90aecfe1248f952d15bcfe97ce9e51f\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:04 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=test%40example.org + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:39:04 GMT'] + location: ['http://localhost:9001/3.0/lists/test.example.org'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/test@example.org + response: + body: {string: !!python/unicode '{"display_name": "Test", "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\"", + "self_link": "http://localhost:9001/3.0/lists/test.example.org", "volume": + 1, "fqdn_listname": "test@example.org", "list_id": "test.example.org", "member_count": + 0, "mail_host": "example.org", "list_name": "test"}'} + headers: + content-length: ['299'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:04 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: mail_host=example.org + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode 'Domain exists'} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:13 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.org + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.org", + "base_url": "http://example.org", "contact_address": "postmaster@example.org", + "mail_host": "example.org", "self_link": "http://localhost:9001/3.0/domains/example.org", + "http_etag": "\"730f23a7a90aecfe1248f952d15bcfe97ce9e51f\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:13 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.org + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.org", + "base_url": "http://example.org", "contact_address": "postmaster@example.org", + "mail_host": "example.org", "self_link": "http://localhost:9001/3.0/domains/example.org", + "http_etag": "\"730f23a7a90aecfe1248f952d15bcfe97ce9e51f\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:13 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=test%40example.org + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:13 GMT'] + location: ['http://localhost:9001/3.0/lists/test.example.org'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/test@example.org + response: + body: {string: !!python/unicode '{"display_name": "Test", "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\"", + "self_link": "http://localhost:9001/3.0/lists/test.example.org", "volume": + 1, "fqdn_listname": "test@example.org", "list_id": "test.example.org", "member_count": + 0, "mail_host": "example.org", "list_name": "test"}'} + headers: + content-length: ['299'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:13 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/test@example.org + response: + body: {string: !!python/unicode '{"display_name": "Test", "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\"", + "self_link": "http://localhost:9001/3.0/lists/test.example.org", "volume": + 1, "fqdn_listname": "test@example.org", "list_id": "test.example.org", "member_count": + 0, "mail_host": "example.org", "list_name": "test"}'} + headers: + content-length: ['299'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:13 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/test.example.org/roster/owner + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:13 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/test.example.org/roster/moderator + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:13 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/test@example.org/config + response: + body: {string: !!python/unicode '{"digest_last_sent_at": null, "scheme": "http", + "next_digest_number": 1, "first_strip_reply_to": false, "reply_to_address": + "", "convert_html_to_plaintext": false, "administrivia": true, "owner_address": + "test-owner@example.org", "admin_notify_mchanges": false, "display_name": + "Test", "created_at": "2015-02-09T21:41:13.137844", "posting_address": "test@example.org", + "http_etag": "\"c7b29b9aaeb5c2e69a488fe75511276978208dd6\"", "default_member_action": + "defer", "fqdn_listname": "test@example.org", "archive_policy": "public", + "list_name": "test", "filter_content": false, "welcome_message_uri": "mailman:///welcome.txt", + "no_reply_address": "noreply@example.org", "autoresponse_request_text": "", + "digest_size_threshold": 30.0, "acceptable_aliases": [], "anonymous_list": + false, "default_nonmember_action": "hold", "autoresponse_grace_period": "90d", + "advertised": true, "autorespond_owner": "none", "volume": 1, "include_rfc2369_headers": + true, "posting_pipeline": "default-posting-pipeline", "send_welcome_message": + true, "request_address": "test-request@example.org", "subject_prefix": "[Test] + ", "bounces_address": "test-bounces@example.org", "description": "", "web_host": + "example.org", "autoresponse_postings_text": "", "last_post_at": null, "autorespond_requests": + "none", "allow_list_posts": true, "join_address": "test-join@example.org", + "autoresponse_owner_text": "", "autorespond_postings": "none", "reply_goes_to_list": + "no_munging", "post_id": 1, "collapse_alternatives": true, "admin_immed_notify": + true, "mail_host": "example.org", "leave_address": "test-leave@example.org"}'} + headers: + content-length: ['1593'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:13 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/test@example.org/config + response: + body: {string: !!python/unicode '{"digest_last_sent_at": null, "scheme": "http", + "next_digest_number": 1, "first_strip_reply_to": false, "reply_to_address": + "", "convert_html_to_plaintext": false, "administrivia": true, "owner_address": + "test-owner@example.org", "admin_notify_mchanges": false, "display_name": + "Test", "created_at": "2015-02-09T21:41:13.137844", "posting_address": "test@example.org", + "http_etag": "\"c7b29b9aaeb5c2e69a488fe75511276978208dd6\"", "default_member_action": + "defer", "fqdn_listname": "test@example.org", "archive_policy": "public", + "list_name": "test", "filter_content": false, "welcome_message_uri": "mailman:///welcome.txt", + "no_reply_address": "noreply@example.org", "autoresponse_request_text": "", + "digest_size_threshold": 30.0, "acceptable_aliases": [], "anonymous_list": + false, "default_nonmember_action": "hold", "autoresponse_grace_period": "90d", + "advertised": true, "autorespond_owner": "none", "volume": 1, "include_rfc2369_headers": + true, "posting_pipeline": "default-posting-pipeline", "send_welcome_message": + true, "request_address": "test-request@example.org", "subject_prefix": "[Test] + ", "bounces_address": "test-bounces@example.org", "description": "", "web_host": + "example.org", "autoresponse_postings_text": "", "last_post_at": null, "autorespond_requests": + "none", "allow_list_posts": true, "join_address": "test-join@example.org", + "autoresponse_owner_text": "", "autorespond_postings": "none", "reply_goes_to_list": + "no_munging", "post_id": 1, "collapse_alternatives": true, "admin_immed_notify": + true, "mail_host": "example.org", "leave_address": "test-leave@example.org"}'} + headers: + content-length: ['1593'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:13 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/test@example.org/config + response: + body: {string: !!python/unicode '{"digest_last_sent_at": null, "scheme": "http", + "next_digest_number": 1, "first_strip_reply_to": false, "reply_to_address": + "", "convert_html_to_plaintext": false, "administrivia": true, "owner_address": + "test-owner@example.org", "admin_notify_mchanges": false, "display_name": + "Test", "created_at": "2015-02-09T21:41:13.137844", "posting_address": "test@example.org", + "http_etag": "\"c7b29b9aaeb5c2e69a488fe75511276978208dd6\"", "default_member_action": + "defer", "fqdn_listname": "test@example.org", "archive_policy": "public", + "list_name": "test", "filter_content": false, "welcome_message_uri": "mailman:///welcome.txt", + "no_reply_address": "noreply@example.org", "autoresponse_request_text": "", + "digest_size_threshold": 30.0, "acceptable_aliases": [], "anonymous_list": + false, "default_nonmember_action": "hold", "autoresponse_grace_period": "90d", + "advertised": true, "autorespond_owner": "none", "volume": 1, "include_rfc2369_headers": + true, "posting_pipeline": "default-posting-pipeline", "send_welcome_message": + true, "request_address": "test-request@example.org", "subject_prefix": "[Test] + ", "bounces_address": "test-bounces@example.org", "description": "", "web_host": + "example.org", "autoresponse_postings_text": "", "last_post_at": null, "autorespond_requests": + "none", "allow_list_posts": true, "join_address": "test-join@example.org", + "autoresponse_owner_text": "", "autorespond_postings": "none", "reply_goes_to_list": + "no_munging", "post_id": 1, "collapse_alternatives": true, "admin_immed_notify": + true, "mail_host": "example.org", "leave_address": "test-leave@example.org"}'} + headers: + content-length: ['1593'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:13 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/test@example.org/config + response: + body: {string: !!python/unicode '{"digest_last_sent_at": null, "scheme": "http", + "next_digest_number": 1, "first_strip_reply_to": false, "reply_to_address": + "", "convert_html_to_plaintext": false, "administrivia": true, "owner_address": + "test-owner@example.org", "admin_notify_mchanges": false, "display_name": + "Test", "created_at": "2015-02-09T21:41:13.137844", "posting_address": "test@example.org", + "http_etag": "\"c7b29b9aaeb5c2e69a488fe75511276978208dd6\"", "default_member_action": + "defer", "fqdn_listname": "test@example.org", "archive_policy": "public", + "list_name": "test", "filter_content": false, "welcome_message_uri": "mailman:///welcome.txt", + "no_reply_address": "noreply@example.org", "autoresponse_request_text": "", + "digest_size_threshold": 30.0, "acceptable_aliases": [], "anonymous_list": + false, "default_nonmember_action": "hold", "autoresponse_grace_period": "90d", + "advertised": true, "autorespond_owner": "none", "volume": 1, "include_rfc2369_headers": + true, "posting_pipeline": "default-posting-pipeline", "send_welcome_message": + true, "request_address": "test-request@example.org", "subject_prefix": "[Test] + ", "bounces_address": "test-bounces@example.org", "description": "", "web_host": + "example.org", "autoresponse_postings_text": "", "last_post_at": null, "autorespond_requests": + "none", "allow_list_posts": true, "join_address": "test-join@example.org", + "autoresponse_owner_text": "", "autorespond_postings": "none", "reply_goes_to_list": + "no_munging", "post_id": 1, "collapse_alternatives": true, "admin_immed_notify": + true, "mail_host": "example.org", "leave_address": "test-leave@example.org"}'} + headers: + content-length: ['1593'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:13 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/lists/test@example.org + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:13 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/domains/example.org + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:13 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 204, message: No Content} +- request: + body: mail_host=example.org + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:14 GMT'] + location: ['http://localhost:9001/3.0/domains/example.org'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.org + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.org", + "base_url": "http://example.org", "contact_address": "postmaster@example.org", + "mail_host": "example.org", "self_link": "http://localhost:9001/3.0/domains/example.org", + "http_etag": "\"730f23a7a90aecfe1248f952d15bcfe97ce9e51f\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:14 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=test%40example.org + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:14 GMT'] + location: ['http://localhost:9001/3.0/lists/test.example.org'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/test@example.org + response: + body: {string: !!python/unicode '{"display_name": "Test", "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\"", + "self_link": "http://localhost:9001/3.0/lists/test.example.org", "volume": + 1, "fqdn_listname": "test@example.org", "list_id": "test.example.org", "member_count": + 0, "mail_host": "example.org", "list_name": "test"}'} + headers: + content-length: ['299'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:14 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/test@example.org + response: + body: {string: !!python/unicode '{"display_name": "Test", "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\"", + "self_link": "http://localhost:9001/3.0/lists/test.example.org", "volume": + 1, "fqdn_listname": "test@example.org", "list_id": "test.example.org", "member_count": + 0, "mail_host": "example.org", "list_name": "test"}'} + headers: + content-length: ['299'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:14 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/lists/test@example.org + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:14 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/domains/example.org + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:15 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 204, message: No Content} +version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_new/list_creation/new_list_created_with_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_new/list_creation/new_list_created_with_owner.yaml index 487eed3..f62cd2e 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_new/list_creation/new_list_created_with_owner.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_new/list_creation/new_list_created_with_owner.yaml @@ -1,462 +1,466 @@ -{ - "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 +interactions: +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"ada6297bd60e6fc8b625d4f706d34d3925737a14\"", + "total_size": 2, "entries": [{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}, {"description": + null, "url_host": "example.org", "base_url": "http://example.org", "contact_address": + "postmaster@example.org", "mail_host": "example.org", "self_link": "http://localhost:9001/3.0/domains/example.org", + "http_etag": "\"730f23a7a90aecfe1248f952d15bcfe97ce9e51f\""}]}'} + headers: + content-length: ['663'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:05 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:05 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.org + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.org", + "base_url": "http://example.org", "contact_address": "postmaster@example.org", + "mail_host": "example.org", "self_link": "http://localhost:9001/3.0/domains/example.org", + "http_etag": "\"730f23a7a90aecfe1248f952d15bcfe97ce9e51f\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:05 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:05 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:05 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=a_new_list%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:39:05 GMT'] + location: ['http://localhost:9001/3.0/lists/a_new_list.example.com'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/a_new_list.example.com + response: + body: {string: !!python/unicode '{"display_name": "A_new_list", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"", + "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", "volume": + 1, "fqdn_listname": "a_new_list@example.com", "list_id": "a_new_list.example.com", + "member_count": 0, "mail_host": "example.com", "list_name": "a_new_list"}'} + headers: + content-length: ['329'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:05 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: subscriber=owner%40example.com&role=owner&list_id=a_new_list.example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/members + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:39:05 GMT'] + location: ['http://localhost:9001/3.0/members/226977873750478148374189760046844001083'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/a_new_list@example.com/config + response: + body: {string: !!python/unicode '{"digest_last_sent_at": null, "scheme": "http", + "next_digest_number": 1, "first_strip_reply_to": false, "reply_to_address": + "", "convert_html_to_plaintext": false, "administrivia": true, "owner_address": + "a_new_list-owner@example.com", "admin_notify_mchanges": false, "display_name": + "A_new_list", "created_at": "2015-02-09T21:39:05.258432", "posting_address": + "a_new_list@example.com", "http_etag": "\"71227cfcd333cb14a68d11638c97ebcb8c0b5f39\"", + "default_member_action": "defer", "fqdn_listname": "a_new_list@example.com", + "archive_policy": "public", "list_name": "a_new_list", "filter_content": false, + "welcome_message_uri": "mailman:///welcome.txt", "no_reply_address": "noreply@example.com", + "autoresponse_request_text": "", "digest_size_threshold": 30.0, "acceptable_aliases": + [], "anonymous_list": false, "default_nonmember_action": "hold", "autoresponse_grace_period": + "90d", "advertised": true, "autorespond_owner": "none", "volume": 1, "include_rfc2369_headers": + true, "posting_pipeline": "default-posting-pipeline", "send_welcome_message": + true, "request_address": "a_new_list-request@example.com", "subject_prefix": + "[A_new_list] ", "bounces_address": "a_new_list-bounces@example.com", "description": + "", "web_host": "example.com", "autoresponse_postings_text": "", "last_post_at": + null, "autorespond_requests": "none", "allow_list_posts": true, "join_address": + "a_new_list-join@example.com", "autoresponse_owner_text": "", "autorespond_postings": + "none", "reply_goes_to_list": "no_munging", "post_id": 1, "collapse_alternatives": + true, "admin_immed_notify": true, "mail_host": "example.com", "leave_address": + "a_new_list-leave@example.com"}'} + headers: + content-length: ['1653'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:05 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: default_nonmember_action=hold&default_member_action=defer&admin_notify_mchanges=False&send_welcome_message=True&allow_list_posts=True&posting_pipeline=default-posting-pipeline&administrivia=True&filter_content=False&autorespond_owner=none&display_name=A_new_list&advertised=True&first_strip_reply_to=False&autoresponse_request_text=&description=A+new+list.&reply_to_address=&autoresponse_owner_text=&subject_prefix=%5BA_new_list%5D+&include_rfc2369_headers=True&convert_html_to_plaintext=False&anonymous_list=False&archive_policy=public&autorespond_postings=none&digest_size_threshold=30.0&autoresponse_grace_period=90d&reply_goes_to_list=no_munging&autorespond_requests=none&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&admin_immed_notify=True&autoresponse_postings_text=&collapse_alternatives=True + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'PATCH' + uri: http://localhost:9001/3.0/lists/a_new_list@example.com/config + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:39:05 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/a_new_list@example.com + response: + body: {string: !!python/unicode '{"display_name": "A_new_list", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"", + "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", "volume": + 1, "fqdn_listname": "a_new_list@example.com", "list_id": "a_new_list.example.com", + "member_count": 0, "mail_host": "example.com", "list_name": "a_new_list"}'} + headers: + content-length: ['329'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:05 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/a_new_list.example.com/roster/owner + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"a7012f722631e3104ce2ad391dfd090400674514\"", + "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "list_id": "a_new_list.example.com", "http_etag": "\"d86d3b285e7fde804e0959e276b5984b0ce17f9f\"", + "delivery_mode": "regular", "email": "owner@example.com", "self_link": "http://localhost:9001/3.0/members/226977873750478148374189760046844001083", + "role": "owner", "user": "http://localhost:9001/3.0/users/33053400552422307362609732601039123688"}]}'} + headers: + content-length: ['518'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:05 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"b4ea7109190ac24defea706a8fc8807090dabba4\"", + "total_size": 1, "entries": [{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}]}'} + headers: + content-length: ['383'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:15 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:15 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:15 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:15 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=a_new_list%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:15 GMT'] + location: ['http://localhost:9001/3.0/lists/a_new_list.example.com'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/a_new_list.example.com + response: + body: {string: !!python/unicode '{"display_name": "A_new_list", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"", + "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", "volume": + 1, "fqdn_listname": "a_new_list@example.com", "list_id": "a_new_list.example.com", + "member_count": 0, "mail_host": "example.com", "list_name": "a_new_list"}'} + headers: + content-length: ['329'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:15 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: subscriber=owner%40example.com&role=owner&list_id=a_new_list.example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/members + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:15 GMT'] + location: ['http://localhost:9001/3.0/members/28143965406037438169986764436672054161'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/a_new_list@example.com/config + response: + body: {string: !!python/unicode '{"digest_last_sent_at": null, "scheme": "http", + "next_digest_number": 1, "first_strip_reply_to": false, "reply_to_address": + "", "convert_html_to_plaintext": false, "administrivia": true, "owner_address": + "a_new_list-owner@example.com", "admin_notify_mchanges": false, "display_name": + "A_new_list", "created_at": "2015-02-09T21:41:15.515665", "posting_address": + "a_new_list@example.com", "http_etag": "\"986ccfbd4402fe9ce735e7379b2767aaea233bb4\"", + "default_member_action": "defer", "fqdn_listname": "a_new_list@example.com", + "archive_policy": "public", "list_name": "a_new_list", "filter_content": false, + "welcome_message_uri": "mailman:///welcome.txt", "no_reply_address": "noreply@example.com", + "autoresponse_request_text": "", "digest_size_threshold": 30.0, "acceptable_aliases": + [], "anonymous_list": false, "default_nonmember_action": "hold", "autoresponse_grace_period": + "90d", "advertised": true, "autorespond_owner": "none", "volume": 1, "include_rfc2369_headers": + true, "posting_pipeline": "default-posting-pipeline", "send_welcome_message": + true, "request_address": "a_new_list-request@example.com", "subject_prefix": + "[A_new_list] ", "bounces_address": "a_new_list-bounces@example.com", "description": + "", "web_host": "example.com", "autoresponse_postings_text": "", "last_post_at": + null, "autorespond_requests": "none", "allow_list_posts": true, "join_address": + "a_new_list-join@example.com", "autoresponse_owner_text": "", "autorespond_postings": + "none", "reply_goes_to_list": "no_munging", "post_id": 1, "collapse_alternatives": + true, "admin_immed_notify": true, "mail_host": "example.com", "leave_address": + "a_new_list-leave@example.com"}'} + headers: + content-length: ['1653'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:15 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: default_nonmember_action=hold&default_member_action=defer&admin_notify_mchanges=False&send_welcome_message=True&allow_list_posts=True&posting_pipeline=default-posting-pipeline&administrivia=True&filter_content=False&autorespond_owner=none&display_name=A_new_list&advertised=True&first_strip_reply_to=False&autoresponse_request_text=&description=A+new+list.&reply_to_address=&autoresponse_owner_text=&subject_prefix=%5BA_new_list%5D+&include_rfc2369_headers=True&convert_html_to_plaintext=False&anonymous_list=False&archive_policy=public&autorespond_postings=none&digest_size_threshold=30.0&autoresponse_grace_period=90d&reply_goes_to_list=no_munging&autorespond_requests=none&welcome_message_uri=mailman%3A%2F%2F%2Fwelcome.txt&admin_immed_notify=True&autoresponse_postings_text=&collapse_alternatives=True + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'PATCH' + uri: http://localhost:9001/3.0/lists/a_new_list@example.com/config + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:15 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/a_new_list@example.com + response: + body: {string: !!python/unicode '{"display_name": "A_new_list", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"", + "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", "volume": + 1, "fqdn_listname": "a_new_list@example.com", "list_id": "a_new_list.example.com", + "member_count": 0, "mail_host": "example.com", "list_name": "a_new_list"}'} + headers: + content-length: ['329'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:15 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/a_new_list.example.com/roster/owner + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"2c769db0cf027118e7c042c8f95f8f1176d46585\"", + "total_size": 1, "entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "list_id": "a_new_list.example.com", "http_etag": "\"5ddeb767312916f130cf00de70143799e0ca3a7b\"", + "delivery_mode": "regular", "email": "owner@example.com", "self_link": "http://localhost:9001/3.0/members/28143965406037438169986764436672054161", + "role": "owner", "user": "http://localhost:9001/3.0/users/33053400552422307362609732601039123688"}]}'} + headers: + content-length: ['517'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:15 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_new/list_creation/setup.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_new/list_creation/setup.yaml index 0bc46d3..c8967d9 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_new/list_creation/setup.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_new/list_creation/setup.yaml @@ -1,175 +1,110 @@ -{ - "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 +interactions: +- request: + body: mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode 'Domain exists'} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:05 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:05 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode 'Domain exists'} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:15 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:15 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode 'Domain exists'} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:16 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:16 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_new/list_creation/teardown.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_new/list_creation/teardown.yaml index 0e536c4..69cfaf6 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_new/list_creation/teardown.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_new/list_creation/teardown.yaml @@ -1,166 +1,202 @@ -{ - "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 +interactions: +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"f2900681c0a780134b5a7d3eb6299eae6205c266\"", + "total_size": 3, "entries": [{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": + 0, "mail_host": "example.com", "list_name": "foo"}, {"display_name": "Test", + "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\"", "self_link": + "http://localhost:9001/3.0/lists/test.example.org", "volume": 1, "fqdn_listname": + "test@example.org", "list_id": "test.example.org", "member_count": 0, "mail_host": + "example.org", "list_name": "test"}, {"display_name": "A_new_list", "http_etag": + "\"447e005af2b208bfea01f6425b786356f0a374de\"", "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", + "volume": 1, "fqdn_listname": "a_new_list@example.com", "list_id": "a_new_list.example.com", + "member_count": 0, "mail_host": "example.com", "list_name": "a_new_list"}]}'} + headers: + content-length: ['1031'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:05 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": + 0, "mail_host": "example.com", "list_name": "foo"}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:05 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:39:05 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/test.example.org + response: + body: {string: !!python/unicode '{"display_name": "Test", "http_etag": "\"bdbe0068d985e63808436177de1063200d586b0d\"", + "self_link": "http://localhost:9001/3.0/lists/test.example.org", "volume": + 1, "fqdn_listname": "test@example.org", "list_id": "test.example.org", "member_count": + 0, "mail_host": "example.org", "list_name": "test"}'} + headers: + content-length: ['299'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:05 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/lists/test@example.org + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:39:05 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/a_new_list.example.com + response: + body: {string: !!python/unicode '{"display_name": "A_new_list", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"", + "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", "volume": + 1, "fqdn_listname": "a_new_list@example.com", "list_id": "a_new_list.example.com", + "member_count": 0, "mail_host": "example.com", "list_name": "a_new_list"}'} + headers: + content-length: ['329'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:05 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/lists/a_new_list@example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:39:05 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"dee96dcb9d3f736cc6fa170baeea8f879d7db6f0\"", + "total_size": 1, "entries": [{"display_name": "A_new_list", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"", + "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", "volume": + 1, "fqdn_listname": "a_new_list@example.com", "list_id": "a_new_list.example.com", + "member_count": 0, "mail_host": "example.com", "list_name": "a_new_list"}]}'} + headers: + content-length: ['434'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:15 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/a_new_list.example.com + response: + body: {string: !!python/unicode '{"display_name": "A_new_list", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"", + "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", "volume": + 1, "fqdn_listname": "a_new_list@example.com", "list_id": "a_new_list.example.com", + "member_count": 0, "mail_host": "example.com", "list_name": "a_new_list"}'} + headers: + content-length: ['329'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:15 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/lists/a_new_list@example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:16 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:16 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary/list_summary_page/list_summary_logged_in.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary/list_summary_page/list_summary_logged_in.yaml index bd70783..e49fa2c 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary/list_summary_page/list_summary_logged_in.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary/list_summary_page/list_summary_logged_in.yaml @@ -1,210 +1,107 @@ -{ - "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 +interactions: +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": + 0, "mail_host": "example.com", "list_name": "foo"}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:16 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:16 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:16 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:16 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"digest_last_sent_at": null, "scheme": "http", + "next_digest_number": 1, "first_strip_reply_to": false, "reply_to_address": + "", "convert_html_to_plaintext": false, "administrivia": true, "owner_address": + "foo-owner@example.com", "admin_notify_mchanges": false, "display_name": "Foo", + "created_at": "2015-02-09T21:41:16.500827", "posting_address": "foo@example.com", + "http_etag": "\"4c5b2d9f84a19e580aacd8f750049850ea5e6055\"", "default_member_action": + "defer", "fqdn_listname": "foo@example.com", "archive_policy": "public", "list_name": + "foo", "filter_content": false, "welcome_message_uri": "mailman:///welcome.txt", + "no_reply_address": "noreply@example.com", "autoresponse_request_text": "", + "digest_size_threshold": 30.0, "acceptable_aliases": [], "anonymous_list": + false, "default_nonmember_action": "hold", "autoresponse_grace_period": "90d", + "advertised": true, "autorespond_owner": "none", "volume": 1, "include_rfc2369_headers": + true, "posting_pipeline": "default-posting-pipeline", "send_welcome_message": + true, "request_address": "foo-request@example.com", "subject_prefix": "[Foo] + ", "bounces_address": "foo-bounces@example.com", "description": "", "web_host": + "example.com", "autoresponse_postings_text": "", "last_post_at": null, "autorespond_requests": + "none", "allow_list_posts": true, "join_address": "foo-join@example.com", + "autoresponse_owner_text": "", "autorespond_postings": "none", "reply_goes_to_list": + "no_munging", "post_id": 1, "collapse_alternatives": true, "admin_immed_notify": + true, "mail_host": "example.com", "leave_address": "foo-leave@example.com"}'} + headers: + content-length: ['1583'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:16 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary/list_summary_page/list_summary_logged_out.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary/list_summary_page/list_summary_logged_out.yaml index 92ce707..37f6e1c 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary/list_summary_page/list_summary_logged_out.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary/list_summary_page/list_summary_logged_out.yaml @@ -1,128 +1,89 @@ -{ - "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 +interactions: +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '404 Not Found'} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:06 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": + 0, "mail_host": "example.com", "list_name": "foo"}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:17 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", + "total_size": 0}'} + headers: + content-length: ['90'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:17 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo@example.com/config + response: + body: {string: !!python/unicode '{"digest_last_sent_at": null, "scheme": "http", + "next_digest_number": 1, "first_strip_reply_to": false, "reply_to_address": + "", "convert_html_to_plaintext": false, "administrivia": true, "owner_address": + "foo-owner@example.com", "admin_notify_mchanges": false, "display_name": "Foo", + "created_at": "2015-02-09T21:41:17.012481", "posting_address": "foo@example.com", + "http_etag": "\"45c0486c361152f6706cad89e2c2bc4b5a5571d8\"", "default_member_action": + "defer", "fqdn_listname": "foo@example.com", "archive_policy": "public", "list_name": + "foo", "filter_content": false, "welcome_message_uri": "mailman:///welcome.txt", + "no_reply_address": "noreply@example.com", "autoresponse_request_text": "", + "digest_size_threshold": 30.0, "acceptable_aliases": [], "anonymous_list": + false, "default_nonmember_action": "hold", "autoresponse_grace_period": "90d", + "advertised": true, "autorespond_owner": "none", "volume": 1, "include_rfc2369_headers": + true, "posting_pipeline": "default-posting-pipeline", "send_welcome_message": + true, "request_address": "foo-request@example.com", "subject_prefix": "[Foo] + ", "bounces_address": "foo-bounces@example.com", "description": "", "web_host": + "example.com", "autoresponse_postings_text": "", "last_post_at": null, "autorespond_requests": + "none", "allow_list_posts": true, "join_address": "foo-join@example.com", + "autoresponse_owner_text": "", "autorespond_postings": "none", "reply_goes_to_list": + "no_munging", "post_id": 1, "collapse_alternatives": true, "admin_immed_notify": + true, "mail_host": "example.com", "leave_address": "foo-leave@example.com"}'} + headers: + content-length: ['1583'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:17 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary/list_summary_page/setup.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary/list_summary_page/setup.yaml index 6f1c0c8..edc1615 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary/list_summary_page/setup.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary/list_summary_page/setup.yaml @@ -1,345 +1,218 @@ -{ - "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 +interactions: +- request: + body: mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode 'Domain exists'} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:06 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:06 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:06 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=foo%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:39:06 GMT'] + location: ['http://localhost:9001/3.0/lists/foo.example.com'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode 'Domain exists'} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:16 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:16 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:16 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=foo%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:16 GMT'] + location: ['http://localhost:9001/3.0/lists/foo.example.com'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +- request: + body: mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode 'Domain exists'} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:16 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 400, message: Bad Request} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:16 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"description": null, "url_host": "example.com", + "base_url": "http://example.com", "contact_address": "postmaster@example.com", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "http_etag": "\"40f27b0d07b71e91cc08047b8171e2b0bb1d5967\""}'} + headers: + content-length: ['278'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:17 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=foo%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'content-type': [!!python/unicode 'application/x-www-form-urlencoded'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'POST' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:17 GMT'] + location: ['http://localhost:9001/3.0/lists/foo.example.com'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 201, message: Created} +version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary/list_summary_page/teardown.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary/list_summary_page/teardown.yaml index 6087668..97b91c1 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary/list_summary_page/teardown.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary/list_summary_page/teardown.yaml @@ -1,245 +1,164 @@ -{ - "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 +interactions: +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "total_size": 1, "entries": [{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": + 0, "mail_host": "example.com", "list_name": "foo"}]}'} + headers: + content-length: ['399'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:06 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": + 0, "mail_host": "example.com", "list_name": "foo"}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:39:06 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:39:06 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "total_size": 1, "entries": [{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": + 0, "mail_host": "example.com", "list_name": "foo"}]}'} + headers: + content-length: ['399'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:16 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": + 0, "mail_host": "example.com", "list_name": "foo"}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:16 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:16 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode '{"start": 0, "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "total_size": 1, "entries": [{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": + 0, "mail_host": "example.com", "list_name": "foo"}]}'} + headers: + content-length: ['399'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:17 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'GET' + uri: http://localhost:9001/3.0/lists/foo.example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "self_link": "http://localhost:9001/3.0/lists/foo.example.com", "volume": + 1, "fqdn_listname": "foo@example.com", "list_id": "foo.example.com", "member_count": + 0, "mail_host": "example.com", "list_name": "foo"}'} + headers: + content-length: ['294'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 09 Feb 2015 21:41:17 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode 'authorization': [!!python/unicode 'Basic cmVzdGFkbWluOnJlc3RwYXNz'] + !!python/unicode 'user-agent': [!!python/unicode 'GNU Mailman REST client v1.0.0b1'] + method: !!python/unicode 'DELETE' + uri: http://localhost:9001/3.0/lists/foo@example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + date: ['Mon, 09 Feb 2015 21:41:17 GMT'] + server: [WSGIServer/0.2 CPython/3.4.2] + status: {code: 204, message: No Content} +version: 1