diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_archival_options.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_archival_options.yaml deleted file mode 100644 index 54cda4f..0000000 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_archival_options.yaml +++ /dev/null @@ -1,310 +0,0 @@ -interactions: -- request: - body: mail_host=example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST - uri: http://localhost:9001/3.0/domains - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/domains/example.com'] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} - headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: fqdn_listname=test_list%40example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/lists/test_list.example.com'] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/test_list.example.com - response: - body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": - "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1}'} - headers: - content-length: ['324'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers - response: - body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", - "mail-archive": true, "mhonarc": true, "prototype": true}'} - headers: - content-length: ['119'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/test_list.example.com - response: - body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": - "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1}'} - headers: - content-length: ['324'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/lists/test_list@example.com - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: mail_host=example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST - uri: http://localhost:9001/3.0/domains - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/domains/example.com'] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} - headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: fqdn_listname=test_list%40example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/lists/test_list.example.com'] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/test_list.example.com - response: - body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": - "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1}'} - headers: - content-length: ['324'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers - response: - body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", - "mail-archive": true, "mhonarc": true, "prototype": true}'} - headers: - content-length: ['119'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/test_list.example.com - response: - body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": - "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1}'} - headers: - content-length: ['324'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/lists/test_list@example.com - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: mail_host=example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST - uri: http://localhost:9001/3.0/domains - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/domains/example.com'] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} - headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: fqdn_listname=test_list%40example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/lists/test_list.example.com'] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/test_list.example.com - response: - body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": - "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1}'} - headers: - content-length: ['324'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers - response: - body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", - "mail-archive": true, "mhonarc": true, "prototype": true}'} - headers: - content-length: ['119'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/lists/test_list@example.com - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_archival_options_disable_archiver.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_archival_options_disable_archiver.yaml deleted file mode 100644 index 7c62e45..0000000 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_archival_options_disable_archiver.yaml +++ /dev/null @@ -1,69 +0,0 @@ -interactions: -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/test_list.example.com - response: - body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": - "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1}'} - headers: - content-length: ['324'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers - response: - body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", - "mail-archive": true, "mhonarc": true, "prototype": true}'} - headers: - content-length: ['119'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: mail-archive=False - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PATCH - uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers - response: - body: {string: !!python/unicode '{"http_etag": "\"9f3e82fa9d7dc70277565c9703a90ad3fbeb9a03\"", - "mail-archive": false, "mhonarc": true, "prototype": true}'} - headers: - content-length: ['120'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers - response: - body: {string: !!python/unicode '{"http_etag": "\"9f3e82fa9d7dc70277565c9703a90ad3fbeb9a03\"", - "mail-archive": false, "mhonarc": true, "prototype": true}'} - headers: - content-length: ['120'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_archival_options_enable_archiver.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_archival_options_enable_archiver.yaml deleted file mode 100644 index daa8c4d..0000000 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_archival_options_enable_archiver.yaml +++ /dev/null @@ -1,119 +0,0 @@ -interactions: -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/test_list.example.com - response: - body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": - "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1}'} - headers: - content-length: ['324'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers - response: - body: {string: !!python/unicode '{"http_etag": "\"9f3e82fa9d7dc70277565c9703a90ad3fbeb9a03\"", - "mail-archive": false, "mhonarc": true, "prototype": true}'} - headers: - content-length: ['120'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: mail-archive=True - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PATCH - uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers - response: - body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", - "mail-archive": true, "mhonarc": true, "prototype": true}'} - headers: - content-length: ['119'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: mhonarc=False - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PATCH - uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers - response: - body: {string: !!python/unicode '{"http_etag": "\"936e46ad303ba96ba71e5dfcf266fc77f39c827f\"", - "mail-archive": true, "mhonarc": false, "prototype": true}'} - headers: - content-length: ['120'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: prototype=False - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode PATCH - uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers - response: - body: {string: !!python/unicode '{"http_etag": "\"de68e13c430d856461d2b39a5b5d5286d91528bc\"", - "mail-archive": true, "mhonarc": false, "prototype": false}'} - headers: - content-length: ['121'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists/test_list.example.com/archivers - response: - body: {string: !!python/unicode '{"http_etag": "\"de68e13c430d856461d2b39a5b5d5286d91528bc\"", - "mail-archive": true, "mhonarc": false, "prototype": false}'} - headers: - content-length: ['121'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -version: 1